Skip to content
Dashboard
Theme
Theme

List imports

GET /v1/imports: List imports.

View Markdown

GET /v1/imports

The imports of the environment, newest first, as summaries without plans, bundles or credentials. Retrieve one import for its plan. Use state=planned to find the planned auth0 or csv_saml import that import_state_conflict refers to. A planned auth0 or csv_saml import that is not run within 24 hours is cancelled automatically.

Scope
imports:read
Auth
Secret key (sk_…)
Since
1.0
  • limit integer

    min 1 · max 50 · default 20

  • after string

    Cursor from next_cursor.

  • before string

  • state string

    Only imports in this state.

    one of planned, running, completed, cancelled, failed

  • source string

    Only imports of this source.

    one of polis, workos, auth0, csv_saml, bundle

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

Errors share one shape; see the error code catalogue.

curl -X GET \
"https://api.ohauthcat.com/v1/imports" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"
Response 200
{
"object": "list",
"data": [
{
"id": "imp_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "import",
"source": "polis",
"state": "planning",
"bundle_source": "polis",
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z",
"completed_at": "2026-01-15T09:30:00Z"
}
],
"has_more": true,
"next_cursor": "cur_01J9Z3K5V7W8X9Y0Z1A2B3C4D5"
}