---
title: Commslayer API Integration on Truto
slug: commslayer
category: Ticketing
canonical: "https://truto.one/integrations/detail/commslayer/"
---

# Commslayer API Integration on Truto



**Category:** Ticketing  
**Status:** Beta

## MCP-ready AI tools

Truto exposes 78 tools for Commslayer that AI agents can call directly.

- **list_all_commslayer_account** — The token's account. The account the token belongs to, with its time zone. Any token may read it, whatever its scopes.
- **list_all_commslayer_conversations** — List conversations. Retrieve a paginated list of conversations. Token scope: conversations:read. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_conversation** — Create conversation. Create a new conversation. Useful for routing inbound contact form submissions (e.g. Typeform, custom forms) into Commslayer. You can identify the contact by contact_id or by contact_email. When using contact_email, the contact will be found by email or created automatically. Optionally include a message object to create an initial message in the same request. Token scope: conversations:write. Required: conversation.
- **get_single_commslayer_conversation_by_id** — Get conversation. Retrieve a specific conversation by ID. Pass id_type=display_id to look up by the display ID shown in the UI and webhook payloads. Token scope: conversations:read. Required: id. id is the conversation id.
- **update_a_commslayer_conversation_by_id** — Update conversation. Update a conversation's status, assignee, or attributes. Pass id_type=display_id to look up by the display ID shown in the UI and webhook payloads. Token scope: conversations:write. Required: id, conversation. id is the conversation id.
- **create_a_commslayer_conversation_read** — Mark conversation as read. Mark the conversation as read for every agent, as if each of them had opened it. Call it after your integration answers a customer, so the reply doesn't leave the conversation unread in the team's inbox. A later customer message makes it unread again. Pass id_type=display_id to look up by the display ID shown in the UI and webhook payloads. Token scope: conversations:write. Required: conversation_id.
- **list_all_commslayer_conversation_messages** — List messages. Retrieve messages in a conversation. Token scope: messages:read. Required: conversation_id. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_conversation_message** — Send message. Send a new message in a conversation. Defaults to outgoing (agent) messages. You can create incoming messages (from the contact) by setting message_type to incoming. This works on any inbox type and is useful for routing external messages (e.g. from Make.com, Zapier, or contact form submissions) into conversations. Files. Token scope: messages:write. Required: conversation_id, message.
- **list_all_commslayer_conversation_drafts** — Get draft. Retrieve the conversation's current unsent reply draft. Token scope: drafts:read. Required: conversation_id.
- **create_a_commslayer_conversation_draft** — Create or replace draft. Write an unsent reply draft on the conversation. The agent sees it in the reply box, edits it and sends it like any other reply, so use this when a human should review the reply instead of sending it with the messages endpoint. A conversation holds one draft. Writing replaces whatever draft is there, including one Commslayer generated. Drafts written here do not count towards the account's AI drafts quota. Token scope: drafts:write. Required: conversation_id, draft.
- **delete_a_commslayer_conversation_draft_by_id** — Delete draft. Remove the draft this API wrote. A draft that an earlier write replaced becomes the conversation's draft again, so deleting undoes the write rather than clearing the history. A draft Commslayer generated itself is not removable and returns 409. Token scope: drafts:write. Required: id. id is the conversation_id.
- **list_all_commslayer_conversation_relations** — List relations. List all relations for a conversation. Relations link conversations together with types like triggered_by, duplicate_of, related_to, or follows_up. Required: conversation_id. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_conversation_relation** — Create relation. Create a relation linking this conversation to another conversation. Required: conversation_id, relation.
- **delete_a_commslayer_conversation_relation_by_id** — Delete relation. Delete a relation between conversations. Required: id, conversation_id. id is the conversation_relation id.
- **commslayer_contacts_search** — Search contacts. Search for contacts by email, phone number, or identifier. Returns matching contacts without pagination. Token scope: contacts:read.
- **list_all_commslayer_contacts** — List contacts. Retrieve a paginated list of contacts. Token scope: contacts:read. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_contact** — Create contact. Create a new contact. Token scope: contacts:write. Required: contact.
- **get_single_commslayer_contact_by_id** — Get contact. Retrieve a specific contact by ID. Token scope: contacts:read. Required: id. id is the contact id.
- **update_a_commslayer_contact_by_id** — Update contact. Update a contact's information. Token scope: contacts:write. Required: id, contact. id is the contact id.
- **delete_a_commslayer_contact_by_id** — Delete contact. Permanently erase a contact and the personal data linked to it: conversations, messages, notes, CSAT responses, customer profiles, synced Shopify customers and orders, and customer-portal auth records. Intended for GDPR right-to-erasure and similar data-removal requests. This cannot be undone. Token scope: contacts:delete. Required: id. id is the contact id.
- **list_all_commslayer_labels** — List labels. Retrieve all labels in the account. AI-related fields (ai_enabled, ai_prompt, ai_settings) are included in the response. Token scope: labels:read. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_label** — Create label. Create a new label. AI-related fields (ai_enabled, ai_prompt, ai_settings, inbox_ids) can also be set. Token scope: labels:write. Required: label.
- **get_single_commslayer_label_by_id** — Get label. Retrieve a single label by ID. Token scope: labels:read. Required: id. id is the label id.
- **update_a_commslayer_label_by_id** — Update label. Update a label. AI-related fields (ai_enabled, ai_prompt, ai_settings, inbox_ids) can also be updated. Token scope: labels:write. Required: id, label. id is the label id.
- **delete_a_commslayer_label_by_id** — Delete label. Delete a label. Token scope: labels:write. Required: id. id is the label id.
- **list_all_commslayer_webhooks** — List webhooks. Retrieve all configured webhooks. Token scope: webhooks:manage. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_webhook** — Create webhook. Create a new webhook endpoint. Token scope: webhooks:manage. Required: webhook.
- **get_single_commslayer_webhook_by_id** — Get webhook. Retrieve a specific webhook. Token scope: webhooks:manage. Required: id. id is the webhook id.
- **update_a_commslayer_webhook_by_id** — Update webhook configuration. Token scope: webhooks:manage. Required: id, webhook. id is the webhook id.
- **delete_a_commslayer_webhook_by_id** — Delete webhook. Delete a webhook. Token scope: webhooks:manage. Required: id. id is the webhook id.
- **create_a_commslayer_webhook_test** — Test webhook. Send a test payload to the webhook endpoint. Token scope: webhooks:manage. Required: webhook_id.
- **create_a_commslayer_webhook_secret_rotation** — Rotate webhook secret. Generate a new secret for webhook signature verification. Token scope: webhooks:manage. Required: webhook_id.
- **list_all_commslayer_webhook_delivery_logs** — Get delivery logs. Retrieve recent webhook delivery logs. Token scope: webhooks:manage. Required: webhook_id.
- **list_all_commslayer_portals** — List portals. Retrieve a paginated list of active help center portals. Token scope: help_center:read. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_portal** — Create portal. Create a new help center portal. Token scope: help_center:write. Required: portal.
- **get_single_commslayer_portal_by_id** — Get portal. Retrieve a specific portal by slug. Token scope: help_center:read. Required: id. id is the portal slug.
- **update_a_commslayer_portal_by_id** — Update portal. Update a portal's configuration. Token scope: help_center:write. Required: id, portal. id is the portal slug.
- **list_all_commslayer_portal_categories** — List categories. Retrieve categories for a portal. Token scope: help_center:read. Required: portal_slug. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_portal_category** — Create category. Create a new category in a portal. Token scope: help_center:write. Required: portal_slug, category.
- **get_single_commslayer_portal_category_by_id** — Get category. Retrieve a specific category. Token scope: help_center:read. Required: id, portal_slug. id is the portal_categorie id.
- **update_a_commslayer_portal_category_by_id** — Update category. Update a category's details. Token scope: help_center:write. Required: id, portal_slug, category. id is the portal_categorie id.
- **delete_a_commslayer_portal_category_by_id** — Delete category. Delete a category and nullify its articles' category references. Token scope: help_center:write. Required: id, portal_slug. id is the portal_categorie id.
- **list_all_commslayer_portal_articles** — List articles. Retrieve articles for a portal. Content is not included in list responses for performance. Token scope: help_center:read. Required: portal_slug. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_portal_article** — Create article. Create a new article in a portal. Token scope: help_center:write. Required: portal_slug, article.
- **get_single_commslayer_portal_article_by_id** — Get article. Retrieve a specific article with full content. Token scope: help_center:read. Required: id, portal_slug. id is the portal_article id.
- **update_a_commslayer_portal_article_by_id** — Update article. Update an article's content or metadata. Token scope: help_center:write. Required: id, portal_slug, article. id is the portal_article id.
- **delete_a_commslayer_portal_article_by_id** — Delete article. Delete an article. Token scope: help_center:write. Required: id, portal_slug. id is the portal_article id.
- **list_all_commslayer_response_examples** — List response examples. Retrieve a paginated list of AI training response examples (question/answer pairs). Token scope: ai_training_responses:read. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_response_example** — Create response example. Create a new AI training response example. Token scope: ai_training_responses:write. Required: response_example.
- **get_single_commslayer_response_example_by_id** — Get response example. Retrieve a single response example by ID. Token scope: ai_training_responses:read. Required: id. id is the response_example id.
- **update_a_commslayer_response_example_by_id** — Update response example. Update an existing response example. Token scope: ai_training_responses:write. Required: id, response_example. id is the response_example id.
- **delete_a_commslayer_response_example_by_id** — Delete response example. Permanently delete a response example. Token scope: ai_training_responses:write. Required: id. id is the response_example id.
- **list_all_commslayer_report_overview** — Returns high-level overview metrics including created/closed tickets, response times, resolution times, and productivity data. Token scope: reports:read.
- **list_all_commslayer_report_agents** — Agent metrics. Returns performance metrics for each agent including tickets handled, response times, resolution times, and CSAT scores. Token scope: reports:read.
- **list_all_commslayer_report_agent_activity** — Agent activity. Returns what each agent did in the period, from the actions they took in conversations: active time, replies sent and conversations resolved per active hour, time per reply, and a count per kind of action. Active time adds up the gaps between an agent's consecutive actions that are shorter than meta.break_after_seconds; it is not time online. Actions taken through MCP count for the agent who owns the connection. Token scope: reports:read.
- **list_all_commslayer_report_agent_activity_log** — Agent activity log. Returns the actions agents took in conversations, one per row, newest first: replies, private notes, status changes, assignment, labels, merges, priority changes, AI approvals and opening a conversation. Page with cursor. data is empty and meta.tracking_enabled is false until an administrator turns on "Track agent activity" in Account settings. Token scope: reports:read.
- **list_all_commslayer_report_teams** — Team metrics. Returns performance metrics for each team including tickets handled, response times, and resolution times. Token scope: reports:read.
- **list_all_commslayer_report_inboxes** — Inbox metrics. Returns performance metrics for each inbox including tickets handled, response times, and resolution times. Token scope: reports:read.
- **list_all_commslayer_report_labels** — Label metrics. Returns metrics for each label including ticket count and distribution. Token scope: reports:read.
- **list_all_commslayer_report_csat** — CSAT metrics. Returns customer satisfaction metrics including overall score, response rates, and per-agent breakdowns. Token scope: reports:read.
- **list_all_commslayer_report_csat_responses** — CSAT responses. Returns individual CSAT survey responses, including the written feedback customers left, newest first. Uses the same date window and filters as the CSAT report export in the dashboard. Token scope: reports:read. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **list_all_commslayer_report_conversation_traffic** — Conversation traffic heatmap. Returns the average number of conversations created per day of week (1 = Monday to 7 = Sunday) and hour (0 to 23), in the account timezone. Requires the conversation traffic report to be enabled for the account. Token scope: reports:read.
- **list_all_commslayer_report_daily** — Daily facts. One row per day and group with numbers that add up across days and groups, for clients that keep their own history: conversations created and still open, resolutions, messages sent and received, CSAT responses with their rating total and satisfied count, AI-automated, manual and handed-over conversations, and first response, resolution and reply times as a total in seconds with a count. Token scope: reports:read.
- **list_all_commslayer_report_home** — Returns the Home dashboard as data: the same sections, filters and comparison period the Home page shows. Each section is a key under data; definitions gives the unit and aggregation of every metric per section, and meta echoes the resolved dates, timezone and filters. Token scope: reports:read.
- **list_all_commslayer_returns** — List returns. Retrieve a paginated list of the account's returns, newest first. Each item is a summary; get a single return for its items, label, timeline and emails. Requires returns to be turned on for the account. Token scope: returns:read. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_return** — Create return. Create a return for a customer's order, the way an agent does on the returns screen. The return skips the customer eligibility rules and starts out approved, so it's synced to Shopify and the label is bought (when label creation is set up) right away. order_id takes the Commslayer order id or Shopify's order id. Token scope: returns:write. Required: order_id, line_items.
- **get_single_commslayer_return_by_id** — Get return. A single return with its items, label, timeline and the emails sent to the customer. Token scope: returns:read. Required: id. id is the return id.
- **update_a_commslayer_return_by_id** — Edit return. Switch items between refund, store credit and exchange, or pick another replacement. Allowed until the return is refunded, paid out as store credit, or its replacement is created. After approval an item can't become an exchange and a replacement can't change, because Shopify can't add exchanges to an approved return; refund and store credit can still switch, and an exchange can become a refund or store credit. Token scope: returns:write. Required: id, line_items. id is the return id.
- **commslayer_returns_preview** — Preview return edit. Quote an edit without saving it. Takes the same body as editing the return. Token scope: returns:write. Required: return_id, line_items.
- **commslayer_returns_approve** — Approve return. Approve a submitted return. Give a decision per item in line_item_decisions; items left out are approved. When every item is declined, the return is declined. A label is bought when label creation is set up, unless skip_label is true. Token scope: returns:write. Required: return_id.
- **commslayer_returns_decline** — Decline return. Decline a submitted return. The reason is shown to the customer. Token scope: returns:write. Required: return_id.
- **commslayer_returns_refund** — Refund return. Refund the approved items of a return in Shopify, to the original payment or as store credit, depending on each item's refund method. This moves money, so it needs its own returns:refund scope; returns:write isn't enough. Only one refund of a return runs at a time. Token scope: returns:refund. Required: return_id.
- **commslayer_returns_retry** — Retry a failed step. Retry what failed for a return, as shown in its errors: the Shopify sync, the label or the gift card. Leave kind out to retry everything that failed. Answers 422 when nothing failed. Token scope: returns:write. Required: return_id.
- **create_a_commslayer_return_receipt** — Mark return received. Mark that the returned items arrived at the warehouse. Needs returns:write only, so a 3PL can be given a token that marks returns received without being able to refund them. Token scope: returns:write. Required: return_id.
- **list_all_commslayer_playground_conversations** — List playground conversations. Retrieve a paginated list of AI Playground test conversations, newest first. Token scope: playground:read. Paged with a cursor (page[after] / meta.next_cursor), up to 100 per page.
- **create_a_commslayer_playground_conversation** — Create playground conversation. Start an AI Playground test. The conversation is created in the account's AI inbox, owned by the AI agent, and guidance rules with status testing are active. Handovers, resolves and other side effects are simulated and show up as [Simulated] ... activity messages. The user who created the integration token is the assignee, so the test shows up in their Playground in the app. Token scope: playground:write. Required: playground_conversation.
- **get_single_commslayer_playground_conversation_by_id** — Get playground transcript. The full transcript of a playground conversation: every message with full content, the guidance detected on each customer message, the AI activity log (decisions and actions), simulated actions, pending approvals and the state of the AI's latest turn. Waits up to wait_seconds for the turn to finish; keep calling while ai_turn.state is processing. Token scope: playground:read. Required: id. id is the playground_conversation id.
- **create_a_commslayer_playground_message** — Send playground message. Send a customer message in a playground conversation and wait up to wait_seconds for the AI turn. Token scope: playground:write. Required: playground_conversation_id, message.

