Get a provider OAuth app
Read the provider app used for end-user OAuth connections.
GET
/api/v1/integrations/:integration/oauth-appconst response = await fetch("https://api.smallworld.sh/api/v1/integrations/notion/oauth-app", {
method: "GET",
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();
Use your server-side apiKey. Replace the example IDs.
Path parameters#
integrationstringrequiredAn integration key from GET /integrations or /integration-configurations.
Responses#
Returns clientId, hasClientSecret, callback redirectUri, scopes, required credential flags, and setup status. Client secrets are never returned.
{
"integration": "notion",
"clientId": "your-client-id",
"hasClientSecret": true,
"redirectUri": "https://api.smallworld.sh/api/integrations/oauth/notion/callback",
"scopes": [],
"requiresCredentials": true,
"clientSecretRequired": true,
"configured": true,
"status": "configured"
}
More about this endpoint
Register the exact redirectUri returned by this endpoint with the provider. This app configures user connections; public API authentication still uses your workspace API key.