> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nedzo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create setup intent

> Create a Stripe SetupIntent for attaching a new payment method to a workspace. Returns a client_secret for collecting card details with Stripe.js.

> [!NOTE]
>
> This endpoint is for the VIP plan only. Other plans get a `403`. See [Plan access](https://docs.nedzo.ai/api-reference/introduction.md#plan-access).

**workspaceId** `string` *required*

Workspace UUID

```bash cURL theme={null}
curl -X POST "https://api.nedzo.ai/v1/workspaces/19c3b12f-ec54-43ad-8686-00e921f1befd/billing/payment-methods/setup-intent" \
    -H "Authorization: Bearer YOUR_API_KEY"
```

```json Response theme={null}
{
  "clientSecret": "seti_1234567890_secret_abc123",
  "customerId": "cus_1234567890abcdef"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.