List departments.
Returns the departments of the institution your API key is issued for, in the standard list envelope
(object: "list", has_more, next_cursor, previous_cursor, data),
each with how many differently named scholarships and how many administrators belong to it. Page
forward by passing the returned next_cursor as starting_after. limit defaults to
25 and is capped at 100. Results are ordered by id ascending. Filter with ?q=
(case-insensitive substring match on the department name).
Authentication
Query parameters
Case-insensitive substring match on the department name (?q=).
Page size. Defaults to 25. Values outside 1–100 are clamped rather than rejected.
Opaque cursor. Pass the next_cursor from the previous page to page forward. Mutually exclusive with ending_before; if both are supplied, starting_after wins.
Opaque cursor. Pass the previous_cursor from the current page to page backward.
Optional extras to add to the response, comma-separated. total_count is the only supported value: it adds total_count, the number of records that match this request across all pages. The count is taken fresh at the moment of each request, so it can change while you page; ask for it on the first page. Without it, total_count is left out of the response. Asking or not never invalidates a cursor. Any other value returns 400 validation_failed.
Response
Discriminator constant. Always "list", mirroring Stripe’s list objects.
The request path this collection was served from (e.g. /api/v1/scholarships).
Opaque cursor for the next page (pass as starting_after). Null when there is none.
Opaque cursor for the previous page (pass as ending_before). Null when there is none.
The number of records that match the request across all pages, counted fresh on each
request. Present only when the request includes include=total_count; otherwise the
key is omitted.