--- method: GET path: /api/devices/pending auth: jwt area: devices --- # List Pending Device Registrations:<|end|><|start|><|start|>assistant to=edit<|channel|>analysis <|constrain|>xml<|message|> /home/nymusicman/Code/bookhoard/docs/developer/api/devices/reject_device_registration.md List all pending device registration requests. **Endpoint**: `GET /api/devices/pending` **Auth**: Required (Admin only) ## Request Headers | Header | Type | Required | Description | | ------------- | ------ | -------- | ----------------------------------- | | Authorization | string | Yes | Bearer token (must have admin role) | ### Example Request ```http GET /api/devices/pending Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... ``` ## Response (200 OK) ```json example-response { "registrations": [ { "id": "uuid", "device_name": "My Kobo", "device_type": "kobo", "user_email": "user@example.com", "created_at": "2026-02-08T10:00:00Z" } ], "total": 3, "pending_registrations": null } ``` ## Error Responses | Code | Description | | ---- | ----------------------------------- | | 401 | Invalid or expired token | | 403 | User does not have admin privileges |