Textmagic Contacts API

Manage contacts in the address book.

GitHub OpenAPI

Operations 6

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 /contacts List my contacts · Get all contacts #
Ask an LLM
“Where can I see everyone in my texting address book?”
“Can I page through all my saved contacts?”
Tell an agent
List all my contacts.
Show page {page} of my contacts.
POST /contacts/normalized Add a new contact · Add a new contact #
Ask an LLM
“How do I save a new customer's phone number for texting?”
“Can I add a contact with their email and company and put them on a list?”
Tell an agent
Add contact {phone} to lists {lists}.
Create a contact named {firstName} {lastName} with phone {phone} on lists {lists}.
GET /contacts/{id} Look up one contact · Get the details of a specific contact #
Ask an LLM
“What details do I have saved for a specific customer?”
“Can I pull up a single contact's record by its ID?”
Tell an agent
Get contact {id}.
Show me the details for contact {id}.
DELETE /contacts/{id} Delete a contact · Delete a contact #
Ask an LLM
“How do I remove a customer from my contacts for good?”
“Can I delete one contact record?”
Tell an agent destructive · confirm first
Delete contact {id}.
Remove contact {id} from my address book.
PUT /contacts/{id}/normalized Edit an existing contact · Edit a contact #
Ask an LLM
“How do I fix a customer's phone number or name on an existing contact?”
“Can I change which lists a contact I already saved belongs to?”
Tell an agent
Update contact {id} with phone {phone} and lists {lists}.
Change the email on contact {id} to {email}, keeping phone {phone} and lists {lists}.
GET /contacts/search Search my contacts · Find contacts by given criteria #
Ask an LLM
“Can I find a customer in my contacts by typing part of their name or number?”
“Which contacts match a search term?”
Tell an agent
Search my contacts for {query}.
Find contacts matching {query}.

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-contacts-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-contacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Textmagic REST Contacts 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: Contacts
  description: Manage contacts in the address book.
paths:
  /contacts:
    get:
      operationId: getContacts
      tags:
      - Contacts
      summary: Get all contacts
      parameters:
      - $ref: '#/components/parameters/Page'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: A paginated list of contacts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactList'
  /contacts/normalized:
    post:
      operationId: createContact
      tags:
      - Contacts
      summary: Add a new contact
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactRequest'
      responses:
        '201':
          description: The created contact's identifier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceLink'
        '400':
          $ref: '#/components/responses/BadRequest'
  /contacts/{id}:
    get:
      operationId: getContact
      tags:
      - Contacts
      summary: Get the details of a specific contact
      parameters:
      - $ref: '#/components/parameters/IdPath'
      responses:
        '200':
          description: A single contact.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Contact'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: deleteContact
      tags:
      - Contacts
      summary: Delete a contact
      parameters:
      - $ref: '#/components/parameters/IdPath'
      responses:
        '204':
          description: The contact was deleted.
  /contacts/{id}/normalized:
    put:
      operationId: updateContact
      tags:
      - Contacts
      summary: Edit a contact
      parameters:
      - $ref: '#/components/parameters/IdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactRequest'
      responses:
        '200':
          description: The updated contact's identifier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceLink'
  /contacts/search:
    get:
      operationId: searchContacts
      tags:
      - Contacts
      summary: Find contacts by given criteria
      parameters:
      - $ref: '#/components/parameters/Page'
      - $ref: '#/components/parameters/Limit'
      - name: query
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Matching contacts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactList'
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.
  responses:
    BadRequest:
      description: The request was malformed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    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'
    Country:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
    ContactRequest:
      type: object
      properties:
        phone:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        email:
          type: string
        companyName:
          type: string
        lists:
          type: string
          description: Comma-separated list of list IDs to assign the contact to.
      required:
      - phone
      - lists
  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.