Skip to main content
POST
Generate Credential (Draft)

Description

This endpoint allows you to create a credential in draft state without immediately publishing it. The credential can be reviewed and published later using the Publish Credential endpoint.

Headers

string
required
Bearer YOUR_API_TOKEN — obtainable from Hyperstack Dashboard → Settings → API Access

Body Parameters

object
required
Information about the recipient of the credential.
string
required
Full name of the recipient.
string
required
Email address of the recipient.
string
required
The unique key of the credential group in which this credential will be generated.
object
required
Key-value pairs of custom attributes to embed in the credential. Keys must match the custom fields (prefixed with custom_) configured for your account.

Success Response Fields

boolean
Indicates whether the credential was successfully generated.
string
The unique ID of the newly created draft credential.
string
URL where the credential will be accessible once published.
string
Publication status of the credential. Will be "draft" for this endpoint.
object
Object containing name and email of the recipient.
object
Object containing title, key, and code of the credential group.
string
ISO 8601 timestamp of when the credential record was created.
string
ISO 8601 expiry timestamp. null if the credential does not expire.
object
Custom attribute values stored with the credential.
string
Visibility of the credential — "public" or "private".

Responses

Last modified on February 22, 2026