clerk.create_oauth_application
Create a new OAuth application in a connected Clerk application (Clerk as IdP).
Sensitive — client_secret may be present for confidential clients; do not log or expose it.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns the new OAuth application summary.
Cost = 10 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the new OAuth application. | |
| public | No | Whether this is a public OAuth client (no client secret; PKCE-capable). | |
| scopes | No | Space-delimited scopes (e.g. profile email public_metadata). | |
| redirect_uris | No | Allowed redirect URIs for the OAuth authorization flow. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. | |
| consent_screen_enabled | No | Whether to show the OAuth consent screen during authorization. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oauth_application | No | Newly created Clerk OAuth application summary. |