sayintel
Endpoint

Set slack client channel

POST/api/public/v1/clients/{client_id}/slack-appwrite

Set one client's Slack channel and which Sayintel posts go there: alerts (needs approval, safety block, out of credits or cap, integration disconnected, campaign finished), replies and hot leads, Ask Q, and the daily summary (default 09:00 Asia/Jerusalem). Inputs: client_id (the client this channel answers for), channel_id and channel_name (the Slack channel), the four switches alerts/replies/ask_q/summary, and optional summary_hour (0-23) plus summary_timezone (IANA name) overriding the daily summary schedule. The channel cannot be shared with another client. Sends nothing now. Refuses when Slack is not set up.

Request

curl -X POST "https://sayintel.com/api/public/v1/clients/<client_id>/slack-app" \
  -H "Authorization: Bearer $SAYINTEL_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"channel_id": "<channel_id>", "alerts": <alerts>, "replies": <replies>, "ask_q": <ask_q>, "summary": <summary>}'

Try it out

Try it outPOST/api/public/v1/clients/{client_id}/slack-appwrite

Sent as a bearer token to this site only, and kept in this tab's session storage. It is never written to disk or sent anywhere else.

Paste an API key to run.

Path parameters

NameInTypeRequiredDescription
client_idpathstringyes—

Body

NameInTypeRequiredDescription
channel_idbodystringyes—
channel_namebodystringno—
alertsbodybooleanyes—
repliesbodybooleanyes—
ask_qbodybooleanyes—
summarybodybooleanyes—
summary_hourbodynumberno—
summary_timezonebodystringno—
workspacebodystringnoNot accepted on this tool: it acts on your own account, and naming another workspace is refused.
acting_accountbodystringnoWhich sayintel login this call acts on: an account_id or email from list_accounts. Required once logins are linked to this connection.

Response

{
  "ok": true,
  "tool": "set_slack_client_channel",
  "kind": "write",
  "data": { ... },
  "error": null
}

Notes

  • Scope required: write. How scopes work.
  • Accepts Idempotency-Key. A retry with the same key replays the first result instead of repeating the work.
  • Same capability over MCP as the tool set_slack_client_channel. MCP setup.