Accounts


POST/v1/{APPID}/accounts/access-token

Access Token

This API endpoint returns an access token that can be used to authenticate future requests.

Required attributes

  • Name
    refresh_token
    Type
    string
    Description

    The refresh token used for obtaining a new access token.

Request

POST
/v1/{APPID}/accounts/access-token
curl https://api.authc1.com/v1/{APPID}/accounts/access-token \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{
    "refresh_token": "xxxxxxxxxx"
  }'

Response

{
  "access_token": "xxxxx",
  "refresh_token": "xxxxx",
  "expires_in": 3600,
  "expires_at": 1683572605
}