Textmagic Lists API

Manage contact lists.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /lists List my contact lists · Get all lists #
Ask an LLM
“What contact lists have I set up for texting?”
“Can I page through all my customer groups?”
Tell an agent
List all my contact lists.
Show page {page} of my lists.
POST /lists Create a contact list · Create a new list #
Ask an LLM
“How do I start a new group of customers to text together?”
“Can I create a list that's shared with my team?”
Tell an agent
Create a list called {name}.
Make a new list {name} described as {description}.
GET /lists/{id} Look up one contact list · Get the details of a specific list #
Ask an LLM
“What details are stored for a specific list?”
“Can I view one list's settings by its ID?”
Tell an agent
Get list {id}.
Show the details of list {id}.
PUT /lists/{id} Rename or edit a contact list · Edit a list #
Ask an LLM
“How do I rename a list I already created?”
“Can I change the description or sharing of an existing list?”
Tell an agent
Rename list {id} to {name}.
Update list {id} with name {name} and description {description}.
DELETE /lists/{id} Delete a contact list · Delete a list #
Ask an LLM
“How do I get rid of a list I no longer use?”
“Can I delete a whole contact list?”
Tell an agent destructive · confirm first
Delete list {id}.
Remove contact list {id}.
GET /lists/{id}/contacts See who is on a contact list · Get all contacts in a list #
Ask an LLM
“Who are the customers on a particular list?”
“Can I page through the members of one list?”
Tell an agent
Show the contacts in list {id}.
List page {page} of members of list {id}.
PUT /lists/{id}/contacts Add contacts to a list · Assign contacts to a list #
Ask an LLM
“How do I put existing contacts onto a list?”
“Can I add several contacts to one group at once?”
Tell an agent
Add contacts {contacts} to list {id}.
Assign {contacts} to list {id}.
DELETE /lists/{id}/contacts Remove contacts from a list · Unassign contacts from a list #
Ask an LLM
“Can I take contacts off a list without deleting them?”
“What's the way to unassign people from a group?”
Tell an agent destructive · confirm first
Unassign contacts from list {id}.
Take contacts off list {id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/textmagic:textmagic-lists-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

textmagic-lists-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Textmagic REST Lists API
  description: The Textmagic REST API (v2) provides programmatic access to the Textmagic business text-messaging platform. Send and receive SMS, manage contacts and lists, schedule and template messages, run two-way chats, and administer sender IDs and dedicated numbers. All requests are authenticated with the X-TM-Username and X-TM-Key headers.
  termsOfService: https://www.textmagic.com/terms-of-service/
  contact:
    name: Textmagic Support
    email: support@textmagic.com
    url: https://docs.textmagic.com/
  version: '2.0'
servers:
- url: https://rest.textmagic.com/api/v2
security:
- TmUsername: []
  TmKey: []
tags:
- name: Lists
  description: Manage contact lists.
paths:
  /lists:
    get:
      operationId: getLists
      tags:
      - Lists
      summary: Get all lists
      parameters:
      - $ref: '#/components/parameters/Page'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: A paginated list of contact lists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactListList'
    post:
      operationId: createList
      tags:
      - Lists
      summary: Create a new list
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListRequest'
      responses:
        '201':
          description: The created list's identifier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceLink'
  /lists/{id}:
    get:
      operationId: getList
      tags:
      - Lists
      summary: Get the details of a specific list
      parameters:
      - $ref: '#/components/parameters/IdPath'
      responses:
        '200':
          description: A single contact list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactListEntity'
        '404':
          $ref: '#/components/responses/NotFound'
    put:
      operationId: updateList
      tags:
      - Lists
      summary: Edit a list
      parameters:
      - $ref: '#/components/parameters/IdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListRequest'
      responses:
        '200':
          description: The updated list's identifier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceLink'
    delete:
      operationId: deleteList
      tags:
      - Lists
      summary: Delete a list
      parameters:
      - $ref: '#/components/parameters/IdPath'
      responses:
        '204':
          description: The list was deleted.
  /lists/{id}/contacts:
    get:
      operationId: getListContacts
      tags:
      - Lists
      summary: Get all contacts in a list
      parameters:
      - $ref: '#/components/parameters/IdPath'
      - $ref: '#/components/parameters/Page'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Contacts that belong to the list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactList'
    put:
      operationId: assignContactsToList
      tags:
      - Lists
      summary: Assign contacts to a list
      parameters:
      - $ref: '#/components/parameters/IdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListContactsRequest'
      responses:
        '204':
          description: Contacts were assigned to the list.
    delete:
      operationId: unassignContactsFromList
      tags:
      - Lists
      summary: Unassign contacts from a list
      parameters:
      - $ref: '#/components/parameters/IdPath'
      responses:
        '204':
          description: Contacts were unassigned from the list.
components:
  parameters:
    IdPath:
      name: id
      in: path
      required: true
      schema:
        type: integer
      description: The resource identifier.
    Page:
      name: page
      in: query
      schema:
        type: integer
        default: 1
      description: Page number for pagination.
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        default: 10
      description: Number of items per page.
  schemas:
    ListContactsRequest:
      type: object
      properties:
        contacts:
          type: string
          description: Comma-separated list of contact IDs.
      required:
      - contacts
    Error:
      type: object
      properties:
        message:
          type: string
        code:
          type: integer
        errors:
          type: object
    Contact:
      type: object
      properties:
        id:
          type: integer
        firstName:
          type: string
        lastName:
          type: string
        companyName:
          type: string
        phone:
          type: string
        email:
          type: string
        country:
          $ref: '#/components/schemas/Country'
        lists:
          type: array
          items:
            $ref: '#/components/schemas/ContactListEntity'
        blocked:
          type: boolean
    ContactListEntity:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        description:
          type: string
        membersCount:
          type: integer
        shared:
          type: boolean
    ResourceLink:
      type: object
      properties:
        id:
          type: integer
        href:
          type: string
    ContactList:
      type: object
      properties:
        page:
          type: integer
        limit:
          type: integer
        pageCount:
          type: integer
        resources:
          type: array
          items:
            $ref: '#/components/schemas/Contact'
    ListRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        shared:
          type: boolean
      required:
      - name
    Country:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
    ContactListList:
      type: object
      properties:
        page:
          type: integer
        limit:
          type: integer
        pageCount:
          type: integer
        resources:
          type: array
          items:
            $ref: '#/components/schemas/ContactListEntity'
  responses:
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    TmUsername:
      type: apiKey
      in: header
      name: X-TM-Username
      description: Your Textmagic account username.
    TmKey:
      type: apiKey
      in: header
      name: X-TM-Key
      description: Your Textmagic API key, generated in the account settings.