Account, usage, audit and SMS

Check the plan, active modules and usage against the limits, members, integration status, the audit log and sending SMS.

These endpoints describe the account the key works in and give access to cross-cutting services: audit and SMS. They are read-only, except for sending SMS. Managing the subscription, payments, members or the API keys themselves remains app-only.

Scopes: account:read, audit:read, sms:read and sms:send.

Account summary

GET/api/v1/account/account:read
{
  "organization": { "id": 5, "name": "Talleres Martín S.L.", "slug": "talleres-martin", "vat_id": "B12345674", "country": "ES", "currency": "EUR", "language": "es", "timezone": "Europe/Madrid", "expediente_mode": "judicial", "created_at": "2025-03-01T09:12:00Z" },
  "subscription": { "plan": { "slug": "pro", "name": "Pro" }, "status": "active", "billing_cycle": "yearly", "current_period_start": "2026-03-01", "current_period_end": "2027-03-01", "trial_end": null, "cancel_at_period_end": false },
  "billing_state": "active",
  "access_level": "full",
  "modules": [
    { "key": "module_crm", "label": "CRM", "enabled": true },
    { "key": "module_hr", "label": "RRHH & Nóminas", "enabled": false }
  ],
  "usage": [
    { "feature": "invoices_per_year", "name": "Facturas al año", "limit": 1000, "used": 214, "remaining": 786, "is_hard_limit": true, "unit": "facturas", "period": "2026" }
  ]
}
JSON

It contains no payment details. In usage, limit: 0 means unlimited and period is the year (2026), the month or total depending on the limit. Use it when your integration starts to know which modules you can use (avoiding 403 module_not_available) and whether the account is read-only (access_level: "read_only", e.g. with a pending payment). billing_state: none, trialing, active, past_due, action_required, paused or canceled.

EndpointReturns
GET /account/members/Active members (id, email, name, role). Use their id in fields such as assigned_to.
GET /usage/summary/ · GET /usage/feature/?key=invoices_per_yearUsage for the period against the plan limits.
GET /plans/ · GET /plans/{id}/pricing/ · GET /features/Plans, pricing and features catalog.
GET /integrations/status/Active cloud storage (Google Drive or Dropbox) and its status.
GET /integrations/google-drive/status/ · …/dropbox/status/ · …/stripe-connect/status/ · …/shopify/status/Status of each integration, without tokens or keys.

Audit log

GET/api/v1/auditlog/audit:read

Paginated list of creations, changes and deletions (documents, contacts, products, payments, expenses…) and of API key access to clinical data. Each entry has created_at, action, model, object_id, username, ip and changes.

FilterDescription
actionCREATE, UPDATE, DELETE or ACCESS (clinic reads).
model, object_idModel (e.g. Invoice, Patient) and record.
user_idUser who made the change.
created_after, created_beforeDate range.

See what is recorded for the clinic in Audit and GDPR.

SMS

sms:read gives access to GET /sms/balance/ (free SMS this month, bundle credits and sends), GET /sms/bundles/ and GET /sms/history/ (paginated, with sent_after/sent_before).

POST/api/v1/sms/send/sms:send
{ "to": "+34600111222", "message": "Talleres Martín: your vehicle is ready for pickup. Open 9am-7pm." }
JSON
  • message: up to 480 characters. to in international format (a 9-digit Spanish number gets +34 added).
  • Uses credits: first the 5 free SMS of the month, then bundle credits. The response (201) includes the SMS and the remaining balance.
  • Errors: 402 insufficient_sms_credits (no credits; bundles are bought in the app), 429 sms_rate_limited (10 per minute per organization and 1 per minute to the same number; honor Retry-After), 400 invalid_phone, 502 sms_delivery_failed and 503 sms_unavailable.

Use an Idempotency-Key when retrying so the SMS is not sent (and charged) twice.