List labs

GET /v0/clients/labs

Return every lab your client is associated with, newest association first.

Use start and limit to page through the results (maximum 100 per page). When more results are available beyond the current page, more_results is true.

Query parameters

start integer optional

Zero-based offset of the first result.

Default: 0

limit integer optional

Maximum results per page (max 100).

Default: 100

state string optional

Not currently used to filter results.

Try it

Log in to send test requests to this endpoint straight from the docs.

Responses

200 Success
labs array of objects
Show 3 child attributes Hide 3 child attributes
id integer

Lab ID

name string

Lab Name

licenses array of objects
Show 3 child attributes Hide 3 child attributes
id integer

License ID

license_number string

License Number

license_code string

License Code (some states only)

more_results boolean

True if more results are available beyond this page.

400 Bad request

The request was malformed or failed validation. Validation failures include per-field messages in error_details.

Possible error_code values: invalid_request, request_too_old.

401 Unauthorized

Authentication failed.

Possible error_code values: missing_api_key, invalid_api_key, invalid_credentials_type, api_access_restricted, api_access_denied, missing_signature, missing_timestamp, invalid_timestamp, invalid_signature.

403 Permission denied

The API key is valid but does not have permission for this endpoint (for example, a client key calling a labs endpoint).

Possible error_code values: permission_denied.

How to sign requests
# X-ConfidentLims-Signature: see the Request Signing guide - https://api.confidentcannabis.com/v0/docs/request-signing.md
curl -X GET 'https://api.confidentcannabis.com/v0/clients/labs' \
  -H 'X-ConfidentLims-APIKey: YOUR_API_KEY' \
  -H 'X-ConfidentLims-Timestamp: UNIX_TIMESTAMP' \
  -H 'X-ConfidentLims-Signature: REQUEST_SIGNATURE'
Response · 200
{
  "success": true,
  "labs": [
    {
      "id": 118,
      "name": "Cascade Analytical Labs",
      "licenses": [
        {
          "id": 907,
          "license_number": "010-100254B7F",
          "license_code": "LAB-0221"
        }
      ]
    }
  ],
  "more_results": false
}