---
title: "Create Stripe billing portal session"
method: POST
path: "/billing/me/portal"
tags: ["Billing"]
---

# Create Stripe billing portal session

`POST /billing/me/portal`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/billing/me/portal`
- Auth: API key in header `x-api-key`

Creates a Stripe customer portal session for the authenticated user's linked Stripe customer so they can manage payment method, invoices, and subscription state.

## Request body

- BillingStripePortalRequestDoc
  - `return_url` string

## Response `200`

Stripe portal session

- BillingStripeSessionResponseDoc
  - `code` integer
  - `data` BillingStripeSessionDoc
    - `id` string
    - `url` string
  - `msg` string

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `500`: Internal server error

---

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