info:
  name: Check Pending Registration
  type: http
  seq: 4

http:
  method: POST
  url: '{{base_url}}/api/devices/register/status'
  auth: none
  headers:
    - key: Content-Type
      value: application/json
  body:
    type: json
    json:
      registration_id: registration-uuid-here

docs: |-
  ## Check Registration Status

  Checks the current status of a device registration request.

  **Method:** POST

  **Endpoint:** /api/devices/register/status

  **Authentication:** None

  **Request Body:**
  - `registration_id` (string): UUID received from registration request

  **Response:**
  - `registration_id` (string): The registration UUID
  - `status` (string): Current status
    - `pending`: Awaiting user approval
    - `approved`: Registration approved, device ready
    - `rejected`: Registration rejected by user
    - `expired`: Registration expired (not approved in time)
  - `device_name` (string): Name of the device
  - `device_type` (string): Type of device
  - `created_at` (string): Registration timestamp
  - `updated_at` (string): Last status update timestamp

  **Status Codes:**
  - 200: Status retrieved successfully
  - 404: Registration ID not found
  - 400: Invalid registration ID format

  **Polling Recommendations:**
  - Poll every 5-10 seconds while status is `pending`
  - Stop polling when status changes to `approved`, `rejected`, or `expired`
  - Use exponential backoff for mobile devices to save battery
