View the current identity

Fetch the current identity when authenticated as an identity.

GET https://api.jsonpad.io/identities/self

Example

cURL
12345curl https://api.jsonpad.io/identities/self \
  -H "Content-Type: application/json" \
  -H "x-api-token: <YOUR TOKEN>" \
  -H "x-identity-token: <IDENTITY TOKEN>" \
  -H "x-identity-group: <IDENTITY GROUP>"

Parameters

No parameters

Request headers

  • required
    x-api-tokenstringYour API token.
  • optional
    if-modified-since

    An ISO 8601 date.

    If the identity hasn't been updated since this date, we return an empty 304 ("Not modified") response, and the request will not be counted towards any active rate limits.

  • required
    x-identity-tokenstringAn identity token.
  • required
    x-identity-groupstringAn identity group.

Request body

No request body

Response body

200 OK
{
id: "23c7f150-90cf-4310-919f-32b566ed5165"
createdAt: "2026-09-05T11:30:43.551Z"
updatedAt: "2026-09-05T11:30:43.551Z"
user: {
id: "d3ae3def-cd37-46e4-b68a-32a28c32044d"
createdAt: "2026-09-05T11:30:43.551Z"
updatedAt: "2026-09-05T11:30:43.551Z"
lastActiveAt: "2026-09-05T11:30:43.551Z"
activated: true
displayName: "Sample User"
description: "Sample user description"
}
group: "sample-group"
name: "Sample Identity"
lastLoginAt: "2026-09-05T11:30:43.551Z"
activated: true
}

Response headers

  • last-modified2026-09-05T11:30:43.551ZThe date this identity was last modified.
2024-12-12