Rules
Authorizations
X-API-KeystringRequired
Business API key provided by Coinrule for authentication.
X-User-Public-KeystringRequired
The user's smart account public key (e.g., wallet address) for which the rule is created.
Body
namestringOptional
Optional human-readable name for the rule.
timestampstring · date-timeOptionalExample:
Client timestamp of when the rule is created, in ISO 8601 format. This can be used for request auditing or to schedule relative triggers (optional).
2025-07-16T10:11:35.214ZResponses
201
Rule successfully created.
application/json
400
Bad Request – the request body is missing required fields or has invalid data.
application/json
401
Unauthorized – API key is missing or invalid.
application/json
403
Forbidden – The client is authenticated but not allowed to perform this action (e.g., using an API key without permission, or trying to create a rule for a user that is not accessible).
application/json
500
Internal Server Error – An unexpected server error occurred.
application/json
post
/rulesLast updated