Create Connected App (OAuth)
sf_create_connected_appCreate a Salesforce Connected App to enable OAuth 2.0 authentication. Specify callback URLs, OAuth scopes, and contact email for external application access.
Instructions
Creates a Connected App in Salesforce to enable OAuth authentication for external applications. Connected Apps are required for any external system that wants to connect to Salesforce via OAuth 2.0. Specify callback URLs for the OAuth flow, OAuth scopes (api, web, full, offline_access, etc.), and contact email. Used for web apps, mobile apps, desktop apps, or server-to-server integrations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Display label | |
| scopes | Yes | OAuth scopes to request | |
| fullName | Yes | Connected app API name, e.g. 'My_External_App' | |
| startUrl | No | Default start URL after OAuth | |
| consumerKey | No | Custom consumer key (auto-generated if not specified) | |
| description | No | Description | |
| callbackUrls | Yes | OAuth callback URLs, e.g. ['https://myapp.com/oauth/callback'] | |
| contactEmail | Yes | Contact email for the app | |
| accessTokenValidity | No | Access token validity in minutes | |
| refreshTokenValidity | No | Refresh token validity in minutes |