Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

docs: add CLI-only API authentication guide

screenpipe-agent[mac-mini]b725d00fa8a0
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/getting-started.mdx b/docs/mintlify/docs-mintlify-mig-tmp/getting-started.mdx
index 75aede74e..c211ed4a8 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/getting-started.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/getting-started.mdx
@@ -102,6 +102,29 @@ curl http://localhost:3030/health
curl "http://localhost:3030/search"
```
+### API authentication (required)
+
+the search endpoint requires an API key. get your key by running:
+
+```bash
+screenpipe auth token
+```
+
+then use it in curl:
+
+```bash
+curl "http://localhost:3030/search?q=example" \
+ -H "Authorization: Bearer <your-api-key>"
+```
+
+or set it as an environment variable:
+
+```bash
+export SCREENPIPE_API_KEY=$(screenpipe auth token)
+curl "http://localhost:3030/search?q=example" \
+ -H "Authorization: Bearer $SCREENPIPE_API_KEY"
+```
+
## connect to AI
screenpipe works with any AI that supports MCP or HTTP APIs: