Overview
The Channel API lets integrations send text messages to workspace channels. Messages support Markdown formatting and are commonly used for notifications, bot replies, workflow updates, and alerts.
The Copera Node.js SDK , CLI , and GitHub Action all support channel messaging. Choose your preferred tool below.
Quick Start
REST API
Node.js SDK
CLI
GitHub Action
# Send a message to a channel
curl -X POST https://api.copera.ai/public/v1/chat/channel/{channelId}/send-message \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Hello from my integration!",
"name": "Bot Name"
}'
npm install @copera.ai/sdk
import { CoperaAI } from '@copera.ai/sdk' ;
const copera = CoperaAI ({ apiKey: 'your-api-key' });
// Send a message
await copera . channel . sendMessage ({
channelId: 'channel-id' ,
message: 'Task completed successfully!' ,
name: 'Automation Bot' // optional sender name
});
@copera.ai/sdk Full SDK documentation and source code
curl -fsSL https://cli.copera.ai/install.sh | bash
# Send a message
copera channels message send < channel-i d > --body "Hello from the CLI!"
copera-cli CLI installation, configuration, and full command reference
Integrate Copera notifications directly into your CI/CD pipelines: name : Deploy Notification
on :
push :
branches : [ main ]
jobs :
notify :
runs-on : ubuntu-latest
steps :
- name : Send Copera Notification
uses : copera-ai/copera-action@v2.0.0
with :
api_token : ${{ secrets.COPERA_API_TOKEN }}
channel_id : ${{ secrets.COPERA_CHANNEL_ID }}
message : "New deployment to production!"
sender_name : "GitHub Actions"
Configuration: Input Required Description api_tokenYes Your Copera API token (use GitHub Secrets) channel_idYes Target channel ID messageYes Message content (1–10,000 characters) sender_nameNo Custom sender display name debugNo Enable detailed logging (true/false)
Copera Action GitHub Marketplace listing and full documentation
Available Operations
Operation Description Send Message Send a formatted text message to a channel
Next Steps