Register an identity

Register a new identity.

POST https://api.jsonpad.io/identities/register

Example

cURL
1234567891011curl https://api.jsonpad.io/identities/register \ -H "Content-Type: application/json" \ -H "x-api-token: <YOUR TOKEN>" \ -H "x-identity-token: <IDENTITY TOKEN>" \ -H "x-identity-group: <IDENTITY GROUP>" \ -d '{ "name": "My New Identity", "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"
name: "Sample Identity"
displayName: "Sample Display Name"
email: "identity@example.com"
password: "correct-horse"
}
  • optional
    groupstringThe identity's group. This can be used to associate identities with a particular app or project, and helps to avoid name conflicts.
  • optional
    namestringThe name of the identity.
  • optional
    displayNamestringA public name for the identity, e.g. to show who created an item. Unlike the name, this isn't used for logging in.
  • optional
    emailstring | null

    The identity's email address. Email addresses are unique within a group (ignoring case), and can be used instead of the name to log in. Required if the identity's group requires an email address.

  • optional
    passwordstring

    The identity's password.

    New passwords must be at least 8 characters, and at most 72 bytes, long.

Response body

200 OK
{
id: "673394f9-4e71-41c3-8bcf-974be0b1ab46"
createdAt: "2026-09-23T21:08:47.210Z"
updatedAt: "2026-09-23T21:08:47.210Z"
user: {
id: "57943462-d312-40a8-9d00-cfd5ce9069d1"
createdAt: "2026-09-23T21:08:47.210Z"
updatedAt: "2026-09-23T21:08:47.210Z"
lastActiveAt: "2026-09-23T21:08:47.210Z"
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"
activated: true
}

Response headers

  • locationhttps://api.jsonpad.io/identities/cc25dece-4fe2-4a79-bed6-b702b2a68b47The URL of the newly created identity.
  • last-modified2026-09-23T21:08:47.210ZThe date this identity was last modified.
2026-09-17