Getting Started
Identity

Get token identity

Changed on

Shows information about the entities that can be controlled by the current auth token.

Authentication

This endpoint accepts any one of the following token types:

  • Company-scoped access token (OAuth2AuthorizationCode) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
  • Company-scoped access token (assertion) (OAuth2CompanyManagerAssertion) — obtained through the urn:ietf:params:oauth:grant-type:jwt-bearer grant for a company manager. See OAuth Assertion.
  • Client credentials access token (OAuth2ClientCredentials) — obtained through the Client Credentials flow or the Refresh Token flow. See Authentication for partners.
  • Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page, with the scopes they choose there. See Authorization for customers.
get/v1/identity/current

Request

  • Base URL
    https://gateway.remote.com
  • Auth
    • OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
    • or HTTP bearer

Headers

Authorization, string required

An access token of one of the types listed in this endpoint's Authentication section, as Bearer <ACCESS TOKEN>.

A token from the Refresh Token flow is of the same type as the token issued with that refresh token.

Response

Success

union required

The response from GET /v1/identity/current. Returns information about the entities associated with the current authentication token. The shape of the response depends on the type of token used:

  • Client Credentials Token: Returns the integration's client_id and details. No company or user context.
  • Company Access Token (Authorization Code flow): Returns full context — integration credentials, the company being accessed, and the authorizing user.
  • Customer API Token: Returns only the company and user. No integration credentials since the company is accessing its own data directly.
intersection required
OR
intersection required
OR
intersection required

Example response

{
  "data": {
    "client_id": "1pws9iw986yq1ec57h159q29l",
    "integration": {
      "contact_email": "partner_admin@example.com",
      "display_name": "Integration Display Name",
      "name": "integration_partner"
    }
  }
}

Changes