Get Oauth Token
POST
/v1/oauth/tokenLast modified: 8 months ago
An OAuth token is a credential that grants authorized access to protected resources, allowing applications to authenticate and perform actions on behalf of a user without exposing their login information.
Request
Header Params
Content-Type
enum<string>
required
Allowed value:
x-www-form-urlencoded
Default:
x-www-form-urlencoded
Body Params application/x-www-form-urlencoded
grant_type
enum<string>
required
Specifies that you are requesting client credentials.
Allowed value:
client_credentials
Example:
client_credentials
client_id
string
required
Client id supplied to you by Airspace Link.
Example:
{{client-id}}
client_secret
string
required
Client secret supplied to you by Airspace Link.
Example:
{{client-secret}}
scope
string
optional
Scopes for which you are requesting access. See the list of available scopes in the Authentication doc on the previous page.
Example:
{{scope}}
Request samples
Responses
Success(200)
400(400)
500(500)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
accessToken
string
required
expires
string
required
message
string
required
statusCode
integer
required
Example
{
"data": {
"accessToken": "",
"expires": ""
},
"message": "success",
"statusCode": 200
}
Last modified: 8 months ago