Skip to main content

Documentation index for AI agents: llms.txt. Every page here is also served as markdown: add .md to its address, or request it with Accept: text/markdown.

Billing API

Subscription management and checkout. This page lists all 2 endpoints in the Billing area of the Visual Sentinel REST API.

Base URL: https://visualsentinel.com. Unless an endpoint says otherwise it accepts an API key or a session cookie, see Authentication. Most error responses use the ErrorResponse shape, see Errors and Rate limits.

Endpoints

Create checkout session

POST /api/billing/checkout

Create a checkout session for a subscription purchase.

Authentication: session cookie only. API keys are refused.

Request body (required): object.

FieldTypeRequiredDescription
planstringYesOne of: free, starter, business, agency.
emailstring (email)No
billingstringNoOne of: monthly, yearly. Default: monthly.

Responses

  • 200: Checkout session URL. Body: object.
FieldTypeRequiredDescription
checkoutUrlstring (uri)No

Get billing portal URL

POST /api/billing/portal

Get the billing portal URL for managing a subscription.

Authentication: session cookie only. API keys are refused.

Responses

  • 200: Portal URL. Body: object.
FieldTypeRequiredDescription
urlstring (uri)No

Generated from the OpenAPI 3.1 specification at https://docs.visualsentinel.com/openapi.json, the same file the interactive reference reads.