---
title: "Create a customer portal session"
method: POST
path: "/customer_portal/sessions"
tags: ["customer_portal"]
---

# Create a customer portal session

`POST /customer_portal/sessions`

## Request body

- object
  - `platform_subscriber_id` string, required — The ID of the customer from your connected subscription platform
  - `return_url` string, uri, required — The URL to redirect customers to when they leave the customer portal

## Response `201`

Created

- CustomerPortalSession
  - `id` string, required
  - `url` string, uri, required — The URL of the created customer portal session
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, required

## Other responses

- `400` — Error
- `401` — Error
- `409` — Error

---

[API](https://skmtc.dev/prosperstack/apis/prosperstack-api-reference.md) · [All operations](https://skmtc.dev/prosperstack/apis/prosperstack-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prosperstack/prosperstack-api-reference/revisions/407ea9202622/schema)
