Skip to main content

apps.auth.external.get method

Welcome to the new home of Slack developer docs!

We're still building and not all features are available quite yet. Enjoy this peek into the future!

Not ready for the future? Return to the past at api.slack.com.

Usage info

Once you have your OAuth2 provider configured, you can use this API method to retrieve the token needed to access your external service by its token ID.

The following example code snippet is from a custom function defined within the Deno simple survey sample app:

// Collect Google access token of the reactor
const auth = await client.apps.auth.external.get({
external_token_id: inputs.reactor_access_token_id,
});

if (!auth.ok) {
return { error: `Failed to collect Google auth token: ${auth.error}` };
}
// ...

For more code examples, refer to External authentication.

Response