Login as an identity and get a token which can be used in subsequent requests to authenticate as this identity.
Each login creates a new session, so an identity can be logged in on several devices at once. How long the token lasts depends on the identity's group. Deactivated and locked identities can't log in.
POST https://api.jsonpad.io/identities/logincurl https://api.jsonpad.io/identities/login \
-H "Content-Type: application/json" \
-H "x-api-token: <YOUR TOKEN>" \
-d '{
"group": "sample-group",
"email": "identity@example.com",
"password": "correct-horse"
}'No parameters
x-api-tokenstringYour API token.x-identity-tokenstringAn identity token.x-identity-groupstringAn identity group.{group: "sample-group"email: "identity@example.com"password: "correct-horse"}groupstringThe identity group.namestringThe name of the identity. Either name or email is required, but not both.emailstringThe identity's email address, instead of its name. Email addresses are compared ignoring case.passwordstringThe identity's password.
{id: "8d91312c-ad12-447c-a30c-600330ccd8f0"createdAt: "2026-09-23T21:08:47.829Z"updatedAt: "2026-09-23T21:08:47.829Z"user: {id: "99f8e74e-93b1-4784-bdd1-5a4962c85f46"createdAt: "2026-09-23T21:08:47.829Z"updatedAt: "2026-09-23T21:08:47.829Z"lastActiveAt: "2026-09-23T21:08:47.829Z"activated: truedisplayName: "Sample User"description: "Sample user description"}name: "Sample Identity"displayName: "Sample Display Name"email: "identity@example.com"emailVerified: falsehasPassword: truetags: [0: "my-app"]group: "sample-group"token: "<IDENTITY TOKEN>"activated: true}No response headers
2026-09-17