Skip to main content
GET
List Depots

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer <key>. Create one in the SWITCH Copilot under Settings → API keys (needs the API keys permission in your company), or with POST /auth/api-keys. The key is shown once, at creation.

Query Parameters

include_children_companies
boolean
default:false

Also include the records of your child companies.

order_by
string | null

Comma-separated fields to sort by; prefix a field with - for descending order, e.g. -created_at,name.

search
string | null

Case-insensitive text matched anywhere in depot name or address.

name__ilike
string | null

Case-insensitive match within depot name (a substring match unless you include % wildcards).

address__ilike
string | null

Case-insensitive match within depot address (a substring match unless you include % wildcards).

company_slug
string | null

Only records of this company (exact slug).

company_slug__in
string | null

Only records of these companies (comma-separated slugs).

created_at__gte
string<date-time> | null

Depots created at or after this time (ISO 8601).

created_at__lte
string<date-time> | null

Depots created at or before this time (ISO 8601).

Response

Depots retrieved successfully. Returns a paginated list of depot profiles matching the specified filter criteria.

items
DepotPublic · object[]
required
total
integer
required
Required range: x >= 0
page
integer
required
Required range: x >= 1
size
integer
required
Required range: x >= 1
pages
integer
required
Required range: x >= 0