## How it works

1. **Link your customer's Commslayer account.** Use Truto's frontend SDK; we handle every OAuth and API key flow so you don't need to create the OAuth app.
2. **Authentication is automatic.** Truto refreshes tokens, stores credentials securely, and injects them into every API request.
3. **Call Truto's API to reach Commslayer.** The Proxy API is a 1-to-1 mapping of the Commslayer API.
4. **Get a unified response format.** Every response uses a single shape, with cursor-based pagination and data in the `result` field.

## Use cases

- **Embed helpdesk sync for 3PL and WMS platforms** — Warehouse and fulfillment SaaS can log return receipts into their merchants' Commslayer accounts the moment goods are scanned in, closing the loop on reverse logistics without giving external systems refund permissions.
- **Offer Commslayer as a destination for AI QA and training tools** — AI quality assurance and conversation intelligence platforms can pull live conversations, evaluate agent and bot responses, and push curated Q/A pairs back as response examples to continuously improve each merchant's native Commslayer AI agent.
- **Power BI and retention analytics with support data** — E-commerce analytics and LTV platforms can ingest CSAT verbatims, agent activity logs, and conversation traffic to correlate support quality with revenue retention — a core selling point for DTC-focused dashboards.
- **Route omnichannel leads and forms into a unified inbox** — Marketing CRMs, headless storefronts, and workflow tools can create Commslayer conversations from external channels (WhatsApp, lead forms, custom webhooks), ensuring every inbound touchpoint lands in the merchant's support queue with full history.
- **Ship human-in-the-loop AI copilots for support teams** — AI assistant SaaS can generate reply drafts inside Commslayer conversations for agent review, delivering AI value without consuming the merchant's native AI quota or risking unreviewed auto-replies.

