Skip to main content
The v2 API is the current, production-ready version of the Trackly SMS API. It replaces the deprecated v1 API with expanded functionality, consistent field naming, and new resource types.

Base URL

All v2 API requests should be made to:

Authentication

Every request requires an API key in the X-Api-Key header:
API keys follow the format trk_[32-char-alphanumeric]. See Authentication for details.

What’s New in V2

Request Format

  • All requests must include Content-Type: application/json
  • Phone numbers must be in E.164 format (e.g., +14155551234)
  • Request bodies must be valid JSON
  • Maximum payload size: 5 MB

Response Format

All v2 responses use a consistent JSON structure.

Pagination

Endpoints that return lists support pagination via query parameters: Paginated responses include a pagination object:

Bulk Operations

Bulk endpoints accept up to 1,000 records per request. Each record is processed individually — partial success is possible. Bulk responses include per-record error details:

Available Endpoints

Messages

Send single and bulk SMS messages

Raw Messages

Send raw messages with skip options

Contacts

Create, list, and manage contacts

Lists

View sending lists and contact counts

Number Requests

Request number provisioning and track status

Business Profiles

Look up brand/KYB profiles

Creatives

Manage message templates with offer links

Audiences

Build dynamic audience segments

Offers

Manage tracking offers and payouts

Schedules

Create and manage scheduled campaigns

Links

Create trackable short links for offers

Revenue

Record revenue attribution

Data Import

Import historical sends, clicks, and revenue

Webhooks

Receive delivery and reply events

Audience Filters

Build complex audience filter queries

Migration from V1

If you’re using the deprecated v1 API, see the Migration Guide for a field-by-field comparison and upgrade path.

Next Steps

Send First SMS

Send your first message in 5 minutes

Authentication

Set up your API key