Skip to content
English

API reference

This page is generated from the API’s OpenAPI file, which always describes what the server does: /api/v1/openapi.json. You can load it into Postman, Insomnia or your client generator.

  • Base address: https://sentirsocial.com/api/v1.
  • Send your access key on every call: Authorization: Bearer sntr_…. GET routes need the read scope; POST routes, the write scope.
  • Answers are { "data": … }. Errors are { "error": { "code", "message" } }: branch on code, which does not change. They are listed in Limits and errors.
  • Each route does what its MCP server tool does. A POST that spends tokens asks for no confirmation: your call is the confirmation.

Searches

List searches

GET /api/v1/searches · Read scope

The account's one-off searches, newest first, with each finished one's sentiment split.

FieldTypeWhat it is
status
Parameters, optional
"queued" | "running" | "done" | "failed" | "cancelled"Only searches in this state
limit
Parameters, optional
integerHow many, 1 to 50 (default 20)
Ventana de terminal
curl "https://sentirsocial.com/api/v1/searches?status=done&limit=10" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": [ … ] }: id, keyword, focus, platforms, dateFrom, dateTo, status, createdAt, sentiment, items.

Possible errors: invalid_request (400), unauthorized (401), plan_limit (403), rate_limited (429), internal (500). The same function as the MCP tool list_searches.

Start a search

POST /api/v1/searches · Write scope

Starts a search. Spends tokens: it holds maxTokens (else the account's cap per search, never above the access key's cap per call) and charges 1 token per 1,000 posts and comments read; the rest comes back. Answers at once with the id; the report comes later.

FieldTypeWhat it is
keyword
Body (JSON), required
stringWhat to search: a brand, a person, a topic (2 to 120 characters)
focus
Body (JSON), required
stringWhat the report should look at in the posts, one sentence
platforms
Body (JSON), required
string[]Platform slugs: facebook, instagram, tiktok, x, youtube, threads, linkedin, bluesky
maxTokens
Body (JSON), optional
integerMost tokens this may hold (1 token reads up to 1,000 posts and comments). Default: the account's cap per search, never above the cap per call of this connection or access key.
dateFrom
Body (JSON), required
stringYYYY-MM-DD
dateTo
Body (JSON), required
stringYYYY-MM-DD, today at the latest
acceptCut
Body (JSON), optional
booleanWhen the balance is below the hold, run with what there is (the search reads less)
Ventana de terminal
curl -X POST "https://sentirsocial.com/api/v1/searches" \
-H "Authorization: Bearer $SENTIR_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword":"Telcel","focus":"How people feel about the service and its prices","platforms":["x","facebook"],"dateFrom":"2026-11-01","dateTo":"2026-11-07","maxTokens":5}'

Answers { "data": { … } }: id, url, tokensHeld, status.

Possible errors: invalid_request (400), unauthorized (401), insufficient_tokens (402), forbidden (403), this (403), plan_limit (403), rate_limited (429), internal (500), unavailable (503). The same function as the MCP tool start_search.

Get a search

GET /api/v1/searches/{id} · Read scope

One search: its settings, state, progress, the tokens it held or spent, and its page in Sentir. Poll it, or use a webhook, to know when the report is ready.

FieldTypeWhat it is
id
In the path, required
stringThe id (uuid)
Ventana de terminal
curl "https://sentirsocial.com/api/v1/searches/0b6f3b1e-4c1d-4b7a-9a43-1d2f3a4b5c6d" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": { … } }: job, tokens, url.

Possible errors: unauthorized (401), plan_limit (403), not_found (404), rate_limited (429), internal (500). The same function as the MCP tool get_search.

Get a search's report

GET /api/v1/searches/{id}/report · Read scope

A finished search's report: as markdown in the report's own language, and as the stored report object the report page is drawn from (sentiment, emotions, themes, timeline, platforms). section full adds each platform's section and sample posts to the markdown.

