POST
/
token
curl --request POST \
  --url https://backend.chatfly.co/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'grant_type=<string>' \
  --data 'username=<string>' \
  --data 'password=<string>' \
  --data scope= \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>'
{
  "message_code": 0,
  "message": "API success",
  "data": {
    "access_token": "string token",
    "token_type": "bearer"
  }
}
{
  "message_code": 0,
  "message": "API success",
  "data": {
    "access_token": "string token",
    "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

Response

200
application/json
Successful Response

Model for representing an access token.

access_token
string
required
token_type
string
required