Set up an Org App
This guide describes how to set up and configure a Hootsuite Organization App to allow delegated access over the organization in Hootsuite. After app linking is completed by Hootsuite, your app will be able to:
- Create new tokens at any time
- Have full access control of all social media accounts shared to the organization
Step 1: Get your App ID
This initial step involves creating your application to obtain the foundational credentials needed for the system-level linkage.
1.1: Create a Hootsuite App
- Create a Developer Account
- Once approved, create an app in your developer portal
1.2: Retrieve the App ID (appId)
- In your Developer Portal dashboard, select the app
- You can find the
appIdin theappIdparameter of the browser URL.- Example:
https://hootsuite.com/dashboard#/app-directory/developers/app/**<your_app_id>**/my-app
- Example:
Step 2: Get the Organization ID
You need the unique identifier for the Hootsuite organization that will grant delegated access to your application.
- Navigate to your Manage accounts and teams page.
- Select Teams for your organization.
- You can find the organization ID in the
idquery parameter in your browser's address bar.- Example:
https://hootsuite.com/dashboard#/organizations/teams/?id=<your_organization_id>
- Example:
Step 3: Get your Member ID
You need the unique identifier for the Hootsuite organization that will grant delegated access to your application.
- Navigate to your Manage accounts and teams page.
- Select Members for your organization, and select your name.
- You can find the member ID in the
memberidquery parameter in your browser's address bar.- Example:
https://hootsuite.com/dashboard#/organizations/members/?memberId=<your_member_id>
- Example:
Step 3.1: Add the member to your org and assign it Admin permissions
- Navigate to your Manage accounts and teams page.
- Select Members for your organization, and select Invite Members just below the Find member search bar.
- Invite with email address
Step 4: Send a request to link the organization app
To complete the setup for delegated access, you must formally request the link from the Development Support Team via their ticketing system.
- Contact us here
- In the request, include the following information:
- The
appIdyou retrieved in Step 1.2. - The organization ID you retrieved in Step 2.
- The member ID of the non-paying admin member (from the account created in step 3.1).
- The
- Wait for the Development Support Team to link your app to your organization and provide confirmation.
Step 4: Retrieve Your Delegated Access Token
Once the Development Support Team confirms the organization-to-app linkage, you will use the Hootsuite OAuth 2.0 Token endpoint to retrieve a persistent access token. This token represents the delegated authority and is used for API calls without requiring individual user OAuth.
Using the oauth2Token Endpoint
Make a POST request to the OAuth2 Token endpoint using a specific grant type that enables organization-level delegation (often referred to as client credentials or similar delegated flow).
You will need to use your application's Client ID and Client Secret (retrieved in Step 1.1) along with the Organization ID (retrieved in Step 2) and the Member ID (of the non-paying admin from Step 3).
| Parameter | Value | Source | Description |
|---|---|---|---|
grant_type | (Specific to Delegated Access) | API Docs/Support | The grant type that permits organizational delegation. |
client_id | CLIENT_ID | Step 1.1 | The public identifier for your application. |
client_secret | CLIENT_SECRET | Step 1.1 | The secret key for your application. |
member_id | MEMBER_ID | Step 3 | The member ID of the delegated user to act as (the non-paying admin). |
organization_id | ORGANIZATION_ID | Step 2 | The organization ID linked in Step 3. |
The response will contain the organization's Access Token, which can then be used in subsequent API requests to act on behalf of users within that linked organization.
Step 5: Test the Token Request with the curl Command
Following the confirmation of your organization-to-app linkage, you can now execute the POST request to the Hootsuite OAuth 2.0 Token endpoint to retrieve the persistent delegated access token.
This step utilizes the parameters outlined in Step 4, specifically using the member_app grant type, which allows an application to act on behalf of a member (the non-paying admin) within a specific organization.
🔑 The curl Command Structure
The command will use HTTP Basic Authentication for your Client Credentials (Client ID:Client Secret) and pass the grant_type, member_id, and organization_id in the request body.
Command Parameters:
Basic auth
- Client ID:
client_id - Client Secret:
client_secret
Request body
- Organization ID:
organization_id - Grant Type:
organization_app - Scope (optional):
analytics:readfor analytics and publishing access, or omit for defaultofflinescope (publishing only)
curl -X POST \
-u "client_id:client_secret" \
-d "grant_type=organization_app&organization_id=organization_id" \
"https://platform.hootsuite.com/oauth2/token"
✅ Expected Response
A successful request (HTTP 200 OK) will return a JSON object containing your access token:
{
"access_token": "YOUR_DELEGATED_ACCESS_TOKEN",
"token_type": "Bearer",
"expires_in": 2592000,
"scope": "offline"
}
The value of "access_token" is the delegated access token you will use as the Bearer token in the Authorization header for all subsequent Hootsuite API calls related to this organization. If you included the analytics:read scope in your request, the response will reflect that scope instead of the default offline scope, granting you access to both analytics and publishing capabilities.