Skip to main content
POST
/
auth
/
signup
User registration
curl --request POST \
  --url https://api.example.com/auth/signup \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "password": "password123",
  "firstName": "John",
  "lastName": "Doe"
}
'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "user": {
    "id": "uuid",
    "email": "[email protected]",
    "roles": [
      "user"
    ],
    "firstName": "John",
    "lastName": "Doe",
    "image": "https://example.com/image.jpg"
  }
}

Body

application/json
email
string
required
password
string
required
Example:

"password123"

firstName
string
Example:

"John"

lastName
string
Example:

"Doe"

Response

User successfully created

access_token
string
required
refresh_token
string
required
user
object
required
Example:
{
"id": "uuid",
"email": "[email protected]",
"roles": ["user"],
"firstName": "John",
"lastName": "Doe",
"image": "https://example.com/image.jpg"
}