Unarchive Statement
POST /api/v1/statements/:id/unarchive
Clears the archive flag on a statement (is_archived: false). Idempotent — calling on a non-archived statement is a no-op success.
Path Parameters
| Parameter | Type | Description |
|---|
| id | string | Statement ID |
Example Request
curl -X POST "https://statements.finopsbricks.com/api/v1/statements/stmt123xyz/unarchive" \
-H "api-key: fob_stm_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Response
{
"data": {
"id": "stmt123xyz",
"is_archived": false
}
}
Errors
| Code | Description |
|---|
| 401 | Invalid or missing API credentials |
| 403 | API key lacks statements:edit permission |
| 404 | Statement not found |