---
title: "Generate Stripe OAuth URL"
method: POST
path: "/platform/oauth_url"
---

# Generate Stripe OAuth URL

`POST /platform/oauth_url`

Generates a Stripe Connect OAuth URL for a platform organization. Use this to allow your tenants to connect their Stripe accounts.

## Request body

- GenerateOAuthURLRequest
  - `organization_slug` string, required — The slug of the organization.
  - `env` 'test' | 'live', required — Environment: 'test' or 'live'.
  - `redirect_url` string, uri, required — URL to redirect to after OAuth completion.

## Response `200`

OAuth URL generated successfully

- GenerateOAuthURLResponse
  - `oauth_url` string, uri — Stripe Connect OAuth URL to redirect the user to.

## Other responses

- `400` — Invalid request parameters
- `403` — Forbidden
- `404` — Organization not found

---

[API](https://skmtc.net/useautumn/apis/autumn-api.md) · [All operations](https://skmtc.net/useautumn/apis/autumn-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/useautumn/autumn-api/versions/29536933c0dc/schema)
