Verifiable Credential Types
Create Credential Type
API Reference
Wallets
- POSTCreate Wallet
- GETGet Wallet By Locator
- GETGet Wallet Balance
- POSTFund Wallet
- GETGet NFTs from Wallet
- POSTCreate Transaction
- GETGet Transaction
- GETGet Wallet Transactions
- POSTApprove Transaction
- POSTCreate Signature
- GETGet All Signatures
- GETGet Signature
- POSTApprove Signature
- POSTRegister Delegated Signer
- GETGet Delegated Signer
NFTs
IP
NFT Collections
NFT Templates
Verifiable Credentials
Verifiable Credential Types
Headless Checkout
Action Status
Admin
Subscriptions
Verifiable Credential Types
Create Credential Type
Create or import a credential type with a random UUID. This is how you define a custom credential schema.
API scope required credentials.create
POST
/
v1-alpha1
/
credentials
/
types
curl --request POST \
--url https://staging.crossmint.com/api/v1-alpha1/credentials/types \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Course completion",
"description": "Describes the course completed and the assigned grade",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
"properties": {
"course": {
"type": "string"
},
"grade": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"course",
"grade"
],
"additionalProperties": false
}
}
}'
{
"id": "crossmint:bfb292e7-2700-4924-9213-478f3d71f2d8:CourseCompletionCertificate",
"typeSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Course completion",
"description": "Describes the course completed and the assigned grade",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
"properties": {
"course": {
"type": "string"
},
"grade": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"course",
"grade"
],
"additionalProperties": false
}
},
"$id": "https://staging.crossmint.com/api/v1-alpha1/credentials/types/crossmint:bfb292e7-2700-4924-9213-478f3d71f2d8:CourseCompletionCertificate"
}
}
This is an alpha API and subject to change.
Authorizations
Key obtained from the Crossmint developer console, reflecting the API scope granted.
Body
application/json
Example:
"https://json-schema.org/draft/2020-12/schema"
Example:
"Course completion"
Example:
"Describes the course completed and the assigned grade"
Example:
"object"
Response
200
application/json
Success.
Example:
"crossmint:bfb292e7-2700-4924-9213-478f3d71f2d8:CourseCompletionCertificate"
Example:
"https://json-schema.org/draft/2020-12/schema"
Example:
"Course completion"
Example:
"Describes the course completed and the assigned grade"
Example:
"object"
Example:
{
"type": "object",
"properties": {
"course": { "type": "string" },
"grade": { "type": "string" },
"id": { "type": "string" }
},
"required": ["course", "grade"],
"additionalProperties": false
}
Example:
"https://staging.crossmint.com/api/v1-alpha1/credentials/types/crossmint:bfb292e7-2700-4924-9213-478f3d71f2d8:CourseCompletionCertificate"
Was this page helpful?
curl --request POST \
--url https://staging.crossmint.com/api/v1-alpha1/credentials/types \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Course completion",
"description": "Describes the course completed and the assigned grade",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
"properties": {
"course": {
"type": "string"
},
"grade": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"course",
"grade"
],
"additionalProperties": false
}
}
}'
{
"id": "crossmint:bfb292e7-2700-4924-9213-478f3d71f2d8:CourseCompletionCertificate",
"typeSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Course completion",
"description": "Describes the course completed and the assigned grade",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
"properties": {
"course": {
"type": "string"
},
"grade": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"course",
"grade"
],
"additionalProperties": false
}
},
"$id": "https://staging.crossmint.com/api/v1-alpha1/credentials/types/crossmint:bfb292e7-2700-4924-9213-478f3d71f2d8:CourseCompletionCertificate"
}
}