## What you can build

- **Automated return receipt logging** — Trigger return receipt creation in Commslayer whenever your WMS or 3PL scans incoming inventory, and optionally approve, decline, refund, or retry returns from your own UI.
- **AI draft injection for agent review** — Generate suggested replies from your own LLM and insert them as unsent drafts on live Commslayer conversations, letting agents edit and send without touching the merchant's AI quota.
- **CSAT and agent activity analytics pipeline** — Continuously sync CSAT responses, agent activity logs, conversation traffic, and daily report data into your warehouse to power dashboards blending support KPIs with commerce metrics.
- **Two-way contact and conversation sync** — Keep contacts, labels, and conversations in sync between your product and Commslayer — including search, create, update, and GDPR-compliant deletion for right-to-erasure workflows.
- **AI playground validation for prompt changes** — Let your users test AI agent prompts and routing logic against simulated Commslayer conversations before pushing changes live to real tickets.
- **Embedded help center publishing** — Programmatically create and update portals, categories, and articles so your CMS or knowledge base tool can publish directly into the merchant's Commslayer help center.

## FAQs

### How do end users connect their Commslayer account?

Truto handles the auth handshake on your behalf — your users authenticate once through a Truto-hosted flow, and Truto stores and refreshes the credentials so you can call every Commslayer endpoint without managing tokens yourself.

