Skribble
Skribble User Management API

LoginRequest

username
​string · required

The user name of an API key with the usage Users.

api-key
​string · required

The API key of an API key with the usage Users.

ProblemResponse

Error response body that the API returns for 4xx and 5xx responses with a JSON body. The API runs behind an API gateway. Errors that the gateway raises before a request reaches the API, for example for a missing or invalid token, a rate limit, or a timeout, can have a different JSON body or a plain-text body (see `PlainTextError`). In all cases, the HTTP status code is the authoritative signal for the error category. To handle a specific error, match on `details.type` when it is present. Do not parse `message`, which is not part of the stable contract.
type
​string · required

The error category. Known values:

  • validation-error: the request is not valid
  • conflict: the request conflicts with the current state
  • entity-not-found: the requested resource does not exist
  • problem-with-message: any other error, for example a missing permission or a malformed request body
method
​string · required

HTTP method of the failing request.

path
​string · required

Request URI of the failing request.

status
​integer · required

HTTP status code, mirroring the response status line.

message
​string · required

Human-readable error message.

​object

Present for validation-error and conflict errors.

PlainTextError

string

Plain-text alternative to the JSON ProblemResponse body. Errors raised by the API gateway before a request reaches the API, for example for a rate limit or a timeout, can be returned as a bare string. The HTTP status code is the authoritative signal for the error category in either form. A machine-readable details.type is only available in the JSON form.

Status

string · enum
Enum values:
active
suspended
invited

A user's account status.

  • active: a member of the business.
  • suspended: a member whose login is blocked. Suspending an invited user withdraws the invitation instead, and only that response shows suspended.
  • invited: a person who received an invitation and has not accepted it yet. They become active when they accept it.

Role

string · enum
Enum values:
signer
creator
admin

A user's role in the business.

signer is available only to businesses with Skribble Seats enabled. Sending signer for any other business is still accepted and does not break the integration.

Language

string · enum
Enum values:
en
de
fr
it

The user's interface language. Defaults to de when omitted, aligned with the existing default used elsewhere in the system.

Default: de

DefaultLegislation

string · enum
Enum values:
zertes
eidas

Legislation used when creating signature requests on this user's behalf, if none is specified per request. Defaults to zertes unless the user has a non-Swiss mobile number, in which case it defaults to eidas.

DefaultQuality

string · enum
Enum values:
ses
aes
qes

Signing quality used when creating signature requests on this user's behalf, if none is specified per request. Always defaults to ses.

Default: ses

User

A user (member) of the authenticated business.
id
​string · readOnly · required

Skribble's own opaque, server-generated identifier. Never caller-supplied.

email
​string · email · required
status
​Status · enum · required

A user's account status.

  • active: a member of the business.
  • suspended: a member whose login is blocked. Suspending an invited user withdraws the invitation instead, and only that response shows suspended.
  • invited: a person who received an invitation and has not accepted it yet. They become active when they accept it.
Enum values:
active
suspended
invited
roles
​Role[] · enum · readOnly · required

Derived from business membership and never directly settable. Use POST /users/{id}/roles and DELETE /users/{id}/roles/{role} to change it. Always exactly one base role, signer or creator, listed first, followed by any additional roles. admin includes creator, so an admin reads ["creator", "admin"]. For a user with status invited, these are the roles they receive when they accept the invitation.

Enum values:
signer
creator
admin
Enum values:
signer
creator
creatoradmin
external_id
​string

Caller-supplied identifier (e.g. an HR or IdP user ID). Unique per business when set. Flat, not scoped per business-membership.

first_name
​string
last_name
​string
mobile
​string

E.164 digits without the leading +: the country code followed by the number, with no spaces.

lang
​Language · enum

The user's interface language. Defaults to de when omitted, aligned with the existing default used elsewhere in the system.

Enum values:
en
de
fr
it
Default: de
cost_center
​string
default_legislation
​DefaultLegislation · enum

Legislation used when creating signature requests on this user's behalf, if none is specified per request. Defaults to zertes unless the user has a non-Swiss mobile number, in which case it defaults to eidas.

Enum values:
zertes
eidas
default_quality
​DefaultQuality · enum

Signing quality used when creating signature requests on this user's behalf, if none is specified per request. Always defaults to ses.

Enum values:
ses
aes
qes
Default: ses
created_at
​string · date-time · readOnly
updated_at
​string · date-time · readOnly
last_login_at
​string · date-time · readOnly
last_invitation_at
​string · date-time · readOnly

Last time the user sent a signature request, that is, invited others to sign. Not the time of the account invitation email. Stays empty until the user sends a first signature request.

