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

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.

Path Parameters

nftLocator
string
required

NFT on chain locator, in the format of <chain>:<contract_address>:<tokenId>

Response

200
application/json
Success.

The credential object