Skip to main content
Add a certificate to a user

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.

Path Parameters

id
string
required

Username of the account the certificate is to sit on.

Minimum string length: 1
Pattern: ^[A-Za-z0-9.@_+-]+$
Example:

"john.doe+member@example.com"

Body

application/json
file
string
required

The certificate, as the hash of a file uploaded beforehand. It has to be a DER, CER, CRT or PEM file under 512 kB, and it is read out to fill in what the certificate says about itself.

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

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

name
string
required

Name the certificate is offered under when a signature is to be made with it.

Example:

"Company signing certificate"

type
string
required

Where the certificate is kept - on a USB token, an NFC card and so on. It only tells the person what to reach for; the platform does nothing with it.

Maximum string length: 10
Example:

"USB"

Response

The certificate was added.

status
string

Outcome of the operation, reported as a status type constant.

Example:

"SUCCESS"