jsonpad
No results
Search failed
No results
Narrow your search with type:list, type:token, #tag…↑↓ to move · Enter to open · Esc to close
  • Home
    • Getting started
      • Create a list
      • Add some items
      • Fetch all items
      • Fetch an item
      • Update an item
    • Talking to the API
      • cURL
      • JS/TS
      • HTTP methods
      • Rate limits
      • Caching
    • List schemas
    • Indexing lists
      • Creating an index
      • Index builds
      • Alias indexes
      • Long values
      • Sorting lists
      • Filtering items
      • Searching lists
      • Guard indexes
    • Paths and pointers
      • Fetch partial data
      • Update partial data
      • Delete partial data
    • Token permissions
    • Tags
      • Adding tags
      • Filtering by tag
      • Tags in the dashboard
    • Schema sync
      • The document
      • Syncing
      • Scopes
      • Exporting existing lists
      • The command line tool
    • Write rules
      • Authorise, then validate
      • The order of a write
      • What a rule can see
      • Shared items
      • Consistency
      • Writing and testing rules
      • Refused writes
      • Language reference
      • Recipes
    • Command line tool
      • Installing
      • Authentication and profiles
      • Output formats
      • Exporting and importing items
      • Using it in CI
      • Command reference
    • Authentication
    • Identity groups
    • Password reset
      • Token delivery
      • Receiving webhooks
      • Email verification
    • Signing in with a provider
      • In your app
      • Callback modes
      • Linking accounts
      • Sign in with Google
      • Sign in with GitHub
      • Sign in with Apple
      • Sign in with Microsoft
      • Sign in with Discord
      • Sign in with Facebook
    • Realtime updates
    • Webhooks
      • Creating a webhook
      • Events
      • The payload
      • Verifying signatures
      • Retries
    • Event log
    • Version control
    • Using the SDKs
      • Server
      • Browser
    • Variables
    • JSON5
    • MessagePack
  • API reference
    • Lists
      • Create a list
      • Fetch all lists
      • View a list
      • Search a list
      • Fetch list stats
      • Fetch list events
      • View a list event
      • Update a list
      • Test a list's write rules
      • Fetch refused writes
      • Delete a list
    • Items
      • Create an item
      • Fetch all items
      • Fetch all item data
      • Fetch partial item data
      • View an item
      • View item data
      • View partial item data
      • Fetch item stats
      • Fetch item events
      • View an item event
      • Restore an item
      • Update an item
      • Update item data
      • Replace item data
      • Patch item data
      • Update partial item data
      • Replace partial item data
      • Patch partial item data
      • Delete an item
      • Delete partial item data
    • Indexes
      • Create an index
      • Fetch all indexes
      • View an index
      • Fetch index stats
      • Fetch index events
      • View an index event
      • Update an index
      • Rebuild an index
      • Delete an index
    • Identities
      • Create an identity
      • Fetch all identities
      • View an identity
      • Fetch identity stats
      • Fetch identity events
      • View an identity event
      • Update an identity
      • Delete an identity
      • Register an identity
      • Login an identity
      • Logout an identity
      • Fetch the current identity
      • Update the current identity
      • Delete the current identity
      • List sign-in providers
      • Start signing in with a provider
      • Finish signing in with a provider
      • List the current identity's linked accounts
      • Link a provider account
      • Unlink a provider account
      • Request a password reset token
      • Reset a password
      • Request an email verification token
      • Verify an email address
    • Fetch the current token
    • Schema sync
      • Sync a schema
      • Export a schema
      • Move lists between scopes
    • Limits and quotas
      • What counts as a request
      • Response headers
      • What happens when you run out
      • When the allowance resets
      • Storage
      • Rate limits
      • Version history
      • What is not limited
    • Errors
      • Error object
      • Error codes

Login an identity

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/login

Example

cURL
12345678curl 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" }'

Parameters

No parameters

Request headers

  • required
    x-api-tokenstringYour API token.
  • optional
    x-identity-tokenstringAn identity token.
  • optional
    x-identity-groupstringAn identity group.

Request body

{
group: "sample-group"
email: "identity@example.com"
password: "correct-horse"
}
  • optional
    groupstringThe identity group.
  • optional
    namestringThe name of the identity. Either name or email is required, but not both.
  • optional
    emailstringThe identity's email address, instead of its name. Email addresses are compared ignoring case.
  • optional
    passwordstring

    The identity's password.

Response body

200 OK
{
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: true
displayName: "Sample User"
description: "Sample user description"
}
name: "Sample Identity"
displayName: "Sample Display Name"
email: "identity@example.com"
emailVerified: false
hasPassword: true
tags: [
0: "my-app"
]
group: "sample-group"
token: "<IDENTITY TOKEN>"
activated: true
}

Response headers

No response headers

2026-09-17
fl3x