---
title: "Create Stripe customer portal session"
description: "The actual target must match the currently authorized workspace. Existing operation permissions are unchanged."
---

> 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 › Billing

`GET /api/billing/portal/{workspaceId}`

The actual target must match the currently authorized workspace. Existing operation permissions are unchanged.

## Authentication

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

## Path parameters

- `workspaceId` (`get/api/billing/portal/workspaceId.path.workspaceId`; string, required)

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/billing/portal/<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/billing/portal/<workspaceId>"

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

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

print(response.text)
```

## Responses

### 200

Operation completed

### 400

Missing or malformed target or operation input

### 401

Invalid or absent verified session

### 403

Nonmember or conflicting workspace target

### 503

Identity or membership lookup unavailable


Source: https://developer.channelautomations.com/api/get-api-billing-portal-workspace-id/index.md
