Who am I

GET
/me

The principal behind this key, the organization it is bound to, the role backing it, and the EXPANDED scopes it effectively holds. Requires no scope of its own, because it reveals only what the caller already has.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key from Settings > API access, sent as Authorization: Bearer sp_live_.... Send exactly one credential per request; a request carrying both a bearer token and a session cookie is rejected rather than resolved by precedence.

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/me"
{  "principal": {    "kind": "api_key",    "userId": "string",    "credentialId": "string"  },  "organization": {    "id": "string",    "role": "org:admin"  },  "scopes": [    "string"  ],  "expiresAt": "2019-08-24T14:15:22Z"}

Last updated on