Insightly
Create and list contacts in Insightly CRM.
On this page
Connect
Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("insightly", action, input) resolves with the provider's answer and rejects when Insightly isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "insightly"} says whether yours can call it.
// workflows/notify.ts: call Insightly when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellInsightly = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when Insightly isn't connected.
const output = await step.run("Insightly", () =>
step.ctx.integrations.invoke("insightly", "create_record", {
"pod": "<pod>",
"objectName": "Contacts",
"fields": {}
}),
);
step.ctx.log("Insightly answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "insightly",
"piece_action": "create_record",
"input": {
"pod": "<pod>",
"objectName": "Contacts",
"fields": {}
},
"env": "dev"
}
}curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/insightly/create_record" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"pod":"<pod>","objectName":"Contacts","fields":{}}}'Actions
create_record
Create Record. Create a new record in a specified Insightly object (Contact, Lead, Opportunity, etc.)
| Input | Type | Description |
|---|---|---|
podrequired | text | Your Insightly pod (e.g., "na1", "eu1"). Find this in your API URL: https://api.{pod}.insightly.com |
objectNamerequired | one of "Contacts" | "Leads" | "Opportunities" | "Organisations" | "Projects" | "Tasks" | "Events" | "Products" | "Quotations" | Select the type of record to create |
fieldsrequired | object (depends on other props) | Fields |
delete_record
Delete Record. Delete a record by ID from a specified Insightly object
| Input | Type | Description |
|---|---|---|
podrequired | text | Your Insightly pod (e.g., "na1", "eu1"). Find this in your API URL: https://api.{pod}.insightly.com |
objectNamerequired | one of "Contacts" | "Leads" | "Opportunities" | "Organisations" | "Projects" | "Tasks" | "Events" | "Products" | "Quotations" | Select the type of record to delete |
recordIdrequired | id (picked from your account) | Select the record to delete |
find_records
Find Records. Find records in a specified Insightly object
| Input | Type | Description |
|---|---|---|
podrequired | text | Your Insightly pod (e.g., "na1", "eu1"). |
objectNamerequired | one of "Contacts" | "Leads" | "Opportunities" | "Organisations" | "Projects" | "Tasks" | "Events" | "Products" | "Quotations" | Select the type of records to find |
fieldNamerequired | id (picked from your account) | Select the field to search by |
fieldValuerequired | text | The value to search for |
topoptional | number | Maximum number of records to return |
get_record
Get Record. Get a record by ID from a specified Insightly object
| Input | Type | Description |
|---|---|---|
podrequired | text | Your Insightly pod (e.g., "na1", "eu1"). Find this in your API URL: https://api.{pod}.insightly.com |
objectNamerequired | one of "Contacts" | "Leads" | "Opportunities" | "Organisations" | "Projects" | "Tasks" | "Events" | "Products" | "Quotations" | Select the type of record to retrieve |
recordIdrequired | id (picked from your account) | Select the record to retrieve |
update_record
Update Record. Update an existing record's fields in a specified Insightly object
| Input | Type | Description |
|---|---|---|
podrequired | text | Your Insightly pod (e.g., "na1", "eu1"). Find this in your API URL: https://api.{pod}.insightly.com |
objectNamerequired | one of "Contacts" | "Leads" | "Opportunities" | "Organisations" | "Projects" | "Tasks" | "Events" | "Products" | "Quotations" | Select the type of object that contains the record you want to update |
recordIdrequired | id (picked from your account) | Select the record to update |
fieldsrequired | object (depends on other props) | The new field values to update. |
Details
- Id
insightly- Category
- CRM and sales
- Tags
- crm, contacts, projects, small-business
- Package
@activepieces/piece-insightly@0.1.3- Runs
- Through the integration runner