gotolisto
ENESEmpieza gratis
Desarrolladores

Referencia de la API

Lee reservaciones, clientes, servicios y pagos, crea reservaciones, notas de reservación, clientes y prospectos, y suscríbete a webhooks. Una API REST con JSON de entrada y salida, una clave por app, y nada que mueva dinero.

URL basehttps://gotolisto.com/api/v1Documento OpenAPI 3.1

Cada ruta de abajo es relativa a esta base. La clave decide el espacio de trabajo, no el host.

Inicio rápido

  1. En tu espacio de trabajo abre Integrations y luego Claves de API (API keys), y crea una clave. Cópiala: se muestra una sola vez.
  2. Llama a GET /me con la clave en el encabezado Authorization. La respuesta nombra el espacio de trabajo y la clave.
  3. Lee o crea datos con los endpoints de abajo, o suscríbete a eventos con POST /hooks (ver Webhooks).
curl "https://gotolisto.com/api/v1/me" \
  -H "Authorization: Bearer qk_live_…"

Autenticación

Envía la clave como bearer token en cada petición: Authorization: Bearer qk_live_…. Una clave es qk_live_ seguido de 43 letras y dígitos, y sirve para un solo espacio de trabajo.

Un administrador del espacio crea y revoca las claves en Integrations, API keys, en un plan que incluya la API. Un espacio puede tener 20 claves activas. La clave completa se muestra una vez; después solo sus primeros caracteres.

Revocar una clave la detiene de inmediato (401) y apaga todas las suscripciones de webhook que creó.

Las peticiones sin clave o con una clave inválida se limitan a 120 por minuto por IP; pasado eso responden 429.

Permisos (scopes)

ScopePermiteEndpoints
bookings:readVer reservacionesGET /bookingsGET /bookings/{id}
bookings:writeCrear reservaciones y notasPOST /bookingsPOST /bookings/{id}/notes
customers:readVer clientesGET /customersGET /customers/{id}
customers:writeCrear clientes y editar sus etiquetasPOST /customersPATCH /customers/{id}
leads:writeCrear prospectosPOST /leads
services:readVer serviciosGET /servicesGET /services/{id}/questions
payments:readVer pagosGET /paymentsGET /payments/{booking_id}
webhooks:manageSuscribirse a webhooksGET /hooksPOST /hooksDELETE /hooks/{id}

Toda clave puede llamar a GET /me y GET /locations.

Opciones predefinidas en el panel de administración:

  • Zapier / Make — acceso completo: bookings:read, bookings:write, customers:read, customers:write, leads:write, services:read, payments:read, webhooks:manage
  • Solo lectura: bookings:read, customers:read, services:read, payments:read

Convenciones

  • JSON de entrada y salida (Content-Type: application/json). No hay encabezados CORS: llama a la API desde un servidor, nunca desde un navegador.
  • El dinero es un objeto: { "amount": "149.00", "currency": "MXN" }, un decimal en texto en unidades mayores, en la moneda de la ubicación.
  • Las fechas son YYYY-MM-DD y las horas HH:MM, en la zona horaria de la ubicación (cada reservación trae timezone). Los instantes como created_at son ISO 8601 en UTC.
  • Los ids son UUID. Un id de otro espacio de trabajo responde 404, igual que un id que no existe.
  • Los pagos son de solo lectura. Ningún endpoint cobra, reembolsa ni registra un pago, y crear una reservación nunca cobra dinero.

Paginación

Las listas responden { "data": [...], "next_cursor": "…" | null }, ordenadas por último cambio, lo más reciente primero (updated_at y luego id).

Envía limit (de 1 a 100, 25 por defecto) y, para la siguiente página, cursor con el next_cursor anterior. Un cursor null es la última página. El cursor es opaco; devuélvelo sin cambios.

La paginación es por llave (keyset): los registros que aún no alcanzas nunca se desplazan ni se repiten, pero un registro que cambia mientras paginas pasa delante de tu cursor y no aparece en esa pasada. Para atraparlo, vuelve a paginar con updated_since igual a la hora en que empezó la pasada; para sincronizar cambios posteriores, usa la hora en que empezó tu última sincronización.

Idempotencia

