Skip to main content
POST
Generate Credential (Draft)

Description

Creates a credential as a draft. Nothing is sent to the recipient, and no credit is used yet. When you are ready, publish it with Publish Credential. Drafts do not show in List Credentials or Search Credentials. Keep the document_id from the response, or use View Credential.

Headers

string
required
Your API key: Bearer YOUR_API_KEY. Create a key in the Studio under Settings → Developers.

Body Parameters

object
required
Who gets the credential.
string
required
Key of the group to create the credential in.
object
Values for your custom attributes, such as {"custom_grade": "A"}. Each key is the merge tag of an attribute, without brackets. You find them in the Studio under Settings → Attributes.Only attributes whose value belongs to Each credential are saved. Other keys are ignored. Values are saved as text.

Success Response Fields

boolean
true when the draft was created.
string
"draft".
string
ID of the new credential. Use it to publish the draft.
string
The page where the credential will be, once it is published.
object
The recipient’s name and email, as saved.
object
The group’s title, key and code.
string
When the draft was created (ISO 8601, UTC).
string | null
null in this response. If the group’s credentials expire, the expiry date is set when the credential is published.
object
The custom attribute values that were saved.
string
"public" or "private", from the group’s settings.

Responses

Last modified on October 20, 2026