Skip to main content
POST
/
users
New user
curl --request POST \
  --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",
  "token": "a1-0dF6qKHYD7SNU5kAtjOmwHpH3iFgpylA"
}

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 email address of the user to create an account for; the address is case insensitive and can be up to 255 characters, regardless of character encoding.

Example:

"user@example.com"

credits
integer

The number of credits to grant the account.

Example:

1000

Response

The new account metadata.

email
string
required

The account email address as recorded by the API.

Example:

"user@example.com"

token
string
required

The bearer token issued to the account for authentication.

Example:

"a1-0dF6qKHYD7SNU5kAtjOmwHpH3iFgpylA"