Approve an action
const url = 'https://api.ultimateteam.ai/api/v1/approvals/example/approve';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"approval_token":"example","feedback":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.ultimateteam.ai/api/v1/approvals/example/approve \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "approval_token": "example", "feedback": "example" }'Approves a pending action, optionally with feedback for the agent.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The approval item ID to approve
The approval item ID to approve
Request Body
Section titled “Request Body”Request body for approving an action.
Attributes: feedback: Optional reason or context for the approval.
Examplegenerated
{ "approval_token": "example", "feedback": "example"}Responses
Section titled “ Responses ”Successful Response
Envelope response for approval action endpoints.
Attributes: data: The approval decision payload. meta: Standard response metadata.
object
Inner data payload for approval decision responses.
Attributes: decision: The decision made (approved, rejected, modified). decision_id: The ID of the approval that was acted on. action_type: The action type that was decided on. feedback: Owner feedback, if provided. reason: Rejection reason, if applicable. modifications: Requested modifications, if applicable. execution_result: Result of executing the action, if available.
Standard metadata included in every API response.
Attributes: request_id: Unique identifier for this request. timestamp: When the response was generated.
object
Unique identifier for this request
When the response was generated
Examplegenerated
{ "data": { "action_type": "example", "decision": "example", "decision_id": "example", "execution_result": {}, "feedback": "example", "modifications": "example", "reason": "example" }, "meta": { "request_id": "example", "timestamp": "2026-04-15T12:00:00Z" }}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}