- Base URL:
https://api.refmatter.com - Versioning: all product endpoints live under
/v1. Additive changes ship without a version bump; breaking changes get/v2. - Authentication:
Authorization: Bearer <workspace API key>. See Authentication. - Content type: JSON in, JSON out. Timestamps are RFC 3339 UTC. Resource ids, such as import, reference, and media ids, are UUIDs; items and accounts are known by natural keys,
<platform>:<native id>such astiktok:7437269251355921707, and a resolution’sidis the natural key of what the URL points to. - Idempotency:
POST /v1/importsrequires anIdempotency-Keyheader. - Credits:
GET /v1/items/lookup,GET /v1/accounts/lookup,GET /v1/items,GET /v1/comments, andGET /v1/searchanswer withRefmatter-Credits-Charged, an integer that is0on every error and access refusal, and withRefmatter-Credits-Remaining, the workspace balance after that response. A workspace has a balance of credits: credits are added to it, and charged work subtracts from it. When the balance reaches zero, anything that would charge answers402 insufficient_creditswithout contacting the platform and without charging; free work keeps working, including a repeat within yourmaxAge, an empty page,GET /v1/resolveand imports.GET /v1/workspaces/{workspaceId}/usagereportscreditswithbalance,grantedandspent. See Look up an item, Look up an account, and List an account’s items. - Timing: a successful lookup carries
Server-Timingwithtotaland, when those phases ran,fetchandpersistdurations in milliseconds. Errors carry none. - Errors: one envelope with a stable
code; see Errors. A429carriesRetry-Afterin whole seconds. - Contract: the machine-readable source of truth is
GET https://api.refmatter.com/openapi.json.
Overview
API overview
Base URL, versioning, authentication, and conventions shared by every endpoint.