FieldTypeWhat it is
id
In the path, required
stringThe id (uuid)
section
Parameters, optional
"summary" | "full"summary (default) or full
Ventana de terminal
curl "https://sentirsocial.com/api/v1/searches/0b6f3b1e-4c1d-4b7a-9a43-1d2f3a4b5c6d/report?section=summary" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": { … } }: section, markdown, report.

Possible errors: invalid_request (400), unauthorized (401), plan_limit (403), not_found (404), not_ready (409), rate_limited (429), internal (500). The same function as the MCP tool get_report.

List a search's posts

GET /api/v1/searches/{id}/posts · Read scope

Posts a finished search read and counted, most liked first: text, platform, author, likes, date and link. Posts carry no sentiment of their own: the split is per platform, in the report. Paged with limit and offset; page.next is the next offset, null on the last page. The data rules of the CSV export apply to what you do with them.

FieldTypeWhat it is
id
In the path, required
stringThe id (uuid)
platform
Parameters, optional
stringA platform slug from the search's platforms
limit
Parameters, optional
integerHow many, 1 to 100 (default 25)
offset
Parameters, optional
integerHow many to skip (default 0)
Ventana de terminal
curl "https://sentirsocial.com/api/v1/searches/0b6f3b1e-4c1d-4b7a-9a43-1d2f3a4b5c6d/posts?platform=x&limit=25&offset=0" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": [ … ], "page": { "limit", "offset", "next" } }: text, platform, author, likes, date, url.

Possible errors: invalid_request (400), unauthorized (401), plan_limit (403), not_found (404), rate_limited (429), internal (500). The same function as the MCP tool get_posts.

Estimate a search

POST /api/v1/searches/estimate · Write scope

What starting a search would cost, with no side effects: the tokens it would hold, the account's balance, whether it fits, and the platforms the plan allows against the ones asked.

FieldTypeWhat it is
keyword
Body (JSON), required
stringWhat to search: a brand, a person, a topic (2 to 120 characters)
focus
Body (JSON), required
stringWhat the report should look at in the posts, one sentence
platforms
Body (JSON), required
string[]Platform slugs: facebook, instagram, tiktok, x, youtube, threads, linkedin, bluesky
maxTokens
Body (JSON), optional
integerMost tokens this may hold (1 token reads up to 1,000 posts and comments). Default: the account's cap per search, never above the cap per call of this connection or access key.
dateFrom
Body (JSON), required
stringYYYY-MM-DD
dateTo
Body (JSON), required
stringYYYY-MM-DD, today at the latest
Ventana de terminal
curl -X POST "https://sentirsocial.com/api/v1/searches/estimate" \
-H "Authorization: Bearer $SENTIR_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword":"Telcel","focus":"How people feel about the service and its prices","platforms":["x","facebook"],"dateFrom":"2026-11-01","dateTo":"2026-11-07","maxTokens":5}'

Answers { "data": { … } }: tokensHeld, balance, fits, readsUpTo, maxTokensPerCall.

Possible errors: invalid_request (400), unauthorized (401), forbidden (403), this (403), plan_limit (403), rate_limited (429), internal (500), unavailable (503). The same function as the MCP tool estimate_search.

Share a search's report

POST /api/v1/searches/{id}/share · Write scope

Makes a public link to a finished search's report (no tokens). A new link replaces the search's old one.

FieldTypeWhat it is
id
In the path, required
stringThe id (uuid)
days
Body (JSON), required
"1" | "7" | "30" | "90" | "0"1, 7, 30, 90, or 0 = never expires
allowExport
Body (JSON), optional
boolean
Ventana de terminal
curl -X POST "https://sentirsocial.com/api/v1/searches/0b6f3b1e-4c1d-4b7a-9a43-1d2f3a4b5c6d/share" \
-H "Authorization: Bearer $SENTIR_KEY" \
-H "Content-Type: application/json" \
-d '{"days":7,"allowExport":false}'

Answers { "data": { … } }: url, expiresAt, allowExport.

