Technical Documentation

This documentation is designed for CTOs and technical teams to implement our SMS verification API. Integration takes just 1 day with only 4 simple endpoints.

Integration Overview

To integrate with our SMS verification service, you'll need to implement 4 simple API endpoints. The entire process typically takes just 1 day to complete.

Our API follows RESTful principles and returns responses in JSON format. All API requests require authentication using your API key, which will be provided upon partnership approval.

Base URL

https://api.yourservice.com

Authentication

All API requests require an api_key parameter. This key should be included in the query string for GET requests and in the request body for POST requests.

Example Request with Authentication

GET https://api.yourservice.com/getNumbers?api_key=YOUR_API_KEY

GET getNumbers

GET

Returns available numbers, countries, and quantities, with optional country filtering.

Endpoint URL

https://api.yourservice.com/getNumbers

Parameters

NameTypeRequiredDescription
api_keystringYesYour API key for authentication
countrystringNoOptional ISO country code to filter results (e.g., US, GB, DE)

Response

{
  "status": "success",
  "numbers": [
    {
      "country": "US",
      "country_name": "United States",
      "available": 5000,
      "price_per_sms": 0.05
    },
    {
      "country": "GB",
      "country_name": "United Kingdom",
      "available": 3200,
      "price_per_sms": 0.06
    }
  ]
}

Example

// Implementation note
// Use this endpoint to retrieve available numbers
// You can optionally filter by country code

POST rentNumber

POST

Rents a phone number from your service for SMS verification.

Endpoint URL

https://api.yourservice.com/rentNumber

Parameters

NameTypeRequiredDescription
api_keystringYesYour API key for authentication
countrystringYesISO country code (e.g., US, GB, DE)
servicestringNoOptional service identifier for specific platforms

Response

{
  "status": "success",
  "number": "+14155552671",
  "rental_id": "rent_12345",
  "expires_at": "2023-06-15T15:30:45Z",
  "country": "US"
}

Example

// Implementation note
// Use this endpoint to rent a number for SMS verification
// Remember to store the rental_id for retrieving SMS messages

GET getSMS

GET

Retrieves SMS messages received on a rented number.

Endpoint URL

https://api.yourservice.com/getSMS

Parameters

NameTypeRequiredDescription
api_keystringYesYour API key for authentication
rental_idstringYesThe rental ID returned from rentNumber

Response

{
  "status": "success",
  "messages": [
    {
      "sender": "Facebook",
      "text": "Your verification code is: 123456",
      "received_at": "2023-06-15T15:25:30Z"
    }
  ],
  "number": "+14155552671"
}

Example

// Implementation note
// Use this endpoint to retrieve SMS messages for a rented number
// You may need to poll this endpoint until a message is received

POST cancelNumber

POST

Cancels a previously rented phone number and stops any further charges.

Endpoint URL

https://api.yourservice.com/cancelNumber

Parameters

NameTypeRequiredDescription
api_keystringYesYour API key for authentication
rental_idstringYesThe rental ID of the number to cancel

Response

{
  "status": "success",
  "message": "Number rental cancelled successfully",
  "rental_id": "rent_12345",
  "refund_amount": 0.00
}

Example

// Implementation note
// Use this endpoint to cancel a number rental when you no longer need it
// This can help prevent unnecessary charges for unused numbers

Need Help?

Our technical team is available to assist with your integration. We can help you implement these endpoints and ensure a smooth integration process in just 1 day.