Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Textmagic Numbers API

Find and manage dedicated virtual numbers.

Textmagic Numbers API is one of 11 APIs that Textmagic publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Numbers. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 5 operations across 3 paths, and defines 7 schemas. It is described by OpenAPI 3.0.1, at version 2.0.

Requests are made against a single base URL, https://rest.textmagic.com/api/v2.

5 operations 3 paths 7 schemas 1 DELETE3 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
2.0
Base URL
https://rest.textmagic.com/api/v2
Authentication
API Key, API Key
Terms of Service
Resource Areas
1

Authentication & Security 2

Textmagic Numbers API declares 2 security schemes for authenticating requests. An API key is passed in the header as X-TM-Username (TmUsername). An API key is passed in the header as X-TM-Key (TmKey). By default, every request must be authenticated.

  • TmUsername — Your Textmagic account username.
  • TmKey — Your Textmagic API key, generated in the account settings.

Paths & Operations 5

Across 3 paths, the API surfaces 5 operations — 1 DELETE, 3 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Numbers 5

Find and manage dedicated virtual numbers.

GET
/numbers
Get all your dedicated numbers
getNumbers 2 params → 200
POST
/numbers
Buy a dedicated number
buyNumber body → 201
GET
/numbers/available
Find dedicated numbers available for purchase
getAvailableNumbers 1 param → 200
GET
/numbers/{id}
Get the details of a specific dedicated number
getNumber 1 param → 200404
DELETE
/numbers/{id}
Cancel a dedicated number subscription
cancelNumber 1 param → 204

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are Number (6 properties), NumberList (4 properties), Error (3 properties), ResourceLink (2 properties). Each schema is shown below with its type and property counts.

AvailableNumbers
object
2 properties
Country
object
2 properties
BuyNumberRequest
object
2 properties 2 required
NumberList
object
4 properties
ResourceLink
object
2 properties
Number
object
6 properties
Error
object
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

textmagic-numbers-api-openapi.yml Raw ↑

Other APIs Textmagic publishes across the network.

Textmagic Bulk API
Textmagic Chats API
Textmagic Contacts API
Textmagic Lists API
Textmagic Messages API
Textmagic Replies API
Textmagic Schedules API
Textmagic Sender IDs API
Textmagic Stats API
Textmagic Templates API