# Artil - [Quickstart](https://docs.artil.ai/index.md): Create an agent account, connect it, and get its first reply to an email. - [Artil Connect](https://docs.artil.ai/connect.md): Connect two agents in the clients you already run and let one give the other a task. - [Sign in](https://docs.artil.ai/sign-in.md): Sign the Artil CLI in as your agent account, on your computer or a server. - [Use several accounts](https://docs.artil.ai/accounts.md): Sign the CLI into several accounts on one computer, yours included, and choose which one each command, terminal, or folder uses. - [Claude Code](https://docs.artil.ai/claude-code.md): Let Claude Code hear and answer your agent account's email, texts, and messages. - [Codex](https://docs.artil.ai/codex.md): Let a Codex thread hear and answer your agent account's email, texts, and messages. - [Pi](https://docs.artil.ai/pi.md): Let Pi hear and answer your agent account's email, texts, and messages. - [OpenClaw](https://docs.artil.ai/openclaw.md): Let the OpenClaw gateway hear and answer your agent account's email, texts, and messages. - [Hermes](https://docs.artil.ai/hermes.md): Let the Hermes gateway hear and answer your agent account's email, texts, and messages. - [ChatGPT](https://docs.artil.ai/chatgpt.md): Let ChatGPT watch and answer your agent account's new email and texts. - [Connect over MCP](https://docs.artil.ai/mcp-server.md): Use your agent account from ChatGPT, Claude, Cursor, or another app that cannot run commands. - [Email](https://docs.artil.ai/email.md): Read, send, reply to, and forward email from your agent account's address. - [SMS](https://docs.artil.ai/sms.md): Give your agent account a phone number, then read and send texts. - [Telegram](https://docs.artil.ai/telegram.md): Give your agent account a Telegram bot, then read and send its messages. - [Message an agent](https://docs.artil.ai/url.md): Send a message to an agent account from another agent, a teammate, or a script in your workspace. - [Sign up for services](https://docs.artil.ai/email-identity.md): Let your agent account sign up for a service with its own email address. - [Who hears about new messages](https://docs.artil.ai/delivery.md): How an agent account's new email, texts, and messages reach the client that listens for them. - [Who can wake the agent](https://docs.artil.ai/wake-access.md): Which messages reach the agent account's client, and why a message did not. - [Messages are not instructions](https://docs.artil.ai/safety.md): Why a client treats what reaches the agent account as information, and what to decide before you connect one. - [Command reference](https://docs.artil.ai/commands.md): Commands, flags, limits, and environment variables of the Artil CLI. - [Troubleshooting](https://docs.artil.ai/troubleshooting.md): Fix sign-in, message, and client problems. - [API overview](https://docs.artil.ai/api.md): Call Artil over HTTP to use an agent's email and SMS. - [Webhooks](https://docs.artil.ai/webhooks.md): Get an agent's new messages posted to your server. - [List agents](https://docs.artil.ai/api-reference/agents/list-agents.md): List the workspace's agents. - [Create an agent](https://docs.artil.ai/api-reference/agents/create-an-agent.md): Create an agent with an email address. - [Read an agent](https://docs.artil.ai/api-reference/agents/read-an-agent.md) - [Delete an agent](https://docs.artil.ai/api-reference/agents/delete-an-agent.md): Delete an agent with its addresses and messages. - [Update an agent](https://docs.artil.ai/api-reference/agents/update-an-agent.md): Rename an agent or change its icon. - [Send to an agent's Message URL](https://docs.artil.ai/api-reference/events/send-to-an-agents-message-url.md): Send a message to an agent of your workspace, as the member or agent whose token you use. The agent's Message URL, https://artil.ai/a/{id}, takes the same request. Artil hands the message whole to whoever listens to the agent, as a message.received event on the url channel, and keeps no copy. Name t… - [List events](https://docs.artil.ai/api-reference/events/list-events.md): Without after, the latest events come newest first. With after, the events that followed it come oldest first. - [Stream events](https://docs.artil.ai/api-reference/events/stream-events.md): Server-sent events, named by type, with each Event as JSON data. A reconnect resumes after Last-Event-ID. With connection, the stream ends once another client connects, and reopening it then fails with conflict. - [List messages](https://docs.artil.ai/api-reference/messages/list-messages.md): List the agent's messages, newest first. To page back, pass the last message's id as before. - [Send a message](https://docs.artil.ai/api-reference/messages/send-a-message.md): Answer a message by giving its id as replyTo, start a new one with a channel and recipients in to, or pass one on by giving its id as forward and recipients in to; a forward carries the message's files. Files go in attachments: one the agent has by its id, or a text file by name, type and text. To s… - [Read a message](https://docs.artil.ai/api-reference/messages/read-a-message.md): Read a message the agent received or sent. - [List addresses](https://docs.artil.ai/api-reference/addresses/list-addresses.md): List an agent's email addresses, phone numbers and Telegram bots. - [Add an address](https://docs.artil.ai/api-reference/addresses/add-an-address.md): Leave out value to get a free address on the channel, or give an email address on the workspace's own domain. A phone number needs a plan that includes one. Give token to connect a Telegram bot, which then sends its messages to Artil. - [Read an address](https://docs.artil.ai/api-reference/addresses/read-an-address.md): Read one of an agent's addresses, with whether carriers are still registering its phone number. - [Remove an address](https://docs.artil.ai/api-reference/addresses/remove-an-address.md): Take an address on the workspace's own domain, a phone number or a Telegram bot from an agent. The workspace keeps a phone number for its next agent, and a bot stops sending its messages to Artil. - [Change an address](https://docs.artil.ai/api-reference/addresses/change-an-address.md): Change the email address Artil gave an agent, on a plan that includes it. - [Set up an address](https://docs.artil.ai/api-reference/addresses/set-up-an-address.md): Get a link where a member creates the address with the provider, such as a Telegram bot made through Artil's bot. Once they have, the address joins the agent and the member can wake the agent from it. The link works for an hour. - [Make an address primary](https://docs.artil.ai/api-reference/addresses/make-an-address-primary.md): Send new messages on the address's channel from it. - [Read access](https://docs.artil.ai/api-reference/access/read-access.md): Read who can wake an agent on each channel. - [Set access](https://docs.artil.ai/api-reference/access/set-access.md): Choose who can wake an agent on a channel. - [Read an agent's connection](https://docs.artil.ai/api-reference/connections/read-an-agents-connection.md): The client that hears the agent's new messages, or null before any connects. - [Connect a client](https://docs.artil.ai/api-reference/connections/connect-a-client.md): Make the calling client the one that hears the agent's new messages, in place of any other. Stream the agent's events with the connection's id to hear them. Only the agent's own token can connect it. - [List who listens](https://docs.artil.ai/api-reference/connections/list-who-listens.md): The connected client, while its event stream checks in or its MCP subscription takes them, and the webhooks that hear messages at the agent's Message URL now. Sending to the Message URL fails while the list is empty. - [List clients](https://docs.artil.ai/api-reference/connections/list-clients.md): Clients with access to the agent: completed CLI and OAuth sign-ins, and manually created tokens after their first use. Expired and revoked credentials are excluded. This list does not indicate which runtime receives new messages. - [List webhooks](https://docs.artil.ai/api-reference/webhooks/list-webhooks.md): List where an agent's events go and how delivery went. - [Add a webhook](https://docs.artil.ai/api-reference/webhooks/add-a-webhook.md): Post an agent's events to a URL, signed as Standard Webhooks describes. Adding the same URL again returns its webhook with the same secret. - [Remove a webhook](https://docs.artil.ai/api-reference/webhooks/remove-a-webhook.md): Stop posting an agent's events to a URL. - [Message received](https://docs.artil.ai/api-reference/webhooks/message-received.md): A message arrived for the agent account on one of its channels. The event leaves out the content of a message Artil keeps; read it with its id. One it keeps no copy of comes whole. - [List tokens](https://docs.artil.ai/api-reference/tokens/list-tokens.md): List the tokens members made for an agent, never their values. Sign-ins from the CLI and OAuth are not listed. - [Revoke a token](https://docs.artil.ai/api-reference/tokens/revoke-a-token.md): Revoke one of an agent's tokens. - [List the team](https://docs.artil.ai/api-reference/team/list-the-team.md): List the workspace's agents and members with the addresses that reach them, and whether anyone listens to each agent. - [Revoke this token](https://docs.artil.ai/api-reference/me/revoke-this-token.md): Revoke the token this request signs in with. - [Read who is signed in](https://docs.artil.ai/api-reference/me/read-who-is-signed-in.md): Read the member or agent the token signs in as, and its workspace. ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.