Trinks
Trinks is the NicoApp for integrating with the Trinks scheduling platform, used by beauty salons, barbershops and aesthetic clinics. With it, your flow creates, edits, looks up and cancels appointments.
Authentication
- Go to “Minha área pessoal”

- Go to “Meu Cadastro”

- Access your Trinks registration through this link (login required).
- Go to the Token de API Pessoal section and click Gerar token.

- Copy the token shown and enter it in the NicoApp’s Token (X-Api-Key) field.
Besides the token, the app also requires the estabelecimentoId header — the ID of the Trinks business this token has access to. Without it, Trinks rejects the request even with a valid token.
GET https://api.trinks.com/v1/estabelecimentos (X-Api-Key header with the token) — this endpoint lists every business the token has access to. Take the id field of the desired business from the response and enter it in the estabelecimentoId field when installing the NicoApp. If the token has access to a single business (the most common case), it will be the only item in the list.Request Limits
The Trinks API has per-minute and per-month request limits, applied per API key (token).
Per minute: 60 requests
Per month: 5000 requests
When either of the two limits is exceeded, Trinks responds with HTTP 429 (Too Many Requests) until the window is renewed (the next minute or the next month). The documentation does not indicate different limits per contracted plan — for larger volumes, you need to negotiate directly with Trinks support.
What the NicoApp does
The app has 20 actions, organized into 6 groups. All of them use Basic/API Key (X-Api-Key + estabelecimentoId) and, when Trinks rejects the operation, return the API’s actual error message through the block’s error path.
Appointments
Clients
Client Labels
Client Phones
Credits and Gift Cards
Catalog
Tips and notes
- Automatic pagination: List Services and List Professionals already go through all of Trinks’ pages on their own (internal loop over
page/totalPages), so you receive the complete list in a single call to the action. - Full phone number in a single field: in the phone fields (Create Client, Add client phone), enter the full phone number with the area code — the app splits area code and number automatically (removing country code 55 when present).
- Chained IDs: the Client ID comes from Create/List Clients and feeds virtually every client action (labels, phones, credit, gift card, appointment). The Appointment ID comes from Create Appointment and feeds Edit, Edit Status and Cancel.
- Error handling: when Trinks rejects an operation (invalid data, insufficient permission, request limit reached), the action fails and returns Trinks’ actual error message — use the block’s error path to handle it in the flow.
- Appointment status: the values accepted by Edit Status (and the fixed "cancelado" status used by Cancel Appointment) follow the codes defined by Trinks — confirm the valid values in Trinks’ reference documentation before using them in production.
- Save requests: with the limit of 60/min and 5000/month per token, avoid querying the catalog (services/professionals) on every message — store the IDs in bot variables whenever possible.

