List all rules
Endpoint
Section titled “Endpoint”GET /v1/spending-rules
Authentication
Section titled “Authentication”No authentication required.
cURL Example
Section titled “cURL Example”curl -X GET "https://api.sapiom.ai/v1/spending-rules" \ -H "Authorization: Bearer YOUR_API_KEY"Response
Section titled “Response”{ "data": [ { "type": "rules", "id": "string", "attributes": null, "relationships": null } ], "included": [ "string" ], "links": { "self": "string", "next": null, "prev": null }, "meta": { "page": null }}Error Responses
Section titled “Error Responses”| Status | Code | Description |
|---|---|---|
| 400 | - | Invalid request parameters |
| 401 | - | Unauthorized - invalid or missing JWT token |
| 403 | - | Forbidden - insufficient permissions |
See API Introduction for error handling details.