cURL
curl --request PATCH \ --url https://api.agentfirst.dev/users \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "user@example.com", "credits": 1000 } '
{ "email": "user@example.com", "credits": 1000 }
Allocate credits to an account.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The (case-insensitive) email address of the user whose account to grant credits to.
"user@example.com"
The number of credits to grant the account.
1000
The account credits.
The account email address.
The number of granted credits as recorded by the API.