Todo POST acepta el encabezado Idempotency-Key (hasta 255 caracteres imprimibles). Reintentar con la misma clave y el mismo cuerpo devuelve la primera respuesta, con Idempotent-Replayed: true, durante 24 horas.

La misma clave con otro cuerpo, otro endpoint u otra clave de API responde 409 idempotency_conflict; mientras la primera petición sigue en curso responde 409 conflict. Una petición fallida (5xx) libera la clave, así que reintenta con ella.

Usa una clave por cada cosa que creas, por ejemplo el id del registro en tu sistema.

curl -X POST "https://gotolisto.com/api/v1/customers" \
  -H "Authorization: Bearer qk_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <your-unique-id>" \
  -d '{
    "first_name": "Sample",
    "last_name": "Client",
    "email": "sample.client@example.com",
    "phone": "+525500000000",
    "preferred_lang": "en",
    "tags": [
      "vip"
    ]
  }'

Límites de uso

Por clave de API: 120 lecturas (GET) y 30 escrituras (POST, DELETE) por minuto. Por espacio de trabajo, todas las claves juntas: 600 peticiones por minuto.

Cada respuesta autenticada trae X-RateLimit-Limit y X-RateLimit-Remaining del contador de la clave. Al pasar un límite la respuesta es 429 rate_limited con Retry-After en segundos.

Errores

Los errores responden con un estado HTTP y { "error": { "code", "message", "details"? } }. Decide según code; message es para personas y puede cambiar.

CódigoEstadoSignificado
unauthorized401Falta el encabezado Authorization o está mal formado, o la clave no existe o fue revocada.
forbidden_scope403La clave no tiene el permiso que pide esta operación (details.required_scope).
plan_required403El plan del espacio de trabajo no incluye la API (o, en POST /hooks, los webhooks; en POST /customers, lugar para otro cliente activo).
tenant_unavailable403El espacio de trabajo está suspendido, archivado o inactivo.
not_found404No existe ese objeto en este espacio de trabajo. Los ids de otros espacios también dan 404, nunca 403.
validation_failed422La consulta o el cuerpo no son válidos. details.issues lista cada problema como { path, message }.
conflict409Una petición con la misma Idempotency-Key sigue en curso, o el espacio de trabajo ya tiene 100 endpoints de webhook (POST /hooks).
slot_unavailable409POST /bookings: esa fecha y hora está ocupada, cerrada o no se ofrece.
idempotency_conflict409La Idempotency-Key ya se usó con otro cuerpo, ruta o clave de API.
rate_limited429Demasiadas peticiones. Espera los segundos de Retry-After.
internal500Algo falló de nuestro lado. Reintenta más tarde; los POST se pueden reintentar con la misma Idempotency-Key.
Ejemplo: un cuerpo con un email inválido · 422
{
  "error": {
    "code": "validation_failed",
    "message": "The request is not valid.",
    "details": {
      "issues": [
        {
          "path": "email",
          "message": "Must be an email address."
        }
      ]
    }
  }
}

Versiones

/v1 solo cambia agregando: pueden aparecer en cualquier momento endpoints, campos, eventos y valores nuevos, así que ignora lo que no conozcas.

Quitar o renombrar algo requiere una versión nueva (/v2) y seis meses de aviso. Los payloads de webhook traen "version": 1 y siguen la misma regla.

Endpoints

Generados de la misma tabla que el documento OpenAPI. Los cuerpos y respuestas de abajo son salidas reales del código de la API con datos de ejemplo. El documento OpenAPI describe cada esquema completo.

Los nombres de campos, las descripciones de parámetros y las respuestas vienen del documento OpenAPI y están en inglés.

Cuenta

GET/me

El espacio de trabajo de la clave y la clave misma (prueba de conexión)

Scope: cualquier clave

Respuestas

  • 200 The workspace and key
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/me" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "tenant": {
    "id": "00000000-0000-4000-8000-00000000f001",
    "slug": "sample",
    "name": "Sample Home Services"
  },
  "key": {
    "name": "Zapier",
    "prefix": "qk_live_AbC1",
    "scopes": [
      "bookings:read",
      "webhooks:manage"
    ]
  }
}

GET/locations

Listar ubicaciones

Scope: cualquier clave

Parámetros

