POST
/
spaces
/
{owner}
/
{space}
/
identities
curl --request POST \
  --url https://api.loccus.ai/v1/spaces/{owner}/{space}/identities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "handle": "identity-a",
  "alias": "Identity A"
}'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "handle": "identity-a",
  "alias": "Identity A",
  "audios": 10,
  "voiceprints": 10,
  "verifications": 10,
  "createdAt": "2023-01-01T00:00:00.000000Z"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

owner
string
required

The handle of the owner.

space
string
required

The handle of the space.

Body

application/json
handle
string
required

The handle of the new identity. Must be unique.

alias
string | null

The alias of the new identity.

Response

201 - application/json
id
string
required

The UUID of the identity. Is unique.

handle
string
required

The handle of the identity. Is unique.

alias
string | null
required

The alias of the identity.

audios
integer

The number of audios of the identity.

voiceprints
integer

The number of voiceprints of the identity.

verifications
integer

The number of verifications of the identity.

createdAt
string
required

The date and time when the identity was created.