Everstack
API ReferenceOpenai agents restDelete Connection

Delete Connection

DELETE/v1/openai-agents/connections/{connection-id}
DELETE/v1/openai-agents/connections/{connection-id}

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
connection-idpathstringYes

Responses

200 Success

PropertyTypeDescription
deletedboolean

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 DELETE "http://localhost:8089/v1/openai-agents/connections/{connection-id}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
const response = await fetch("http://localhost:8089/v1/openai-agents/connections/{connection-id}", {
  method: "DELETE",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
});
const data = await response.json();
import requests

response = requests.delete(
    "http://localhost:8089/v1/openai-agents/connections/{connection-id}",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
)
data = response.json()

Response

{
  "deleted": 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"
  }
}