POST
/
users
curl --request POST \
  --url https://api.identety.dev/users \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "email": "john@example.com",
  "password": "password123",
  "name": "John Doe",
  "givenName": "John",
  "familyName": "Doe",
  "picture": "https://example.com/photo.jpg",
  "locale": "en-US",
  "address": {
    "streetAddress": "123 Main St",
    "locality": "New York",
    "region": "NY",
    "postalCode": "10001",
    "country": "USA"
  },
  "metadata": {
    "customField": "value"
  }
}'
{
  "id": "43fad864-738d-4367-a012-2b8c6948c36a",
  "name": "John Doe",
  "givenName": "John",
  "familyName": "Doe",
  "picture": "https://example.com/photo.jpg",
  "locale": "en-US",
  "address": {
    "streetAddress": "123 Main St",
    "locality": "New York",
    "region": "NY",
    "postalCode": "10001",
    "country": "USA"
  },
  "metadata": {
    "customField": "value"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
email
string
required
password
string
required
Minimum length: 8
name
string
required
givenName
string
required
familyName
string
required
picture
string
required
locale
string
required
address
object
required
metadata
object
required

Response

201
application/json
Client created successfully.
id
string
required
name
string
required
givenName
string
required
familyName
string
required
picture
string
required
locale
string
required
address
object
required
metadata
object
required