Skip to main content
GET
/
api
/
access_validation
Access Validation
curl --request GET \
  --url https://app.aisync.link/api/access_validation \
  --header 'Authorization: Bearer <token>'
{
  "valid": true,
  "expires_at": "2023-11-07T05:31:56Z",
  "scope": "<string>"
}

Access Validation

Validate that your access token is still valid and active. Use this endpoint to check token status before making API calls.
Authorization
string
required
Bearer token in the format: Bearer {access_token}
curl --location 'https://app.aisync.link/api/access_validation' \
  --header 'Authorization: Bearer {{bearer_token}}'
valid
boolean
Indicates whether the access token is valid
expires_at
string
ISO 8601 timestamp of when the token expires
scope
string
The scope of access granted to this token
If the token is invalid or expired, you’ll receive an error response. Use the Refresh Token endpoint to obtain a new access token.

Authorizations

Authorization
string
header
required

Bearer token authentication. Include the access token in the Authorization header as 'Bearer {access_token}'

Response

Token validation response

valid
boolean
required

Indicates whether the access token is valid

expires_at
string<date-time>

ISO 8601 timestamp of when the token expires

scope
string

The scope of access granted to this token