NombreEnTipoDescripción
limitqueryinteger 1–100Page size, 25 by default.
cursorquerystringThe next_cursor of the previous page.

Respuestas

  • 200 A page of locations
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 422 A query parameter, limit or cursor is not valid (validation_failed)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/locations" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-00000000a001",
      "object": "location",
      "name": "Sample location",
      "timezone": "America/Mexico_City",
      "currency": "MXN",
      "active": true
    }
  ],
  "next_cursor": null
}

GET/openapi.json

Este documento

Scope: sin clave

Respuestas

  • 200 The OpenAPI document
Petición de ejemplo
curl "https://gotolisto.com/api/v1/openapi.json"

Reservaciones

GET/bookings

Listar reservaciones, las cambiadas más recientemente primero

Scope: bookings:read

Parámetros

NombreEnTipoDescripción
statusquerypending | confirmed | cancelled | completed | no_showOnly bookings in this status.
location_idqueryuuidOnly bookings at this location.
customer_idqueryuuidOnly bookings of this customer.
date_fromquerydateService date on or after (YYYY-MM-DD, location time).
date_toquerydateService date on or before (YYYY-MM-DD, location time).
updated_sincequerydate-timeOnly bookings changed at or after this instant.
limitqueryinteger 1–100Page size, 25 by default.
cursorquerystringThe next_cursor of the previous page.

Respuestas

  • 200 A page of bookings
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 422 A query parameter, limit or cursor is not valid (validation_failed)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/bookings?status=confirmed&limit=1" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-00000000b001",
      "object": "booking",
      "status": "confirmed",
      "date": "2026-10-13",
      "time": "10:00",
      "start_time": "2026-10-13T16:00:00Z",
      "duration_min": 180,
      "timezone": "America/Mexico_City",
      "arrival_window": null,
      "crew_size": 1,
      "location": {
        "id": "00000000-0000-4000-8000-00000000a001",
        "name": "Sample location"
      },
      "service": {
        "id": "00000000-0000-4000-8000-00000000c001",
        "name": "Sample service"
      },
      "addons": [
        {
          "key": "inside_fridge",
          "quantity": 1
        }
      ],
      "total": {
        "amount": "1200.00",
        "currency": "MXN"
      },
      "discount": {
        "amount": "0.00",
        "currency": "MXN"
      },
      "payment": {
        "status": "pending",
        "method": "card",
        "paid_at": null
      },
      "crew": [
        {
          "id": "00000000-0000-4000-8000-00000000e001",
          "name": "Sample S."
        }
      ],
      "customer": {
        "id": "00000000-0000-4000-8000-00000000d001",
        "first_name": "Sample",
        "last_name": "Client",
        "email": "sample.client@example.com",
        "phone": "+525500000000"
      },
      "address": {
        "line": "123 Sample Street",
        "unit": "1A",
        "building": null,
        "lat": null,
        "lng": null,
        "place_id": null,
        "maps_url": null
      },
      "source": "admin",
      "quote_id": null,
      "attribution": {
        "utm_source": null,
        "utm_medium": null,
        "utm_campaign": null,
        "utm_term": null,
        "utm_content": null,
        "referrer": null,
        "landing_page": null
      },
      "created_at": "2026-10-12T15:04:05Z",
      "updated_at": "2026-10-12T15:04:05Z"
    }
  ],
  "next_cursor": "MjAyNi0xMC0xMlQxNTowNDowNS4xMjM0NTYrMDA6MDAsMDAwMDAwMDAtMDAwMC00MDAwLTgwMDAtMDAwMDAwMDBiMDAx"
}

POST/bookings

Crear una reservación (con precio y disponibilidad como en la calculadora; no se cobra nada)

Scope: bookings:write

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringRetry safely: the same key and body replay the first answer for 24 hours.

Cuerpo

NombreTipoDescripción
location_iduuidobligatorio.
service_iduuidobligatorio.
datedateobligatorio. YYYY-MM-DD, location time.
timestringobligatorio. HH:MM, location time: an offered slot.
customer_iduuidopcional.
customerobjectopcional. Matched to an existing customer by email, else created with these fields (as POST /customers).
addressobjectobligatorio. The service address. A known building can also be named in answers.building_id, as in the calculator.
answersobjectopcional. The calculator answers for this service, same keys as the calculator (e.g. bedrooms, addons). Each answer is converted to the type of its question before pricing ("2" → 2 for a counter, 24 → "24" for a select).
notesstringopcional. Instructions for the team (shown as special instructions).
notify_clientbooleanopcional. Send the client the booking confirmation (and, when the business requires a card, the card request).

