Skip to main content
POST
/
v1
/
oauth
/
tokens
Generate tokens
curl --request POST \
  --url https://api.hyperline.co/v1/oauth/tokens \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "<string>",
  "client_secret": "<string>",
  "grant_type": "authorization_code",
  "code": "<string>",
  "redirect_uri": "<string>"
}'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "expires_in": 123,
  "token_type": "bearer"
}

Body

application/json
  • Option 1
  • Option 2
client_id
string
required
client_secret
string
required
grant_type
enum<string>
required
Available options:
authorization_code
code
string
required
redirect_uri
string
required

Response

200 - application/json
access_token
string
required
expires_in
number
required
token_type
enum<string>
required
Available options:
bearer
refresh_token
string