CreateUserRequest

Body to create a user.
email
​string · email · required
first_name
​string
last_name
​string
mobile
​string

Country code plus number. A leading +, a leading 00, and spaces are all accepted and normalised away; stored and returned as E.164 digits without the +, for example 41791234567.

lang
​Language · enum

The user's interface language. Defaults to de when omitted, aligned with the existing default used elsewhere in the system.

Enum values:
en
de
fr
it
Default: de
cost_center
​string
default_legislation
​DefaultLegislation · enum

Legislation used when creating signature requests on this user's behalf, if none is specified per request. Defaults to zertes unless the user has a non-Swiss mobile number, in which case it defaults to eidas.

Enum values:
zertes
eidas
default_quality
​DefaultQuality · enum

Signing quality used when creating signature requests on this user's behalf, if none is specified per request. Always defaults to ses.

Enum values:
ses
aes
qes
Default: ses
role
​Role · enum

Defaults to signer when omitted.

Enum values:
signer
creator
admin
external_id
​string

UpdateUserRequest

JSON merge patch (RFC 7396), restricted to writable fields. Only the given fields change, and `null` removes a field's value. `email`, `first_name` and `last_name` cannot be removed. `status` and `roles` are not writable here. Use suspend/reactivate/delete and the add/remove role endpoints respectively.
email
​string · email

Both the old and new address must belong to a domain this business manages.

first_name
​string
last_name
​string
mobile
​string | null

Country code plus number. A leading +, a leading 00, and spaces are all accepted and normalised away; stored and returned as E.164 digits without the +, for example 41791234567.

lang
​Language | null · enum

The user's interface language. Defaults to de when omitted, aligned with the existing default used elsewhere in the system.

Enum values:
en
de
fr
it
Default: de
cost_center
​string | null
default_legislation
​DefaultLegislation | null · enum

Legislation used when creating signature requests on this user's behalf, if none is specified per request. Defaults to zertes unless the user has a non-Swiss mobile number, in which case it defaults to eidas.

Enum values:
zertes
eidas
default_quality
​DefaultQuality | null · enum

Signing quality used when creating signature requests on this user's behalf, if none is specified per request. Always defaults to ses.

Enum values:
ses
aes
qes
Default: ses
external_id
​string | null

AddRoleRequest

The role to add.
role
​Role · enum · required

A user's role in the business.

signer is available only to businesses with Skribble Seats enabled. Sending signer for any other business is still accepted and does not break the integration.

Enum values:
signer
creator
admin

GroupMember

A business member's identity, as shown on a group's member list.
id
​string · required
email
​string · email · required
first_name
​string
last_name
​string
status
​string

The member's account status, for example active or suspended. Left out when unknown.

Group

A signer/observer group belonging to the business.
id
​string · readOnly · required
status
​string · enum · readOnly · required
Enum values:
active
name
​string · required
members_count
​integer · readOnly · required
external_id
​string

Caller-supplied identifier (e.g. an IdP group ID). Unique per business when set.

created_at
​string · date-time · readOnly
updated_at
​string · date-time · readOnly
created_by
​string · readOnly

Who created the group: a user id, an API key's username, or service-account-<client-id> when a connected identity provider created it. When the creator is not a user, created_by_first_name, created_by_last_name and created_by_email are null.

updated_by
​string · readOnly

Who last updated the group, in the same format as created_by.

version_id
​string · readOnly

Opaque identifier for the group's current member-list version.

created_by_first_name
​string | null · readOnly
created_by_last_name
​string | null · readOnly
created_by_email
​string | null · email · readOnly
​GroupMember[] · readOnly

The group's members. Present only with include_members=true.

CreateGroupRequest

name
​string · required

Unique per business. The comparison ignores case.

external_id
​string

Caller-supplied identifier (e.g. an IdP group ID). Unique per business when set.

members
​string[]

Optional. User ids of active users of the business to add as members when the group is created. An invited user who has not accepted yet returns 409 with invitation_pending, and the message names that user id. Any other id that is not an active user of the business, such as an unknown id or a user of another business, returns 404. The limit on members per group applies.

UpdateGroupRequest

The name, the external ID, or both; at least one must be non-null. Only the given fields change, and a `null` field keeps its current value, so an `external_id` can be changed but not removed. Other fields are ignored. Group membership is managed via the members endpoints.
name
​string
external_id
​string

Caller-supplied identifier (e.g. an IdP group ID). Unique per business when set.

AddGroupMemberRequest

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object · requires: email
type = object · requires: user_id
Properties for By email:
email
​string · email · required