Close
Create leads, log activities, and manage your sales pipeline in Close.
On this page
Connect
Auth type: API key (secret_text). Paste the API key (or token) from the provider's settings into the connect dialog. It is encrypted at rest and only decrypted on the server when an action runs.
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("close", "create_lead", {
"name": "<lead name>"
});
if (!res.success) throw new Error(res.error);
ctx.log.info("Close answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "close-create-lead",
name: "Close: Create Lead",
description: "Calls Close when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("close", {
"action": "create_lead",
"name": "<lead name>"
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/close/create_lead" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"name":"<lead name>"}}'Actions
create_leadin catalog
Create Lead. Creates a new lead.
| Input | Type | Description |
|---|---|---|
namerequired | text | The name of the lead/company. |
urloptional | text | URL |
descriptionoptional | long text | Description |
contactsoptional | array | Array of contact details for this lead |
statusIdoptional | id (picked from your account) | Status |
customFieldsoptional | object (depends on other props) | Custom Fields |
find_leadin catalog
Find Lead. Search for leads with advanced filtering options
| Input | Type | Description |
|---|---|---|
search_typerequired | one of "name" | "contact_email" | "status" | Search Type |
search_queryrequired | text | Search Query |
match_typeoptional | one of "contains" | "exact" | "starts" | "ends" | Match Type |
create_contact
Create Contact. Creates a new contact.
| Input | Type | Description |
|---|---|---|
lead_idoptional | id (picked from your account) | Lead |
namerequired | text | Name |
titleoptional | text | Title |
officePhoneoptional | text | Office Phone |
mobilePhoneoptional | text | Mobile Phone |
homePhoneoptional | text | Home Phone |
directPhoneoptional | text | Direct Phone |
faxPhoneoptional | text | Fax Phone |
otherPhoneoptional | text | Other Phone |
officeEmailoptional | text | Office Email |
homeEmailoptional | text | Home Email |
directEmailoptional | text | Direct Email |
otherEmailoptional | text | Other Email |
urloptional | text | URL |
customFieldsoptional | object (depends on other props) | Custom Fields |
create_opportunity
Create Opportunity. Create a new opportunity.
| Input | Type | Description |
|---|---|---|
lead_idoptional | id (picked from your account) | Lead |
status_idrequired | id (picked from your account) | Status |
nameoptional | text | A descriptive name for the opportunity. |
noteoptional | long text | Additional details about the opportunity. |
confidenceoptional | number | The probability of winning this opportunity (0-100). |
valueoptional | number | Value |
value_periodoptional | one of "one_time" | "monthly" | "annual" | The period for the opportunity value. |
contact_idoptional | text | The ID of the contact associated with this opportunity. |
user_idoptional | id (picked from your account) | User |
custom_fieldsoptional | object (depends on other props) | Custom Fields |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
find_contact
Find Contact. Search for contacts by name, email, or other criteria with advanced filtering
| Input | Type | Description |
|---|---|---|
search_typerequired | one of "name" | "email" | "phone" | "lead_id" | Search Type |
search_queryrequired | text | Search Query |
match_typeoptional | one of "contains" | "exact" | "starts" | "ends" | Match Type |
Details
- Id
close- Category
- CRM and sales
- Tags
- crm, sales, leads, pipeline, calling
- Package
@activepieces/piece-close@0.1.4- Tier
- Community