---
title: "Create Portal Session"
method: POST
path: "/api/v1/billing/portal"
tags: ["Billing", "billing"]
---

# Create Portal Session

`POST /api/v1/billing/portal`

## Request

- Base URL: `https://api.freeastroapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.freeastroapi.com/api/v1/billing/portal`
- Auth: none declared

Create a customer portal session for managing subscription

## Headers

- `authorization` string

## Request body

- PortalRequest
  - `user_id` string, nullable
  - `product_code` string, nullable
  - `return_url` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/freeastroapi/apis/astroservice-api.md) · [All operations](https://skmtc.dev/freeastroapi/apis/astroservice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freeastroapi/apis/astroservice-api/revisions/0c9b4a759522?raw)
