LoguDocs
Open Logu

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#

NameInTypeRequiredDescription
Logu-WorkspaceheaderstringoptionalHumans 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
FieldTypeRequiredNotes
urlstringrequireduri

Errors#

Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.

StatusCodeMeaning
401unauthorizedNo credentials, or the API key or session is invalid or revoked.
403forbiddenThe caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint).
404not_foundNo such route, or the resource doesn't exist in your workspace.
409conflictThe 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.
500internal_errorSomething went wrong on Logu's side.
503service_unavailableA dependency is down or a feature isn't configured on this server.