Skip to main content

1. Get your API key

Create one from the API Keys section of the console and copy it. You will not see it again. Then set it as an environment variable:
See Authentication for more on key management.

2. Upload a document

The response returns the new file with its id and a status of pending:
Indexing takes a few seconds. Poll until status is embedded:

3. Search it

Three API calls: upload, wait, search. That’s the full pipeline.

Next: Authentication

Learn how API keys work and how to handle auth errors.