Shoalrun documentation framework
For agents
Start with https://www.shoalrun.com/llms.txt for the documentation index, then read the Markdown pages it links. Skip to article. Documentation index. Read this page as Markdown.
API reference

List parcel recordsIn development

Updated
GET/Search/parcels/{scope}View examples
Read as Markdown

Fictional API example. This page demonstrates documentation features; its operations do not describe a live service.

This reference is generated from the OpenAPI description. It shows the operation contract; follow any related guides below for task steps and context.

OpenAPI for this operation: Download JSON.

GET /Search/parcels/{scope}

List parcel records

List records for an account or region. Use downloadAs to request a file; the same successful status can return JSON, CSV, or a spreadsheet.

Servers

https://sandbox.api.cedar-parcel.example/v1 — Sandbox

https://api.cedar-parcel.example/v1 — Production

Authentication

Use one of these authentication options:

Bearer token

HTTP bearer (JWT).

Short-lived service token.

API key

API key in header X-Parcel-Key.

Long-lived account key.

Parameters

scope (path)

Required

The account or region identifier.

string

Default example: "region-demo"

Filters (query)

Optional

OpenAPI calls this placeholder parameters. Send a filter expression directly in the query string, without parameters=.

Query form: ?declaredValue(gt)=100. Replace the field, operator, and value for your filter.

Source notes, accepted fields, and operators

Placeholder for field/operator filters. Do not send parameters=. Put each expression directly in the URL, for example declaredValue(gt)=100.

Accepted fields: createdAt (gt, ge, lt, le, eq), declaredValue (gt, ge, lt, le, eq), carrier (eq, ne, in), recipientCity (eq, ct), and status (eq, ne, in). in values are separated by |.

object

Additional-key schema:

string

High declared value: declaredValue(gt)=100

City contains text: recipientCity(ct)=port

downloadAs (query)

Optional

Return a file instead of JSON when specified.

string

Available options: "csv", "xlsx"

skipRows (query)

Optional

Number of records to skip.

integer; default: 0

maxRows (query)

Optional

Maximum records to return. Zero or a negative value requests all records.

integer; default: 20

Responses

200: OK

application/json

text/csv

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

A page of records, or a downloadable file if downloadAs is set. The response format depends on the query value.

application/json

minProperties: 3; maxProperties: 3

3 properties
  • records list of object always present ⓘ

    uniqueItems: true

    Array items:

    5 properties
    • parcelId string always present ⓘ

    • status enum<string> always present ⓘ

      Available options: "label_created", "in_transit", "delivered", "exception"

    • declaredValue number always present ⓘ

      minimum: 0; multipleOf: 0.01

      Value in currency units, to the nearest cent.

    • recipient object always present ⓘ

      2 properties
      • city string always present ⓘ

      • postalCode string always present ⓘ

    • events list of object may be absent ⓘ

      Tracking history in chronological order.

      Array items:

      object

      3 properties
      • kind enum<string> always present ⓘ

        Available options: "pickup", "scan", "delivery"

      • at string always present ⓘ

        format: date-time

      • details string may be absent nullable ⓘ

  • totalRecords integer always present ⓘ

    minimum: 0

  • nextCursor string always present nullable ⓘ

    Always present; null on the last page.

Additional properties: not allowed.

text/csv

string

CSV rows with a header line.

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

string; format: binary

A spreadsheet download.

400: Bad Request

application/problem+json

A field name or comparison operator is unsupported.

4 properties
  • type string always present ⓘ

    format: uri

  • title string always present ⓘ

  • status integer always present ⓘ

  • detail string may be absent ⓘ