Get rule by ID
Endpoint
Section titled “Endpoint”GET /v1/spending-rules/{id}
Authentication
Section titled “Authentication”No authentication required.
Path Parameters
Section titled “Path Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Rule ID (UUID or numeric ID like RL-001) |
cURL Example
Section titled “cURL Example”curl -X GET "https://api.sapiom.ai/v1/spending-rules/{id}" \ -H "Authorization: Bearer YOUR_API_KEY"Response
Section titled “Response”{ "data": { "type": "rules", "id": "string", "attributes": null, "relationships": null }, "included": [ "string" ]}Error Responses
Section titled “Error Responses”| Status | Code | Description |
|---|---|---|
| 404 | - | Rule not found |
See API Introduction for error handling details.