Cache developers

Docs | Your keys

Cache developers

Home | Docs | Your keys

Docs

Base address https://developers.cacheanything.com · send Authorization: Bearer cache_sk_… · JSON in, JSON out.


GET /v1/me

The key in use: its name, level and limits

GET /v1/projects

Your projects

GET /v1/projects/{id}/saves

A project's saves, newest first

  • id (path, required) The project's id
  • limit (query)
  • cursor (query) next_cursor from the previous page

GET /v1/saves/{id}

One save, with its text and projects

  • id (path, required) The save's id

POST /v1/saves

Save a link or a note (needs an add key)

  • Idempotency-Key (header) Send the same value again within a day to get the first answer back instead of saving twice
{"url": "https://…", "title": "optional", "project_id": "optional"}
{"text": "a note", "title": "optional", "project_id": "optional"}

POST /v1/saves/{id}/projects

Add an existing save to a project (needs a read, add and organise key)

  • id (path, required) The save's id
{"project_id": "…"}

Paging

Lists take limit (1–100, default 25). When there is more, the reply has next_cursor: send it back as cursor for the next page.

Retries

On POST /v1/saves, send Idempotency-Key: <your id>. The same key and id within a day returns the first answer (with Idempotent-Replay: true) and saves nothing new.

Errors

Every error looks like {"error": {"code": "…", "message": "…"}}.