Private Endpoints

Delete a private endpoint

Changed on

Delete a private endpoint and stop routing to it. Pass draft_only=true to refuse (409) when the endpoint has been activated. Management key required.

delete/private-endpoints/{id}

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Stable identifier of the private endpoint.

Example:5b1c4c4e-7d0a-4a8e-9f3a-2d6c1b0e8a11

Query parameters

draft_only, 'true' | 'false'

When true, only delete the endpoint if it is still a draft (409 otherwise).

Response

The endpoint was deleted

DeletePrivateEndpointResponse required
data, object required

Example response

{
  "data": {
    "id": "5b1c4c4e-7d0a-4a8e-9f3a-2d6c1b0e8a11"
  }
}

Changes