Skip to main content
POST
Respond to an approval request

Authorizations

Authorization
string
header
required

A VisIQ API key presented as Authorization: Bearer vq_prod_.... Mint harness keys under Settings → Harness Keys and API keys under Settings → API Keys in the dashboard.

Headers

Idempotency-Key
string

Optional. Makes this write safe to retry: a repeat with the same key, method, path (including its query string) and body within 24 hours returns the stored response with X-Idempotent-Replayed: true instead of running again. Reusing the key with a different request is a 422; a repeat while the first is still running is a 409, until the first request's 2-minute processing lease expires, after which the repeat runs. See REST conventions.

Required string length: 1 - 256
Pattern: ^[A-Za-z0-9_-]+$
X-Idempotency-Key
string

The legacy spelling of Idempotency-Key, accepted with the same behaviour. Sending both with different values is a 400.

Required string length: 1 - 256
Pattern: ^[A-Za-z0-9_-]+$

Path Parameters

id
string<uuid>
required

The approval queue item UUID.

Body

application/json

The request shape depends on the target item's category. enduser items use the approve/reject form; all other categories use the dismiss/create-rule form.

decision
enum<string>
required
Available options:
approved,
rejected
responded_by
string
required
Required string length: 1 - 255

Response

The resolution outcome.

id
string<uuid>
decision_id
string<uuid> | null
status
enum<string>
Available options:
approved,
rejected,
dismissed,
resolved
responded_at
string<date-time>
responded_by
string