Skip to main content
curl --request DELETE \
  --url https://api.baseten.co/v1/gateway/endpoints/abc123hash \
  --header "Authorization: Api-Key $BASETEN_API_KEY"
{
  "id": "abc123hash",
  "slug": "my-org/glm-5.2"
}
Delete an endpoint. The call tears down the endpoint and its targets and stops routing its slug. The slug is freed for reuse: you can POST /v1/gateway/endpoints again with the same value to provision a fresh endpoint.

Authentication

Authorization
string
required
Workspace API key with management scope, passed as Authorization: Api-Key $BASETEN_API_KEY (or Bearer; both are accepted).

Path parameters

endpoint_id
string
required
Identifier of the endpoint to delete, returned as id by Create an endpoint.

Response

id
string
required
Identifier of the deleted endpoint.
slug
string
required
Slug of the deleted endpoint.

Errors

StatusMeaning
403 ForbiddenThe endpoint exists but isn’t in your workspace, or the caller doesn’t have management scope.
404 Not FoundNo endpoint with this id in your workspace, or it has already been deleted.
curl --request DELETE \
  --url https://api.baseten.co/v1/gateway/endpoints/abc123hash \
  --header "Authorization: Api-Key $BASETEN_API_KEY"
{
  "id": "abc123hash",
  "slug": "my-org/glm-5.2"
}