Skip to main content

POST /api/chain/:slug/contracts

MethodPOST
Path/api/chain/:slug/contracts
GroupContracts
Authauthenticated session — or Authorization: Bearer zsm_<machine-key> (machine API key) for headless/automation
Sourceshared/api-core/src/routes/contracts.ts

Call it

curl -X POST https://zeqsdk.com/api/chain/:slug/contracts \
-H "Authorization: Bearer zsm_<machine-key>" \
-H "Content-Type: application/json" \
-d '{"definition":null}'

Call it from an authenticated session, or — for headless/automation — pass a zsm_ machine API key as a Bearer token (as shown above).

Reference