Fetch all saved service accounts
Retrieves a list of service accounts with support for filtering, sorting, and pagination. Auth config is not included in the service accounts. Filters use field:operator:value clauses, ANDed together. Pass comma-separated clauses in a single filter value and/or repeated filter query parameters. Supported fields: role_id (eq, in), auth_type (eq, in — CLIENT_SECRET, API_KEY), status (eq, in — ACTIVE, EXPIRING, EXPIRED), expires_at (ge, lt — RFC3339 on the latest auth config). For in, join values with |. Example: filter=status:eq:ACTIVE,auth_type:in:CLIENT_SECRET|API_KEY&filter=expires_at:ge:2026-01-01T00:00:00Z
Request
- Base URLhttps://console.jumpcloud.com/api/v2
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pagination - page size (maximum number of results to return)
pagination - page offset (number of results to skip)
search field (currently only supports "name")
search term/value (e.g., "John")
sort configuration (allowed values: "name", "-name", "expiresAt", "-expiresAt") "-" prefix indicates descending order if search config is provided, it will override the sort field to "name" and sort order to ascending
A filter to apply to the query.
**Filter structure**: `<field>:<operator>:<value>`.
**Supported fields**: role_id (eq, in), auth_type (eq, in — CLIENT_SECRET, API_KEY), status (eq, in — ACTIVE, EXPIRING, EXPIRED), expires_at (ge, lt — RFC3339 on the latest auth config).
**in values**: join with `|`.
**Example**: `GET /api/v2/service-accounts?filter=status:eq:ACTIVE,auth_type:in:CLIENT_SECRET|API_KEY&filter=expires_at:ge:2026-01-01T00:00:00Z`
Headers
Organization identifier that can be obtained from console settings.
Response
Service accounts list successfully retrieved.
Changes
No recorded changes to this operation across all 1 revision of this API.