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",
  "amount": 1000
}
'
{
  "email": "user@example.com",
  "credits": 1000
}

Documentation Index

Fetch the complete documentation index at: https://doc.agentfirst.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json
email
string<email>
required

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

Example:

"user@example.com"

amount
integer
required

The number of credits to grant the account.

Example:

1000

Response

The account credits.

email
string<email>
required

The account email address.

Example:

"user@example.com"

credits
integer
required

The number of granted credits as recorded by the API.

Example:

1000