Slack Generic OAuth2 Bot Token Account

Slack Generic OAuth2 Bot Token Account

In this article

Overview

Use this account type to connect Slack Snaps with data sources that use Slack Generic OAuth2 authentication, and then to perform the operations that Slack allows for your Bot Token account.

Prerequisites

Limitations

For ease and convenience of working with Slack Bots, do not use this account type to create a User Token Account.

Known Issues

None.

Account Settings

To create your Slack Generic OAuth2 account in SnapLogic, you must create an application as per the application provider's instructions in Start building Slack apps to generate and supply Client IDClient secretOAuth2 endpoint, and OAuth2 token in the settings below and click Authorize. SnapLogic sends your account details to the specified OAuth2 endpoint and populates the Access tokenRefresh token, and Access token expiration fields based on the details received from the endpoint. 


ParameterData TypeDescriptionDefault ValueExample 

Label

String

Required. Enter a unique label for the account.

N/A

Slack_OAuth2_BotToken

Client ID

String

RequiredEnter the client ID associated with your Slack application. You can create the client ID as advised by your application provider.

N/A

1394786838725.1307264331815

Client secret

String

Enter the client secret associated with your account. You can create the client secret as advised by your application provider.

N/A

bec1f9242f9nsh67f2276b9ws4cadd14

Access token

String

Auto-generated after authorization. The access token associated with the Slack application is used to make API requests on behalf of the user associated with the client ID.

N/AN/A

Refresh token

StringAuto-generated after authorizationThe refresh token retrieval for the application is specified when setting up the account for the endpoint. There, the OAuth2 flow is executed and the resulting refresh token is stored in this field. If the refresh token is stored, then the access token is refreshed automatically before it expires.N/AN/A

Access token expiration

IntegerAuto-generated after authorizationThe access token expiration value in Epoch time.N/AN/A

Header authenticated

Check box

Enable this if the endpoint uses bearer header authentication.

Not selectedSelected

OAuth2 authorization endpoint

String

Required. Enter the OAuth2 endpoint authorization URL to authorize the application.

https://slack.com/oauth/
v2/authorize
https://slack.com/oauth/
v2/authorize

OAuth2 token endpoint

String

Required. Enter the Token endpoint to get the access token.

https://slack.com/api/
oauth.v2.access
https://slack.com/api/
oauth.v2.access

Token endpoint config

Use this field set to configure token endpoint parameters as necessary for the account.

This field set comprises the following fields:

  • Token endpoint parameter
  • Token endpoint parameter value

Specify each parameter in a separate row. Click to add a new row.

Token endpoint parameter

StringProvide the name for the token endpoint parameter.N/Ascope

Token endpoint parameter value

String

Provide the value for the parameter.

N/Ausers:read
Authorization endpoint config

Use this field set to assign scopes for the OAuth2 authentication endpoint for the bot. We recommend that you define at least one scope entry in this field set. This field set comprises the following fields: 

  • Authentication parameter
  • Authentication parameter value

Specify each parameter in a separate row. Click to add a new row.

Authentication parameter

String

Provide the name for an authentication parameter.N/Ascope

Authentication parameter value

String

Provide the value for the parameter, typically one of the Bot scopes. See the Scope and Permissions article in Slack API documentation for the complete list.

N/A
files:write

Auto-refresh token

Check box

Do not select this check box as Bot Tokens never expire. See Revoke All OAuth Tokens to know about revoking all your OAuth tokens, if need be.

Not selectedNot selected
AuthorizeButton

Click this button to acquire the required permissions for this account from the Slack app, when creating an account.

For existing accounts, you can click this button to re-acquire the permissions (Access token, Refresh token and Access token expiration) to ensure that the account works as expected. This action does not require or result in any changes to the Access Token that is already generated.

N/AN/A

Loading
Loading

Troubleshooting

ErrorReasonResolution
Authentication failedYou have entered an incorrect Client ID or Client secret.Verify whether you have supplied the correct and valid Client ID and Client secret for the account and assigned the required access privileges to the application.
Error in Authorization: Something went wrong when authorizing this app. Invalid client_id parameterYou have entered an incorrect Client ID.Verify the Client ID entered for the account and try authorizing the app again.

Snap Pack History

 Click here to expand...


Release

Snap Pack Version 

Date

Type

Updates

May 2025

main31019

Stable

Updated and certified against the current SnapLogic Platform release.

February 2025

main29887

 

Stable

Updated and certified against the current SnapLogic Platform release.

November 2024

main29029

 

Stable

Updated and certified against the current SnapLogic Platform release.

August 2024

main27765

 

Stable

Upgraded the org.json.json library from v20090211 to v20240303, which is fully backward compatible.

May 2024

main26341

 

Stable

Updated and certified against the current SnapLogic Platform release.

February 2024

main25112

 

Stable

Updated and certified against the current SnapLogic Platform release.

November 2023

main23721

 

Stable

Updated and certified against the current SnapLogic Platform release.

August 2023

main22460

 

Stable

Updated and certified against the current SnapLogic Platform release.

May 2023

main21015

 

Stable

Upgraded with the latest SnapLogic Platform release.

February 2023

main19844

 

Stable

Upgraded with the latest SnapLogic Platform release.

November 2022

main18944

 

Stable

Upgraded with the latest SnapLogic Platform release.

August 2022

main17386

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.29 Patch

429patches16199

 

Latest

  • Fixed an issue with the Send Message Snap where the Snap displayed a Null Pointer Exception error when you select User Emails for the Target Type field and the user email id contained null, for example, @slackbot:null. Now, the Snap displays a valid error message.

  • Fixed an issue with the User ID field for the following Slack Snaps where the Snap failed with the User not found error when using @user.name in the User ID field.

4.29

main15993

 

Stable

Enhanced the Slack - Send Message Snap with User Emails option for the Target Type dropdown list to send messages on Slack app using the user’s email.

4.28

main14627

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.27

main12833

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.26

main11181

 

Latest

Upgraded with the latest SnapLogic Platform release.

4.25 Patch

425patches10994

 

Latest

Improved the error messages in the Channel Operations Snap where the Snap fails with Null Pointer Exception when the account reference provided is invalid.

4.25

main9554

 

Stable

No updates made.

4.24

main8556

13 Feb 2021

Stable

No updates made.

4.23

main7430

 

Stable

Initial release of the Snap Pack with the following Snaps and Accounts: