---
title: "List Okta accounts"
method: GET
path: "/api/v2/integrations/okta/accounts"
tags: ["Okta Integration"]
---

# List Okta accounts

`GET /api/v2/integrations/okta/accounts`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integrations/okta/accounts`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

List Okta accounts.

## Response `200`

OK

- OktaAccountsResponse: The expected response schema when getting Okta accounts.
  - `data` OktaAccountResponseData[]: List of Okta accounts.
    - `attributes` OktaAccountAttributes, required: Attributes object for an Okta account.
      - `api_key` string: The API key of the Okta account.
      - `auth_method` string, required: The authorization method for an Okta account.
      - `client_id` string: The Client ID of an Okta app integration.
      - `client_secret` string: The client secret of an Okta app integration.
      - `domain` string, required: The domain of the Okta account.
      - `name` string, required: The name of the Okta account.
    - `id` string, required: The ID of the Okta account, a UUID hash of the account name.
    - `type` 'okta-accounts', required: Account type for an Okta account.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
