The Sway API for your own dashboards
Read a brand’s AI visibility, tracked prompts, cited sources and fix results as JSON. Read-only, on Pro and Agency.
Keys
- A workspace admin makes keys in Settings, API. Each key reads either every brand in the workspace or one brand you pick.
- A key never reads another workspace. Asking for a brand outside its reach answers 404, the same as a brand that does not exist.
- Pick when a key expires: 30, 90 or 365 days, or never. New keys last 90 days unless you choose otherwise.
- The key is shown once. We keep only a hash of it, so we cannot show it again. Revoke a key at any time and it stops at once.
- Keys start with
sway_live_.
Requests
- Server:
https://app.getsway.ai/api/v1. HTTPS only. - Send the key in the header:
Authorization: Bearer $SWAY_API_KEY. A key in the link is refused, because links end up in logs and browser history. - 120 requests a minute per key. Over that, the answer is 429 with Retry-After.
- The whole API as OpenAPI 3.1, for Postman and code generators: openapi.json.
Paging
Lists answer { data, total, next }. Pass limit (50 by default, at most 200) and offset. next is the offset of the next page, or null on the last one.
Errors
Every error has one shape: { error: { code, message } }.
| Status | Code | When |
|---|---|---|
| 400 | key_in_url | A key was sent in the link. Send it in the Authorization header. |
| 401 | unauthorized | The key is missing, wrong or revoked. |
| 403 | plan_required | The workspace's plan does not include the API (Pro and up). |
| 403 | trial_ended | The trial ended. Pick a plan in Settings, Plan to turn the API back on. |
| 403 | payment_failed | The last payment did not go through. Update the payment method in Settings, Plan. |
| 403 | plan_stopped | The plan was canceled. Pick a plan in Settings, Plan. |
| 404 | not_found | No such brand for this key, including another workspace's brand. |
| 429 | rate_limited | Over 120 requests a minute for this key. Retry-After says when to try again. |
List brands
GET /api/v1/brands
The brands this key may read: every brand of the workspace, or the key's one brand. Paged.
| Parameter | In | Description |
|---|---|---|
limit | query | Rows per page, 1 to 200. Default 50. |
offset | query | Where the page starts: the `next` value of the page before. Default 0. |
curl "https://app.getsway.ai/api/v1/brands" \ -H "Authorization: Bearer $SWAY_API_KEY"
{
"data": [
{
"id": "acme",
"name": "Acme",
"domain": "acme.example"
}
],
"total": 1,
"next": null
}Get a brand
GET /api/v1/brands/{brand}
One brand. A brand outside the key's reach answers 404, like one that does not exist.
| Parameter | In | Description |
|---|---|---|
brand (required) | path | A brand id from GET /brands. |
curl "https://app.getsway.ai/api/v1/brands/BRAND_ID" \ -H "Authorization: Bearer $SWAY_API_KEY"
{
"id": "acme",
"name": "Acme",
"domain": "acme.example"
}AI visibility
GET /api/v1/brands/{brand}/visibility
The share of AI answers naming the brand, per week (newest first, as far back as the plan keeps), and the latest week by engine.
| Parameter | In | Description |
|---|---|---|
brand (required) | path | A brand id from GET /brands. |
curl "https://app.getsway.ai/api/v1/brands/BRAND_ID/visibility" \ -H "Authorization: Bearer $SWAY_API_KEY"
{
"brand": "acme",
"weeks": [
{
"week": "2026-11-21",
"share": 0.2,
"answers": 30,
"named": 6
}
],
"latestByEngine": [
{
"engine": "chatgpt",
"share": 0.333,
"answers": 6
},
{
"engine": "claude",
"share": 0.167,
"answers": 6
}
]
}Tracked prompts
GET /api/v1/brands/{brand}/prompts
The brand's tracked prompts, each with every engine's latest answer (named, rank, sentiment, rivals named, sources) and its share over time. Paged.
| Parameter | In | Description |
|---|---|---|
brand (required) | path | A brand id from GET /brands. |
active | query | true: only prompts being checked; false: only paused ones. Leave out for both. |
limit | query | Rows per page, 1 to 200. Default 50. |
offset | query | Where the page starts: the `next` value of the page before. Default 0. |
curl "https://app.getsway.ai/api/v1/brands/BRAND_ID/prompts" \ -H "Authorization: Bearer $SWAY_API_KEY"
{
"data": [
{
"id": "pr18fce736",
"prompt": "best tools for team scheduling across a team",
"topic": "agents",
"country": "us",
"intent": "commercial",
"core": true,
"active": true,
"branded": false,
"source": "manual",
"createdAt": "2026-11-20T09:00:00.000Z",
"lastCheckedAt": "2026-11-21T06:00:00.000Z",
"latest": [
{
"engine": "chatgpt",
"named": true,
"rank": 2,
"namedIn": 1,
"asks": 1,
"sentiment": "positive",
"rivals": [
"Globex"
],
"sources": [
"https://example.com/list"
],
"checkedAt": "2026-11-21T06:00:00.000Z"
}
],
"history": [
{
"checkedAt": "2026-11-21T06:00:00.000Z",
"share": 0.5
}
]
}
],
"total": 1,
"next": null
}Cited sources
GET /api/v1/brands/{brand}/sources
The pages AI answers cited in the latest check, most cited first: whether each is the brand's own, whether it lists the brand, and which competitors it names. Paged.
| Parameter | In | Description |
|---|---|---|
brand (required) | path | A brand id from GET /brands. |
limit | query | Rows per page, 1 to 200. Default 50. |
offset | query | Where the page starts: the `next` value of the page before. Default 0. |
curl "https://app.getsway.ai/api/v1/brands/BRAND_ID/sources" \ -H "Authorization: Bearer $SWAY_API_KEY"
{
"data": [
{
"url": "https://example.com/best-tools",
"domain": "example.com",
"citedIn": 4,
"ours": false,
"listsBrand": false,
"competitors": [
"Globex"
],
"questions": [
"best tools for team scheduling"
],
"checkedAt": "2026-11-21T06:00:00.000Z"
}
],
"total": 1,
"next": null
}Fixes and outcomes
GET /api/v1/brands/{brand}/fixes
Every shipped fix, newest first: the share of answers naming the brand on its questions before and after (with the 95% range), the verdict, and each target question. Paged.
| Parameter | In | Description |
|---|---|---|
brand (required) | path | A brand id from GET /brands. |
limit | query | Rows per page, 1 to 200. Default 50. |
offset | query | Where the page starts: the `next` value of the page before. Default 0. |
curl "https://app.getsway.ai/api/v1/brands/BRAND_ID/fixes" \ -H "Authorization: Bearer $SWAY_API_KEY"
{
"data": [
{
"id": "fix_1",
"kind": "page",
"title": "Comparison page: Acme vs Globex",
"shippedAt": "2026-11-01T10:00:00.000Z",
"verdict": "worked",
"engines": [
"chatgpt",
"claude"
],
"before": {
"share": 0.1,
"low": 0.03,
"high": 0.27,
"named": 2,
"answers": 20
},
"after": {
"share": 0.45,
"low": 0.26,
"high": 0.66,
"named": 9,
"answers": 20
},
"questions": [
{
"question": "acme vs globex",
"change": "now_named",
"before": {
"share": 0,
"low": 0,
"high": 0.28,
"named": 0,
"answers": 10
},
"after": {
"share": 0.6,
"low": 0.31,
"high": 0.83,
"named": 6,
"answers": 10
}
}
]
}
],
"total": 1,
"next": null
}