English
AdHoc
Your brokerage firm’s clients, policies, claims, premium notices and documents in AdHoc (Custy) — to find a file from an email, report a claim or create a task.
An AdHoc connection lets the AdHoc node find, read, create and update the firm’s clients, add a contact, read policies, claims and premium notices, report or update a claim, create a task, and list, fetch or file documents in the document store. It also serves the AdHoc — new record trigger. AdHoc is the management software for insurance brokerage firms published by Custy.
The connection holds your firm’s AdHoc server address (each firm has its own, for example https://ws-prod.firm.fr), the API key, and the user code, login and password of an AdHoc user. The server obtains a two-hour token through POST /api/v1/authentification/generation; the password is sent as a SHA3-224 digest, as AdHoc requires, and the API key and user code go with every call. Key and password are encrypted at rest and never appear in a workflow.
At a glance
- Identifier:
adhoc - Family: Service
- Set up by: A member (personal) or an administrator (shared with the organisation)
- Authentication: API key or token
- Credential type:
service:adhoc - Official API documentation: https://www.custy.com/adhoc/
- Rate limit applied by Loop & Roll: 20 requests per minute and per connection; up to 2 attempts on a 429 or a 5xx
- Connection test: Yes
Step by step
The same steps are shown in the connection form of the app.
- Ask Custy to open the AdHoc web services (“WS ADHOC”) for your firm: you receive the server address and an API key.
- In AdHoc, create a user dedicated to automations, ticked “new services user”, with only the rights it needs.
- Enter below the server address, the API key, and that user’s code, login and password.
Connection fields
| Field | Kind | Required | Notes |
|---|---|---|---|
AdHoc server address (url) | Text | Yes | Over https. Only the origin is kept: “/api/v1” pasted with the address is ignored. |
API key (X-Api-Key) (apiKey) | Secret — never shown again | Yes | |
User code (UserCode) (userCode) | Text | Yes | |
Login (login) | Text | Yes | |
Password (password) | Secret — never shown again | Yes | Entered as is: its SHA3-224 digest is computed at each sign-in, never stored. |
Before you start
- The web services are not open by default. Ask Custy to open the AdHoc web services (“WS ADHOC”) for your firm: you receive the server address and an API key.
- A dedicated user. Create in AdHoc a user reserved for automations, ticked “new services user”, with only the rights it needs: a workflow acts with its rights.
- A shared server. AdHoc serves the firm’s account managers first, and its server is slow on large lists: Loop & Roll sends at most one request every three seconds per connection, and each list returns at most one hundred items.
Add the connection
- Ask Custy to open the AdHoc web services (“WS ADHOC”) for your firm: you receive the server address and an API key.
- In AdHoc, create a user dedicated to automations, ticked “new services user”, with only the rights it needs.
- In Connections, Third-party services section, click Connect on the AdHoc card. Give it a Name, choose the Scope (Personal or Organisation), enter the AdHoc server address, the API key (X-Api-Key), the User code (UserCode), the Login and the Password, then click Create the connection.
- Click Configure, then Test the connection: the token is obtained, then
GET /api/v1/clients?limit=1reads one client.
Calls used
| Action | AdHoc call |
|---|---|
| Find a client, Get a client | GET /api/v1/clients, GET /api/v1/clients/{codeClient} |
| Create a client, Update a client | POST /api/v1/clients, PUT /api/v1/clients/{codeClient} |
| Add a contact to a client | POST /api/v1/clients/{codeClient}/contacts |
| List policies, Get a policy | GET /api/v1/contrats, GET /api/v1/contrats/{codeContratInterne} |
| List claims, Get a claim | GET /api/v1/sinistres, GET /api/v1/sinistres/{codeSinistre} |
| Report a claim, Update a claim | POST /api/v1/sinistres, PUT /api/v1/sinistres/{codeSinistre} |
| List premium notices | GET /api/v1/quittances |
| Create a task | POST /api/v1/taches |
| List stored documents, Fetch a stored document, File attachments | GET /api/v1/documents, GET /api/v1/documents/{idNoeud}/download, POST /api/v1/documents |
| Connection lists | GET /api/v1/parametres/… (users, claim types, contact roles, client types, subtypes and natures) |
| Trigger | GET /api/v1/sinistres, /contrats or /clients, filtered on the creation or modification date |
What the API does not allow
- No follow-up (“suivi”) or event can be created: they are read-only. To log an exchange, create a task or complete a claim’s notes.
- No modification-date filter on premium notices, settlements and documents: no trigger for them.
- Date filters work by day: the trigger rereads the previous day and only reports what it has never seen.
Common errors
| Message or code | Cause | What to do |
|---|---|---|
Test: “the service refuses the key” (integration.unauthorized) | Login, password, API key or user code refused, or insufficient rights. | Check the five values and the user’s rights in AdHoc. |
integration.rejected | AdHoc refused the request (missing required field, unknown reference code). | Fix the node settings. |
integration.not_found | The given code does not exist in AdHoc. | Check the code and the chosen connection. |
integration.unavailable | AdHoc server slow or unavailable (it cuts off at 90 seconds). | Temporary: the engine resumes the step later. Ask for fewer items. |
integration.connection_unusable | Connection deleted, inactive, outside your scope, or an address that is not https. | Choose a valid connection, fix the address. |
Nodes that use this connection
- AdHoc — new record —
trigger.adhoc - AdHoc —
adhoc.api