Textline MCP by usefulapi
v1.32.1Read 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.
| Parameter | Type | Description |
|---|---|---|
group_uuid | string | Department (group) UUID from textline_list_departments. Default: the first department. |
page | integer | Page number, 0-based (default 0). |
page_size | integer | Results per page (default 30, max 50). |
query | string | Keyword 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.
| Parameter | Type | Description |
|---|---|---|
conversation_uuid * | string | Conversation UUID. |
after_uuid | string | Only posts after this post uuid (exclusive). |
before_uuid | string | Only posts before this post uuid (exclusive). |
page | integer | Page number, 0-based (default 0). |
page_size | integer | Results 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=….
| Parameter | Type | Description |
|---|---|---|
phone_number * | string | The contact's phone number, e.g. +14155550123 or (415) 555-0123. |
after_uuid | string | Only posts after this post uuid (exclusive). |
before_uuid | string | Only posts before this post uuid (exclusive). |
group_uuid | string | Department (group) UUID from textline_list_departments. Default: the first department. |
page | integer | Page number, 0-based (default 0). |
page_size | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 0-based (default 0). |
page_size | integer | Results per page (default 30, max 50). |
query | string | Keyword 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.
| Parameter | Type | Description |
|---|---|---|
customer_uuid * | string | Contact (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=….
| Parameter | Type | Description |
|---|---|---|
phone_number * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
include_groups | boolean | Include the departments. |
include_users | boolean | Include 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.
| Parameter | Type | Description |
|---|---|---|
email | string | Agent email. |
user_uuid | string | Agent 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.
| Parameter | Type | Description |
|---|---|---|
group_uuid | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
survey_uuid * | string | Survey UUID from textline_list_surveys. |
end_date | string | Last day, YYYY-MM-DD. |
start_date | string | First 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.
| Parameter | Type | Description |
|---|---|---|
archived | boolean | Only archived (true) or unarchived (false) contacts. Default: both. |
blocked | boolean | Only blocked (true) or unblocked (false) contacts. Default: both. |
created_after | string | Created after this ISO date-time (with timezone). |
created_before | string | Created before this ISO date-time (with timezone). |
group_uuid | string | Department UUID (required unless search_uuid is given). |
page | integer | Page number, 0-based (default 0). |
page_size | integer | Results per page (default 30, max 30). |
resolved | boolean | Only resolved (true) or unresolved (false) conversations. |
search_uuid | string | Continue an earlier result set: next.search_uuid from a previous call (with next.page and next.page_size). |
sort_by | string | Sort field (default created_at). |
sort_order | string | Sort order (default desc). |
updated_after | string | Updated after this ISO date-time (with timezone). |
updated_before | string | Updated 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.
| Parameter | Type | Description |
|---|---|---|
conversation_uuid * | string | Conversation UUID. |
created_after | string | Created after this ISO date-time (with timezone). |
created_before | string | Created before this ISO date-time (with timezone). |
page | integer | Page number, 0-based (default 0). |
page_size | integer | Results per page (default 30, max 30). |
search_uuid | string | Continue an earlier result set: next.search_uuid from a previous call (with next.page and next.page_size). |
sort_order | string | Sort 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.
| Parameter | Type | Description |
|---|---|---|
body * | string | The message text the customer will receive. |
attachment_urls | array | Public https URLs of files to attach (makes it an MMS). |
conversation_uuid | string | The conversation UUID (pass this OR phone_number). |
group_uuid | string | With phone_number only: the department to use. Default: the first department. |
phone_number | string | The contact's phone number (pass this OR conversation_uuid); opens the conversation if there is none. |
resolve | boolean | Resolve 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.
| Parameter | Type | Description |
|---|---|---|
body * | string | The note text (visible to agents only). |
conversation_uuid | string | The conversation UUID (pass this OR phone_number). |
group_uuid | string | With phone_number only: the department to use. Default: the first department. |
phone_number | string | The contact's phone number (pass this OR conversation_uuid); opens the conversation if there is none. |
resolve | boolean | Resolve 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.
| Parameter | Type | Description |
|---|---|---|
conversation_uuid * | string | Conversation UUID. |
disposition_uuid | string | Disposition (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.
| Parameter | Type | Description |
|---|---|---|
conversation_uuid * | string | Conversation UUID. |
assignee | string | The agent's email. |
user_uuid | string | The 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.
| Parameter | Type | Description |
|---|---|---|
phone_number * | string | The contact's phone number. |
email | string | Email address. |
name | string | Full name. |
notes | string | Notes on the contact (replaces the existing notes). |
tags | array | Tags, 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.
| Parameter | Type | Description |
|---|---|---|
customer_uuid * | string | Contact (customer) UUID. |
custom_fields | object | Custom field values keyed by custom-field UUID, e.g. {"c43a1766-47e1-4c9c-a2cc-36bf424fcbc0": "Gold"}. |
email | string | Email address. |
name | string | Full name. |
notes | string | Notes on the contact (replaces the existing notes). |
tags | array | Tags, e.g. ['VIP', 'new_lead'] (underscores instead of spaces). |
tags_handling | string | How to apply tags: add, remove or replace (Textline's default if omitted). |