Specifies paths and operations for managing mDocs credentials configuration.
Create an mDocs configuration
Creates a new mDocs configuration, a specific set of rules and parameters that are used to create and validate a particular type of verifiable credential. These rules and parameters define how the credential is structured and what data it contains when issued.
Analytic events
- MOBILE_CREDENTIAL_CONFIGURATION_CREATE_START
- MOBILE_CREDENTIAL_CONFIGURATION_CREATE_SUCCESS
- MOBILE_CREDENTIAL_CONFIGURATION_CREATE_FAIL
Request Body schema: application/jsonrequired
The mDocs configuration payload
type required | string [ 1 .. 1024 ] characters Used to differentiate between different mDocs configurations on your tenant. Thus, its value must:
|
required | object (ClaimMappings) This is where you specify how to map claims (user attributes) into issued credentials. |
claimSourceId | string <uuid> References the unique identifier of a claims source that can be used to retrieve claims and include them in the issued credential. |
required | object Used to determine when issued credentials will expire, relative to issuance date:
Credential expiry can never exceed the validity period of the IACA used as the root certificate when signing the credential. However, all validity checks (including those for IACA and credential validity periods) only occur when an individual credential is being signed, not when the generic credential configuration template is created (Refer to IACA selection for more information on how an IACA is selected when signing an mDoc). As a result, issuance will fail if the |
object Specifies an explicit date and time from which the credential becomes valid.
| |
object Specifies an explicit date and time at which the credential expires.
Credential expiry can never exceed the validity period of the IACA used as the root certificate when signing the credential. However, all validity checks (including those for IACA and credential validity periods) only occur when an individual credential is being signed, not when the generic credential configuration template is created (Refer to IACA selection for more information on how an IACA is selected when signing an mDoc). As a result, issuance will fail if the | |
object Used to apply branding to issued credentials. | |
includeStatus | boolean Default: false When set to |
mDocs configuration created
Bad Request. The request was malformed or missing required parameters.
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "type": "DriverLicense",
- "claimMappings": {
- "org.iso.18013.5.1": {
- "given_name": {
- "mapFrom": "claims.given_name",
- "required": true,
- "type": "string"
}, - "birth_date": {
- "mapFrom": "claims.date_of_birth",
- "required": true,
- "type": "dateTime"
}
}
}, - "claimSourceId": "78e1b90c-401d-45bb-89c0-938da4d44c60",
- "expiresIn": {
- "years": 0,
- "months": 1,
- "weeks": 0,
- "days": 0,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
}, - "validFrom": {
- "mapFrom": "string"
}, - "validUntil": {
- "mapFrom": "string"
}, - "branding": {
- "name": "Credential name",
- "description": "Credential Description",
- "backgroundColor": "#FFFFFF",
- "watermarkImage": "data:image/png;base64,{image-data}",
- "issuerIcon": "data:image/svg+xml;base64,{image-data}"
}, - "includeStatus": true
}
- 201
- 400
{- "id": "983c0a86-204f-4431-9371-f5a22e506599",
- "branding": {
- "name": "Credential name",
- "description": "Credential Description",
- "backgroundColor": "#FFFFFF",
- "watermarkImage": "data:image/png;base64,{image-data}",
- "issuerLogo": "data:image/png;base64,{image-data}",
- "issuerIcon": "data:image/svg+xml;base64,{image-data}"
}, - "includeStatus": true,
- "type": "DriverLicense",
- "claimMappings": {
- "org.iso.18013.5.1": {
- "given_name": {
- "mapFrom": "claims.given_name",
- "required": true,
- "type": "string"
}, - "birth_date": {
- "mapFrom": "claims.date_of_birth",
- "required": true,
- "type": "dateTime"
}
}
}, - "claimSourceId": "78e1b90c-401d-45bb-89c0-938da4d44c60",
- "expiresIn": {
- "years": 0,
- "months": 1,
- "weeks": 0,
- "days": 0,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
}, - "validFrom": {
- "mapFrom": "string"
}, - "validUntil": {
- "mapFrom": "string"
}
}
Retrieve all mDocs configurations
Retrieves all mDocs configurations from your tenant.
Analytic events
- MOBILE_CREDENTIAL_CONFIGURATION_RETRIEVE_LIST_START
- MOBILE_CREDENTIAL_CONFIGURATION_RETRIEVE_LIST_SUCCESS
- MOBILE_CREDENTIAL_CONFIGURATION_RETRIEVE_LIST_FAIL
mDocs configurations retrieved
Bad Request. The request was malformed or missing required parameters.
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
- 400
{- "nextCursor": "Y3JlYXRlZEF0PTIwMjAtMDgtMjVUMDY6NDY6MDkuNTEwWiZpZD1hNjZmZmVhNS04NDhlLTQzOWQtODBhNC1kZGE1NWY1M2UzNmM",
- "data": [
- {
- "id": "983c0a86-204f-4431-9371-f5a22e506599",
- "branding": {
- "name": "Credential name",
- "description": "Credential Description",
- "backgroundColor": "#FFFFFF",
- "watermarkImage": "data:image/png;base64,{image-data}",
- "issuerLogo": "data:image/png;base64,{image-data}",
- "issuerIcon": "data:image/svg+xml;base64,{image-data}"
}, - "includeStatus": true,
- "type": "DriverLicense",
- "claimMappings": {
- "org.iso.18013.5.1": {
- "given_name": {
- "mapFrom": "claims.given_name",
- "required": true,
- "type": "string"
}, - "birth_date": {
- "mapFrom": "claims.date_of_birth",
- "required": true,
- "type": "dateTime"
}
}
}, - "claimSourceId": "78e1b90c-401d-45bb-89c0-938da4d44c60",
- "expiresIn": {
- "years": 0,
- "months": 1,
- "weeks": 0,
- "days": 0,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
}, - "validFrom": {
- "mapFrom": "string"
}, - "validUntil": {
- "mapFrom": "string"
}
}
]
}
Retrieve an mDocs configuration
Retrieves an existing mDocs configuration by providing its ID.
Analytic events
- MOBILE_CREDENTIAL_CONFIGURATION_RETRIEVE_START
- MOBILE_CREDENTIAL_CONFIGURATION_RETRIEVE_SUCCESS
- MOBILE_CREDENTIAL_CONFIGURATION_RETRIEVE_FAIL
mDocs configuration retrieved
Bad Request. The request was malformed or missing required parameters.
Not Found. The specified resource was not found.
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
- 400
- 404
{- "id": "983c0a86-204f-4431-9371-f5a22e506599",
- "branding": {
- "name": "Credential name",
- "description": "Credential Description",
- "backgroundColor": "#FFFFFF",
- "watermarkImage": "data:image/png;base64,{image-data}",
- "issuerLogo": "data:image/png;base64,{image-data}",
- "issuerIcon": "data:image/svg+xml;base64,{image-data}"
}, - "includeStatus": true,
- "type": "DriverLicense",
- "claimMappings": {
- "org.iso.18013.5.1": {
- "given_name": {
- "mapFrom": "claims.given_name",
- "required": true,
- "type": "string"
}, - "birth_date": {
- "mapFrom": "claims.date_of_birth",
- "required": true,
- "type": "dateTime"
}
}
}, - "claimSourceId": "78e1b90c-401d-45bb-89c0-938da4d44c60",
- "expiresIn": {
- "years": 0,
- "months": 1,
- "weeks": 0,
- "days": 0,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
}, - "validFrom": {
- "mapFrom": "string"
}, - "validUntil": {
- "mapFrom": "string"
}
}
Update an mDocs configuration
Updates an existing mDocs configuration by providing its ID.
Analytic events
- MOBILE_CREDENTIAL_CONFIGURATION_UPDATE_START
- MOBILE_CREDENTIAL_CONFIGURATION_UPDATE_SUCCESS
- MOBILE_CREDENTIAL_CONFIGURATION_UPDATE_FAIL
path Parameters
Request Body schema: application/jsonrequired
Update an mDocs configuration
type required | string [ 1 .. 1024 ] characters Used to differentiate between different mDocs configurations on your tenant. Thus, its value must:
|
required | object (ClaimMappings) This is where you specify how to map claims (user attributes) into issued credentials. |
claimSourceId | string <uuid> References the unique identifier of a claims source that can be used to retrieve claims and include them in the issued credential. |
required | object Used to determine when issued credentials will expire, relative to issuance date:
Credential expiry can never exceed the validity period of the IACA used as the root certificate when signing the credential. However, all validity checks (including those for IACA and credential validity periods) only occur when an individual credential is being signed, not when the generic credential configuration template is created (Refer to IACA selection for more information on how an IACA is selected when signing an mDoc). As a result, issuance will fail if the |
object Specifies an explicit date and time from which the credential becomes valid.
| |
object Specifies an explicit date and time at which the credential expires.
Credential expiry can never exceed the validity period of the IACA used as the root certificate when signing the credential. However, all validity checks (including those for IACA and credential validity periods) only occur when an individual credential is being signed, not when the generic credential configuration template is created (Refer to IACA selection for more information on how an IACA is selected when signing an mDoc). As a result, issuance will fail if the | |
object Used to apply branding to issued credentials. | |
includeStatus | boolean Default: false When set to |
mDocs configuration updated
Bad Request. The request was malformed or missing required parameters.
Not Found. The specified resource was not found.
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "type": "DriverLicense",
- "claimMappings": {
- "org.iso.18013.5.1": {
- "given_name": {
- "mapFrom": "claims.given_name",
- "required": true,
- "type": "string"
}, - "birth_date": {
- "mapFrom": "claims.date_of_birth",
- "required": true,
- "type": "dateTime"
}
}
}, - "claimSourceId": "78e1b90c-401d-45bb-89c0-938da4d44c60",
- "expiresIn": {
- "years": 0,
- "months": 1,
- "weeks": 0,
- "days": 0,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
}, - "validFrom": {
- "mapFrom": "string"
}, - "validUntil": {
- "mapFrom": "string"
}, - "branding": {
- "name": "Credential name",
- "description": "Credential Description",
- "backgroundColor": "#FFFFFF",
- "watermarkImage": "data:image/png;base64,{image-data}",
- "issuerIcon": "data:image/svg+xml;base64,{image-data}"
}, - "includeStatus": true
}
- 200
- 400
- 404
{- "id": "983c0a86-204f-4431-9371-f5a22e506599",
- "branding": {
- "name": "Credential name",
- "description": "Credential Description",
- "backgroundColor": "#FFFFFF",
- "watermarkImage": "data:image/png;base64,{image-data}",
- "issuerLogo": "data:image/png;base64,{image-data}",
- "issuerIcon": "data:image/svg+xml;base64,{image-data}"
}, - "includeStatus": true,
- "type": "DriverLicense",
- "claimMappings": {
- "org.iso.18013.5.1": {
- "given_name": {
- "mapFrom": "claims.given_name",
- "required": true,
- "type": "string"
}, - "birth_date": {
- "mapFrom": "claims.date_of_birth",
- "required": true,
- "type": "dateTime"
}
}
}, - "claimSourceId": "78e1b90c-401d-45bb-89c0-938da4d44c60",
- "expiresIn": {
- "years": 0,
- "months": 1,
- "weeks": 0,
- "days": 0,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
}, - "validFrom": {
- "mapFrom": "string"
}, - "validUntil": {
- "mapFrom": "string"
}
}
Delete an mDocs configuration
Deletes an existing mDocs configuration by providing its ID.
Analytic events
- MOBILE_CREDENTIAL_CONFIGURATION_DELETE_START
- MOBILE_CREDENTIAL_CONFIGURATION_DELETE_SUCCESS
- MOBILE_CREDENTIAL_CONFIGURATION_DELETE_FAIL
mDocs configuration deleted
Bad Request. The request was malformed or missing required parameters.
Not Found. The specified resource was not found.
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 400
- 404
{- "code": "string",
- "type": "string",
- "message": "string",
- "details": [
- {
- "value": "string",
- "msg": "Invalid value",
- "param": "id",
- "location": "body"
}
]
}