View the current identity

Fetch the current identity when authenticated as an identity.

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

Example

cURL
1234curl https://api.jsonpad.io/identities/self \ -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: "082c93d7-ef93-40f8-b812-97908ac270c0"
createdAt: "2026-09-23T21:08:48.958Z"
updatedAt: "2026-09-23T21:08:48.958Z"
user: {
id: "e16ec98e-041d-4a32-a3d0-574e9024f050"
createdAt: "2026-09-23T21:08:48.958Z"
updatedAt: "2026-09-23T21:08:48.958Z"
lastActiveAt: "2026-09-23T21:08:48.958Z"
activated: true
displayName: "Sample User"
description: "Sample user description"
}
group: "sample-group"
name: "Sample Identity"
displayName: "Sample Display Name"
email: "identity@example.com"
emailVerified: false
hasPassword: true
tags: [
0: "my-app"
]
lastLoginAt: "2026-09-23T21:08:48.958Z"
activated: true
sessionCount: 2
providers: [
0: {
provider: "google"
email: "identity@example.com"
name: "Sample Display Name"
avatarUrl: "https://lh3.googleusercontent.com/a/..."
createdAt: "2026-09-23T21:08:48.958Z"
lastLoginAt: "2026-09-23T21:08:48.958Z"
}
]
}

providers lists the accounts this identity can sign in with, and sessionCount how many devices it's logged in on.

Response headers

  • last-modified2026-09-23T21:08:48.958ZThe date this identity was last modified.
2026-09-17