Possible errors: invalid_request (400), unauthorized (401), forbidden (403), this (403), plan_limit (403), not_found (404), not_ready (409), rate_limited (429), internal (500). The same function as the MCP tool share_search.

Daily tracking

List daily trackings

GET /api/v1/series · Read scope

The account's daily trackings (a search that runs once a day), newest first, with the days read so far and the latest day's split.

Ventana de terminal
curl "https://sentirsocial.com/api/v1/series" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": [ … ] }.

Possible errors: unauthorized (401), plan_limit (403), rate_limited (429), internal (500). The same function as the MCP tool list_series.

Start a daily tracking

POST /api/v1/series · Write scope

Starts daily tracking: one search a day from startDate to endDate. Spends tokens every day: each day holds maxTokens and charges what it reads. The plan must include daily tracking.

FieldTypeWhat it is
keyword
Body (JSON), required
stringWhat to search: a brand, a person, a topic (2 to 120 characters)
focus
Body (JSON), required
stringWhat the report should look at in the posts, one sentence
platforms
Body (JSON), required
string[]Platform slugs: facebook, instagram, tiktok, x, youtube, threads, linkedin, bluesky
maxTokens
Body (JSON), optional
integerMost tokens this may hold (1 token reads up to 1,000 posts and comments). Default: the account's cap per search, never above the cap per call of this connection or access key.
startDate
Body (JSON), required
stringYYYY-MM-DD, today or later
endDate
Body (JSON), required
stringYYYY-MM-DD, at least the day after startDate
Ventana de terminal
curl -X POST "https://sentirsocial.com/api/v1/series" \
-H "Authorization: Bearer $SENTIR_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword":"Telcel","focus":"How people feel about the service and its prices","platforms":["x"],"startDate":"2026-12-01","endDate":"2026-12-15","maxTokens":3}'

Answers { "data": { … } }: id, url, tokensPerDay.

Possible errors: invalid_request (400), unauthorized (401), insufficient_tokens (402), forbidden (403), this (403), plan_limit (403), rate_limited (429), internal (500), unavailable (503). The same function as the MCP tool start_daily_tracking.

Get a daily tracking

GET /api/v1/series/{id} · Read scope

One daily tracking: its settings and state, the trend (one point per finished day), and days: every finished day in full, with its mentions, sentiment split, emotions, first themes and the split per platform.

FieldTypeWhat it is
id
In the path, required
stringThe id (uuid)
Ventana de terminal
curl "https://sentirsocial.com/api/v1/series/0b6f3b1e-4c1d-4b7a-9a43-1d2f3a4b5c6d" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": { … } }: series, trend, days, url.

Possible errors: unauthorized (401), plan_limit (403), not_found (404), rate_limited (429), internal (500). The same function as the MCP tool get_series.

Comparisons

List comparisons

GET /api/v1/comparisons · Read scope

The account's head-to-heads and compares, newest first, with each side's state and latest split.

Ventana de terminal
curl "https://sentirsocial.com/api/v1/comparisons" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": [ … ] }.

Possible errors: unauthorized (401), plan_limit (403), rate_limited (429), internal (500). The same function as the MCP tool list_comparisons.

Compare two searches

POST /api/v1/comparisons · Write scope

Compares two finished searches of the account side by side. A flat token cost, once per pair: asking for the same pair again answers the existing comparison, free.

FieldTypeWhat it is
a
Body (JSON), required
stringId of a finished search
b
Body (JSON), required
stringId of another finished search
Ventana de terminal
curl -X POST "https://sentirsocial.com/api/v1/comparisons" \
-H "Authorization: Bearer $SENTIR_KEY" \
-H "Content-Type: application/json" \
-d '{"a":"0b6f3b1e-4c1d-4b7a-9a43-1d2f3a4b5c6d","b":"7b0c1a52-6a3f-4f0e-9a43-1d2f3a4b5c6d"}'

