AgentStack Docs

REST API: channels

Automate email and Slack channel configuration safely.

Use the Channels API to configure agent email and Slack channels from a backend provisioning flow. Before you patch the channel settings of an agent, read the current settings. Treat email addresses, blocked senders, and the primary address as separate resources. After you update the primary address, read back the settings to confirm the change. This step matters most when the agent has more than one address.

Email domain setup uses a staged verification process. Create or list domains. Request receiving setup. Publish the required DNS records. Then verify them. A requested verification is not the same as completed delivery capability. You can verify or disable receiving as separate operations. Treat domain deletion as a deliberate action. It has a known effect on mail flow.

Slack channel discovery lists the available channels. It does not by itself activate an agent in a channel. Use the documented Slack settings payload to update the intended agent. Keep external provider tokens and AgentStack API keys in the backend. When verification fails, log the returned envelope. Do not retry DNS changes without a clear reason.