Indexed
IndexingConnectors

Outline

Index your Outline wiki into a semantic collection that your AI agent can query by meaning.

Outline

By the end of this guide, you will have your Outline wiki indexed into a semantic collection and verified with a test search — searchable from the CLI or from any MCP-connected AI agent.

Prerequisites

Create an Outline API Key

  1. Open your Outline instance and go to Settings → API
  2. Click New API key
  3. Give it a name (e.g., "Indexed CLI") and copy the key

Set the API token as an environment variable (the wiki URL is passed with -u):

Terminal
export OUTLINE_API_TOKEN=your_api_key_here

Keep tokens out of version control

Store credentials in a .env file and add it to .gitignore. Never commit API tokens to a repository.

For self-hosted instances, pass your instance root with -u — for example -u https://wiki.company.com.

Index Your Wiki

Minimal example — indexes all documents your API key can read:

Terminal
indexed index create outline -c team-wiki -u https://app.getoutline.com

To restrict indexing to specific Outline collections, pass one or more --collection-id values. These are collection IDs, not names:

Terminal
indexed index create outline \
  -c eng-wiki \
  -u https://app.getoutline.com \
  --collection-id <engineering-collection-id>

The CLI streams progress while it fetches documents and embeds chunks.

Verify the collection and run a quick test search:

Terminal
indexed index inspect eng-wiki
indexed index search "deployment process" -c eng-wiki

Hits are ranked per collection with the document title, relevance score, and the matched excerpt.

Filter by Collection or Document

Outline organizes documents into collections. --collection-id is repeatable — pass it once per collection — which is useful when different teams own different collections and you want separate Indexed collections for each:

Terminal
# Index two Outline collections side by side
indexed index create outline -c eng-wiki -u https://app.getoutline.com --collection-id <engineering-collection-id>
indexed index create outline -c product-wiki -u https://app.getoutline.com --collection-id <product-collection-id>

Without --collection-id, Indexed fetches every document visible to your API key.

Keep the Index Fresh

Pull only new or modified documents since the last sync:

Terminal
indexed index update eng-wiki

To automate it:

crontab
# Update every 6 hours
0 */6 * * * /path/to/indexed index update eng-wiki

Troubleshooting

Authentication errors — confirm OUTLINE_API_TOKEN is set and was copied without leading/trailing whitespace. API keys in Outline start with ol_api_; make sure you copied the full value.

Self-hosted URL issues — pass -u with the root of your instance (e.g., https://wiki.company.com), without a trailing slash or /api suffix. Indexed appends the API path automatically.

Empty results — run indexed index inspect eng-wiki to confirm the collection was created and has documents. If document count is zero, check that your API key has read access to the target collections in Outline (Settings → Members).

Rate limiting — Outline's API has rate limits per key. For large wikis (500+ documents), Indexed retries automatically with exponential backoff.

What's Next

On this page