Approval Requests
List approval requests in the review queue
Section titled “List approval requests in the review queue”GET /api/v1/approval-requests
- Operation
approval_requests.list- Accepts
sessionCookie,sessionToken- Scope
governance:read- Effect
- reading
- Rate class
- read
Parameters
statusApprovalRequestStatus in query, optionallimitinteger in query, optional, default50, minimum1, maximum200cursorstring in query, optional, minLength1
Answers
200One page of the listapplication/json: objectitemsarray of ApprovalRequestView requirednextCursorstring optional
400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Count the approval requests waiting for the caller
Section titled “Count the approval requests waiting for the caller”GET /api/v1/approval-requests/pending-count
- Operation
approval_requests.count_pending- Accepts
sessionCookie,sessionToken- Scope
conversation:read- Effect
- reading
- Rate class
- read
Answers
200The resultapplication/json: PendingApprovalRequestCount400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Read one approval request
Section titled “Read one approval request”GET /api/v1/approval-requests/{requestId}
- Operation
approval_requests.get- Accepts
sessionCookie,sessionToken- Scope
conversation:read- Effect
- reading
- Rate class
- read
Parameters
requestIdstring in path, required
Answers
200The resultapplication/json: ApprovalRequestView400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Approve or reject an approval request
Section titled “Approve or reject an approval request”POST /api/v1/approval-requests/{requestId}/decide
- Operation
approval_requests.decide- Accepts
sessionCookie,sessionToken- Scope
governance:write- Effect
- changing
- Rate class
- write
Parameters
requestIdstring in path, required
Request body
application/json: DecideApprovalRequest
Answers
200The resultapplication/json: ApprovalRequest400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.409CONFLICT: The request conflicts with the current state of the resource.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Revert an applied approval request
Section titled “Revert an applied approval request”POST /api/v1/approval-requests/{requestId}/revert
- Operation
approval_requests.revert- Accepts
sessionCookie,sessionToken- Scope
governance:write- Effect
- changing
- Rate class
- write
Parameters
requestIdstring in path, required
Answers
200The resultapplication/json: ApprovalRequest400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.409CONFLICT: The request conflicts with the current state of the resource.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Withdraw an approval request the caller created
Section titled “Withdraw an approval request the caller created”POST /api/v1/approval-requests/{requestId}/withdraw
- Operation
approval_requests.withdraw- Accepts
sessionCookie,sessionToken- Scope
conversation:write- Effect
- changing
- Rate class
- write
Parameters
requestIdstring in path, required
Answers
200The resultapplication/json: ApprovalRequest400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.409CONFLICT: The request conflicts with the current state of the resource.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.