Claix Retrieve

Routes Actions

Create, edit, and delete Retrieve routes via API. Tables and columns must match your published Data Map.

Routes · Delete

Delete a route via API

Endpoint

POSThttps://claix.dev/routes/delete/{route_id}

Deletes a route from your account and all of its versions. The operation is irreversible. Only routes you own are removed: if the UUID is missing or belongs to another account, the API returns 404.

Replace {route_id} with the UUID. DELETE is also accepted, as is sending route_id in the JSON body or query string.

This call is free: it is not billed.

1. Authentication

Include your API key on every request:

x-api-key: <YOUR_API_KEY>

or

Authorization: Bearer <YOUR_API_KEY>

2. Request format

Method: POST (also DELETE)

FieldTypeRequiredDescription
route_iduuidYesIn the URL /routes/delete/{route_id}. Alternatives: JSON body { "route_id": "..." } or ?route_id=.

If route_id is in the URL, no body is required.

3. How to build the call

  1. Get the route_id of the route you want to delete.
  2. Call https://claix.dev/routes/delete/<route_id> with POST or DELETE and your API key.
  3. Expect 200: only then are the route and its versions gone.

If the route was assigned to an agent, review that agent in the dashboard and remove the stale reference.

4. Call examples

Use the panel on the right for cURL, JavaScript, Node.js, Python, PHP, and n8n examples.

5. Successful response

200 OK · Content-Type: application/json

{
  "success": true,
  "deleted": true,
  "route_id": "7c2f9a1e-4b8d-4e6a-9f21-0a1b2c3d4e5f",
  "name": "Agenda de citas",
  "slug": "agenda_de_citas"
}

6. Common errors

HTTPWhen
401Missing/invalid API key or inactive account.
404Route not found or not on your account.
400Missing route_id or not a valid UUID.
405Method not allowed.
500Internal error while deleting.

Error example:

{
  "error": "Descripción legible del problema.",
  "detalle": "Información técnica adicional (solo presente en algunos casos).",
  "log_id": "7c2e1a90-4b3d-4f8a-9e21-6d5c8b0a1f34"
}

Request examples

curl -X POST "https://claix.dev/routes/delete/7c2f9a1e-4b8d-4e6a-9f21-0a1b2c3d4e5f" \
  -H "x-api-key: <TU_API_KEY>"