Respuestas

  • 201 The booking
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 404 location_id, service_id or customer_id is not one of this workspace (not_found)
  • 409 The date and time is taken, closed or not offered (slot_unavailable), or the Idempotency-Key reused with another body (idempotency_conflict) or still in progress (conflict)
  • 422 The body is not valid (validation_failed); missing required answers are listed in details.missing_answers
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl -X POST "https://gotolisto.com/api/v1/bookings" \
  -H "Authorization: Bearer qk_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <your-unique-id>" \
  -d '{
    "location_id": "00000000-0000-4000-8000-00000000a001",
    "service_id": "00000000-0000-4000-8000-00000000c001",
    "date": "2026-10-13",
    "time": "10:00",
    "customer": {
      "first_name": "Sample",
      "last_name": "Client",
      "email": "sample.client@example.com",
      "phone": "+525500000000"
    },
    "address": {
      "line": "123 Sample Street",
      "unit": "1A"
    },
    "answers": {
      "bedrooms": 2,
      "bathrooms": 1
    },
    "notes": "Gate code at the front desk.",
    "notify_client": false
  }'
Respuesta de ejemplo · 201
{
  "id": "00000000-0000-4000-8000-00000000b001",
  "object": "booking",
  "status": "pending",
  "date": "2026-10-13",
  "time": "10:00",
  "start_time": "2026-10-13T16:00:00Z",
  "duration_min": 180,
  "timezone": "America/Mexico_City",
  "arrival_window": null,
  "crew_size": 1,
  "location": {
    "id": "00000000-0000-4000-8000-00000000a001",
    "name": "Sample location"
  },
  "service": {
    "id": "00000000-0000-4000-8000-00000000c001",
    "name": "Sample service"
  },
  "addons": [],
  "total": {
    "amount": "1200.00",
    "currency": "MXN"
  },
  "discount": {
    "amount": "0.00",
    "currency": "MXN"
  },
  "payment": {
    "status": "pending",
    "method": "card",
    "paid_at": null
  },
  "crew": [],
  "customer": {
    "id": "00000000-0000-4000-8000-00000000d001",
    "first_name": "Sample",
    "last_name": "Client",
    "email": "sample.client@example.com",
    "phone": "+525500000000"
  },
  "address": {
    "line": "123 Sample Street",
    "unit": "1A",
    "building": null,
    "lat": null,
    "lng": null,
    "place_id": null,
    "maps_url": null
  },
  "source": "api",
  "quote_id": null,
  "attribution": {
    "utm_source": null,
    "utm_medium": null,
    "utm_campaign": null,
    "utm_term": null,
    "utm_content": null,
    "referrer": null,
    "landing_page": null
  },
  "created_at": "2026-10-12T15:04:05Z",
  "updated_at": "2026-10-12T15:04:05Z"
}

GET/bookings/{id}

Obtener una reservación

Scope: bookings:read

Parámetros

NombreEnTipoDescripción
idpathuuidobligatorio. Booking id.

