Authentication

Authenticationlink

POST/v1/auth/register

Register

lock

Requires Bearer token authentication.

Request body

application/json
{
  "name": "John Doe",
  "email": "john@example.com",
  "password": "Password123"
}

Responses

Successful response

null
boltTry it
env
POSThttps://api.example.com/v1/v1/auth/register

Request body

Code samples

curl -X POST 'https://api.example.com/v1/v1/auth/register' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "name": "John Doe",
  "email": "john@example.com",
  "password": "Password123"
}'
POST/v1/auth/login

Login

lock

Requires Bearer token authentication.

Request body

application/json
{
  "email": "john@example.com",
  "password": "Password123"
}

Responses

Successful response

null
boltTry it
env
POSThttps://api.example.com/v1/v1/auth/login

Request body

Code samples

curl -X POST 'https://api.example.com/v1/v1/auth/login' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "email": "john@example.com",
  "password": "Password123"
}'
POST/v1/auth/refresh

Refresh Token

lock

Requires Bearer token authentication.

Responses

Successful response

null
boltTry it
env
POSThttps://api.example.com/v1/v1/auth/refresh

Request body

Code samples

curl -X POST 'https://api.example.com/v1/v1/auth/refresh'
POST/v1/auth/logout

Logout

lock

Requires Bearer token authentication.

Responses

Successful response

null
boltTry it
env
POSThttps://api.example.com/v1/v1/auth/logout

Request body

Code samples

curl -X POST 'https://api.example.com/v1/v1/auth/logout'