Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.recotap.com/llms.txt

Use this file to discover all available pages before exploring further.

PATCH /accounts/external-ids Bulk writes your CRM’s external IDs into existing Recotap accounts, matched by domain. Max 100 mappings per request. Designed for the initial ID backfill. Use List Unmapped Accounts first to identify which accounts need IDs, then call this endpoint to write them all in one pass.
curl -X PATCH "http://eapi.recotap.com/api/v1/crm/accounts/external-ids" \
  -H "X-Api-Key: your-api-key-here" \
  -H "Content-Type: application/json" \
  -d '{
    "mappings": [
      { "domain": "acme.com", "externalId": "crm-001" },
      { "domain": "globex.com", "externalId": "crm-002" }
    ]
  }'
Request body
FieldTypeRequiredDescription
mappingsarrayYesMin 1, max 100 mapping objects
Mapping object
FieldTypeRequiredDescription
domainstringYesDomain used to match the Recotap account e.g. "acme.com"
externalIdstringYesYour CRM’s unique ID to write onto the matched account e.g. "crm-001"
Response data
{
  "matched": 2,
  "updated": 2,
  "notFound": []
}
FieldTypeDescription
matchednumberAccounts found by domain
updatednumberAccounts successfully written
notFoundstring[]Domains that did not match any Recotap account e.g. ["unknown.com"]
Existing externalId values are overwritten without warning. If the same domain appears more than once in the request, the last mapping takes precedence.