Respuestas

  • 200 The booking
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 404 No such booking (not_found)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/bookings/00000000-0000-4000-8000-00000000b001" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "id": "00000000-0000-4000-8000-00000000b001",
  "object": "booking",
  "status": "confirmed",
  "date": "2026-10-13",
  "time": "10:00",
  "start_time": "2026-10-13T16:00:00Z",
  "duration_min": 180,
  "timezone": "America/Mexico_City",
  "arrival_window": null,
  "crew_size": 1,
  "location": {
    "id": "00000000-0000-4000-8000-00000000a001",
    "name": "Sample location"
  },
  "service": {
    "id": "00000000-0000-4000-8000-00000000c001",
    "name": "Sample service"
  },
  "addons": [
    {
      "key": "inside_fridge",
      "quantity": 1
    }
  ],
  "total": {
    "amount": "1200.00",
    "currency": "MXN"
  },
  "discount": {
    "amount": "0.00",
    "currency": "MXN"
  },
  "payment": {
    "status": "pending",
    "method": "card",
    "paid_at": null
  },
  "crew": [
    {
      "id": "00000000-0000-4000-8000-00000000e001",
      "name": "Sample S."
    }
  ],
  "customer": {
    "id": "00000000-0000-4000-8000-00000000d001",
    "first_name": "Sample",
    "last_name": "Client",
    "email": "sample.client@example.com",
    "phone": "+525500000000"
  },
  "address": {
    "line": "123 Sample Street",
    "unit": "1A",
    "building": null,
    "lat": null,
    "lng": null,
    "place_id": null,
    "maps_url": null
  },
  "source": "admin",
  "quote_id": null,
  "attribution": {
    "utm_source": null,
    "utm_medium": null,
    "utm_campaign": null,
    "utm_term": null,
    "utm_content": null,
    "referrer": null,
    "landing_page": null
  },
  "created_at": "2026-10-12T15:04:05Z",
  "updated_at": "2026-10-12T15:04:05Z"
}

POST/bookings/{id}/notes

Agregar una nota interna a una reservación (la ve el equipo, nunca el cliente)

Scope: bookings:write

Parámetros

NombreEnTipoDescripción
idpathuuidobligatorio. Booking id.
Idempotency-KeyheaderstringRetry safely: the same key and body replay the first answer for 24 hours.

Cuerpo

NombreTipoDescripción
textstringobligatorio. The note. Shown on the booking to the team only.

Respuestas

  • 201 The note
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 404 No such booking (not_found)
  • 409 The Idempotency-Key reused with another body (idempotency_conflict) or still in progress (conflict)
  • 422 The body is not valid (validation_failed)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl -X POST "https://gotolisto.com/api/v1/bookings/00000000-0000-4000-8000-00000000b001/notes" \
  -H "Authorization: Bearer qk_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <your-unique-id>" \
  -d '{
    "text": "Client called: the gate code changed to 4321."
  }'
Respuesta de ejemplo · 201
{
  "id": "00000000-0000-4000-8000-00000000a001",
  "object": "booking_note",
  "booking_id": "00000000-0000-4000-8000-00000000b001",
  "text": "Client called: the gate code changed to 4321.",
  "visibility": "team",
  "author": {
    "type": "api_key",
    "id": "00000000-0000-4000-8000-00000000b001",
    "name": "Zapier"
  },
  "created_at": "2026-10-12T15:04:05.000Z"
}

Clientes

GET/customers

Listar o buscar clientes, los cambiados más recientemente primero

Scope: customers:read

Parámetros

NombreEnTipoDescripción
emailqueryemailExact email address (case-insensitive).
phonequeryE.164Exact phone number in E.164 format.
updated_sincequerydate-timeOnly customers changed at or after this instant.
tagquerystringOnly customers who have this tag. Case, accents and extra spaces are ignored where the workspace uses managed client tags; an unknown tag gives an empty list.
limitqueryinteger 1–100Page size, 25 by default.
cursorquerystringThe next_cursor of the previous page.

Respuestas

  • 200 A page of customers
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 422 A query parameter, limit or cursor is not valid (validation_failed)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/customers?email=sample.client%40example.com" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-00000000d001",
      "object": "customer",
      "first_name": "Sample",
      "last_name": "Client",
      "email": "sample.client@example.com",
      "phone": "+525500000000",
      "preferred_lang": "en",
      "tags": [
        "vip"
      ],
      "active": true,
      "location_id": "00000000-0000-4000-8000-00000000a001",
      "total_bookings": 3,
      "created_at": "2026-09-01T18:20:00Z",
      "updated_at": "2026-10-12T15:04:05Z"
    }
  ],
  "next_cursor": null
}

POST/customers

Buscar o crear un cliente por email

Scope: customers:write

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringRetry safely: the same key and body replay the first answer for 24 hours.

Cuerpo

NombreTipoDescripción
first_namestringobligatorio.
last_namestringopcional.
emailemailobligatorio.
phoneE.164opcional.
preferred_langen | esopcional.
location_iduuidopcional.
tagsstring[]opcional.
sourcestringopcional. Where the person came from, in your own words (e.g. facebook, google, spring_flyer). A known name is recorded as that source; anything else is recorded as an integration source with your label. Only a customer this call creates gets it.

