Try our new Setup Skill to automatically integrate Hyperspell into your project
import Hyperspell from 'hyperspell';
const client = new Hyperspell({
apiKey: process.env['HYPERSPELL_API_KEY'], // This is the default and can be omitted
});
const response = await client.actions.sendMessage({ provider: 'reddit', text: 'text' });
console.log(response.provider_response);{
"success": true,
"error": "<string>",
"provider_response": {}
}Send a message to a channel or conversation on a connected integration.
import Hyperspell from 'hyperspell';
const client = new Hyperspell({
apiKey: process.env['HYPERSPELL_API_KEY'], // This is the default and can be omitted
});
const response = await client.actions.sendMessage({ provider: 'reddit', text: 'text' });
console.log(response.provider_response);{
"success": true,
"error": "<string>",
"provider_response": {}
}API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.
Send a message to a channel or conversation.
Integration provider (e.g., slack)
reddit, notion, slack, google_calendar, google_mail, box, dropbox, google_drive, github, vault, web_crawler, trace, microsoft_teams, gmail_actions Message text
Connection ID. If omitted, auto-resolved from provider + user.
Channel ID (required for Slack)
Parent message ID for threading (thread_ts for Slack)
Was this page helpful?