Home / APIs / Retrieve TokenContext

Retrieve TokenContext

8232 points
Michael Clark's picture

Overview

The TokenContext resource provides detailed information about the scope of an access token returned from the Auth API. This information determines how a user may access accounts within Enterprise-structure accounts (which are composed of multiple sub-accounts or business units).

Resource URL

https://www.exacttargetapis.com/platform/v1/tokenContext/

Example Request

GET https://www.exacttargetapis.com/platform/v1/tokenContext/?access_token=...

Example Response

HTTP/1.1 202 Accepted
{
    "enterprise": {
        "id": 1081365
    },
    "organization": {
        "id": 1081365
    },
    "user": {
        "id": 1093240
    }
}

API Console

Product Group: