Maton

folk

Access the folk API with managed authentication. Read people, companies, groups, notes, tasks, interactions, and campaigns; create and update contacts, notes, and tasks. All access runs through the Maton gateway and the maton CLI.

Permissions

Suggested read access

In the Console, Read limits the connection to these 42 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.

Reference

Paths start with v1/: https://api.folk.app/v1/people becomes /folk/v1/people.

Connect with maton connection create folk; the folk connection guide shows where to create the API key.

Users

maton api '/folk/v1/users/me'
maton api '/folk/v1/users'

Response:

{
  "data": {"id": "usr_9f1c2a7e", "fullName": "Alex Lee", "email": "you@example.com"}
}

People

List People

maton api '/folk/v1/people?limit=20'

Response:

{
  "data": {
    "items": [
      {
        "id": "per_3b8d0c41",
        "firstName": "Sam",
        "lastName": "Park",
        "fullName": "Sam Park",
        "jobTitle": "CTO",
        "emails": ["sam@example.com"],
        "phones": [],
        "companies": [{"id": "com_5e2a9b10", "name": "Acme"}],
        "groups": [{"id": "grp_7c4f1d22", "name": "Customers"}],
        "customFieldValues": {}
      }
    ],
    "pagination": {"nextLink": "…/v1/people?limit=20&cursor=abc123"}
  }
}

limit is up to 100. For the next page, pass the cursor from pagination.nextLink to the same gateway path; nextLink itself points at api.folk.app, so don't call it directly. No nextLink means the last page. GET v1/people/{person_id} returns one person. To filter, add filter[{field}][{operator}]={value} query parameters, such as filter[emails][eq]=sam@example.com (URL-encode the brackets), combined with combinator=and (default) or or.

Create or Update a Person

maton api '/folk/v1/people' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"firstName": "Sam", "lastName": "Park", "jobTitle": "CTO", "emails": ["sam@example.com"], "companies": [{"name": "Acme"}], "groups": [{"id": "{group_id}"}]}
JSON
maton api '/folk/v1/people/{person_id}' -X PATCH -H 'Content-Type: application/json' --input - <<'JSON'
{"jobTitle": "VP Engineering"}
JSON

PATCH changes only the fields sent, but a list field (emails, phones, companies, groups) replaces the whole list. Custom fields are per group: "customFieldValues": {"{group_id}": {"Stage": "Lead"}}, with field names from v1/groups/{group_id}/custom-fields/person. DELETE v1/people/{person_id} deletes the person; v1/people/batch/create, .../batch/update, and .../batch/delete act on many at once.

Companies and Groups

maton api '/folk/v1/companies?limit=20'
maton api '/folk/v1/groups'
maton api '/folk/v1/groups/{group_id}/members'

Companies work like people (filters, POST, PATCH, DELETE, and batch endpoints under v1/companies). Groups organize contacts and carry their own custom fields; v1/groups/{group_id}/{object_type} lists a group's custom objects, such as deals.

Notes, Tasks, and Interactions

maton api '/folk/v1/notes?limit=20'
maton api '/folk/v1/notes' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"entity": {"id": "{person_id}"}, "visibility": "public", "content": "Met at the conference; interested in the team plan."}
JSON
maton api '/folk/v1/tasks?limit=20'
maton api '/folk/v1/interactions?limit=20'

A note belongs to a person, company, or object (entity.id); visibility is public (the whole workspace) or private. PATCH and DELETE v1/notes/{note_id} update and delete one. Tasks have POST v1/tasks, PATCH, DELETE, and .../mark-as-done and .../mark-as-todo. Interactions (meetings, calls, messages logged on a contact) are under v1/interactions, with .../past and .../upcoming. Reminders (v1/reminders) are deprecated and will be removed on 2027-02-13; use tasks.

Campaigns, Views, and Webhooks

  • Campaigns: GET v1/campaigns, v1/campaigns/{campaign_id}, .../messages, .../variables, and v1/message-senders; POST v1/campaigns/{campaign_id}/launch sends it.
  • Views and dashboards: v1/views and v1/dashboards (with .../charts).
  • Webhooks: GET v1/webhooks; POST v1/webhooks sends contact events to its URL.
  • Credits: GET v1/credits returns the workspace's enrichment credits; v1/person-enrichments lists and starts enrichments.

Notes

  • Authentication: the connection holds a folk API key (starting with FOLK), sent as a Bearer token. A key belongs to one workspace and acts as the user who created it.
  • Trailing slashes are stripped by the gateway, since folk rejects them with 422.
  • Responses wrap their result in data; lists put records in data.items with a pagination object.
  • Connection metadata: the key's user_id, name, and email.
  • Errors: 400 or 422 an invalid request ({"error": {"code": "...", "message": "...", "requestId": "..."}}, with details.issues on a 422), 401 a wrong or deleted key, 404 not found, 429 rate limited.
  • Rate limits: 600 requests a minute per key, with bursts of up to 20 requests every 2 seconds; x-ratelimit-limit, x-ratelimit-remaining, and x-ratelimit-reset headers show where a key stands.
  • IDs are strings with a type prefix, such as per_ for people, com_ for companies, grp_ for groups, and usr_ for users.

Resources

On this page