Sakari MCP by usefulapi

v1.20.1
io.usefulapi/sakari Checked 3 days ago Published 1 day ago

Manage Sakari SMS contacts, conversations, templates and campaigns, and send texts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sakari_get_account Get account

The Sakari account these credentials belong to: name, plan, balance, default country, business info and options. API credentials are never returned. GET /v1/accounts/{accountId}.

sakari_get_balance Get account balance

Prepaid balance, default country, remaining segments and the price per segment. GET /v1/accounts/{accountId}/balance.

sakari_list_contacts List contacts

List or search contacts (partial matches on name, mobile or email; filter by tag). GET /v1/accounts/{accountId}/contacts.

ParameterTypeDescription
emailstringFilter by email or part of it.
first_namestringFilter by first name or part of it.
last_namestringFilter by last name or part of it.
limitintegerResults per page, 1-100 (default 25).
mobilestringFilter by mobile number or part of it.
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
tagsstringFilter by tag(s).

sakari_get_contact Get contact

One contact by id: name, mobile (with validity and line type), email, lists, attributes, opt-in and blocked state. GET /v1/accounts/{accountId}/contacts/{contactId}.

ParameterTypeDescription
contact_id *stringSakari contact id.

sakari_create_contact Create contact

WRITE: create a contact. If a contact with the same mobile number exists, merge_strategy decides what happens (append, core or remove, per Sakari). A contact is not opted in to messages by this call. POST /v1/accounts/{accountId}/contacts.

ParameterTypeDescription
mobile *stringMobile number in international format, e.g. +13471234567.
countrystring2-letter country of the number (default: the account's default country).
emailstring
first_namestring
last_namestring
merge_strategystringHow an existing contact with the same mobile is treated.

sakari_update_contact Update contact

WRITE: change a contact's name, email or mobile. Sakari's update replaces the contact, so this reads the current contact first and sends it back whole (lists, opt-in, blocked, attributes) with only your changes applied. PUT /v1/accounts/{accountId}/contacts/{contactId}.

ParameterTypeDescription
contact_id *stringSakari contact id.
countrystring2-letter country of the mobile number.
emailstring
first_namestring
last_namestring
mobilestringNew mobile number in international format.

sakari_list_messages List messages

List messages (sent and received) with status, segments, price and timestamps; filter by contact or conversation. GET /v1/accounts/{accountId}/messages.

ParameterTypeDescription
contact_idstringSakari contact id.
conversation_idstringSakari conversation id.
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.

sakari_get_message Get message

One message by id: text, direction, status, segments, price, error. GET /v1/accounts/{accountId}/messages/{messageId}.

ParameterTypeDescription
message_id *stringSakari message id.

sakari_send_message Send text message

WRITE: SEND REAL TEXT MESSAGES that cost account balance and cannot be recalled. Recipients: phone numbers (international format), existing contact ids, or conversation ids (max 100 in total). Only text people who opted in; Sakari enforces TCPA/CTIA rules and the sender is responsible. Confirm the recipients and the text with the user first. Placeholders like {{firstName}} are filled per contact. POST /v1/accounts/{accountId}/messages.

ParameterTypeDescription
confirm_send *booleanMust be true: you confirm the user approved these recipients and this text, and that the texts go out now.
text *stringMessage text (the Sakari 'template').
contact_idsarrayExisting Sakari contact ids.
conversation_idsarrayExisting conversation ids to reply into.
media_urlsarrayPublic media URLs to attach (MMS).
to_numbersarrayRecipient phone numbers in international format.
typestringSMS (default) or MMS.

sakari_list_conversations List conversations

List conversations (the inbox): contact, last message, unread count, open or closed. GET /v1/accounts/{accountId}/conversations.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.

sakari_get_conversation Get conversation

One conversation by id. Use sakari_list_messages with conversation_id for its messages. GET /v1/accounts/{accountId}/conversations/{conversationId}.

ParameterTypeDescription
conversation_id *stringSakari conversation id.

sakari_close_conversation Close conversation

WRITE: mark a conversation closed in the Sakari inbox (a new inbound message reopens it). PUT /v1/accounts/{accountId}/conversations/{conversationId}/close.

ParameterTypeDescription
conversation_id *stringSakari conversation id.

sakari_list_templates List templates

List reusable message templates. GET /v1/accounts/{accountId}/templates.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 25).
namestringFilter by name or part of it.
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.

sakari_get_template Get template

One message template by id. GET /v1/accounts/{accountId}/templates/{templateId}.

ParameterTypeDescription
template_id *stringSakari template id.

sakari_create_template Create template

WRITE: create a reusable SMS template (does not send anything). POST /v1/accounts/{accountId}/templates.

ParameterTypeDescription
name *stringTemplate name.
text *stringTemplate text; may contain placeholders such as {{firstName}}.

sakari_list_campaigns List campaigns

List message campaigns with schedule, template, status and reporting. GET /v1/accounts/{accountId}/campaigns.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 25).
namestringFilter by name or part of it.
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.

sakari_get_campaign Get campaign

One campaign by id. GET /v1/accounts/{accountId}/campaigns/{campaignId}.

ParameterTypeDescription
campaign_id *stringSakari campaign id.

sakari_list_calls List calls

Call history (voice) with direction, status, duration and contact; filter by contact, conversation, direction, status or date range. GET /v1/accounts/{accountId}/calls.

ParameterTypeDescription
contact_idstringSakari contact id.
conversation_idstringSakari conversation id.
directionstring
fromstringStart of the date range (ISO 8601 date-time).
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
statusstring
tostringEnd of the date range (ISO 8601 date-time).

sakari_get_call Get call

One call history record by id. GET /v1/accounts/{accountId}/calls/{callId}.

ParameterTypeDescription
call_id *stringSakari call id.

sakari_list_forms List lead forms

Lead capture forms with active state, impressions and conversions. GET /v1/accounts/{accountId}/forms.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 25).
offsetintegerResults to skip (default 0). Pass the previous reply's next_offset.
qstringSearch term across form fields.

sakari_list_webhooks List webhooks

Active webhook subscriptions (message event notifications). GET /v1/accounts/{accountId}/webhooks.

sakari_list_autoresponders List autoresponders

Autoresponders (automatic replies) configured on the account. GET /v1/accounts/{accountId}/autoresponders.