Approvals

Denies the action (never replayed). Records the optional reason and unblocks the originating chat turn if any. A user who may not answer the approval gets 403 permission_denied, by the same rule as approving.

post/approvals/{id}/deny

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.

Request body

object required
reason, string

Optional reason recorded on the approval

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