Back to Eliza

Connectors API

packages/docs/rest/connectors.md

2.0.12.4 KB
Original Source

The connectors API manages the agent's platform connector configurations. Connectors bridge the agent to external messaging platforms. 28 connectors are supported: Discord, Telegram, Slack, WhatsApp, Signal, iMessage, Blooio, MS Teams, Google Chat, Twitter, Farcaster, Twitch, Mattermost, WeChat, Matrix, Feishu, Nostr, Lens, BlueBubbles, Bluesky, Instagram, LINE, Zalo, Twilio, GitHub, Gmail Watch, Nextcloud Talk, and Tlon. Configuration is persisted to the Eliza config file. Changes typically require a restart to take effect.

See the Connectors guide for detailed setup instructions per platform.

Endpoints

MethodPathDescription
GET/api/connectorsList all configured connectors
POST/api/connectorsAdd or update a connector
DELETE/api/connectors/:nameRemove a connector

GET /api/connectors

Returns all configured connectors with secrets redacted.

Response

json
{
  "connectors": {
    "telegram": {
      "botToken": "****:****"
    },
    "discord": {
      "token": "****"
    }
  }
}

POST /api/connectors

Add a new connector or update an existing one. The connector config is saved to the Eliza config file.

Request Body

FieldTypeRequiredDescription
namestringYesConnector identifier (e.g. telegram, discord, whatsapp)
configobjectYesConnector-specific configuration
json
{
  "name": "telegram",
  "config": {
    "botToken": "123456:ABC-DEF..."
  }
}

Response

Returns the updated connectors map (with secrets redacted):

json
{
  "connectors": {
    "telegram": {
      "botToken": "****:****"
    }
  }
}

Errors

StatusCondition
400Missing connector name
400Name is a reserved key (__proto__, constructor, prototype)
400Missing connector config object

DELETE /api/connectors/:name

Remove a connector from the configuration. Also removes from the legacy channels config key if present.

Path Parameters

ParameterTypeDescription
namestringConnector name (URL-encoded)

Response

Returns the updated connectors map:

json
{
  "connectors": {}
}

Errors

StatusCondition
400Missing or invalid connector name