Request Parameters

Every collection and single-resource endpoint accepts the same set of query parameters. Some come straight from the JSON:API spec; a few are Dash-specific extensions.

ParameterKindPurpose
includeStandardLoad related resources alongside the primary one
fieldsStandardSparse fieldsets — return only the attributes you ask for
sortStandardOrder a collection by one or more fields
pageStandardPaginate a collection
filterDash extensionConstrain results — see Filtering
filterRelationsDash extensionApply a relationship filter to the included relationship itself
dash-{flag}Dash extensionOpt in/out of endpoint-specific business logic

include

Load related resources in the same response, using dot notation to reach nested relationships:

GET /v1/customers/123?include=family,registrations.season,invoices

This loads the customer's family, their registrations along with each registration's season, and their invoices — all in one round trip.

fields (sparse fieldsets)

Return only the attributes you need, per resource type:

GET /api/v1/customers?fields[customers]=first_name,last_name,email

id is always returned regardless of what you list in fields — you can't filter it out.

sort

Comma-separate one or more fields; prefix a field with - to sort descending:

GET /api/v1/registrations?sort=-created_at,last_name

This sorts newest-first by created_at, then alphabetically by last_name within ties.

page

GET /api/v1/customers?page[number]=2&page[size]=25

page[size] maxes out at 100 — request a larger size and it's capped. page bounds the primary collection you're querying. It has no effect on included relationships — see the JSON:API Guide's note on unpaged relationship collections before including something that can grow large.

Fewer, larger pages also help you stay under the per-user rate limit — see Authentication.

filter

A nested object representing the equivalent of a SQL WHERE clause, evaluated against the resource(s) the endpoint returns:

GET /api/v1/customers?filter[first_name]=John

The full syntax — operators, grouping, and the /events default date window — is covered in Filtering.

filterRelations

By default, a filter on a dotted relationship path narrows which primary resources are returned, but doesn't narrow what comes back inside a matching include. filterRelations=true changes that: it applies the same relationship filter to the included collection itself.

GET /api/v1/customers?filter[signatures.waiver.is_active]=true&include=signatures.waiver&filterRelations=true
  • filter[signatures.waiver.is_active]=true — return customers who have signed at least one active waiver.
  • include=signatures.waiver — include each returned customer's signatures and the waivers they're on.

Without filterRelations=true, a matching customer's response includes all of their signatures and waivers, active or not. With it, the included signatures collection is narrowed to only the signatures on active waivers.

filterRelations does nothing on its own. It only takes effect where the same relationship path appears in both filter and include. Passing filterRelations=true without a matching relationship filter is a no-op.

dash-{flag} extensions

Some endpoints accept dash-{flag} parameters that opt in or out of extra business logic tied to that request — for example, dash-invoicing triggers invoicing logic on endpoints where that applies.

  • Default flags run automatically; pass false to turn one off for a request.
  • Optional flags are off unless you pass them; some accept a string value to customize their behavior rather than a plain boolean.

These flags are documented per-endpoint, not as a global list — check the specific endpoint's reference for which flags it supports.

Error responses

A failed request returns a JSON:API error document — a top-level errors array, each entry shaped like:

FieldMeaning
statusThe HTTP status code, as a string
codeA Dash-specific error code
titleA short, human-readable summary of the error
detailA longer, human-readable explanation specific to this occurrence
source.pointerJSON Pointer to the offending part of the request body, if applicable
source.parameterThe offending query parameter name, if applicable
source.headerThe offending header name, if applicable
metaAdditional non-standard error metadata, if any

Putting it together

GET /api/v1/registrations
    ?include=customer,season
    &fields[registrations]=status,created_at
    &sort=-created_at
    &page[size]=50

Fetch the 50 most recently created registrations, with each registration's customer and season included, returning only the status and created_at attributes on the primary resource.

See Filtering for everything filter can do, and the JSON:API Guide for where this API's request model is strong and where it isn't.


Did this page help you?