Skip to content
Create an account

OTP: list

OTP: list #

GET /v1/otps
GET /otps

List your OTPs, one page at a time.

Query parameters

Parameter Type Default Description
page integer 1 Page number
limit integer 20 Items per page, 100 at most
started_at date -30 days Start date (YYYY-MM-DD)
ended_at date today End date (YYYY-MM-DD)

Example request

// Lister les codes OTP envoyés
const credentials = btoa('ACCESS_KEY:ACCESS_SECRET');
const res = await fetch('https://api.callistosignal.com/v1/otps?limit=50', {
    headers: { 'Authorization': 'Basic ' + credentials }
});
// Lister les codes OTP envoyés
$ch = curl_init('https://api.callistosignal.com/v1/otps?limit=50');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'ACCESS_KEY:ACCESS_SECRET',
]);
$response = curl_exec($ch);
curl -u 'ACCESS_KEY:ACCESS_SECRET' \
  'https://api.callistosignal.com/v1/otps?limit=50'

Response

{
  "items": [
    {
      "id": "3b5d654b-d603-44b6-8f9e-0f24b38eafd0",
      "organization_id": "9d8e0eab-6c65-4794-ae22-637445a421bf",
      "api_key_id": "c11e9a92-27eb-430f-949f-40dea00d521d",
      "message_id": "ea01e0ba-02d2-471a-8e23-340b7d570b3e",
      "recipient": "+22507XXXXXXXX",
      "status": "expired",
      "expires_at": "2026-04-07 19:05:12",
      "verified_at": null,
      "attempts": 0,
      "created_at": "2026-04-07 18:06:52",
      "updated_at": "2026-04-07 18:06:52"
    },
    {
      "id": "d5f29dfc-03b5-41da-b371-2d7998896c72",
      "organization_id": "9d8e0eab-6c65-4794-ae22-637445a421bf",
      "api_key_id": "c11e9a92-27eb-430f-949f-40dea00d521d",
      "message_id": "ac118655-fe08-4eba-afb1-e4a7a5399a95",
      "recipient": "+22508XXXXXXXX",
      "status": "verified",
      "expires_at": "2026-04-07 18:55:37",
      "verified_at": "2026-04-07 18:52:15",
      "attempts": 1,
      "created_at": "2026-04-07 17:57:17",
      "updated_at": "2026-04-07 18:52:15"
    }
  ],
  "total": 25,
  "per_page": 20,
  "current_page": 1,
  "next": 2,
  "previous": 0,
  "total_pages": 2
}