Levain LabsLevain Labs
ApiBilling

Create Setup Intent

Start a SetupIntent so the client can attach a card.

Start a SetupIntent so the client can attach a card.

POST
/api/v1/billing/setup-intent

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

X-API-Key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.levainlabs.com/api/v1/billing/setup-intent" \  -H "Content-Type: application/json" \  -d '{}'
{
  "client_secret": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}