Answers { "data": { … } }: id, url, existing, tokensCharged.

Possible errors: invalid_request (400), unauthorized (401), insufficient_tokens (402), forbidden (403), this (403), plan_limit (403), not_found (404), not_ready (409), rate_limited (429), internal (500). The same function as the MCP tool compare_searches.

Get a comparison

GET /api/v1/comparisons/{id} · Read scope

One head-to-head or compare: both sides' state, the computed metrics and the written reading when it is ready.

FieldTypeWhat it is
id
In the path, required
stringThe id (uuid)
Ventana de terminal
curl "https://sentirsocial.com/api/v1/comparisons/0b6f3b1e-4c1d-4b7a-9a43-1d2f3a4b5c6d" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": { … } }: sides, url.

Possible errors: unauthorized (401), plan_limit (403), not_found (404), rate_limited (429), internal (500). The same function as the MCP tool get_comparison.

Account

Who the access key is

GET /api/v1/me · Read scope

The person and the account behind the access key: the account's name, the person's role in it, the key's scopes and its token cap per write call.

Ventana de terminal
curl "https://sentirsocial.com/api/v1/me" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": { … } }: email, account, role, scopes, maxTokensPerCall.

Possible errors: unauthorized (401), plan_limit (403), rate_limited (429), internal (500). The same function as the MCP tool whoami.

Token balance

GET /api/v1/tokens/balance · Read scope

The account's token balance, the default token cap per search, the monthly grant and the pack price. 1 token reads up to itemsPerToken posts and comments.

Ventana de terminal
curl "https://sentirsocial.com/api/v1/tokens/balance" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": { … } }: balance, maxPerSearch, itemsPerToken, compareCost.

Possible errors: unauthorized (401), plan_limit (403), rate_limited (429), internal (500). The same function as the MCP tool get_tokens.

List webhook subscriptions

GET /api/v1/hooks · Read scope

The addresses subscribed through the API to the account's events, newest first. The webhook registered on Sentir's AI page is not in this list.

Ventana de terminal
curl "https://sentirsocial.com/api/v1/hooks" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": [ … ] }: id, event, url, createdAt.

Possible errors: unauthorized (401), plan_limit (403), rate_limited (429), internal (500). The same function as the MCP tool .

Subscribe an address to an event

POST /api/v1/hooks · Write scope

Sentir will POST every event of that kind in the account to the address, signed with the secret this call answers once (see the webhooks guide). One subscription per Zap or scenario: the same address may be subscribed more than once. No tokens are spent. At most 100 per account. A subscription is removed with the access key that made it.

FieldTypeWhat it is
url
Body (JSON), required
stringThe https address to send to
event
Body (JSON), required
"search.finished" | "search.failed" | "series.paused" | "alert.fired" | "report.sent"The event to subscribe to
Ventana de terminal
curl -X POST "https://sentirsocial.com/api/v1/hooks" \
-H "Authorization: Bearer $SENTIR_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://hooks.example.com/sentir/abc123","event":"search.finished"}'

Answers { "data": { … } }: id, event, url, createdAt, secret.

Possible errors: invalid_request (400), unauthorized (401), plan_limit (403), forbidden (403), this (403), rate_limited (429), internal (500), unavailable (503). The same function as the MCP tool .

Remove a webhook subscription

DELETE /api/v1/hooks/{id} · Write scope

Stops sending to that subscription. Events already on their way are dropped with it.

FieldTypeWhat it is
id
In the path, required
stringThe id (uuid)
Ventana de terminal
curl -X DELETE "https://sentirsocial.com/api/v1/hooks/0b6f3b1e-4c1d-4b7a-9a43-1d2f3a4b5c6d" \
-H "Authorization: Bearer $SENTIR_KEY"

Answers { "data": { … } }: removed.

Possible errors: unauthorized (401), forbidden (403), this (403), plan_limit (403), not_found (404), rate_limited (429), internal (500). The same function as the MCP tool .

Accessibility