Generate a URL for the browser to render to kick off OAuth flow. You can use this endpoint as an alternative to the prebuilt UI components.
The Ampersand project ID.
"my-project"
The provider that this app connects to.
"salesforce"
Your application's identifier for the organization or workspace that this connection belongs to (e.g. an org ID or team ID).
"group-123"
The ID that your app uses to identify the user whose SaaS credential will be used for this OAuth flow.
"user_123456"
The display name for the group. Defaults to groupRef if not provided.
"Organization Name"
The display name for the consumer. Defaults to consumerRef if not provided.
"John Doe"
The identifier for the provider workspace (e.g. the Salesforce subdomain).
"acme-corp"
Additional provider-specific metadata required by certain providers (e.g., account ID for NetSuite). See provider documentation for which fields are needed.
{
"accountId": { "value": "1234567890", "source": "input" }
}ID of the provider app, returned from the Create Provider App endpoint. If omitted, the default provider app that was set up on the Ampersand Dashboard is assumed.
"32356abe-d2fd-49c7-9030-abdcbc6456d4"
This boolean flag is used by the UI library internally. Set it to false or omit it when manually calling this API.
false
OK
URL to render
"https://login.salesforce.com/services/oauth2/authorize?client_id=xxx&redirect_uri=https%3A%2F%2Fapi.withampersand.com%2Fcallbacks%2Fv1%2Foauth&state=xxx"