> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wazzapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Device Status

> Return live connection status for a device.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/devices/{device_id}/status
openapi: 3.1.0
info:
  title: wazzapi Public API
  description: >-
    Public API surface for external API-key clients. Only stable /api/v1
    endpoints are included.


    ## Webhook deliveries

    This reference also includes the webhook requests Wazzapi sends to your
    endpoint for incoming messages, message status updates, and device status
    changes. See the `Incoming webhooks` section in the sidebar for headers,
    payload fields, and concrete examples.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Incoming webhooks
    description: >-
      POST deliveries that Wazzapi sends to your webhook endpoint after you
      subscribe to supported events. Verify the signature against the raw body
      and return a 2xx response quickly.
paths:
  /api/v1/devices/{device_id}/status:
    get:
      tags:
        - devices
      summary: Get Device Status
      description: Return live connection status for a device.
      operationId: get_device_status_api_v1_devices__device_id__status_get
      parameters:
        - name: device_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Device Id
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AccountStatusResponse:
      properties:
        account_id:
          type: string
          format: uuid
          title: Account Id
        status:
          type: string
          title: Status
        backend_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Backend Status
        phone_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone Number
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        message_logging_enabled:
          type: boolean
          title: Message Logging Enabled
        total_messages_sent:
          type: integer
          title: Total Messages Sent
        total_messages_received:
          type: integer
          title: Total Messages Received
        total_messages_delivered:
          type: integer
          title: Total Messages Delivered
        total_messages_read:
          type: integer
          title: Total Messages Read
        total_messages_failed:
          type: integer
          title: Total Messages Failed
        last_connected_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Connected At
        last_health_check_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Health Check At
        proxy_enabled:
          type: boolean
          title: Proxy Enabled
          default: false
        connection_hint:
          anyOf:
            - type: string
            - type: 'null'
          title: Connection Hint
      type: object
      required:
        - account_id
        - status
        - backend_status
        - phone_number
        - name
        - message_logging_enabled
        - total_messages_sent
        - total_messages_received
        - total_messages_delivered
        - total_messages_read
        - total_messages_failed
        - last_connected_at
        - last_health_check_at
      title: AccountStatusResponse
      description: Response with account connection status.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````