Everstack
API ReferenceOpenai agents restResolve Approval

Resolve Approval

POST/v1/openai-agents/approvals/{approval-id}/resolve
POST/v1/openai-agents/approvals/{approval-id}/resolve

Your instance endpoint, shown on the instance page in the dashboard. Each instance has its own host; there is no shared API host.

Parameters

NameInTypeRequiredDescription
approval-idpathstringYes

Request Body

JSON request bodies are capped at 2 MiB.

PropertyTypeRequiredDescription
decision"approved" | "denied"Yes

Responses

200 Success

PropertyTypeDescription
resolvedboolean

400 Invalid request

PropertyTypeDescription
errorobject

403 Permission denied

PropertyTypeDescription
errorobject

404 Not found

PropertyTypeDescription
errorobject

500 Internal error

PropertyTypeDescription
errorobject

503 Unavailable

PropertyTypeDescription
errorobject

Request

curl -X POST "http://localhost:8089/v1/openai-agents/approvals/{approval-id}/resolve" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"decision":"approved"}'
const response = await fetch("http://localhost:8089/v1/openai-agents/approvals/{approval-id}/resolve", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
  "decision": "approved"
}),
});
const data = await response.json();
import requests

response = requests.post(
    "http://localhost:8089/v1/openai-agents/approvals/{approval-id}/resolve",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
  "decision": "approved"
},
)
data = response.json()

Response

{
  "resolved": true
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}