Create a trusted issuer
Add a new mDocs trusted issuer, to be used in online presentation workflows.
Analytic events
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_CREATE_START
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_CREATE_SUCCESS
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_CREATE_FAIL
Trusted issuer created
Bad Request
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "certificatePem": "-----BEGIN CERTIFICATE-----\\r\\nMIICUDCCAfWgAwIBAgIKVVqBlVonWFs3lTAKBggqhkjOPQQDAjAkMQswCQYDVQQG\\r\\nEwJOWjEVMBMGA1UEAwwMRXhhbXBsZSBJQUNBMB4XDTI0MDExMTAzMjYwMFoXDTM0\\r\\nMDEwODAzMjYwMFowJDELMAkGA1UEBhMCTloxFTATBgNVBAMMDEV4YW1wbGUgSUFD\\r\\nQTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABOHxm9MYkCvIvZc/MyoWGul8+tla\\r\\nFSSRVkDllFERbO/Tg7DOj4CJfYrhDJEuV04eRgcowBDhr9W/bvnTMZMa/RijggEN\\r\\nMIIBCTASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4E\\r\\nFgQUpS3hOCbmCUwu8n91X9CLS682cOkwOwYDVR0SBDQwMoYwaHR0cHM6Ly9odWRz\\r\\nb24tdGVuYW50LTAwMS52aWkuYXUzMDEubWF0dHJsYWJzLmlvMIGGBgNVHR8EfzB9\\r\\nMHugeaB3hnVodHRwczovL2h1ZHNvbi10ZW5hbnQtMDAxLnZpaS5hdTMwMS5tYXR0\\r\\ncmxhYnMuaW8vdjIvY3JlZGVudGlhbHMvbW9iaWxlL2lhY2FzL2VkNzQzMTllLTcy\\r\\nYTYtNDQwMS1iM2E1LTk0ZTk4MGZiZWJlYS9jcmwwCgYIKoZIzj0EAwIDSQAwRgIh\\r\\nAJxWGZvntq+hymL7zWwrlZo1Jz1+lWglu/MESdmUhTNFAiEAg+x5e3TzBxgHneIM\\r\\nVpTmZNOyZI3Hn17WRKkyKSg+5/8=\\r\\n-----END CERTIFICATE-----\\r\\n"
}
- 201
- 400
{- "id": "ed74319e-72a6-4401-b3a5-94e980fbebea",
- "certificatePem": "-----BEGIN CERTIFICATE-----\\r\\nMIICUDCCAfWgAwIBAgIKVVqBlVonWFs3lTAKBggqhkjOPQQDAjAkMQswCQYDVQQG\\r\\nEwJOWjEVMBMGA1UEAwwMRXhhbXBsZSBJQUNBMB4XDTI0MDExMTAzMjYwMFoXDTM0\\r\\nMDEwODAzMjYwMFowJDELMAkGA1UEBhMCTloxFTATBgNVBAMMDEV4YW1wbGUgSUFD\\r\\nQTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABOHxm9MYkCvIvZc/MyoWGul8+tla\\r\\nFSSRVkDllFERbO/Tg7DOj4CJfYrhDJEuV04eRgcowBDhr9W/bvnTMZMa/RijggEN\\r\\nMIIBCTASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4E\\r\\nFgQUpS3hOCbmCUwu8n91X9CLS682cOkwOwYDVR0SBDQwMoYwaHR0cHM6Ly9odWRz\\r\\nb24tdGVuYW50LTAwMS52aWkuYXUzMDEubWF0dHJsYWJzLmlvMIGGBgNVHR8EfzB9\\r\\nMHugeaB3hnVodHRwczovL2h1ZHNvbi10ZW5hbnQtMDAxLnZpaS5hdTMwMS5tYXR0\\r\\ncmxhYnMuaW8vdjIvY3JlZGVudGlhbHMvbW9iaWxlL2lhY2FzL2VkNzQzMTllLTcy\\r\\nYTYtNDQwMS1iM2E1LTk0ZTk4MGZiZWJlYS9jcmwwCgYIKoZIzj0EAwIDSQAwRgIh\\r\\nAJxWGZvntq+hymL7zWwrlZo1Jz1+lWglu/MESdmUhTNFAiEAg+x5e3TzBxgHneIM\\r\\nVpTmZNOyZI3Hn17WRKkyKSg+5/8=\\r\\n-----END CERTIFICATE-----\\r\\n",
- "certificateData": {
- "notAfter": "2033-09-23",
- "notBefore": "2023-09-23",
- "country": "NZ",
- "commonName": "Example Trusted Issuer"
}
}
Retrieve all trusted issuers
Retrieves all mDocs trusted issuers from your tenant.
Analytic events
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_RETRIEVE_LIST_START
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_RETRIEVE_LIST_SUCCESS
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_RETRIEVE_LIST_FAIL
Trusted issuers retrieved
Bad Request
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 400
{- "code": "BadRequest",
- "message": "Validation Error",
- "details": [
- {
- "location": "query",
- "msg": "Invalid value",
- "param": "cursor",
- "value": "abc"
}
]
}
Retrieve a trusted issuer
Retrieves an existing trusted issuer from your tenant by providing its ID.
Analytic events
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_RETRIEVE_START
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_RETRIEVE_SUCCESS
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_RETRIEVE_FAIL
Trusted issuer retrieved
Bad Request
Trusted issuer Not Found
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
- 400
- 404
{- "id": "ed74319e-72a6-4401-b3a5-94e980fbebea",
- "certificatePem": "-----BEGIN CERTIFICATE-----\\r\\nMIICUDCCAfWgAwIBAgIKVVqBlVonWFs3lTAKBggqhkjOPQQDAjAkMQswCQYDVQQG\\r\\nEwJOWjEVMBMGA1UEAwwMRXhhbXBsZSBJQUNBMB4XDTI0MDExMTAzMjYwMFoXDTM0\\r\\nMDEwODAzMjYwMFowJDELMAkGA1UEBhMCTloxFTATBgNVBAMMDEV4YW1wbGUgSUFD\\r\\nQTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABOHxm9MYkCvIvZc/MyoWGul8+tla\\r\\nFSSRVkDllFERbO/Tg7DOj4CJfYrhDJEuV04eRgcowBDhr9W/bvnTMZMa/RijggEN\\r\\nMIIBCTASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4E\\r\\nFgQUpS3hOCbmCUwu8n91X9CLS682cOkwOwYDVR0SBDQwMoYwaHR0cHM6Ly9odWRz\\r\\nb24tdGVuYW50LTAwMS52aWkuYXUzMDEubWF0dHJsYWJzLmlvMIGGBgNVHR8EfzB9\\r\\nMHugeaB3hnVodHRwczovL2h1ZHNvbi10ZW5hbnQtMDAxLnZpaS5hdTMwMS5tYXR0\\r\\ncmxhYnMuaW8vdjIvY3JlZGVudGlhbHMvbW9iaWxlL2lhY2FzL2VkNzQzMTllLTcy\\r\\nYTYtNDQwMS1iM2E1LTk0ZTk4MGZiZWJlYS9jcmwwCgYIKoZIzj0EAwIDSQAwRgIh\\r\\nAJxWGZvntq+hymL7zWwrlZo1Jz1+lWglu/MESdmUhTNFAiEAg+x5e3TzBxgHneIM\\r\\nVpTmZNOyZI3Hn17WRKkyKSg+5/8=\\r\\n-----END CERTIFICATE-----\\r\\n",
- "certificateData": {
- "notAfter": "2033-09-23",
- "notBefore": "2023-09-23",
- "country": "NZ",
- "commonName": "Example Trusted Issuer"
}
}
Delete a trusted issuer
Deletes an existing trusted issuer by providing its ID.
Analytic events
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_DELETE_START
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_DELETE_SUCCESS
- MOBILE_CREDENTIAL_TRUSTED_ISSUER_DELETE_FAIL
Trusted issuer deleted
Bad Request
Trusted issuer 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"
}
]
}
Update verifier configuration
Creates or updates verifier configuration for online presentation of mDocs.
Analytic events
- CREDENTIAL_PRESENTATION_VERIFIER_CONFIGURATION_UPSERT_START
- CREDENTIAL_PRESENTATION_VERIFIER_CONFIGURATION_UPSERT_SUCCESS
- CREDENTIAL_PRESENTATION_VERIFIER_CONFIGURATION_UPSERT_FAIL
Request Body schema: application/jsonrequired
The Verifier Configuration payload
Verifier configuration updated
Bad Request
Verifier configuration not found
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "walletProviders": [
- {
- "id": "my-wallet-id",
- "authorizationEndpoint": "mdoc-openid4vp://"
}
], - "domains": [
- "example-verifier-web-application.com"
], - "supportedMode": "all",
- "certificateCommonName": "{tenantDomain} Verifier",
- "certificateCountry": "NZ",
- "display": {
- "headerText": "Share your information.",
- "bodyText": "Please scan the QR code to the right to provide information required for this interaction.",
- "primaryColorHex": "#FFFFFF"
}, - "resultAvailableInFrontChannel": true
}
- 200
- 400
- 404
{- "walletProviders": [
- {
- "id": "my-wallet-id",
- "authorizationEndpoint": "mdoc-openid4vp://"
}
], - "domains": [
- "example-verifier-web-application.com"
], - "supportedMode": "all",
- "display": {
- "headerText": "Share your information.",
- "bodyText": "Please scan the QR code to the right to provide information required for this interaction.",
- "primaryColorHex": "#FFFFFF"
}, - "resultAvailableInFrontChannel": true,
- "certificatePem": "string"
}
Retrieve verifier configuration
Retrieves current verifier configuration for online presentation of mDocs.
Analytic events
- CREDENTIAL_PRESENTATION_VERIFIER_CONFIGURATION_RETRIEVE_START
- CREDENTIAL_PRESENTATION_VERIFIER_CONFIGURATION_RETRIEVE_SUCCESS
- CREDENTIAL_PRESENTATION_VERIFIER_CONFIGURATION_RETRIEVE_FAIL
Verifier configuration retrieved
Verifier configuration not found
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
- 404
{- "walletProviders": [
- {
- "id": "my-wallet-id",
- "authorizationEndpoint": "mdoc-openid4vp://"
}
], - "domains": [
- "example-verifier-web-application.com"
], - "supportedMode": "all",
- "display": {
- "headerText": "Share your information.",
- "bodyText": "Please scan the QR code to the right to provide information required for this interaction.",
- "primaryColorHex": "#FFFFFF"
}, - "resultAvailableInFrontChannel": true,
- "certificatePem": "string"
}
Delete verifier configuration
Removes verifier configuration for online presentation of mDocs.
Analytic events
- PRESENTATION_VERIFIER_CONFIGURATION_DELETE_START
- PRESENTATION_VERIFIER_CONFIGURATION_DELETE_SUCCESS
- PRESENTATION_VERIFIER_CONFIGURATION_DELETE_FAIL
Verifier configuration deleted
Verifier configuration not found
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 404
{- "code": "string",
- "message": "string",
- "details": [
- {
- "value": "string",
- "msg": "Invalid value",
- "param": "id",
- "location": "body"
}
]
}
Retrieve presentation session result
Retrieves the result of an online presentation session by providing the session's ID.
Analytic events
- CREDENTIAL_PRESENTATION_SESSION_RESULT_RETRIEVE_START
- CREDENTIAL_PRESENTATION_SESSION_RESULT_RETRIEVE_SUCCESS
- CREDENTIAL_PRESENTATION_SESSION_RESULT_RETRIEVE_FAIL
Session result retrieved
Session not found
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
- 404
{- "sessionId": "string",
- "challenge": "string",
- "credentialQuery": [
- { }
], - "error": {
- "type": "string",
- "message": "string"
}
}