curl --request GET \
--url https://api.craqui.com/v1/clients \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.craqui.com/v1/clients"
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/clients', 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/clients",
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/clients"
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/clients")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craqui.com/v1/clients")
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": "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
}
}
],
"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 clientes
Los clientes activos e inactivos del estudio, del más nuevo al más viejo. Sin el permiso
clients.pii:read no traen email ni teléfono, y filtrar por email o phone responde
scope_required.
phone compara los dígitos por el final (8 o más), así que puede devolver más de un cliente; si lo
mandas con + y algún cliente coincide exacto en E.164, vienen solo esos.
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/clients \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.craqui.com/v1/clients"
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/clients', 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/clients",
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/clients"
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/clients")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craqui.com/v1/clients")
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": "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
}
}
],
"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
El email exacto, sin distinguir mayúsculas. Pide clients.pii:read.
El teléfono, con o sin código de país (8 dígitos o más). Pide clients.pii:read.
Parte del nombre o del apellido, sin distinguir tildes ni mayúsculas.
100Solo los clientes en este estado.
active, inactive Solo lo de esta sede. Id de una sede.
^ctr_[0-7][0-9a-hjkmnp-tv-z]{25}$"ctr_01hzx8m4k2a7d9q3f5w6y8z0bc"
Solo los que pasaron a ser clientes desde este instante. Instante en RFC 3339 con el offset del negocio en ese momento.
"2026-11-05T19: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.