### Which Commslayer operations are supported through Truto?

The full surface area exposed by Commslayer's API is available, including conversations, messages, drafts, contacts, labels, webhooks, portals and articles, response examples, returns (preview/approve/decline/refund/retry/receipt), AI playground, and the full reporting suite.

### Can we create AI reply drafts without consuming the merchant's AI quota?

Yes. Truto exposes Commslayer's draft endpoints, which let you create or replace unsent drafts on a conversation for human review — these do not count against the merchant's native AI agent quota.

### How do we receive real-time events from Commslayer?

You can manage Commslayer webhooks through Truto (create, update, rotate secrets, test, and inspect delivery logs), and receive normalized event payloads from Truto so you don't have to build a separate webhook receiver per customer.

### Can we test AI behavior before touching live tickets?

Yes — Commslayer's playground endpoints are available through Truto, so you can spin up simulated conversations and messages to validate prompts, routing, and handover logic before enabling changes on production conversations.

### How do we support GDPR right-to-erasure requests?

The contact delete endpoint is supported, which permanently erases a contact along with their conversations, CSAT scores, and synced Shopify data — you can wire this into your own privacy workflows via Truto.

## Related reading

- [Connect Commslayer to ChatGPT: Sync Chats and Support Analytics](https://truto.one/blog/connect-commslayer-to-chatgpt-sync-chats-and-support-analytics/) — Learn how to connect Commslayer to ChatGPT using an auto-generated Truto MCP server. Sync conversations, approve returns, and extract support analytics.
- [Connect Commslayer to Claude: Manage Help Articles and Portals](https://truto.one/blog/connect-commslayer-to-claude-manage-help-articles-and-portals/) — Learn how to securely connect Commslayer to Claude using a managed MCP server to automate inbox triage, knowledge base articles, and AI support responses.
- [Connect Commslayer to AI Agents: Automate Returns & Training](https://truto.one/blog/connect-commslayer-to-ai-agents-automate-returns-and-training/) — Learn how to connect Commslayer to AI Agents using Truto's /tools endpoint. Automate e-commerce returns, AI playground testing, and workflows.
