curl --request GET \
--url https://api.craqui.com/v1/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.craqui.com/v1/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.craqui.com/v1/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.craqui.com/v1/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.craqui.com/v1/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.craqui.com/v1/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craqui.com/v1/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "evt_79p14jhbsm8gaaj1bwvqa5jfg5",
"object": "event",
"type": "booking.attended",
"created_at": "2026-12-01T09:05:12-03:00",
"livemode": true,
"data": {
"object_id": "bkg_01j5cceh8fkntbjm406cvh2kwm",
"object_type": "booking"
},
"previous_attributes": {
"status": "confirmed"
}
},
{
"id": "evt_2yh1kwctjx8f58e1vvrn26jtfm",
"object": "event",
"type": "booking.waitlisted",
"created_at": "2026-11-30T21:14:50-03:00",
"livemode": true,
"data": {
"object_id": "bkg_01jhngfzx1pzdg0f74qtqz65z4",
"object_type": "booking"
},
"previous_attributes": {}
},
{
"id": "evt_5fkdf0bg0w9b7rdm990g1h6z8p",
"object": "event",
"type": "booking.created",
"created_at": "2026-11-29T20:47:03-03:00",
"livemode": true,
"data": {
"object_id": "bkg_01jbe9wj3870617xp1spzk0a7w",
"object_type": "booking"
},
"previous_attributes": {}
},
{
"id": "evt_63qzjb33kp9g3a440mjsmwqq10",
"object": "event",
"type": "payment.created",
"created_at": "2026-11-27T18:21:14-03:00",
"livemode": true,
"data": {
"object_id": "pay_01jtgmw7szee210a7q1nezmyyk",
"object_type": "payment"
},
"previous_attributes": {}
},
{
"id": "evt_7ydz49me0c8azrxyrdnyytv2nn",
"object": "event",
"type": "membership.renewed",
"created_at": "2026-11-14T00:00:04-03:00",
"livemode": true,
"data": {
"object_id": "mem_01j1q27t44qvr6v2s50cv4rbvq",
"object_type": "membership"
},
"previous_attributes": {
"current_period_start": "2026-10-14T00:00:00-03:00",
"current_period_end": "2026-11-14T00:00:00-03:00"
}
}
],
"has_more": false,
"next_cursor": null
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "session_id",
"code": "invalid_prefix",
"detail": "<string>"
}
]
}{
"type": "https://docs.craqui.com/errors/revoked_api_key",
"title": "La clave fue revocada",
"status": 401,
"code": "revoked_api_key",
"detail": "Crea una clave nueva en Configuración → Integraciones.",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc"
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "session_id",
"code": "invalid_prefix",
"detail": "<string>"
}
]
}{
"type": "https://docs.craqui.com/errors/sandbox_unavailable",
"title": "Tu estudio de prueba no está listo",
"status": 409,
"code": "sandbox_unavailable",
"detail": "Restablece tus datos de prueba en Configuración → Integraciones y vuelve a intentar.",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc"
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "session_id",
"code": "invalid_prefix",
"detail": "<string>"
}
]
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "session_id",
"code": "invalid_prefix",
"detail": "<string>"
}
]
}Listar eventos
Los eventos del estudio de los últimos 30 días, del más nuevo al más viejo. Cada evento dice qué cambió y el id del objeto, nunca sus datos: para ver cómo quedó, pide el objeto con su ruta.
Solo ves los eventos de los recursos que tu clave puede leer: booking.* necesita bookings:read,
session.* sessions:read, client.* clients:read, credit_grant.* credits:read,
membership.* memberships:read, fee.* fees:read, payment.* payments:read y refund.*
refunds:read. Pedir con type u object_id un recurso que tu clave no puede leer responde
event_type_not_permitted.
Para no perderte nada, consulta por ventanas de created_at que se solapen al menos 10 minutos y
descarta los id que ya procesaste: el orden es el de alta del evento, y un cambio de una operación
larga puede aparecer un poco después que otros más nuevos.
Paginada por cursor: pide limit=100 y sigue next_cursor.
Solo para estudios: en una academia responde wrong_vertical. Un parámetro que la ruta no
declara responde validation_failed con unknown_parameter.
curl --request GET \
--url https://api.craqui.com/v1/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.craqui.com/v1/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.craqui.com/v1/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.craqui.com/v1/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.craqui.com/v1/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.craqui.com/v1/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craqui.com/v1/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "evt_79p14jhbsm8gaaj1bwvqa5jfg5",
"object": "event",
"type": "booking.attended",
"created_at": "2026-12-01T09:05:12-03:00",
"livemode": true,
"data": {
"object_id": "bkg_01j5cceh8fkntbjm406cvh2kwm",
"object_type": "booking"
},
"previous_attributes": {
"status": "confirmed"
}
},
{
"id": "evt_2yh1kwctjx8f58e1vvrn26jtfm",
"object": "event",
"type": "booking.waitlisted",
"created_at": "2026-11-30T21:14:50-03:00",
"livemode": true,
"data": {
"object_id": "bkg_01jhngfzx1pzdg0f74qtqz65z4",
"object_type": "booking"
},
"previous_attributes": {}
},
{
"id": "evt_5fkdf0bg0w9b7rdm990g1h6z8p",
"object": "event",
"type": "booking.created",
"created_at": "2026-11-29T20:47:03-03:00",
"livemode": true,
"data": {
"object_id": "bkg_01jbe9wj3870617xp1spzk0a7w",
"object_type": "booking"
},
"previous_attributes": {}
},
{
"id": "evt_63qzjb33kp9g3a440mjsmwqq10",
"object": "event",
"type": "payment.created",
"created_at": "2026-11-27T18:21:14-03:00",
"livemode": true,
"data": {
"object_id": "pay_01jtgmw7szee210a7q1nezmyyk",
"object_type": "payment"
},
"previous_attributes": {}
},
{
"id": "evt_7ydz49me0c8azrxyrdnyytv2nn",
"object": "event",
"type": "membership.renewed",
"created_at": "2026-11-14T00:00:04-03:00",
"livemode": true,
"data": {
"object_id": "mem_01j1q27t44qvr6v2s50cv4rbvq",
"object_type": "membership"
},
"previous_attributes": {
"current_period_start": "2026-10-14T00:00:00-03:00",
"current_period_end": "2026-11-14T00:00:00-03:00"
}
}
],
"has_more": false,
"next_cursor": null
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "session_id",
"code": "invalid_prefix",
"detail": "<string>"
}
]
}{
"type": "https://docs.craqui.com/errors/revoked_api_key",
"title": "La clave fue revocada",
"status": 401,
"code": "revoked_api_key",
"detail": "Crea una clave nueva en Configuración → Integraciones.",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc"
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "session_id",
"code": "invalid_prefix",
"detail": "<string>"
}
]
}{
"type": "https://docs.craqui.com/errors/sandbox_unavailable",
"title": "Tu estudio de prueba no está listo",
"status": 409,
"code": "sandbox_unavailable",
"detail": "Restablece tus datos de prueba en Configuración → Integraciones y vuelve a intentar.",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc"
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "session_id",
"code": "invalid_prefix",
"detail": "<string>"
}
]
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "session_id",
"code": "invalid_prefix",
"detail": "<string>"
}
]
}Authorizations
Clave del negocio. sk es una clave completa (todo lo que el rol de quien la creó puede dar)
y rk una restringida a los permisos que se eligieron al crearla. Solo se usa desde un
servidor: un pedido desde un navegador se rechaza con browser_not_allowed.
Headers
Versión de la API para este pedido (YYYY-MM-DD). Si no la mandas, se usa la versión fijada en
la clave cuando se creó.
^\d{4}-\d{2}-\d{2}$"2026-12-01"
Query Parameters
Un tipo exacto (booking.cancelled) o todos los de un recurso (booking.*). Uno que no existe responde validation_failed con event_type_unknown.
64Solo los eventos de este objeto, por su id público (bkg_…, ses_…, cli_…).
64Solo los eventos desde este instante, incluido. Instante en RFC 3339 con el offset del negocio en ese momento.
"2026-12-02T19:00:00-03:00"
Solo los eventos hasta este instante, incluido. Instante en RFC 3339 con el offset del negocio en ese momento.
"2026-12-02T19:00:00-03:00"
Cuántos elementos traer, de 1 a 100.
1 <= x <= 100El next_cursor de la página anterior. Sirve solo para la misma ruta con los mismos filtros: con
otros, la respuesta es invalid_cursor.

