GET
/
v2
/
identity
/
whoami
cURL
curl --request GET \
  --url https://api.loyaltylion.com/v2/identity/whoami \
  --header 'Authorization: Bearer <token>'
{
  "identity": {
    "kind": "api_key",
    "account_id": 123,
    "program_id": 123,
    "scopes": [
      "<string>"
    ],
    "integration": {
      "id": 123,
      "kind": "<string>",
      "enabled": true
    }
  }
}

Check your API caller identity with the LoyaltyLion API. This will return an identity object with details about the authenticating API method and its associated permissions.

If your API authentication is invalid, this endpoint will return a 401 response.

Authorizations

Authorization
string
header
required

An API key linked to a Program in LoyaltyLion, with a set of permissions (scopes). API keys can be created manually, or acquired through an OAuth2 flow. The API key should be provided as a Bearer token in the Authorization header

Response

200
application/json

200

The response is of type object.