Folk
Create and list contacts in Folk's collaborative CRM.
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("folk", "createCompany", {
"name": "<company name>"
});
if (!res.success) throw new Error(res.error);
ctx.log.info("Folk answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "folk-createcompany",
name: "Folk: Create Company",
description: "Calls Folk when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("folk", {
"action": "createCompany",
"name": "<company name>"
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/folk/createCompany" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"name":"<company name>"}}'Actions
createCompanyin catalog
Create Company. Create a new company in your Folk workspace. You can add emails, links, phone numbers, and assign it to a group.
| Input | Type | Description |
|---|---|---|
namerequired | text | The name of the company |
descriptionoptional | long text | A short description of the company |
industryoptional | text | The industry the company operates in |
addressesoptional | array | Physical addresses for the company. The first address is primary. |
emailsoptional | array | Email addresses for the company. The first email is primary. |
phonesoptional | array | Phone numbers for the company. The first phone is primary. |
urlsoptional | array | Website URLs for the company. The first URL is primary. |
groupIdoptional | id (picked from your account) | Enter a Folk group ID (e.g., grp_abc123). Groups help you organize your contacts. |
createPersonin catalog
Create Person. Create a new person in your Folk workspace. You can link them to a company, add contact details, and assign to a group.
| Input | Type | Description |
|---|---|---|
firstNameoptional | text | The first name of the person |
lastNameoptional | text | The last name of the person |
fullNameoptional | text | The full name of the person (alternative to first/last) |
descriptionoptional | long text | A short description of the person |
birthdayoptional | text | The birthday in YYYY-MM-DD format |
jobTitleoptional | text | The job title of the person |
companyNamesoptional | array | The names of companies to associate with the person. The first company will be primary. |
companyIdsoptional | ids (picked from your account) | Select companies to associate with the person. |
addressesoptional | array | Physical addresses for the person. The first address is primary. |
emailsoptional | array | Email addresses for the person. The first email is primary. |
phonesoptional | array | Phone numbers for the person. The first phone is primary. |
urlsoptional | array | Website URLs for the person. The first URL is primary. |
groupIdoptional | id (picked from your account) | Enter a Folk group ID (e.g., grp_abc123). Groups help you organize your contacts. |
findCompanyin catalog
Find Company. Search for companies in your Folk workspace by name or email address.
| Input | Type | Description |
|---|---|---|
queryrequired | text | Enter company name or email to search for |
findPersonin catalog
List People. Retrieve a paginated list of people in your Folk workspace with optional filtering.
| Input | Type | Description |
|---|---|---|
limitoptional | number | The number of items to return (1-100) |
cursoroptional | text | A cursor for pagination. Use the nextLink value from a previous response. |
combinatoroptional | one of "and" | "or" | The logical operator to combine multiple filters |
nameFilteroptional | text | Filter by person name (contains) |
emailFilteroptional | text | Filter by email address (contains) |
getCompanyin catalog
Get Company. Retrieve detailed information about a company from your Folk workspace.
| Input | Type | Description |
|---|---|---|
companyIdrequired | id (picked from your account) | Select a company from your Folk workspace. |
getPersonin catalog
Get Person. Retrieve detailed information about a person from your Folk workspace.
| Input | Type | Description |
|---|---|---|
personIdrequired | id (picked from your account) | Select a person from your Folk workspace. |
updateCompany
Update Company. Update an existing company in your Folk workspace. Select the company from the dropdown to update its details.
| Input | Type | Description |
|---|---|---|
companyIdrequired | id (picked from your account) | Select a company from your Folk workspace. |
nameoptional | text | The name of the company |
descriptionoptional | long text | A short description of the company |
industryoptional | text | The industry the company operates in |
addressesoptional | array | Physical addresses for the company. The first address is primary. |
emailsoptional | array | Email addresses for the company. The first email is primary. |
phonesoptional | array | Phone numbers for the company. The first phone is primary. |
urlsoptional | array | Website URLs for the company. The first URL is primary. |
groupIdoptional | id (picked from your account) | Enter a Folk group ID (e.g., grp_abc123). Groups help you organize your contacts. |
updatePerson
Update Person. Update an existing person in your Folk workspace with new information.
| Input | Type | Description |
|---|---|---|
personIdrequired | id (picked from your account) | Select a person from your Folk workspace. |
firstNameoptional | text | The first name of the person |
lastNameoptional | text | The last name of the person |
fullNameoptional | text | The full name of the person (alternative to first/last) |
descriptionoptional | long text | A short description of the person |
birthdayoptional | text | The birthday in YYYY-MM-DD format |
jobTitleoptional | text | The job title of the person |
companyIdsoptional | ids (picked from your account) | Select companies to associate with the person. |
companyNamesoptional | array | Company names to create or associate with. Companies will be created if they don't exist. |
addressesoptional | array | Physical addresses for the person. The first address is primary. |
emailsoptional | array | Email addresses for the person. The first email is primary. |
phonesoptional | array | Phone numbers for the person. The first phone is primary. |
urlsoptional | array | Website URLs for the person. The first URL is primary. |
groupIdoptional | id (picked from your account) | Enter a Folk group ID (e.g., grp_abc123). Groups help you organize your contacts. |
Details
- Id
folk- Category
- CRM and sales
- Tags
- crm, contacts, relationships, collaborative
- Package
@activepieces/piece-folk@0.1.4- Tier
- Community