1. Create an API key
In the Qontext app, open Clients → API Keys and select + Create API key. Copy the key and store it as an environment variable:2. Create a file
This request creates/api-example/hello.md. Missing parent folders are created automatically.
201 and a file object. These are the fields you need next:
id and lastChangeId.
Running the example again at the same path returns
409 path_already_exists. Choose another path, or find the existing file with the path filter. Creating a file never overwrites existing content.3. Read the file
Replace the example ID with theid returned by your create request.
content and the file’s lastChangeId.
Next steps
- Update the file using the version you read.
- Search your context by meaning. Newly written content may take a moment to become searchable.
- Manage files and folders using stable IDs and paths.