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

ParameterTypeDescription
idstringStatement 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

CodeDescription
401Invalid or missing API credentials
403API key lacks statements:edit permission
404Statement not found