---
title: "Create customer portal session"
method: GET
path: "/customers/portal/{external_id}"
tags: ["Customers"]
---

# Create customer portal session

`GET /customers/portal/{external_id}`

## Request

- Base URL: `https://us.api.flexprice.io/v1`
- URL: `https://us.api.flexprice.io/v1/customers/portal/{external_id}`
- Auth: API key in header `x-api-key`

Use when sending a customer to their self-serve billing portal (invoices, usage, payment methods). Returns a short-lived URL and token scoped to that customer.

## Path parameters

- `external_id` string, required

## Response `200`

OK

- PortalSessionResponse
  - `expires_at` string, date-time
  - `token` string
  - `url` string

## Other responses

- `400`: Invalid request
- `404`: Customer not found
- `500`: Server error

## Changes

- **2026-10-17** `3feab3c86d9d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/customers/portal/:external_id/get.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) - [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flexprice/apis/flexprice-api/revisions/84cb4a3af400?raw)
