Insightly

Create and list contacts in Insightly CRM.

CRM and salesAPI key5 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (5)
  4. create_record
  5. delete_record
  6. find_records
  7. get_record
  8. update_record
  9. Details

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.

Workflow
// 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);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "insightly",
    "piece_action": "create_record",
    "input": {
      "pod": "<pod>",
      "objectName": "Contacts",
      "fields": {}
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
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.)

InputTypeDescription
podrequiredtextYour Insightly pod (e.g., "na1", "eu1"). Find this in your API URL: https://api.{pod}.insightly.com
objectNamerequiredone of "Contacts" | "Leads" | "Opportunities" | "Organisations" | "Projects" | "Tasks" | "Events" | "Products" | "Quotations"Select the type of record to create
fieldsrequiredobject (depends on other props)Fields

delete_record

Delete Record. Delete a record by ID from a specified Insightly object

InputTypeDescription
podrequiredtextYour Insightly pod (e.g., "na1", "eu1"). Find this in your API URL: https://api.{pod}.insightly.com
objectNamerequiredone of "Contacts" | "Leads" | "Opportunities" | "Organisations" | "Projects" | "Tasks" | "Events" | "Products" | "Quotations"Select the type of record to delete
recordIdrequiredid (picked from your account)Select the record to delete

find_records

Find Records. Find records in a specified Insightly object

InputTypeDescription
podrequiredtextYour Insightly pod (e.g., "na1", "eu1").
objectNamerequiredone of "Contacts" | "Leads" | "Opportunities" | "Organisations" | "Projects" | "Tasks" | "Events" | "Products" | "Quotations"Select the type of records to find
fieldNamerequiredid (picked from your account)Select the field to search by
fieldValuerequiredtextThe value to search for
topoptionalnumberMaximum number of records to return

get_record

Get Record. Get a record by ID from a specified Insightly object

InputTypeDescription
podrequiredtextYour Insightly pod (e.g., "na1", "eu1"). Find this in your API URL: https://api.{pod}.insightly.com
objectNamerequiredone of "Contacts" | "Leads" | "Opportunities" | "Organisations" | "Projects" | "Tasks" | "Events" | "Products" | "Quotations"Select the type of record to retrieve
recordIdrequiredid (picked from your account)Select the record to retrieve

update_record

Update Record. Update an existing record's fields in a specified Insightly object

InputTypeDescription
podrequiredtextYour Insightly pod (e.g., "na1", "eu1"). Find this in your API URL: https://api.{pod}.insightly.com
objectNamerequiredone of "Contacts" | "Leads" | "Opportunities" | "Organisations" | "Projects" | "Tasks" | "Events" | "Products" | "Quotations"Select the type of object that contains the record you want to update
recordIdrequiredid (picked from your account)Select the record to update
fieldsrequiredobject (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