GET /admin/api-keys/{id}/devices

Get all devices created with a specific API key

Path parameters

  • id integer Required

    API Key ID

Responses

  • 200 application/json

    Devices retrieved

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • data array[object]
      Hide data attributes Show data attributes object
      • device_id string
      • device_name string
      • whatsmeow_jid string
      • status string
      • created_at string
      • last_active_at string
GET /admin/api-keys/{id}/devices
curl \
 --request GET 'http://localhost:7001/admin/api-keys/{id}/devices' \
 --header "X-Admin-Secret: $API_KEY"
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Devices retrieved successfully",
  "data": [
    {
      "device_id": "550e8400-e29b-41d4-a716-446655440000",
      "device_name": "Production Phone",
      "whatsmeow_jid": "6281234567890@s.whatsapp.net",
      "status": "active",
      "created_at": "2025-01-01T00:00:00Z",
      "last_active_at": "2025-12-03T10:30:00Z"
    }
  ]
}