Skip to main content
cURL

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

multipart/form-data
autoTimezone
boolean

Whether the timezone is taken from the browser from now on instead of from timezone.

edition
string | null

Edition to give the organization that is founded along with the activation. It matters only where the account is not in one yet and one is created for it.

fullname
string | null

Name the person is to be shown under. It overwrites whatever the invitation carried.

Example:

"John Doe"

language
string | null

Language the application and anything addressed to the person is to be in. It has to be one the tenant has installed.

Minimum string length: 1
Pattern: ^[a-z][a-z-]+$
Example:

"en"

organizationName
string | null

Name for the organization founded along with the activation. It is used only where organizations are in use and the account belongs to none yet - the person then becomes that organization's administrator.

password
string | null

Password to set for the account. It is required unless the person signs in through an identity provider instead, and it is refused when it is not strong enough for the tenant.

Maximum string length: 128
Example:

"SecurePassword123"

phone
string | null

Phone number of the person, where a one-time code can be sent.

Minimum string length: 1
Example:

"+420123456789"

photo
file

Profile picture, sent as the file itself. It is cut down into the renditions the application shows.

returnToken
boolean
default:true

Whether the session token also comes back in the answer. It is set as a cookie either way, so a browser client can leave it out.

Example:

true

role
string | null

Job title of the person, kept as free text. It is descriptive only and grants no permissions.

Minimum string length: 1
Example:

"Head of Legal"

termsAccepted
boolean | null
default:false

Whether the person accepts the terms and conditions. Where the tenant has announced any, the activation cannot be completed without it.

Example:

false

timezone
string | null

Timezone the person's dates and times are to be shown in, as an IANA name.

Minimum string length: 1
Example:

"Europe/Prague"

Response

The account is active. Returns the new session, what the person may do and their own record.

authentication
object[]

Second factors still to be verified before the token can be used, each with the masked destination its code was just sent to. It is empty for an account without multi-factor authentication.

availableSealProviders
object[]

Seal providers the account can seal with, each of them configured completely. Only the identity of a provider is published, never its configuration. Empty when none is usable; when none is marked as the default, a seal has to name its provider. It is left out while the token is still locked.

availableTsaServers
object[]

Time Stamping Authority servers the user may request a timestamp from. Only the identity of a server is published, never its URL or its credentials. Empty when none is usable, in which case no server can be offered for selection.

created
string<date-time>

When the token was issued.

hasPassword
boolean

Whether the account has a password of its own. An account that signs in only through an external identity provider has none.

Example:

true

isUnlocked
boolean

Whether the token can be used. A token issued to an account with multi-factor authentication starts locked and unlocks once every factor in authentication is verified.

Example:

false

lastPasswordChange
string<date-time>

When the password was last changed. It is absent for an account whose password has never been changed, and it is what a password-expiry policy is measured from.

lastUsed
string<date-time>

When the token was last used to call the API.

logged
boolean

Whether the caller is signed in at all. Everything below it is present only when it is true.

Example:

true

rights
string[]

Everything the account is allowed to do, resolved from the groups it belongs to. It is left out while the token is still locked.

Example:
settings
object

Settings that apply to this account, merged from the tenant, its organization, its groups and the account itself. It is left out while the token is still locked.

tenant
string

Tenant the token belongs to.

Example:

"default"

token
string

Token to authenticate further calls with. It is put here only when the request asked for it.

Example:

"cir_a11b868cbba3c.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"

user
object

The signed-in account itself. It is left out while the token is still locked.

validForMilliseconds
integer

How long the token may stay idle before it stops being usable, counted from when it was last used.

Example:

2592000000