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 will issued credentials expire. Can include any combination of years, months, weeks, days, hours, minutes and seconds. Note that credential issuance will fail if the credential expiry date is later than that of the Document Signer Certificate (DSC) used to sign it. |
object Used to apply branding to issued credentials. |
mDocs configuration created
Bad Request
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "type": "DriverLicence",
- "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
}, - "branding": {
- "name": "Credential name",
- "description": "Credential Description",
- "backgroundColor": "#FFFFFF",
- "watermarkImage": "data:image/png;base64,{image-data}",
- "issuerIcon": "data:image/svg+xml;base64,{image-data}"
}
}
- 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}"
}, - "type": "DriverLicence",
- "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
}
}
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
- 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}"
}, - "type": "DriverLicence",
- "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
}
}
]
}
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
mDocs configuration 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}"
}, - "type": "DriverLicence",
- "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
}
}
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 will issued credentials expire. Can include any combination of years, months, weeks, days, hours, minutes and seconds. Note that credential issuance will fail if the credential expiry date is later than that of the Document Signer Certificate (DSC) used to sign it. |
object Used to apply branding to issued credentials. |
mDocs configuration updated
Bad Request
mDocs configuration not Found
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "type": "DriverLicence",
- "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
}, - "branding": {
- "name": "Credential name",
- "description": "Credential Description",
- "backgroundColor": "#FFFFFF",
- "watermarkImage": "data:image/png;base64,{image-data}",
- "issuerIcon": "data:image/svg+xml;base64,{image-data}"
}
}
- 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}"
}, - "type": "DriverLicence",
- "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
}
}
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
mDocs configuration not Found
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 400
- 404
{- "code": "BadRequest",
- "message": "Validation Error",
- "details": [
- {
- "location": "params",
- "msg": "Invalid value",
- "param": "id",
- "value": "abc"
}
]
}