Textline MCP by usefulapi

v1.32.1
io.usefulapi/textline Checked 3 days ago Published 1 day ago

Read Textline conversations, contacts and reports; send a text, add notes, resolve or transfer.

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

textline_list_conversations List conversations

List conversations (one per contact) in a department of the Textline shared inbox, with the contact and resolved status. Optional keyword search. GET /api/conversations.json.

ParameterTypeDescription
group_uuidstringDepartment (group) UUID from textline_list_departments. Default: the first department.
pageintegerPage number, 0-based (default 0).
page_sizeintegerResults per page (default 30, max 50).
querystringKeyword to search conversations on (name, phone, message text).

textline_get_conversation Get conversation messages

Retrieve one conversation and its posts (messages in and out, internal whispers, resolve/transfer events), newest page first. Page with page/page_size or with before_uuid/after_uuid (a post uuid). GET /api/conversation/{uuid}.json.

ParameterTypeDescription
conversation_uuid *stringConversation UUID.
after_uuidstringOnly posts after this post uuid (exclusive).
before_uuidstringOnly posts before this post uuid (exclusive).
pageintegerPage number, 0-based (default 0).
page_sizeintegerResults per page (default 30, max 50).

textline_get_conversation_by_phone Get conversation by phone number

Retrieve the conversation with a phone number (in a department) and its posts (messages). GET /api/conversations.json?phone_number=….

ParameterTypeDescription
phone_number *stringThe contact's phone number, e.g. +14155550123 or (415) 555-0123.
after_uuidstringOnly posts after this post uuid (exclusive).
before_uuidstringOnly posts before this post uuid (exclusive).
group_uuidstringDepartment (group) UUID from textline_list_departments. Default: the first department.
pageintegerPage number, 0-based (default 0).
page_sizeintegerResults per page (default 30, max 50).

textline_list_customers Search contacts

List or search contacts (customers) in the Textline address book: name, phone, email, tags, notes, custom fields, consent and reachability. GET /api/customers.json.

ParameterTypeDescription
pageintegerPage number, 0-based (default 0).
page_sizeintegerResults per page (default 30, max 50).
querystringKeyword to search on (name, phone, email, tag).

textline_get_customer Get contact

Retrieve one contact (customer) from the address book by UUID. GET /api/customer/{uuid}.json.

ParameterTypeDescription
customer_uuid *stringContact (customer) UUID.

textline_get_customer_by_phone Get contact by phone number

Retrieve one contact (customer) from the address book by phone number. GET /api/customers.json?phone_number=….

ParameterTypeDescription
phone_number *stringThe contact's phone number.

textline_list_custom_fields List contact custom fields

List the address book's custom fields (name, data type, UUID). Use the UUIDs with textline_update_customer. GET /api/address_book/custom_fields.json.

textline_list_saved_searches List saved searches

List the address book's saved searches (contact segments) with name, description and UUID. GET /api/address_book/saved_searches.json.

textline_get_organization Get organization

Retrieve the organization (account) name, optionally with its departments and agents. GET /api/organization.json.

ParameterTypeDescription
include_groupsbooleanInclude the departments.
include_usersbooleanInclude the agents (users).

textline_list_departments List departments

List the departments (groups / inbox phone lines) the token's agent can see: name, UUID, phone number, type (sms, facebook, smart_sms) and member agent UUIDs. GET /api/groups.json.

textline_list_agents List agents

List the agents (users) in the organization: name, email, UUID, permission level, availability and department UUIDs. GET /api/organization.json?include_users=1.

textline_get_agent Get agent

Retrieve one agent (user) by UUID or email: name, permission level, availability (on_call) and departments. GET /api/users.json.

ParameterTypeDescription
emailstringAgent email.
user_uuidstringAgent UUID.

textline_list_dispositions List dispositions

List the dispositions (resolution reasons) set up in the account, optionally for one department. Use a UUID with textline_resolve_conversation. GET /api/dispositions.json.

ParameterTypeDescription
group_uuidstringOnly dispositions of this department.

textline_list_surveys List surveys

List surveys (NPS, CSAT, custom) with their type and UUID. GET /api/surveys.json.

textline_list_survey_responses List survey responses

List the responses to one survey (ratings, follow-up text, contact, tags). Default: the last 30 days. GET /api/survey/{uuid}/responses.json.

ParameterTypeDescription
survey_uuid *stringSurvey UUID from textline_list_surveys.
end_datestringLast day, YYYY-MM-DD.
start_datestringFirst day, YYYY-MM-DD.

textline_report_conversations Report conversations by date

Reporting API: list a department's conversations filtered by created/updated time, resolved, archived or blocked, with total_records. To get the next page pass the returned next.search_uuid, next.page and next.page_size exactly (the same filters are kept). Then use textline_report_posts per conversation. GET /api/reporting/conversations.json.

