Skip to main content
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

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

Path parameters

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

Response

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

Errors