Skip to content

API reference

API: Engagement and intent

Markdown version

MethodPathWhat it doesScope
GET/v1/accounts/:id/intentAn account's intent in one view: each vendor's topics and surge scores with their date and freshness, the combined topics with their sources, and first-party intent when no vendor has dataaccounts:read
GET/v1/contacts/:id/email-engagementA contact's tracked email: counted opens and clicks with first and last times, per message and per link, and how many events were filtered as machine events (and why)contacts:read
GET/v1/email-trackingFirst-party email tracking: whether opens and clicks are on (both off by default), how consent-first places are treated, the machine-event window, retention, and the trade-offssignals:read
PUT/v1/email-trackingTurn open or click tracking on or off (organization owners, signed in). Each sequence also turns it on in its settings (web app only)settings:write
GET/v1/intentThird-party intent: the switch (off by default), the vendor order, topics and threshold, and each vendor's connection (never its credentials)signals:read
PUT/v1/intentChange intent settings (organization owners): turn it on, the vendor order (a vendor is only called when connected), topics, the score, stop at the first vendor with data, first-party fallback (web app only)settings:write
PUT/v1/intent/providers/:providerConnect, configure, or turn on or off an intent vendor with your organization's own key (owners, signed in; stored encrypted, never returned) (web app only)settings:write
POST/v1/intent/providers/:provider/checkCheck a vendor's saved key with a harmless read (web app only)settings:write
DELETE/v1/intent/providers/:provider/credentialsRemove a vendor's credentials (turns it off) (web app only)settings:write
POST/v1/intent/syncRead intent from the connected vendors now (owners; in the background unless wait=true) (web app only)settings:write

Examples

GET /v1/accounts/$ID/intent

An account's intent in one view: each vendor's topics and surge scores with their date and freshness, the combined topics with their sources, and first-party intent when no vendor has data

curl -s "https://api.closefinch.com/v1/accounts/$ID/intent" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/accounts/${id}/intent`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
const data = await res.json();

GET /v1/contacts/$ID/email-engagement

A contact's tracked email: counted opens and clicks with first and last times, per message and per link, and how many events were filtered as machine events (and why)

curl -s "https://api.closefinch.com/v1/contacts/$ID/email-engagement" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/contacts/${id}/email-engagement`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
const data = await res.json();

GET /v1/email-tracking

First-party email tracking: whether opens and clicks are on (both off by default), how consent-first places are treated, the machine-event window, retention, and the trade-offs

curl -s "https://api.closefinch.com/v1/email-tracking" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/email-tracking`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
const data = await res.json();

GET /v1/intent

Third-party intent: the switch (off by default), the vendor order, topics and threshold, and each vendor's connection (never its credentials)

curl -s "https://api.closefinch.com/v1/intent" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/intent`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
const data = await res.json();

Request and response schemas: https://www.closefinch.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.

Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.