---
title: "Add or replace card"
method: POST
path: "/api/v1/broker/card"
tags: ["Account & payment"]
---

# Add or replace card

`POST /api/v1/broker/card`

## Request

- Base URL: `https://api.llm-broker.net`
- URL: `https://api.llm-broker.net/api/v1/broker/card`
- Auth: API key in header `Authorization`

Returns a Stripe setup link; only Stripe sees the card number.

## Response `200`

Setup link

- BrokerCardSetup
  - `session_id` string
  - `setup_url` string, uri, required

## Other responses

- `403`: Not a broker key

---

[API](https://skmtc.dev/llm-broker/apis/astrioncore-core-api.md) · [All operations](https://skmtc.dev/llm-broker/apis/astrioncore-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/llm-broker/apis/astrioncore-core-api/revisions/f85835487bf5?raw)
