Get Token Information

Get the meta data for an access token. This can be used to get the org identifier that the token was created for, as well as the scopes and app that the token is associated with.

POST with post body as shown below.

An expires_in time of 0, may indicate no expiration on the token. Any token generated through the "Install to Drift" button in the developer platform will stay valid until revoked or app deleted.

  "accessToken": ACCESS_TOKEN

// where accessToken is the access token of interest as a quoted string.

Returns a response like the following

    "access_token": (str), // access token of interest
    "authenticated_userid": (str), // in format "orgId:X" where X is the organization id.
    "credential_id": (str), // app id associated with the token.
    "token_type": "bearer",
    "expires_in": (long), // expiration time in millis for the token, typically 2 hours for access, or 0 if until revoked.
    "created_at": (long), // created at time in millis for the token
    "scope": (str), // space-separated list of scopes on the token
    "id": (str) // unique Drift identifier for the token entry

Example Request

    "access_token": "1234567890-1234-1234-123456",
  "authenticated_userid": "orgId:123",
  "credential_id": "",
  "token_type": "bearer",
  "expires_in": 0,
  "created_at": 1238712442000,
  "scope": "contact_read contact_write conversation_read conversation_write user_read user_write",
  "id": "1234567890"

Did this page help you?