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
| Name | Type | Description |
|---|---|---|
owner pathrequired | string | |
slug pathrequired | string |
Responses: 200 OK400, 404, 429
Response fields
| Name | Type | Description |
|---|---|---|
totalrequired | number | |
byToolrequired | object |
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.
| Name | Type | Description |
|---|---|---|
owner pathrequired | string | |
slug pathrequired | string |
Request body
| Name | Type | Description |
|---|---|---|
version | integer (…–9007199254740991) | Installed version; default the latest |
toolrequired | "claude" | "cursor" | "copilot" | "agents" | "codex" | "windsurf" | "gemini" | |
scope | "project" | "global" | |
client | string | e.g. cli/0.3.0 |
Responses: 200 OK400, 404, 410, 429
Response fields
| Name | Type | Description |
|---|---|---|
countedrequired | boolean | |
installCountrequired | number | |
versionrequired | number |
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"}'