Skip to main content
PATCH
/
users
Credit grant
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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string
required

The (case-insensitive) email address of the user whose account to grant credits to.

Example:

"user@example.com"

credits
integer
required

The number of credits to grant the account.

Example:

1000

Response

The account credits.

email
string
required

The account email address.

Example:

"user@example.com"

credits
integer
required

The number of granted credits as recorded by the API.

Example:

1000