SMS API

FREEMIUM
Par nbanz | Mise à jour il y a 2 mois | Communication
Popularité

9.6 / 10

Latence

29ms

Niveau de service

100%

Health Check

100%

LISEZ-MOI

SMS Receive API

This is an SMS API for receiving SMS on various phone numbers for phone verification (2FA) or to prevent spam.
Multiple countries available, including USA, GB, NL and more.

Endpoints

GET /numbers

No parameters.
This endpoint gets all available phone numbers available for receiving.

Example response (Code 200 / Success):

[
  {
    "full": "+447947571472",
    "full_int": 447947571472,
    "country_code": 44,
    "national_number": 7947571472
  },
  {
    "full": "+447499937670",
    "full_int": 447499937670,
    "country_code": 44,
    "national_number": 7499937670
  },
  {
    "full": "+4592857271",
    "full_int": 4592857271,
    "country_code": 45,
    "national_number": 92857271
  },
  {
    "full": "+639699917700",
    "full_int": 639699917700,
    "country_code": 63,
    "national_number": 9699917700
  },
  {
    "full": "+31649715518",
    "full_int": 31649715518,
    "country_code": 31,
    "national_number": 649715518
  }
]

This endpoint cannot fail.

GET /messages/{number}

The number parameter is an integer number taken from full_int on the /numbers endpoint.
This endpoint gets all messages for the given phone number, in reverse order (latest message first)

Example response (404 / Invalid number):

{"detail": "Number not found"}

Example response (200 / Success):

[
  {
    "sender": "254829",
    "message": "Hey there!",
    "timestamp": 1699271491
  },
  {
    "sender": "123339373",
    "message": "Another message",
    "timestamp": 1699271413
  },
  {
    "sender": "Alex",
    "message": "Senders might be strings too!",
    "timestamp": 1699271388
  }
]
Abonnés : 2
Créateur d'API :
Rapid account: Nbanz
nbanz
nbanz
Connectez-vous pour évaluer l'API
Note : 5 - Votes : 2