Login
POST
/v1/auth/loginAuthenticate and retrieve an access token for your account. Currently, the access tokens expire in 30 days.
Request
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Body Params application/x-www-form-urlencoded
username
string
required
The email used to sign up.
Example:
{{USERNAME}}
password
string
required
Example:
{{PASSWORD}}
Request samples
Responses
Success(200)
Unauthorized(401)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
access_token
string
required
The access token needed to make API calls.
refresh_token
string
required
id_token
string
required
scope
string
required
expires_in
integer
required
The number of seconds the token is valid for.
token_type
string
required
Example:
Bearer
accountId
integer
required
accountEmail
string
required
accountName
string
required
accountPicture
string
required
intercomUserHash
string
required
Example
{
"data": {
"access_token": "string",
"refresh_token": "string",
"id_token": "string",
"scope": "string",
"expires_in": 0,
"token_type": "Bearer",
"accountId": 0,
"accountEmail": "string",
"accountName": "string",
"accountPicture": "string",
"intercomUserHash": "string"
}
}
Last modified: 5 months ago