GET
/
sandbox_sessions
curl --request GET \
  --url https://app.kapso.ai/api/v1/sandbox_sessions \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "phone_number": "+12345678901",
      "status": "pending_activation",
      "activation_code": "ABC123",
      "activation_message": "Your WhatsApp Sandbox activation code is: ABC123",
      "activation_link": "https://wa.me/12345678901?text=ABC123",
      "activated_at": "2023-11-07T05:31:56Z",
      "expires_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "agent": {
        "id": "agent-123abc",
        "name": "Customer Support Agent",
        "description": "Handles initial customer support queries",
        "project_id": "project-456def",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    }
  ],
  "meta": {
    "page": 123,
    "per_page": 123,
    "total_pages": 123,
    "total_count": 123
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Query Parameters

page
integer
default:1
Required range: x >= 1
per_page
integer
default:20
Required range: 1 <= x <= 100

Response

200
application/json

A list of sandbox sessions

The response is of type object.