Skip to main content
POST
Preview your builder fee rules

Authorizations

X-Monaco-Signature
string
header
required

Ed25519 session-key request signing. Every authenticated request carries three headers: X-Monaco-PublicKey (64-char lowercase-hex session public key), X-Monaco-Timestamp (Unix milliseconds, within 30s of server time), and X-Monaco-Signature (hex ed25519 signature). The signature is over METHOD\npath?query\ntimestamp_ms\nSHA256_hex(body), where the body hash is the SHA-256 of the empty byte string when there is no body. Obtain the session keypair from POST /api/v1/auth/challenge followed by POST /api/v1/auth/verify.

Body

application/json
upserts
object[] | null

Rules to create or change, as in SetBuilderRules.

deletes
object[] | null

Scopes to delete, as in SetBuilderRules.

Response

OK

entries
object[] | null

Each change SetBuilderRules would make; empty when it would be refused for anything but the change limit.

changesRemaining
integer<uint32> | null

Changes this application can still make in the current rolling 24 hours. A preview never uses one.

Required range: x <= 500
Example:

50

refusal
string | null

The error SetBuilderRules would return for this input, or null when it would succeed.