---
title: "Search for a single/list of device status(es) using either an RFID or a NLIS ID Copy"
url: "https://developer.mla.com.au/apis/device-public-production/versions/1cf272f5-2ff6-4b07-8a8c-ecb73eab03b2/operations/searchDeviceStatusOpt"
---

> Full API specification: https://developer.mla.com.au/apis/device-public-production/versions/1cf272f5-2ff6-4b07-8a8c-ecb73eab03b2.md

# Search for a single/list of device status(es) using either an RFID or a NLIS ID Copy

`OPTIONS` `/public/device/v1/status`

Operation ID: `searchDeviceStatusOpt`

INTERNAL USE.

## Header parameters

- `correlationId` (string, required) - UUID used to track the API call from the invoker's perspective. Sender is required to include the correlationId in the request to use it as a tracker for asynchronous responses.

## Responses

- `200`
- `404`
- `422`

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Device Public
  version: v1.0.0
servers:
  - url: https://7d40e2d8b1.gateways.konggateway.com
paths:
  /public/device/v1/status:
    options:
      summary: Search for a single/list of device status(es) using either an RFID or a
        NLIS ID Copy
      deprecated: false
      description: "INTERNAL USE. "
      operationId: searchDeviceStatusOpt
      tags:
        - Miscellaneous
      parameters:
        - name: correlationId
          in: header
          description: UUID used to track the API call from the invoker's perspective.
            Sender is required to include the correlationId in the request to
            use it as a tracker for asynchronous responses.
          required: true
          example: ""
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: object
                properties:
                  receiptId:
                    type: string
                  devices:
                    type: array
                    items:
                      type: object
                      properties:
                        rfid:
                          type: string
                        nlisId:
                          type: string
                        statuses:
                          type: array
                          items:
                            type: object
                            properties:
                              status:
                                type: string
                              statusCode:
                                type: string
                              category:
                                type: string
                              programCode:
                                type: string
                              effectiveDate:
                                type: string
                              expiryDate:
                                type: string
                              comments:
                                type: string
                            required:
                              - status
                              - statusCode
                              - category
                              - programCode
                              - effectiveDate
                              - expiryDate
                              - comments
                      required:
                        - rfid
                        - nlisId
                        - statuses
                required:
                  - receiptId
                  - devices
              example:
                receiptId: adhfoa90sd78fa
                devices:
                  - rfid: 982 123489467678
                    nlisId: 3MGJE153XBJ00611
                    statuses:
                      - status: Anthrax Withholding (AV-AV1)
                        statusCode: AV1
                        category: Vaccination
                        programCode: AV
                        effectiveDate: 01/01/2025
                        expiryDate: 01/03/2025
                        comments: Assigned to cattle that have been vaccinated against anthrax.
                  - rfid: 982 123489467679
                    nlisId: 3MGJE153XBJ00612
                    statuses:
                      - status: Anthrax Withholding (AV-AV1)
                        statusCode: AV1
                        category: Vaccination
                        programCode: AV
                        effectiveDate: 01/01/2025
                        expiryDate: 01/03/2025
                        comments: Assigned to cattle that have been vaccinated against anthrax.
          headers:
            correlationId:
              example: ""
              required: true
              description: UUID used to track the API call from the invoker's perspective.
                Sender is required to include the correlationId in the request
                to use it as a tracker for asynchronous responses.
              schema:
                type: string
        "404":
          description: ""
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
        "422":
          description: ""
          content:
            application/json:
              schema:
                title: ""
                type: object
                properties:
                  detail:
                    items:
                      $ref: "#/components/schemas/ValidationError"
                    type: array
                    title: Detail
                required:
                  - detail
          headers: {}
      security: []
security: []
components:
  schemas:
    ValidationError:
      properties:
        field:
          type: string
          title: Message
        message:
          type: string
          title: Error Type
      type: object
      required:
        - field
        - message
      title: ValidationError
```
