---
title: "Get client customer portal access token"
method: POST
path: "/clients/customerportal"
tags: ["Clients"]
---

# Get client customer portal access token

`POST /clients/customerportal`

Generate a secure access token for client customer portal.

**gigstack Connect:** Access other teams' customer portal using the `team` parameter.

## Query parameters

- `team` string

## Request body

- object
  - `id` string, string — Client ID to generate access token for.
  - `email` string, email — Client email address

## Response `200`

Customer portal access token generated successfully

- object
  - `message` string
  - `data` object
    - `url` string, uri — Complete portal URL with session parameters
    - `expires_at` number — Token expiration timestamp (5 days from creation)
    - `session_id` string — Session identifier for the portal access

## Other responses

- `400` — Bad request - Missing email or team portal not configured
- `500` — Internal server error

---

[API](https://skmtc.dev/disruptive-learning/apis/gigstack-api-v2.md) · [All operations](https://skmtc.dev/disruptive-learning/apis/gigstack-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/disruptive-learning/gigstack-api-v2/revisions/5cf53ffd7580/schema)
