Skip to main content
GET /unified/iam/organizations

Authentication

Requires Authorization: Basic {base64_encoded_api_key} and x-account-id: {account_id}. See authentication.

Query Parameters

ParameterTypeRequiredDescription
fieldsstringNoComma-separated list of fields to include in the response
filter[updated_after]string (ISO 8601)NoOnly return organizations updated after this timestamp
nextstringNoCursor token for the next page of results
expandstringNoComma-separated list of relations to expand
rawbooleanNoInclude the raw provider response alongside the unified data
proxyobjectNoAdditional headers to pass through to the provider

Response

Returns a paginated list of IamOrganization objects.
FieldTypeDescription
idstringStackOne unique identifier
remote_idstringProvider’s unique identifier
namestringOrganization name
created_atstring (ISO 8601)When the organization was created
updated_atstring (ISO 8601)When the organization was last updated

Example

curl --request GET \
  --url 'https://api.stackone.com/unified/iam/organizations' \
  --header 'accept: application/json' \
  --header 'authorization: Basic {base64_encoded_api_key}' \
  --header 'x-account-id: {account_id}'

Example Response

{
  "data": [
    {
      "id": "org_01abc123",
      "remote_id": "T08G6Q9TP4L",
      "name": "Acme Corp",
      "created_at": "2023-01-01T00:00:00.000Z",
      "updated_at": "2024-06-15T10:30:00.000Z"
    }
  ],
  "next": "cursor_token_here"
}

Errors

StatusMeaning
400Bad request — invalid query parameters
401Unauthorized — invalid or missing API key
403Forbidden — insufficient permissions
404Not found — account not found
422Provider does not support this endpoint