# Open billing portal

`billing_portal`

Answers with the address of the page where the card, the plan and past invoices are managed.

Needs the scope: `workspace:write`

## Returns

The answer comes back under `structuredContent`, with the same JSON as text in `content`. A call the API refuses comes back with `isError` set, and the code and the message under `structuredContent.error`. [MCP](https://opensend.sh/docs/mcp) shows how to connect a client.

- `object` ("checkout"): Always `checkout`.
- `url` (string): The address of the page to send the person to.

## Example

MCP:

```json
{
  "name": "billing_portal",
  "arguments": {}
}
```

Answer, under structuredContent:

```json
{
  "object": "checkout",
  "url": "https://pay.example.com/portal"
}
```
