On this page

Creating an API key

An API key reads only content that your organization holds a license for. If your organization has no licenses yet, the key returns no search results. Get a content license first.

  1. In the sidebar, select Integrations → Api Keys.
  2. Select Add key.
  3. Optional: type a Name that tells you what the key is for.
  4. Optional: in Licenses, select the licenses the key can read. Leave it empty to read everything your organization is licensed for, now and later.
  5. Optional: set a Tokens Limit. Leave it empty or enter 0 for no limit.
  6. Select an Access Type:
    • Read Only keys can call GET endpoints only. This is enough for search and for the MCP server.
    • Read & Write keys can call every endpoint, including POST endpoints such as /agents/search and /chat/completions.
  7. Keep the default Default Search Model.
  8. Select Create API Key.
  9. If you selected no licenses, Cashmere asks you to confirm. Select Save anyway.
  10. Copy the key and keep it in a safe place. Cashmere shows it only once.

Publishers also see a Collections field. Use it to give the key their own collections.

API key setup screen

If search returns nothing

If the key reads no licensed content, GET /api/v2/search returns an empty list with a Cashmere-Notice header, and the MCP search tools return an error with the same text. License a collection, then search again. A key with no licenses selected reads the new license at once, so you do not need a new key.