Approvals

Approve an action

Changed on

Approves and replays the exact frozen action, once: approving it again answers 422. An action raised outside a chat (over the API, or by a script run) runs now, and the approval comes back executed (with result) or failed (with error). One raised in a chat comes back approved: the agent runs it on its next turn, so poll the approval for the outcome. The Crevio agent can never approve: its calls are refused with 403 approval_requires_user. A user who may not answer the approval gets 403 permission_denied: an admin answers any approval, a teammate the ones raised in a chat they can see, and a card fill only an admin. An approval nobody answers outside a chat is denied after 7 days.

post/approvals/{id}/approve

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

Approval id (apr_...)

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Response

Success

Approval required
object, 'approval' required
id, string required
approval_id, string required
status, 'draft' | 'pending_approval' | 'approved' | 'executed' | 'failed' | 'denied' required

pending_approval waits for a person. It ends executed (see result), failed (see error) or denied (see reason).

kind, 'pipedream' | 'composio' | 'rest' | 'mcp' | 'native' | 'saved_tool' | 'site' | 'vault' | 'elicitation' required
action_type, string nullable required
title, string nullable required
details, object[] required

What runs, as {label, value} pairs: recipients, subject, amounts and the other arguments a person checks.

request, object nullable required

An API call's frozen request, {http_method, path, params}, with secrets masked. Null for other kinds.

app_slug, string nullable required
tool_name, string nullable required
result, object nullable required
error, string nullable required
reason, string nullable required
chat_id, string nullable required
created_at, string required
resolved_at, string nullable required

Changes

    • info

      added the required property details to the response with the status

    • info

      added the required property request to the response with the status

    • warning

      added the new site enum value to the kind response property for the response status