Skip to content

Documentation · API v1.0.0

Public API for agencies

Connect Frolay Care to your CRM, your invoicing tool or your automations (Zapier, Make, n8n). Included from the Agency Pack 25.

Authentication

Create a key in your agency space (Clés d’API) and choose its permissions. Send it in the header of every request:

curl https://care.frolay.com/api/public/v1/clients \
  -H "Authorization: Bearer fck_xxxxxxxxxx_…"

A key only accesses your agency’s clients. Limit: 120 requests per minute per key. Responses are in JSON; lists are paginated (page, per_page up to 100) with a meta object.

Errors

Format: {"error": {"code": "…", "message": "…"}}. 401 invalid, expired or revoked key · 402 pack without API access · 403 permission or IP address not allowed · 404 not found (or outside your agency) · 422 invalid data (details in errors) · 429 rate limit reached.

Permissions

  • clients:read Read clients
  • clients:write Create and edit clients
  • sites:read Read websites, their uptime and performance
  • sites:write Add websites, pause or resume them
  • incidents:read Read incidents
  • tickets:read Read interventions and their messages
  • tickets:write Create interventions and reply to them
  • time:read Read time spent (invoicing)
  • reports:read Read and download monthly reports
  • billing:read Read your clients’ subscriptions

Getting notified of events

Set up a webhook (Paramètres → Alertes): website down or restored, incident, intervention. Your tool receives the event, then reads the details through the API.

Key

get/me

Agency and scopes of the key in use

Clients

get/clientsclients:read

List clients

  • page (parameter, integer) — Page (défaut 1).
  • per_page (parameter, integer) — Éléments par page (défaut 25, maximum 100).
  • search (parameter, string) — Filter by name.
post/clientsclients:write

Create a client

  • name (body, string, required)
  • billing_email (body, string)
get/clients/{client_id}clients:read

Client details

  • client_id (path, string) — Client ID
patch/clients/{client_id}clients:write

Edit a client

  • client_id (path, string) — Client ID
  • name (body, string)
  • billing_email (body, string)

Websites

get/sitessites:read

List websites

  • page (parameter, integer) — Page (défaut 1).
  • per_page (parameter, integer) — Éléments par page (défaut 25, maximum 100).
  • client_id (parameter, string) — Filter by client.
  • status (parameter, string) — Filter by status (up, down, degraded, paused…).
post/sitessites:write

Add a website to monitor

  • client_id (body, string, required)
  • url (body, string, required) — e.g. https://boulangerie-martin.fr
  • name (body, string)
get/sites/{site_id}sites:read

Website details, with uptime and response time

  • site_id (path, string) — Website ID
post/sites/{site_id}/pausesites:write

Pause monitoring

  • site_id (path, string) — Website ID
post/sites/{site_id}/resumesites:write

Resume monitoring

  • site_id (path, string) — Website ID

Incidents

get/incidentsincidents:read

List incidents

  • page (parameter, integer) — Page (défaut 1).
  • per_page (parameter, integer) — Éléments par page (défaut 25, maximum 100).
  • client_id (parameter, string) — Filter by client.
  • site_id (parameter, string) — Filter by website.
  • status (parameter, string) — open or resolved.

Interventions

get/ticketstickets:read

List interventions

  • page (parameter, integer) — Page (défaut 1).
  • per_page (parameter, integer) — Éléments par page (défaut 25, maximum 100).
  • client_id (parameter, string) — Filter by client.
  • status (parameter, string) — open or closed.
  • updated_since (parameter, string) — Modified since (ISO 8601), for syncing.
post/ticketstickets:write

Create an intervention request

  • client_id (body, string, required)
  • site_id (body, string)
  • title (body, string, required)
  • description (body, string, required)
  • category (body, string, required) — values: bug, incident_repair, cms_update, plugin_update, php_maintenance, app_maintenance, performance, display, server_error, database, migration, hack_cleanup, woocommerce, prestashop, design_tweak, feature_change, custom_development, audit, other
  • urgency (body, string) — values: low, normal, high, critical
get/tickets/{ticket_id}tickets:read

Intervention details and its messages

  • ticket_id (path, string) — Intervention ID
post/tickets/{ticket_id}/messagestickets:write

Reply in an intervention

  • ticket_id (path, string) — Intervention ID
  • body (body, string, required)

Time spent

get/time-entriestime:read

Time spent on interventions (invoicing)

  • page (parameter, integer) — Page (défaut 1).
  • per_page (parameter, integer) — Éléments par page (défaut 25, maximum 100).
  • client_id (parameter, string) — Filter by client.
  • from (parameter, string) — From (YYYY-MM-DD).
  • to (parameter, string) — To (YYYY-MM-DD).
  • billing (parameter, string) — included, billable or non_billable.

Reports

get/reportsreports:read

Monthly reports (signed PDF link)

  • page (parameter, integer) — Page (défaut 1).
  • per_page (parameter, integer) — Éléments par page (défaut 25, maximum 100).
  • client_id (parameter, string) — Filter by client.
  • site_id (parameter, string) — Filter by website.

Billing

get/client-subscriptionsbilling:read

Your clients’ subscriptions (agency billing)

  • page (parameter, integer) — Page (défaut 1).
  • per_page (parameter, integer) — Éléments par page (défaut 25, maximum 100).
  • client_id (parameter, string) — Filter by client.
  • status (parameter, string) — Filter by status.

OpenAPI 3.1 specification (for Postman, Insomnia or a client generator): https://care.frolay.com/api/public/v1/openapi.json