Respuestas

  • 200 A customer with this email already exists: that customer, unchanged (created: false). Without the customers:read scope only id, object and created are returned.
  • 201 The new customer (created: true)
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 404 location_id is not one of this workspace (not_found)
  • 409 The Idempotency-Key reused with another body (idempotency_conflict) or still in progress (conflict)
  • 422 The body is not valid (validation_failed)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl -X POST "https://gotolisto.com/api/v1/customers" \
  -H "Authorization: Bearer qk_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <your-unique-id>" \
  -d '{
    "first_name": "Sample",
    "last_name": "Client",
    "email": "sample.client@example.com",
    "phone": "+525500000000",
    "preferred_lang": "en",
    "tags": [
      "vip"
    ]
  }'
Respuesta de ejemplo · 201
{
  "id": "00000000-0000-4000-8000-00000000d001",
  "object": "customer",
  "first_name": "Sample",
  "last_name": "Client",
  "email": "sample.client@example.com",
  "phone": "+525500000000",
  "preferred_lang": "en",
  "tags": [
    "vip"
  ],
  "active": true,
  "location_id": "00000000-0000-4000-8000-00000000a001",
  "total_bookings": 0,
  "created_at": "2026-09-01T18:20:00Z",
  "updated_at": "2026-10-12T15:04:05Z",
  "created": true
}

GET/customers/{id}

Obtener un cliente

Scope: customers:read

Parámetros

NombreEnTipoDescripción
idpathuuidobligatorio. Customer id.

Respuestas

  • 200 The customer
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 404 No such customer (not_found)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/customers/00000000-0000-4000-8000-00000000d001" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "id": "00000000-0000-4000-8000-00000000d001",
  "object": "customer",
  "first_name": "Sample",
  "last_name": "Client",
  "email": "sample.client@example.com",
  "phone": "+525500000000",
  "preferred_lang": "en",
  "tags": [
    "vip"
  ],
  "active": true,
  "location_id": "00000000-0000-4000-8000-00000000a001",
  "total_bookings": 3,
  "created_at": "2026-09-01T18:20:00Z",
  "updated_at": "2026-10-12T15:04:05Z"
}

PATCH/customers/{id}

Agregar o quitar etiquetas de un cliente

Scope: customers:write

Parámetros

NombreEnTipoDescripción
idpathuuidobligatorio. Customer id.
Idempotency-KeyheaderstringRetry safely: the same key and body replay the first answer for 24 hours.

Cuerpo

NombreTipoDescripción
add_tagsstring[]opcional.
remove_tagsstring[]opcional.

Respuestas

  • 200 The customer with the tags added and removed. tags_added and tags_removed count the changes that really happened (a repeated request answers 0 and 0). Without the customers:read scope only id, object and the counts are returned.
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 404 No such customer (not_found)
  • 409 The tags changed while the request ran, or the Idempotency-Key reused with another body (idempotency_conflict) or still in progress (conflict)
  • 422 The body is not valid, or the change would give a customer more than 50 tags or the workspace more than 300 active tags (validation_failed)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl -X PATCH "https://gotolisto.com/api/v1/customers/00000000-0000-4000-8000-00000000d001" \
  -H "Authorization: Bearer qk_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <your-unique-id>" \
  -d '{
    "add_tags": [
      "vip",
      "Deep clean"
    ],
    "remove_tags": [
      "Prospect"
    ]
  }'
Respuesta de ejemplo · 200
{
  "id": "00000000-0000-4000-8000-00000000d001",
  "object": "customer",
  "first_name": "Sample",
  "last_name": "Client",
  "email": "sample.client@example.com",
  "phone": "+525500000000",
  "preferred_lang": "en",
  "tags": [
    "vip",
    "Deep clean"
  ],
  "active": true,
  "location_id": "00000000-0000-4000-8000-00000000a001",
  "total_bookings": 3,
  "created_at": "2026-09-01T18:20:00Z",
  "updated_at": "2026-10-12T15:04:05Z",
  "tags_added": 2,
  "tags_removed": 1
}