ParameterTypeDescription
archivedbooleanOnly archived (true) or unarchived (false) contacts. Default: both.
blockedbooleanOnly blocked (true) or unblocked (false) contacts. Default: both.
created_afterstringCreated after this ISO date-time (with timezone).
created_beforestringCreated before this ISO date-time (with timezone).
group_uuidstringDepartment UUID (required unless search_uuid is given).
pageintegerPage number, 0-based (default 0).
page_sizeintegerResults per page (default 30, max 30).
resolvedbooleanOnly resolved (true) or unresolved (false) conversations.
search_uuidstringContinue an earlier result set: next.search_uuid from a previous call (with next.page and next.page_size).
sort_bystringSort field (default created_at).
sort_orderstringSort order (default desc).
updated_afterstringUpdated after this ISO date-time (with timezone).
updated_beforestringUpdated before this ISO date-time (with timezone).

textline_report_posts Report posts of a conversation

Reporting API: list all posts (messages, whispers) of one conversation with creator, thread, first-response flags, filtered by created time, with total_records. To get the next page pass the returned next.search_uuid, next.page and next.page_size exactly. GET /api/reporting/conversation/{uuid}/posts.json.

ParameterTypeDescription
conversation_uuid *stringConversation UUID.
created_afterstringCreated after this ISO date-time (with timezone).
created_beforestringCreated before this ISO date-time (with timezone).
pageintegerPage number, 0-based (default 0).
page_sizeintegerResults per page (default 30, max 30).
search_uuidstringContinue an earlier result set: next.search_uuid from a previous call (with next.page and next.page_size).
sort_orderstringSort order (default desc).

textline_send_message Send SMS message

SENDS A REAL SMS/MMS to ONE contact from your Textline number — the customer receives it immediately and it cannot be unsent; it consumes message credits. Address it by conversation_uuid or by phone_number (+ optional department). Confirm the recipient and text with the user first. One recipient per call; no bulk sends. POST /api/conversation/{uuid}.json or POST /api/conversations.json.

ParameterTypeDescription
body *stringThe message text the customer will receive.
attachment_urlsarrayPublic https URLs of files to attach (makes it an MMS).
conversation_uuidstringThe conversation UUID (pass this OR phone_number).
group_uuidstringWith phone_number only: the department to use. Default: the first department.
phone_numberstringThe contact's phone number (pass this OR conversation_uuid); opens the conversation if there is none.
resolvebooleanResolve the conversation after sending.

textline_add_whisper Add internal note (whisper)

WRITE: add an internal whisper (a note only your agents see, never sent to the customer) to a conversation, by conversation_uuid or phone_number. POST /api/conversation/{uuid}.json or POST /api/conversations.json with a whisper.

ParameterTypeDescription
body *stringThe note text (visible to agents only).
conversation_uuidstringThe conversation UUID (pass this OR phone_number).
group_uuidstringWith phone_number only: the department to use. Default: the first department.
phone_numberstringThe contact's phone number (pass this OR conversation_uuid); opens the conversation if there is none.
resolvebooleanResolve the conversation after adding the note.

textline_resolve_conversation Resolve conversation

WRITE: mark a conversation resolved (closed), optionally with a disposition from textline_list_dispositions. Nothing is sent to the customer. POST /api/conversation/{uuid}/resolve.json.

ParameterTypeDescription
conversation_uuid *stringConversation UUID.
disposition_uuidstringDisposition (resolution reason) UUID.

textline_transfer_conversation Transfer conversation

WRITE: assign a conversation to another agent of the same department, by agent UUID or email (one of them). Nothing is sent to the customer. POST /api/conversation/{uuid}/transfer.json.

ParameterTypeDescription
conversation_uuid *stringConversation UUID.
assigneestringThe agent's email.
user_uuidstringThe agent's UUID (from textline_list_agents).

textline_create_customer Create contact

WRITE: add a contact (customer) to the Textline address book. Sends nothing to the contact. POST /api/customers.json.

ParameterTypeDescription
phone_number *stringThe contact's phone number.
emailstringEmail address.
namestringFull name.
notesstringNotes on the contact (replaces the existing notes).
tagsarrayTags, e.g. ['VIP', 'new_lead'] (underscores instead of spaces).

textline_update_customer Update contact

WRITE: update a contact's name, email, notes, tags (add, remove or replace) or custom fields (by custom-field UUID from textline_list_custom_fields). Overwrites the fields you pass; sends nothing to the contact. PUT /api/customer/{uuid}.json.

ParameterTypeDescription
customer_uuid *stringContact (customer) UUID.
custom_fieldsobjectCustom field values keyed by custom-field UUID, e.g. {"c43a1766-47e1-4c9c-a2cc-36bf424fcbc0": "Gold"}.
emailstringEmail address.
namestringFull name.
notesstringNotes on the contact (replaces the existing notes).
tagsarrayTags, e.g. ['VIP', 'new_lead'] (underscores instead of spaces).
tags_handlingstringHow to apply tags: add, remove or replace (Textline's default if omitted).