Skip to main content
List the distribution contracts registered for a token. Route: POST /api/external/v1/contracts

Headers

HeaderRequiredDescription
Content-TypeYesMust be application/json
x-magna-api-tokenYesYour Magna API token

Body parameters

FieldTypeRequiredDescription
tokenIdstring (uuid)YesThe token whose contracts to list

Request example

curl -X POST https://app.magna.so/api/external/v1/contracts \
-H 'Content-Type: application/json' \
-H 'x-magna-api-token: YOUR_API_KEY' \
-d '{ "tokenId": "tok...uuid" }'

Response example

{
  "items": [
    {
      "id": "c1...uuid",
      "name": "Main Vesting Contract",
      "type": "AIRLOCK",
      "address": "0x...",
      "balance": "0",
      "createdAt": "2024-04-15T21:26:21.000Z"
    }
  ],
  "total": 1
}