Skip to main content
Create a new mDoc credential preset.

Authorizations

Authorization
string
header
required

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

Body

application/json
credentialFormat
enum<string>
required
Available options:
mdoc
templateName
string
required
code
string
required
Maximum string length: 64
Pattern: ^[a-z0-9-]+(\.[a-z0-9-]+)*$
templateDescription
string
required
type
string
required

Mdoc document type (the credential type), verbatim: dot-separated reverse-domain segments, e.g. "za.co.didx.national-id". Max 200 characters.

Required string length: 1 - 200
Pattern: ^[A-Za-z0-9_-]+(\.[A-Za-z0-9_-]+)*$
templateAttributes
object
required
validUntil
object
required
issuerConfig
object
branding
object
Example:
namespace
enum<string>
Available options:
public,
private

Response

200 - application/json

Created mDoc credential preset.

data
object
required
Example:
meta
object
errors
object[]