---
title: "Twilio connection status for a workspace (the Auth Token is never returned)"
description: "apiKeyAuth, and the authorized workspace must be the URL workspace (a `?workspace_id=` or header\nnaming another workspace is a 403). The Auth Token and API key secret are write-only: the\nresponse carries `has_auth_token` instead. `account_sid` is included for workspace owners/admins\n(and platform/service callers) only.\n"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Twilio

`GET /api/twilio/config/{workspaceId}`

apiKeyAuth, and the authorized workspace must be the URL workspace (a `?workspace_id=` or header
naming another workspace is a 403). The Auth Token and API key secret are write-only: the
response carries `has_auth_token` instead. `account_sid` is included for workspace owners/admins
(and platform/service callers) only.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `workspaceId` (`get/api/twilio/config/workspaceId.path.workspaceId`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.channelautomation.com/api/twilio/config/<workspaceId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/twilio/config/<workspaceId>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/twilio/config/<workspaceId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

{ success, config: { has_auth_token, is_configured, updated_at, account_sid? } }

### 403

Not authorized for this workspace

### 404

No Twilio configuration for this workspace


Source: https://developer.channelautomations.com/api/get-api-twilio-config-workspace-id/index.md
