curl --request GET \
--url https://api.craqui.com/v1/bookings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.craqui.com/v1/bookings"
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/bookings', 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/bookings",
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/bookings"
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/bookings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craqui.com/v1/bookings")
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": "bkg_01hzx8m4k2a7d9q3f5w6y8z0bc",
"object": "booking",
"livemode": true,
"client_id": "cli_01hzx8m4k2a7d9q3f5w6y8z0bc",
"session_id": "ses_01hzx8m4k2a7d9q3f5w6y8z0bc",
"status": "confirmed",
"credits_charged": 123,
"waitlist_position": 123,
"booked_at": "2026-11-05T19:00:00-03:00",
"cancelled_at": "2026-11-05T19:00:00-03:00",
"free_cancel_until": "2026-11-05T19:00:00-03:00",
"recurring": true,
"credit_refunded": true,
"source": "api",
"created_at": "2026-11-05T19:00:00-03:00",
"updated_at": "2026-11-05T19:00:00-03:00",
"client": {
"id": "cli_01hzx8m4k2a7d9q3f5w6y8z0bc",
"object": "client",
"livemode": true,
"first_name": "Sofía",
"last_name": "Pérez",
"status": "active",
"home_center_id": "ctr_01hzx8m4k2a7d9q3f5w6y8z0bc",
"created_at": "2026-11-05T19:00:00-03:00",
"updated_at": "2026-11-05T19:00:00-03:00",
"email": "<string>",
"phone": "+59899123456",
"active_membership": {
"id": "mem_01hzx8m4k2a7d9q3f5w6y8z0bc",
"object": "membership",
"livemode": true,
"client_id": "cli_01hzx8m4k2a7d9q3f5w6y8z0bc",
"membership_plan_id": "mpl_01hzx8m4k2a7d9q3f5w6y8z0bc",
"status": "active",
"current_period_start": "2026-11-05T19:00:00-03:00",
"current_period_end": "2026-11-05T19:00:00-03:00",
"renews_at": "2026-11-05T19:00:00-03:00",
"next_credit_date": "2026-11-05",
"started_at": "2026-11-05T19:00:00-03:00",
"cancelled_at": "2026-11-05T19:00:00-03:00",
"suspension_reason": "<string>",
"discount": {
"percent": 123,
"fixed_amount": {
"amount_cents": 250000,
"currency": "UYU"
},
"periods_remaining": 123
},
"active_freeze_id": "frz_01hzx8m4k2a7d9q3f5w6y8z0bc",
"created_at": "2026-11-05T19:00:00-03:00",
"updated_at": "2026-11-05T19:00:00-03:00"
},
"credit_balance": {
"object": "credit_balance",
"livemode": true,
"client_id": "cli_01hzx8m4k2a7d9q3f5w6y8z0bc",
"total_credits": 123,
"grants": [
{
"credit_grant_id": "cgr_01hzx8m4k2a7d9q3f5w6y8z0bc",
"kind": "pack",
"credits_remaining": 123,
"expires_at": "2026-11-05T19:00:00-03:00",
"course_ids": [
"crs_01hzx8m4k2a7d9q3f5w6y8z0bc"
]
}
],
"grants_has_more": true
}
},
"session": {
"id": "ses_01hzx8m4k2a7d9q3f5w6y8z0bc",
"object": "session",
"livemode": true,
"class_id": "cls_01hzx8m4k2a7d9q3f5w6y8z0bc",
"course_id": "crs_01hzx8m4k2a7d9q3f5w6y8z0bc",
"center_id": "ctr_01hzx8m4k2a7d9q3f5w6y8z0bc",
"room_id": "room_01hzx8m4k2a7d9q3f5w6y8z0bc",
"teacher_id": "tch_01hzx8m4k2a7d9q3f5w6y8z0bc",
"starts_at": "2026-11-05T19:00:00-03:00",
"ends_at": "2026-11-05T19:00:00-03:00",
"local_date": "2026-11-05",
"local_start_time": "19:00",
"local_end_time": "19:00",
"time_zone": "America/Montevideo",
"status": "scheduled",
"capacity": 123,
"booked_count": 1,
"waitlist_count": 1,
"available_spots": 1,
"created_at": "2026-11-05T19:00:00-03:00",
"updated_at": "2026-11-05T19:00:00-03:00"
}
}
],
"has_more": true,
"next_cursor": "<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>"
}
]
}{
"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 reservas
Las reservas del estudio, de la más nueva a la más vieja. Los filtros de fecha son por la fecha local de la sesión: una reserva cuya sesión se borró queda fuera de un filtro de fecha.
Paginada por cursor: para sincronizar todo, 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/bookings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.craqui.com/v1/bookings"
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/bookings', 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/bookings",
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/bookings"
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/bookings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craqui.com/v1/bookings")
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": "bkg_01hzx8m4k2a7d9q3f5w6y8z0bc",
"object": "booking",
"livemode": true,
"client_id": "cli_01hzx8m4k2a7d9q3f5w6y8z0bc",
"session_id": "ses_01hzx8m4k2a7d9q3f5w6y8z0bc",
"status": "confirmed",
"credits_charged": 123,
"waitlist_position": 123,
"booked_at": "2026-11-05T19:00:00-03:00",
"cancelled_at": "2026-11-05T19:00:00-03:00",
"free_cancel_until": "2026-11-05T19:00:00-03:00",
"recurring": true,
"credit_refunded": true,
"source": "api",
"created_at": "2026-11-05T19:00:00-03:00",
"updated_at": "2026-11-05T19:00:00-03:00",
"client": {
"id": "cli_01hzx8m4k2a7d9q3f5w6y8z0bc",
"object": "client",
"livemode": true,
"first_name": "Sofía",
"last_name": "Pérez",
"status": "active",
"home_center_id": "ctr_01hzx8m4k2a7d9q3f5w6y8z0bc",
"created_at": "2026-11-05T19:00:00-03:00",
"updated_at": "2026-11-05T19:00:00-03:00",
"email": "<string>",
"phone": "+59899123456",
"active_membership": {
"id": "mem_01hzx8m4k2a7d9q3f5w6y8z0bc",
"object": "membership",
"livemode": true,
"client_id": "cli_01hzx8m4k2a7d9q3f5w6y8z0bc",
"membership_plan_id": "mpl_01hzx8m4k2a7d9q3f5w6y8z0bc",
"status": "active",
"current_period_start": "2026-11-05T19:00:00-03:00",
"current_period_end": "2026-11-05T19:00:00-03:00",
"renews_at": "2026-11-05T19:00:00-03:00",
"next_credit_date": "2026-11-05",
"started_at": "2026-11-05T19:00:00-03:00",
"cancelled_at": "2026-11-05T19:00:00-03:00",
"suspension_reason": "<string>",
"discount": {
"percent": 123,
"fixed_amount": {
"amount_cents": 250000,
"currency": "UYU"
},
"periods_remaining": 123
},
"active_freeze_id": "frz_01hzx8m4k2a7d9q3f5w6y8z0bc",
"created_at": "2026-11-05T19:00:00-03:00",
"updated_at": "2026-11-05T19:00:00-03:00"
},
"credit_balance": {
"object": "credit_balance",
"livemode": true,
"client_id": "cli_01hzx8m4k2a7d9q3f5w6y8z0bc",
"total_credits": 123,
"grants": [
{
"credit_grant_id": "cgr_01hzx8m4k2a7d9q3f5w6y8z0bc",
"kind": "pack",
"credits_remaining": 123,
"expires_at": "2026-11-05T19:00:00-03:00",
"course_ids": [
"crs_01hzx8m4k2a7d9q3f5w6y8z0bc"
]
}
],
"grants_has_more": true
}
},
"session": {
"id": "ses_01hzx8m4k2a7d9q3f5w6y8z0bc",
"object": "session",
"livemode": true,
"class_id": "cls_01hzx8m4k2a7d9q3f5w6y8z0bc",
"course_id": "crs_01hzx8m4k2a7d9q3f5w6y8z0bc",
"center_id": "ctr_01hzx8m4k2a7d9q3f5w6y8z0bc",
"room_id": "room_01hzx8m4k2a7d9q3f5w6y8z0bc",
"teacher_id": "tch_01hzx8m4k2a7d9q3f5w6y8z0bc",
"starts_at": "2026-11-05T19:00:00-03:00",
"ends_at": "2026-11-05T19:00:00-03:00",
"local_date": "2026-11-05",
"local_start_time": "19:00",
"local_end_time": "19:00",
"time_zone": "America/Montevideo",
"status": "scheduled",
"capacity": 123,
"booked_count": 1,
"waitlist_count": 1,
"available_spots": 1,
"created_at": "2026-11-05T19:00:00-03:00",
"updated_at": "2026-11-05T19:00:00-03:00"
}
}
],
"has_more": true,
"next_cursor": "<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>"
}
]
}{
"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
Solo lo de este cliente. Id de un cliente del estudio.
^cli_[0-7][0-9a-hjkmnp-tv-z]{25}$"cli_01hzx8m4k2a7d9q3f5w6y8z0bc"
Solo las reservas de esta sesión. Id de una sesión (una fecha de una clase).
^ses_[0-7][0-9a-hjkmnp-tv-z]{25}$"ses_01hzx8m4k2a7d9q3f5w6y8z0bc"
Solo las reservas en este estado.
confirmed, waitlisted, cancelled, attended, no_show Solo reservas de sesiones desde esta fecha local, incluida.
Fecha local del negocio, YYYY-MM-DD.
^\d{4}-\d{2}-\d{2}$"2026-11-05"
Solo reservas de sesiones hasta esta fecha local, incluida.
Fecha local del negocio, YYYY-MM-DD.
^\d{4}-\d{2}-\d{2}$"2026-11-05"
client (pide clients:read) y session (pide sessions:read), uno por parámetro. Un
client expandido sigue la misma regla de contacto que GET /v1/clients/{id}.
client, session 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.

