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.
| Parameter | Kind | Purpose |
|---|---|---|
include | Standard | Load related resources alongside the primary one |
fields | Standard | Sparse fieldsets — return only the attributes you ask for |
sort | Standard | Order a collection by one or more fields |
page | Standard | Paginate a collection |
filter | Dash extension | Constrain results — see Filtering |
filterRelations | Dash extension | Apply a relationship filter to the included relationship itself |
dash-{flag} | Dash extension | Opt in/out of endpoint-specific business logic |
include
includeLoad 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)
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
sortComma-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
pageGET /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
filterA 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
filterRelationsBy 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.
filterRelationsdoes nothing on its own. It only takes effect where the same relationship path appears in bothfilterandinclude. PassingfilterRelations=truewithout a matching relationship filter is a no-op.
dash-{flag} extensions
dash-{flag} extensionsSome 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
falseto 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:
| Field | Meaning |
|---|---|
status | The HTTP status code, as a string |
code | A Dash-specific error code |
title | A short, human-readable summary of the error |
detail | A longer, human-readable explanation specific to this occurrence |
source.pointer | JSON Pointer to the offending part of the request body, if applicable |
source.parameter | The offending query parameter name, if applicable |
source.header | The offending header name, if applicable |
meta | Additional 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.
Updated 2 months ago

