Actions46
- Agendamentos Actions
- GET /v1/agendamentos
- POST /v1/agendamentos
- GET /v1/agendamentos/{id}
- PUT /v1/agendamentos/{agendamentoId}
- PATCH /v1/agendamentos/{agendamentoId}/status/confirmado
- PATCH /v1/agendamentos/{agendamentoId}/status/cancelado
- PATCH /v1/agendamentos/{agendamentoId}/status/finalizado
- PATCH /v1/agendamentos/{agendamentoId}/status/clientefaltou
- PATCH /v1/agendamentos/{agendamentoId}/status/ematendimento
- GET /v1/agendamentos/profissionais/{data}
- Clientes Actions
- Clientes Creditos Actions
- Clientes Etiquetas Actions
- Clientes Telefones Actions
- Clientes Vales Presentes Actions
- Clube De Assinaturas Actions
- Estabelecimentos Actions
- Etiquetas Actions
- Fidelidade Actions
- Financeiro Formas Pagamento Actions
- Financeiro Motivos Descontos Actions
- Financeiro Transacoes Actions
- Financeiro Vendas De Produto Actions
- Produtos Actions
- Profissionais Actions
- Servicos Actions
Overview
This node integrates with the Trinks API to create a new phone number entry for a specific client. It is designed to send a POST request to the endpoint /v1/clientes/{clienteId}/telefones, adding telephone details such as area code, number, type, and country code to a client's profile.
Common scenarios where this node is useful include:
- Automating customer data management by programmatically adding phone numbers to client records.
- Synchronizing contact information from other systems into Trinks.
- Bulk updating or enriching client profiles with multiple phone contacts.
For example, you could use this node in a workflow that processes new customer signups and automatically adds their phone numbers to the Trinks system.
Properties
| Name | Meaning |
|---|---|
| Cliente Id | The unique identifier of the client to whom the phone number will be added. |
| Ddd | The area code (local dialing code) of the phone number. |
| Numero | The actual phone number digits. |
| Tipo Id | The type identifier of the phone number (e.g., mobile, landline). |
| Ddi | The international dialing code (country code) of the phone number. |
Output
The node outputs JSON data representing the response from the Trinks API after creating the phone number. This typically includes confirmation details of the newly created phone record, such as its ID and stored values.
If an error occurs, the output JSON will contain an error field with the error message.
The node does not output binary data.
Dependencies
- Requires an API key credential and an establishment ID credential configured in n8n to authenticate requests to the Trinks API.
- The node sends HTTP requests to
https://api.trinks.com. - The request headers include
Accept: application/json,Content-Type: application/json, the API key, and the establishment ID.
Troubleshooting
- Operation Not Found Error: If the specified operation is incorrect or missing, the node logs available operations and throws an error indicating the operation was not found. Ensure the operation name matches exactly
"POST /v1/clientes/{clienteId}/telefones". - Authentication Errors: Missing or invalid API key or establishment ID credentials will cause authentication failures. Verify that these credentials are correctly set up in n8n.
- Invalid Input Data: Providing invalid or incomplete phone number details (e.g., empty
numeroor invalidtipoId) may result in API errors. Validate input properties before execution. - Network Issues: Connectivity problems to
api.trinks.comwill cause request failures. Check network access and proxy settings if applicable.
Links and References
- Trinks API Documentation (general reference; exact endpoint docs may require login)
- n8n HTTP Request Node documentation for understanding request configuration: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/