---
title: "Find samples"
method: GET
path: "/samples"
tags: ["samples"]
---

# Find samples

`GET /samples`

Find a sample or samples. You may query using field filters with asterisk (*) wildcards. You may also optionally specify sort, limit, offset, and a list of fields to include in the response. The global default limit will apply if no limit param is specified.

## Query parameters

- `fields` string[]
- `sort` string[]
- `limit` integer
- `offset` integer
- `name` string
- `messageCode` string
- `status` string
- `previousStatus` string
- `value` string

## Response `200`

Success, returns a list of samples.

- SamplesResponse[]
  - `messageBody` string — Optional message about the sample value. Informational only--not used to determine the status of the sample. It's up to the lens whether/how to display this, will typically be displayed only on hover or click.
  - `messageCode` string — Optional 5-charater code about the sample value. Informational only--not used to determine the status of the sample. It's up to the lens whether/how to display this, will typically be displayed without having to hover or click.
  - `status` 'Critical' | 'Invalid' | 'Timeout' | 'Warning' | 'Info' | 'OK' — Status.
  - `previousStatus` 'Critical' | 'Invalid' | 'Timeout' | 'Warning' | 'Info' | 'OK' — Previous Status.
  - `value` string — Stored as a string but will be treated as whatever the aspect’s valueType was specified as, i.e. [BOOLEAN|NUMERIC|PERCENT]. If timeout occurs, value is set to null.
  - `provider` string — User who provided this sample.
  - `createdAt` string — TODO
  - `updatedAt` string — TODO
  - `statusChangedAt` string — Time at which the status changed from one state to another.
  - `relatedLinks` RelatedLinkResponse[] — RelatedLinks associated with this model.
    - `name` string — Name of the related link.
    - `url` string — The relatedLink url. For example, a related link associated with a sample can have a link to the source from which that sample information is obtained.
  - `apiLinks` HATEOAS[] — Hypertext As The Engine Of Application State.
    - `href` string, required — URL of the related HATEOAS link you can use for subsequent calls.
    - `rel` string, required — Link relation that describes how this link relates to the previous call.
    - `method` string, required — The HTTP method required for the related call.

## Other responses

- `400` — Bad Request
- `401` — Authentication Error
- `default` — Error

---

[API](https://skmtc.net/salesforce/apis/refocus-api.md) · [All operations](https://skmtc.net/salesforce/apis/refocus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesforce/refocus-api/versions/42c2153b047e/schema)
