---
title: "List all domains configured for an Office 365 instance"
method: GET
path: "/office365s/{office365_id}/domains"
tags: ["Office 365"]
---

# List all domains configured for an Office 365 instance

`GET /office365s/{office365_id}/domains`

## Request

- Base URL: `https://console.jumpcloud.com/api/v2`
- URL: `https://console.jumpcloud.com/api/v2/office365s/{office365_id}/domains`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/docs/office365s/:office365_id/domains/get.ts> (a function with typed inputs; its response is checked against the schema)

List the domains configured for a specific M365/Azure AD directory sync integration instance.

#### Sample Request
```
curl -X POST https://console.jumpcloud.com/api/v2/office365s/{OFFICE365_ID}/domains \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}'
```

## Path parameters

- `office365_id` string, byte, required

## Query parameters

- `limit` string, int64
- `skip` string, int64

## Response `200`

OK

- O365DomainsListResponse
  - `domains` O365Domain[]
    - `default` boolean
    - `domain` string
    - `objectId` string, byte
    - `resourceObjectId` string, byte: ObjectID of the Office 365 suite.
  - `totalCount` integer

## Other responses

- `401`: Unauthenticated
- `403`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error
- `default`: An unexpected error response.

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/revisions/3f09fe63caaa?raw)
