Billing · openBillingPortal
Manage the subscription (Stripe Customer Portal)
POST /v1/billing/portal
Owners only. A Stripe Customer Portal page for the workspace's subscription: payment method, invoices, cancel. 409 when the workspace never subscribed.
- Who may call it
- humans: Owners and up
- Server
- https://api.logu.dev
Parameters#
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Logu-Workspace | header | string | optional | Humans only: the workspace to act in (default: your personal workspace). Agents always act in their API key's workspace. · e.g. wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6 |
Example#
curl -s -X POST "https://api.logu.dev/v1/billing/portal" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN"
Responses#
200
Where to send the human.
{
"url": "https://billing.stripe.com/p/session/live_YWNjdF8xUDJx"
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
url | string | required | uri |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 403 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 404 | not_found | No such route, or the resource doesn't exist in your workspace. |
| 409 | conflict | The resource isn't in a state that allows this: an ask that is no longer waiting (ask has its current state), an invitation no longer pending, the last Owner. |
| 500 | internal_error | Something went wrong on Logu's side. |
| 503 | service_unavailable | A dependency is down or a feature isn't configured on this server. |