ConnectorsUpdated 2026-03-18Beta
Discord Connector
Discord Connector reference and workflow guide.
What this page helps you do
Use this connector to ingest external content into your RetainDB project for retrieval and memory grounding.
Prerequisites
- A project id.
- Connector-specific credentials/config.
- API key or dashboard access.
Request and response
Create source
json
{
"name": "Discord Connector",
"connectorType": "discord",
"config": {
"guild_id":"1234567890","channel_ids":["2345","6789"]
}
}Trigger sync
bash
curl -X POST "https://api.retaindb.com/v1/sources/src_123/sync" \
-H "Authorization: Bearer $RETAINDB_API_KEY"Step-by-Step Workflow
- Create source under
/v1/projects/:projectId/sources. - Trigger
/v1/sources/:sourceId/sync. - Poll
/v1/sync-jobs/:jobId. - Validate retrieval against freshly synced material.
Try it
bash
curl -X POST "https://api.retaindb.com/v1/projects/proj_123/sources" \
-H "Authorization: Bearer $RETAINDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name":"Discord Connector",
"connectorType":"discord",
"config":{"guild_id":"1234567890","channel_ids":["2345","6789"]}
}'What to expect
- Source creation is immediate.
- Sync latency depends on source size and provider limits.
- Retrieval consistency improves after sync reaches terminal success.
Troubleshooting
- Missing channels: bot permissions/intents not enabled.
- High noise: narrow to specific channels.
- Sync job stuck/failed: inspect
/v1/sync-jobs/:jobIdand retry.
Security notes
- Store connector credentials in secure secrets.
- Keep source/project ownership tenant-scoped.
Verify your setup
- Source listed under project.
- Sync job completes.
- Synced content appears in search results.
Next step
Was this page helpful?
Your feedback helps us prioritize docs improvements weekly.