API access is enabled per account. If you do not have a key yet, see Get a key.
What you can do
- Read your data. Organisations, brands, prompts, per-run results, mentions, scores, share of voice and cited sources. Start with the data model, then export results.
- Manage what is tracked. Create and update prompts, provision own brands and their competitors, or sync a brand’s whole prompt set in one declarative call.
- Request a scan. Ask for an on-demand scan of an own brand. It uses the organisation’s manual-scan allowance, then any purchased scan credits, like a manual scan started from the dashboard.
- Receive webhooks. Platform partners can register an endpoint and receive signed webhooks when a scan completes, or when a score or sentiment threshold is crossed.
Base URL
- The API is served over HTTPS. Request and response bodies are JSON.
- The
/v1prefix is part of the base URL. Paths in these docs are relative to it, soGET /orgsmeansGET https://api.surfais.com/v1/orgs. - A successful response wraps its payload in
data, and a list addspagination. An error carries a stableerror.codeand arequest_id. See Pagination and Errors.
Who can use it
There are two kinds of API key.
Organisation keys are available on the Scale plan, the Agency plan (which is built on Scale) and the Enterprise plan. The plan is checked on every request, not only when the key is issued: see Authentication.
The plan also decides which access a key is issued with. Scale includes read access. Read-and-write access is part of Enterprise. A platform partner’s access is set by its agreement with Surfais. See Plans & limits for what else each plan includes.
Both kinds of key call the same endpoints, with two exceptions that are for partner keys only: webhook management and
PATCH /orgs/{orgId}/link.
Get a key
There is no self-serve key page. The Surfais team issues keys on request.- Ask an org admin of the organisation to email support@surfais.com.
- Say which organisation the key is for, and which access the integration needs: read-only, or read and write. Write access depends on your plan. Ask for read-only unless the integration changes what is tracked.
- Store the key in your secret manager as soon as you receive it. A key is shown once, when it is issued, and cannot be retrieved afterwards.
What v1 does not include
These are deliberate exclusions:- The raw text of AI answers. The API returns what Surfais measured in each answer — whether a brand was mentioned, its position, its sentiment and the sources cited — never the answer text itself.
- Audits, reports and readiness data. These stay in the dashboard.
- Creating organisations. The API works inside organisations that already exist.
- Deleting brands or prompts. A
DELETEon a prompt deactivates it and keeps its history. ADELETEon a competitor unlinks it from the own brand. Deletion stays in the dashboard.
Where to go next
Quickstart
Make your first two calls in about five minutes.
Authentication
Key format, scopes, and what an authentication failure looks like.
Data model
Organisations, brands, prompts and results, and the rules to build on.
Errors
The error envelope, every error code, and which ones to retry.
Webhooks
Signed events for platform partners when a scan completes.
API changelog
What changed in the API, and when.