> ## 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.

<ParamField path="workspaceId" type="string" required>
  Workspace UUID
</ParamField>

<RequestExample>
  ```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"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "clientSecret": "seti_1234567890_secret_abc123",
    "customerId": "cus_1234567890abcdef"
  }
  ```
</ResponseExample>
