Incantory
Sign in

Installs API

2 operations. Authentication, errors and pagination work as described in the REST API overview.

Install counts per tool

GET/api/v1/prompts/{owner}/{slug}/installsToken optional

getInstallCounts parameters
NameTypeDescription
owner pathrequiredstring
slug pathrequiredstring

Responses: 200 OK400, 404, 429

Response fields
getInstallCounts response fields
NameTypeDescription
totalrequirednumber
byToolrequiredobject
Example
curl 'https://incantory.ai/api/v1/prompts/{owner}/{slug}/installs' \
  -H "Authorization: Bearer $INCANTORY_TOKEN"

Record an install (what `incantory add` reports)

POST/api/v1/prompts/{owner}/{slug}/installsToken optional

Anonymous calls are allowed. Deduplicated per UTC day by a salted daily hash of the client IP (or the user) and the tool; a repeat answers counted: false. Rate-limited per caller.

recordInstall parameters
NameTypeDescription
owner pathrequiredstring
slug pathrequiredstring

Request body

recordInstall body fields
NameTypeDescription
versioninteger (…–9007199254740991)Installed version; default the latest
toolrequired"claude" | "cursor" | "copilot" | "agents" | "codex" | "windsurf" | "gemini"
scope"project" | "global"
clientstringe.g. cli/0.3.0

Responses: 200 OK400, 404, 410, 429

Response fields
recordInstall response fields
NameTypeDescription
countedrequiredboolean
installCountrequirednumber
versionrequirednumber
Example
curl -X POST 'https://incantory.ai/api/v1/prompts/{owner}/{slug}/installs' \
  -H "Authorization: Bearer $INCANTORY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"tool":"claude"}'