Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.
Archive a webhook endpoint
Archive a webhook endpoint
Try this endpoint
app.langwatch.ai
API key · Authorization
Kept in this tab. Cleared when you reload.
This sends a live request to app.langwatch.ai.
Request and response examples
request.py
import osimport requestsorigin = "https://app.langwatch.ai"path = "/api/webhooks/v1/endpoints/<id>"api_key = os.environ["LANGWATCH_API_KEY"]headers = { "Authorization": "Bearer " + api_key,}response = requests.delete( origin + path, headers=headers,)print(response.json())const url = "https://app.langwatch.ai/api/webhooks/v1/endpoints/<id>";const response = await fetch(url, { method: "DELETE", headers: { "Authorization": "Bearer " + process.env.LANGWATCH_API_KEY, },});const data = await response.json();curl --request DELETE \ --url 'https://app.langwatch.ai/api/webhooks/v1/endpoints/<id>' \ --header "Authorization: Bearer $LANGWATCH_API_KEY"Call the LangWatch API from this project: Archive a webhook endpoint.Request: DELETE https://app.langwatch.ai/api/webhooks/v1/endpoints/<id>Reference: https://langwatch.ai/docs/api-reference/webhooks/archive-a-webhook-endpoint.mdAuthentication: send the Authorization header as a Bearer token, read from the LANGWATCH_API_KEY environment variable. Never hard-code the key.Use the HTTP client this project already uses, handle non-2xx responses, and show me the parsed result.Success
application/json · Generated from schema
{ "data": { "archived": true }}Path parameters
idstringrequiredAt least 1 character
Responses
200Success
application/json
dataobjectrequired