API Documentation

  • Overview
  • Quickstart Guide
  • Voice Quickstart
  • Verify Quickstart
  • Software Development Kits (SDKs)
  • Claude & MCP

  • AI Agents
  • Authentication
  • Billing
  • Brands
  • Campaigns
  • Compliance
  • Groups
  • Landing
  • Messages
  • Templates (RCS)
  • RCS Agents
  • RCS Quickstart
  • RCS Guide
  • Notifications
  • Numbers
  • OAuth
  • Opt-Out Enforcement
  • Registrations
  • Shortlinks
  • Subgroups
  • Subscriptions
  • Users
  • Verify
  • Voice
  • Webhooks

  • Error Handling
  • RCS Errors
  • Rate Limits
  • Webhook Signing

  • OpenAPI Spec
  • llms.txt
  • Portal

Shortlinks

GET/shortlink/redirect/:shortlink

Public endpoint that resolves a shortcode and returns the original URL as JSON. Also records a click for analytics. Does not require auth. The caller is responsible for performing the actual redirect.

Request Body

FieldTypeRequiredDescription
shortlinkURL ParamRequiredThe shortcode generated by the system.

Example Response 200

Response
{
  "originalUrl": "https://example.com/promo"
}

SDK Example

  • .NET
  • GoLang
  • JavaScript
  • PHP
  • Python
  • Ruby
  • Rust
GET/shortlink/optout/:code

Public endpoint behind the opt-out link Signal House appends to every message sent from a UK Alphanumeric Sender ID (sihou.io/o/:code). Returns what the opt-out page shows: the sender name, the recipient masked to its country code, two digits and last three digits, and whether the recipient has already opted out. Reading never opts the recipient out, so link scanners and previews are safe. Does not require auth. An unknown or malformed code returns a 404.

Request Body

FieldTypeRequiredDescription
codeURL ParamRequiredThe opt-out code from the link.

Example Response 200

Response
{
  "code": "Xk3P9qa",
  "senderName": "ACME",
  "maskedRecipient": "+4479•••••456",
  "optedOut": false
}

SDK Example

  • .NET
  • GoLang
  • JavaScript
  • PHP
  • Python
  • Ruby
  • Rust
POST/shortlink/optout/:code

Public endpoint that confirms the opt-out behind an opt-out link. It records the same STOP an inbound keyword would, so the recipient is added to the sender group's Do Not Contact list, and stamps the link as used. Takes no body. Idempotent: confirming again re-asserts the opt-out and returns the same result. Does not require auth. An unknown or malformed code returns a 404.

Request Body

FieldTypeRequiredDescription
codeURL ParamRequiredThe opt-out code from the link.

Example Response 200

Response
{
  "code": "Xk3P9qa",
  "senderName": "ACME",
  "maskedRecipient": "+4479•••••456",
  "optedOut": true
}

SDK Example

  • .NET
  • GoLang
  • JavaScript
  • PHP
  • Python
  • Ruby
  • Rust
GET/shortlink

Read shortlink details/analytics. Customer roles must pass at least one filter — an unfiltered read-all is restricted to internal use. visits counts people; link previews and scanners count in prefetchVisits.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
shortlinkQuery ParamOptionalFilter by shortlink.
messageIdQuery ParamOptionalFilter by originating Message ID.
phoneNumberQuery ParamOptionalFilter by phone number.
campaignIdQuery ParamOptionalFilter by Campaign ID.
brandIdQuery ParamOptionalFilter by Brand ID.
subgroupIdQuery ParamOptionalFilter by Subgroup ID.
groupIdQuery ParamOptionalFilter by Group ID.
pageQuery ParamOptionalPage number for pagination.
limitQuery ParamOptionalResults per page.

Example Response 200

Response
[
  {
    "_id": "60f7b2a1c9e77c001a2b3c5d",
    "groupId": "G1234567",
    "subgroupId": "S1234567",
    "brandId": "B1234567",
    "campaignId": "C1234567",
    "phoneNumber": "12246431042",
    "messageId": "60f7b2a1c9e77c001a2b3c58",
    "originalUrl": "https://example.com/promo",
    "shortlink": "abc123",
    "visits": 42,
    "prefetchVisits": 3,
    "createdAt": "2024-01-15T14:30:00.000Z",
    "updatedAt": "2024-01-15T16:00:00.000Z"
  }
]

SDK Example

  • .NET
  • GoLang
  • JavaScript
  • PHP
  • Python
  • Ruby
  • Rust