---
title: Getting a Slack API access token
description: Use the OAuth Configuration Service to exchange your Slack client ID and secret for an access token. PingFederate uses this access token to connect to Slack. The process differs slightly depending on your plan.
component: slack
page_id: slack:setup:pf_slack_connector_getting_a_slack_api_access_token
canonical_url: https://docs.pingidentity.com/integrations/slack/setup/pf_slack_connector_getting_a_slack_api_access_token.html
revdate: July 8, 2024
section_ids:
  getting-an-access-token-for-slack-standard-or-plus: Getting an access token for Slack Standard or Plus
  steps: Steps
  getting-an-access-token-for-slack-enterprise-grid: Getting an access token for Slack Enterprise Grid
  steps-2: Steps
---

# Getting a Slack API access token

Use the OAuth Configuration Service to exchange your Slack client ID and secret for an access token. PingFederate uses this access token to connect to Slack. The process differs slightly depending on your plan.

## Getting an access token for Slack Standard or Plus

Exchange your Slack Standard or Plus client ID and secret for an access token.

### Steps

1. Go to the Ping Identity [OAuth Configuration Service](https://oauth.pingone.com/ocs/ppm/rest/v1/oauth/oasrequestform).

2. From the product list, select **Slack Connector**.

3. Enter the **Client ID** and **Client Secret** that you noted in [Registering PingFederate as an app in Slack](pf_slack_connector_registering_pf_as_an_app_in_slack.html).

   ![Screenshot showing the OCS with a client ID and secret entered in.](_images/kug1615501848165.jpg)

4. Click **Connect**.

5. If you receive a prompt to sign on, sign on with your Workspace Owner account.

6. When you receive a message that your application is requesting permission to administer your Slack team, click **Authorize**.

7. On the OAuth Configuration Service page, copy the **Access Token**.

   You will use the access token in [Creating a provisioning connection](pf_slack_connector_creating_a_provisioning_connection.html).

   ![Screenshot showing the Ping Identity OAuth Configuration Service with a modal window titled Service Response. The Access Token field has an access token string in it.](_images/jep1615502497836.jpg)

## Getting an access token for Slack Enterprise Grid

Exchange your Slack Enterprise Grid client ID and secret for an access token.

### Steps

1. In an "Incognito" (or "Private") browser window, go to the Ping Identity [OAuth Configuration Service](https://oauth.pingone.com/ocs/ppm/rest/v1/oauth/oasrequestform) (OCS).

2. From the product list, select **Slack Connector**.

3. Enter the **Client ID** and **Client Secret** that you noted in [Registering PingFederate as an app in Slack](pf_slack_connector_registering_pf_as_an_app_in_slack.html).

   ![Screenshot showing the OCS with a client ID and secret entered in.](_images/kug1615501848165.jpg)

4. Click **Connect**.

5. In the **Sign in to your workspace** window, enter the URL for your Slack organization, such as `mycompany.enterprise`**.slack.com**. Click **Continue**.

   ![Screenshot showing the Sign in to your workspace window with the organization ID entered in.](_images/vij1615501965907.jpg)

6. Click **Org Owners can also sign in here**.

   ![Screenshot showing the sign on options.](_images/aad1615502169763.jpg)

7. Enter your administrator credentials. Click **Sign in**.

   ![Screenshot showing the sign-on prompt with administrator credentials entered in.](_images/gxv1615502266804.jpg)

8. When you receive a message that your application is requesting permission, check that the request is for the organization. Do NOT select a Workspace from the **Please select an option** list. Click **Allow**.

   ![Screenshot showing the permission prompt. The word "organization" is highlighted. The Please select an option list does not have a Workplace selected.](_images/fti1615502383665.jpg)

9. On the OAuth Configuration Service page, copy the **Access Token**.

   You will use the access token in [Creating a provisioning connection](pf_slack_connector_creating_a_provisioning_connection.html).

   ![Screenshot showing the Ping Identity OAuth Configuration Service with a modal window titled Service Response. The Access Token field has an access token string in it.](_images/jep1615502497836.jpg)
