| name | hootsuite-install-auth |
| description | Install and configure Hootsuite SDK/CLI authentication.
Use when setting up a new Hootsuite integration, configuring API keys,
or initializing Hootsuite in your project.
Trigger with phrases like "install hootsuite", "setup hootsuite",
"hootsuite auth", "configure hootsuite API key".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","hootsuite","social-media"] |
| compatibility | Designed for Claude Code |
Hootsuite Install & Auth
Overview
Configure Hootsuite REST API OAuth 2.0 authentication. Hootsuite uses OAuth 2.0 with Bearer tokens. You register an app in the Hootsuite Developer Portal, get client credentials, and exchange authorization codes for access tokens.
Prerequisites
Instructions
Step 1: Register Your App
- Go to https://developer.hootsuite.com
- Create a new app
- Note your Client ID and Client Secret
- Set redirect URI to
https://your-app.com/callback
Step 2: Configure Environment
HOOTSUITE_CLIENT_ID=your_client_id
HOOTSUITE_CLIENT_SECRET=your_client_secret
HOOTSUITE_REDIRECT_URI=https://your-app.com/callback
HOOTSUITE_ACCESS_TOKEN=
.env
.env.local
Step 3: OAuth 2.0 Authorization Flow
import 'dotenv/config';
const { HOOTSUITE_CLIENT_ID, HOOTSUITE_CLIENT_SECRET, HOOTSUITE_REDIRECT_URI } = process.env;
function getAuthUrl(): string {
const params = new URLSearchParams({
response_type: 'code',
client_id: HOOTSUITE_CLIENT_ID!,
redirect_uri: HOOTSUITE_REDIRECT_URI!,
: ,
});
;
}
() {
response = (, {
: ,
: {
: ,
: ,
},
: ({
: ,
code,
: !,
}),
});
tokens = response.();
.(, tokens.);
.(, tokens.);
.(, tokens., );
tokens;
}
() {
response = (, {
: ,
: {
: ,
: ,
},
: ({
: ,
: refreshToken,
}),
});
response.();
}