1. Install NextKS in your workspace
- Sign in at app.nextks.com
- Click Add to Slack and authorize the app
- The NextKS bot will appear in your workspace
- Sign in at app.nextks.com
- Click Add to Teams and complete the admin consent flow
- The NextKS bot will appear in your Teams app list
2. Generate an API key
- Go to Account in the NextKS dashboard
- Under API Keys, click Create Key
- Copy the key — it will only be shown once
Store your API key securely. It cannot be retrieved after creation.
3. Send your first notification
curl -X POST https://app.nextks.com/api/notify \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"user_emails": ["[email protected]"],
"message": "Hello from the NextKS API!"
}'
A successful response:
The recipient will see the message as a DM from the NextKS bot in Slack or Teams.
4. Send an interactive notification
curl -X POST https://app.nextks.com/api/notify \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"user_emails": ["[email protected]"],
"message": "Deploy v2.4.1 to production?",
"response_request": {
"options": [
{ "text": "Approve", "value": "approve" },
{ "text": "Reject", "value": "reject" }
],
"timeout_minutes": 30
}
}'
Response:
{ "status": "ok", "request_id": "req_abc123..." }
Use the request_id to check response status or configure a callback for automatic delivery.
Next steps