Prospectos

POST/leads

Agregar un prospecto a la lista de Cotizaciones y prospectos

Scope: leads:write

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringRetry safely: the same key and body replay the first answer for 24 hours.

Cuerpo

NombreTipoDescripción
location_iduuidobligatorio.
first_namestringobligatorio.
last_namestringopcional.
emailemailobligatorio.
phoneE.164opcional.
addressstring | objectopcional.
service_iduuidopcional.
notesstringopcional.
sourcestringopcional. Where the lead came from, e.g. "Facebook Lead Ads".

Respuestas

  • 201 The lead
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 404 location_id or service_id is not one of this workspace (not_found)
  • 409 The Idempotency-Key reused with another body (idempotency_conflict) or still in progress (conflict)
  • 422 The body is not valid (validation_failed)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl -X POST "https://gotolisto.com/api/v1/leads" \
  -H "Authorization: Bearer qk_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <your-unique-id>" \
  -d '{
    "location_id": "00000000-0000-4000-8000-00000000a001",
    "first_name": "Sample",
    "last_name": "Client",
    "email": "sample.client@example.com",
    "phone": "+525500000000",
    "service_id": "00000000-0000-4000-8000-00000000c001",
    "notes": "Asked for a quote for a 3 bedroom house.",
    "source": "Facebook Lead Ads"
  }'
Respuesta de ejemplo · 201
{
  "id": "00000000-0000-4000-8000-000000003001",
  "object": "lead",
  "source": "api",
  "status": "open",
  "location": {
    "id": "00000000-0000-4000-8000-00000000a001",
    "name": "Sample location"
  },
  "contact": {
    "name": "Sample Client",
    "email": "sample.client@example.com",
    "phone": "+525500000000"
  },
  "total": null,
  "duration_min": null,
  "lang": null,
  "booking_id": null,
  "attribution": {
    "utm_source": "Facebook Lead Ads",
    "utm_medium": null,
    "utm_campaign": null,
    "utm_term": null,
    "utm_content": null,
    "referrer": null,
    "landing_page": null
  },
  "created_at": "2026-10-12T15:04:05Z"
}

Servicios

GET/services

Listar servicios

Scope: services:read

Parámetros

NombreEnTipoDescripción
location_idqueryuuidOnly services of this location.
limitqueryinteger 1–100Page size, 25 by default.
cursorquerystringThe next_cursor of the previous page.

Respuestas

  • 200 A page of services
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 422 A query parameter, limit or cursor is not valid (validation_failed)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/services?location_id=00000000-0000-4000-8000-00000000a001" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-00000000c001",
      "object": "service",
      "name": "Sample service",
      "location_ids": [
        "00000000-0000-4000-8000-00000000a001"
      ],
      "active": true
    }
  ],
  "next_cursor": null
}

GET/services/{id}/questions

Listar las preguntas de reservación de un servicio

Scope: services:read

Parámetros

NombreEnTipoDescripción
idpathuuidobligatorio. Service id.

Respuestas

  • 200 The questions
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 404 No such service (not_found)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/services/00000000-0000-4000-8000-00000000c001/questions" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "data": [
    {
      "object": "service_question",
      "key": "bedrooms",
      "label": "Bedrooms",
      "type": "number",
      "required": true,
      "min": 1,
      "max": 6,
      "step": 1
    },
    {
      "object": "service_question",
      "key": "zone_id",
      "label": "Area",
      "type": "select",
      "required": true,
      "options": [
        {
          "value": "8a6f0000-0000-4000-8000-000000000001",
          "label": "North"
        },
        {
          "value": "8a6f0000-0000-4000-8000-000000000002",
          "label": "South"
        }
      ]
    }
  ]
}

Pagos

GET/payments

Listar pagos de reservaciones (solo lectura)

Scope: payments:read

Parámetros

NombreEnTipoDescripción
booking_idqueryuuidOnly the payment of this booking.
statusqueryprocessing | paid | failed | refundedOnly payments in this state.
updated_sincequerydate-timeOnly payments whose booking changed at or after this instant.
limitqueryinteger 1–100Page size, 25 by default.
cursorquerystringThe next_cursor of the previous page.

