Credentials
Create, issue, and send a credential
Use this endpoint to issue a credential. It is an all-in-one solution that simultaneously creates, issues, and sends a credential. This endpoint covers most of the basic scenarios.
post/v1/credentials/create-issue-send
Headers
Certifier-Versionstring required
API version header. Required for all requests.
Example:2022-10-26
API version header. Required for all requests.
Request body
Example request
{
"groupId": "01g90279gp5sbmfek7wymcsvec",
"recipient": {
"name": "John Doe",
"email": "john.doe@example.com"
},
"issueDate": "2022-01-01",
"expiryDate": "2023-01-01",
"customAttributes": {
"custom.mentor": "Jane Doe"
}
}Response
Credential created, issued, and sent successfully
Example response
{
"id": "01hz2f0c9ryvzajg20jqh9taab",
"publicId": "124a8110-1af5-4747-9308-e9d06bd1852a",
"groupId": "01g90279gp5sbmfek7wymcsvec",
"status": "draft",
"recipient": {
"id": "01jmerb62apgachxwx6db76c7s",
"name": "John Doe",
"email": "john.doe@example.com"
},
"issueDate": "2022-01-01",
"expiryDate": "2023-01-01",
"attributes": {
"recipient.name": "John Doe"
},
"customAttributes": {
"custom.mentor": "Jane Doe"
},
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z"
}