POST
/
v1-alpha1
/
credentials
/
templates
curl --request POST \
  --url https://staging.crossmint.com/api/v1-alpha1/credentials/templates/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "metadata": {
    "name": "Verifiable Credential",
    "image": "https://www.crossmint.com/assets/crossmint/logo.png",
    "description": "The owner of this credential is authorized."
  },
  "chain": "polygon",
  "credentials": {
    "type": "crossmint:5fe6040e-07a1-48bb-97a3-b588a7e927d2:CourseCompletionCertificate",
    "storage": "crossmint",
    "delegatedStorageEndpoint": "unknown",
    "encryption": "crossmint-recoverable",
    "delegatedSignature": "undefined"
  }
}'
"Success. Refer to the standard nft create collection response for more details."

This is an alpha API and subject to change.

Authorizations

X-API-KEY
string
header
required

Key obtained from the Crossmint developer console, reflecting the API scope granted.

Body

application/json
metadata
object
required
chain
enum<string>
required

The chain to mint the nft on. All crossmint supported EVM chains are compatible.

Available options:
polygon,
optimism,
base,
etc...
credentials
object
required

Credentials parameters

Response

200
application/json
Success. Refer to the standard create collection response for more details.

The response is of type string.

Example:

"Success. Refer to the standard nft create collection response for more details."