Respuestas

  • 200 A page of payments
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 422 A query parameter, limit or cursor is not valid (validation_failed)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/payments?status=paid" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "data": [
    {
      "object": "payment",
      "booking_id": "00000000-0000-4000-8000-00000000b001",
      "status": "paid",
      "amount": {
        "amount": "1200.00",
        "currency": "MXN"
      },
      "method": "card",
      "paid_at": "2026-10-12T15:04:05Z",
      "refunded": {
        "amount": "0.00",
        "currency": "MXN"
      },
      "refunds": []
    }
  ],
  "next_cursor": null
}

GET/payments/{booking_id}

Obtener el pago de una reservación (solo lectura)

Scope: payments:read

Parámetros

NombreEnTipoDescripción
booking_idpathuuidobligatorio. Booking id.

Respuestas

  • 200 The payment
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 404 No such booking (not_found)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/payments/00000000-0000-4000-8000-00000000b001" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "object": "payment",
  "booking_id": "00000000-0000-4000-8000-00000000b001",
  "status": "paid",
  "amount": {
    "amount": "1200.00",
    "currency": "MXN"
  },
  "method": "card",
  "paid_at": "2026-10-12T15:04:05Z",
  "refunded": {
    "amount": "0.00",
    "currency": "MXN"
  },
  "refunds": []
}

Webhooks

GET/hooks

Listar las suscripciones de webhook que creó esta clave

Scope: webhooks:manage

Respuestas

  • 200 The subscriptions
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl "https://gotolisto.com/api/v1/hooks" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-000000009001",
      "object": "webhook_endpoint",
      "url_host": "hooks.zapier.com",
      "events": [
        "booking.created"
      ],
      "location_ids": null,
      "status": "active",
      "disabled_reason": null,
      "created_at": "2026-10-12T15:04:05Z"
    }
  ],
  "next_cursor": null
}

POST/hooks

Suscribir una URL a eventos de webhook (REST hook)

Scope: webhooks:manage

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringRetry safely: the same key and body replay the first answer for 24 hours.

Cuerpo

NombreTipoDescripción
target_urluriobligatorio. A public https URL.
eventsenum[]obligatorio.
location_idsuuid[] | nullopcional. Omit or null for every location.

Respuestas

  • 201 The subscription, with its signing secret (shown once)
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 409 Endpoint limit reached (conflict) or Idempotency-Key reused with another body (idempotency_conflict)
  • 422 The body is not valid (validation_failed)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl -X POST "https://gotolisto.com/api/v1/hooks" \
  -H "Authorization: Bearer qk_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <your-unique-id>" \
  -d '{
    "target_url": "https://hooks.zapier.com/hooks/standard/000000/sample/",
    "events": [
      "booking.created"
    ]
  }'
Respuesta de ejemplo · 201
{
  "id": "00000000-0000-4000-8000-000000009001",
  "object": "webhook_endpoint",
  "url_host": "hooks.zapier.com",
  "events": [
    "booking.created"
  ],
  "location_ids": null,
  "status": "active",
  "disabled_reason": null,
  "created_at": "2026-10-12T15:04:05Z",
  "secret": "whsec_ZG9jcy1leGFtcGxlLXNlY3JldC1ub3QtcmVhbC0zMmI="
}

DELETE/hooks/{id}

Cancelar una suscripción (solo las que creó esta clave)

Scope: webhooks:manage

Parámetros

NombreEnTipoDescripción
idpathuuidobligatorio. Subscription id.

Respuestas

  • 200 Deleted
  • 401 Missing, malformed, unknown or revoked API key (unauthorized)
  • 403 The key lacks the scope (forbidden_scope), the plan lacks the API (plan_required) or the workspace is suspended (tenant_unavailable)
  • 404 No such subscription for this key (not_found)
  • 429 Too many requests (rate_limited)
Petición de ejemplo
curl -X DELETE "https://gotolisto.com/api/v1/hooks/00000000-0000-4000-8000-000000009001" \
  -H "Authorization: Bearer qk_live_…"
Respuesta de ejemplo · 200
{
  "id": "00000000-0000-4000-8000-000000009001",
  "object": "webhook_endpoint",
  "deleted": true
}
Agenda una demoEmpieza gratis