Skip to content
Navigation

Approve or reject an approval

POST
/api/v1/approvals/{approvalId}/decision

Authorization

  • cookieAuth
    API key in cookie
    required

Path parameters

  • approvalId
    string
    required

    Approval identifier

Request body JSON required

  • threadKey
    string
    required
    maxLength: 600 · minLength: 1
  • approved
    boolean
    required
  • claimAction
    optional
    queue
    or
    new_branch
    or
    cancel
  • expectedInputHash
    optional
    string
    pattern: ^[a-f0-9]{64}$

Returns

200

Decision recorded

400

Invalid body
JSON
  • error
    string
    required
  • ok
    optional
    boolean
  • detail
    optional
    string
  • code
    optional
    string

401

Unauthorized
JSON
  • error
    string
    required
  • ok
    optional
    boolean
  • detail
    optional
    string
  • code
    optional
    string

404

Approval not found
JSON
  • error
    string
    required
  • ok
    optional
    boolean
  • detail
    optional
    string
  • code
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close