GET
/
unstable
/
collections
/
{collectionId}
/
nfts
/
{id}
/
credentials
curl --request GET \
  --url https://staging.crossmint.com/api/unstable/collections/{collectionId}/nfts/{id}/credentials \
  --header 'X-API-KEY: <api-key>'
{
  "value": {
    "@context": [
      "https://www.w3.org/2018/credentials/v1",
      "https://github.com/haardikk21/ethereum-eip712-signature-2021-spec/blob/main/index.html",
      "DUMMY_CROSSMINT/64f0c05641a512c86786fd3b"
    ],
    "credentialSubject": {
      "...additional fields": "...",
      "id": "0xSUBJECT_ADDRESS"
    },
    "expirationDate": "2234-12-12",
    "id": "<CREDENTIAL_ID>",
    "issuanceDate": "2023-08-31T16:34:33.854Z",
    "issuer": {
      "id": "did:0xISSUER_ADDRESS"
    },
    "nft": {
      "chain": "polygon",
      "contractAddress": "<collection_contract_address>",
      "tokenId": "<tokenId>"
    },
    "proof": {
      "...additional required fields": "...",
      "proofValue": "ProofValue"
    },
    "type": [
      "VerifiableCredential",
      "64f0c05641a512c86786fd3b"
    ]
  }
}

This is an alpha API and subject to change.

Authorizations

X-API-KEY
string
headerrequired

Obtained in the Crossmint developer console

Path Parameters

collectionId
string
required

Collection id

id
string
required

UUID of the NFT returned in the NFT creation response. Format is: <UUID>

Response

200 - application/json

The credential object