---
title: "Create an authorized Stripe invoice link for a team invoice"
method: POST
path: "/v1/billing/team/{team_id}/invoices/{invoice_id}/link"
tags: ["billing"]
---

# Create an authorized Stripe invoice link for a team invoice

`POST /v1/billing/team/{team_id}/invoices/{invoice_id}/link`

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/billing/team/{team_id}/invoices/{invoice_id}/link`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/billing/team/:team_id/invoices/:invoice_id/link/post.ts> (a function with typed inputs; its response is checked against the schema)

Return a fresh Stripe Hosted Invoice Page URL after billing authorization.

Raises:
    HTTPException: When the invoice link is unavailable or access is denied.

## Path parameters

- `team_id` string, required
- `invoice_id` string, required

## Response `200`

Successful Response

- InvoiceLinkResponse: Response containing an authorized Stripe Hosted Invoice Page URL.
  - `url` string, required: Stripe Hosted Invoice Page URL

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/billing/team/:team_id/invoices/:invoice_id/link/post.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) - [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/0e5e86e2bae5?raw)
