Skip to main content
POST
Register a protocol

Authorizations

X-API-Key
string
header
required

Your API key in the X-API-Key header.

Headers

X-Case-Id
string | null

Active case, optional: the token of a case you can view. The query is recorded in that case and also uses its own labels. A case that does not exist, was deleted or is no longer shared with you returns 400 case_unavailable and the query is not run, with no charge.

Body

application/json
name
string
required
contracts
ProtocolContract · object[]
required
chain
string
default:ethereum
rules
Rules · object | null
shared
boolean
default:false
events
Events · object[] | null

Response

Successful response.