Skip to main content

Welcome

The v2 API is SELECT’s unified, RESTful API. All v2 endpoints are accessed under the base URL https://api.select.dev/v2.
v2 is a new API surface with a different authentication model than v1. If you are migrating from v1, see What changed from v1 below.

Authentication

Every request needs two headers:

Organization ID

The x-tenant-id header is your SELECT organization ID (org_...). It can be found in the SELECT app by navigating to settings by clicking the gear in the bottom right of the page and viewing your profile information. Organization ID from profile

What changed from v1

  • Organization is a header, not a path parameter. v1 routes embedded organization_id in the path (/api/{organization_id}/...). v2 identifies your organization with the x-tenant-id header, so paths are clean resource names (/v2/audit-logs).
  • Cursor pagination. List endpoints return a page_token; there is no offset/page paging.
  • RFC 9457 problem responses. Errors use application/problem+json with a stable code field.

Pagination

List endpoints return at most max_results records (default 50, max 500) plus a page_token:
To read the next page, pass the page_token back. Keep going until page_token is null — that means you have reached the end.
page_token is the only reliable way to page. Do not build your own cursor from response fields such as timestamps — records can share identical values, and a hand-rolled cursor can silently skip or stall.

Responses

Standard HTTP status codes indicate success or failure. Errors return application/problem+json:
Use the code field for programmatic handling; it is stable across releases.