Skip to main content
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": 1,
    "program_id": 2,
    "scopes": [
      "read_customers",
      "read_orders"
    ],
    "integration": null
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.loyaltylion.com/llms.txt

Use this file to discover all available pages before exploring further.

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

identity
API key · object
required
Example:
{
"kind": "api_key",
"account_id": 1,
"program_id": 2,
"scopes": ["read_customers", "read_orders"],
"integration": null
}