---
title: "Get all connected Salesforce organizations"
method: GET
path: "/api/v2/integration/salesforce-incidents/organizations"
tags: ["Salesforce Integration"]
---

# Get all connected Salesforce organizations

`GET /api/v2/integration/salesforce-incidents/organizations`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integration/salesforce-incidents/organizations`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Get all Salesforce organizations connected to your Datadog organization
through the Salesforce integration. Salesforce organizations are connected
through the OAuth setup flow in the Datadog Salesforce integration page.

## Response `200`

OK

- SalesforceIncidentsOrganizationsResponse: Response containing a list of Salesforce organizations connected to the Datadog Salesforce integration.
  - `data` SalesforceIncidentsOrganizationResponseData[], required: An array of Salesforce organizations.
    - `attributes` SalesforceIncidentsOrganizationResponseAttributes, required: Attributes of a Salesforce organization connected to the Datadog Salesforce integration.
      - `instance_url` string: The Salesforce instance URL used to call this organization's APIs.
      - `name` string: Human-readable name of the Salesforce organization.
      - `sfdc_org_id` string: The Salesforce organization identifier (15- or 18-character Salesforce org ID).
      - `sfdc_org_type` string: The Salesforce organization type (for example, `Production` or `Sandbox`).
    - `id` string, required: The Datadog-assigned ID of the connected Salesforce organization.
    - `type` 'salesforce-incidents-org', required: Salesforce organization resource type.

## 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)
