Skip to main content
POST
/
api
/
v1
/
users
/
authorization
/
token
Login For Access Token
curl --request POST \
  --url http://localhost:8000/api/v1/users/authorization/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'username=<string>' \
  --data 'password=<string>' \
  --data 'grant_type=<string>' \
  --data scope= \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data 'google_recaptcha_response=<string>'
{
  "id": 123,
  "email": "[email protected]",
  "profile": {
    "first_name": "<string>",
    "last_name": "<string>",
    "phone_number": "<string>"
  },
  "access_token": "<string>",
  "is_google_recaptcha_response_valid": true,
  "token_type": "bearer"
}

Body

application/x-www-form-urlencoded
username
string
required
password
string
required
grant_type
string | null
scope
string
default:""
client_id
string | null
client_secret
string | null
google_recaptcha_response
string | null

Response

Successful Response

The schema for a logged-in user.

id
integer
required
email
string<email>
required
profile
BasicProfileSchema · object
required

The base schema for a profile.

access_token
string
required
is_google_recaptcha_response_valid
boolean | null
token_type
string
default:bearer