# List SSO connection domains

> Source: https://truto.one/docs/api-reference/admin/sso-connections/list/

`GET /sso-connection/{id}/domains`

Resource: **SSO Connections**

## Path parameters

- **`id`** _(string, required)_
  The ID of the SSO connection whose domains you want to list.

## Response body

- **`result`** _(array<object>)_
  - **`team_id`** _(string)_
    The ID of the team that owns this domain.
  - **`domain`** _(string)_
    The email domain associated with the SSO connection.
  - **`sso_connection_id`** _(string)_
    The ID of the SSO connection this domain belongs to.
  - **`verified`** _(boolean)_
    Whether this domain has been verified via the DNS TXT challenge.
  - **`verification_token`** _(string)_
    The DNS TXT challenge token. Publish a TXT record `truto-domain-verification=<verification_token>` on the domain, then call the verify endpoint.
  - **`created_at`** _(string)_
    The date and time when the domain was added.
  - **`updated_at`** _(string)_
    The date and time when the domain was last updated.

## Code examples

### curl

```bash
curl -X GET 'https://api.truto.one/sso-connection/{id}/domains' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/sso-connection/{id}/domains', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/sso-connection/{id}/domains"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```
