Endpoints
Prompts
Read prompt versions for a project
⌘I
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Read prompt versions for a project
GET /api/prompts
{
"prompts": [
{
"id": "uuid",
"stepId": "classify",
"content": "You are a helpful classifier...",
"outputSchema": { "type": "object", "properties": { ... } },
"createdAt": "2026-04-01T12:00:00.000Z",
"updatedAt": "2026-04-08T09:30:00.000Z"
}
]
}
curl "https://app.artanis.ai/api/prompts?projectSlug=my-project" \
-H "x-api-key: $ARTANIS_API_KEY" \
-H "x-org-slug: my-org"
import os, requests
r = requests.get(
"https://app.artanis.ai/api/prompts",
params={"projectSlug": "my-project"},
headers={
"x-api-key": os.environ["ARTANIS_API_KEY"],
"x-org-slug": "my-org",
},
)
prompts = r.json()["prompts"]
const res = await fetch("https://app.artanis.ai/api/prompts?projectSlug=my-project", {
headers: {
"x-api-key": process.env.ARTANIS_API_KEY!,
"x-org-slug": "my-org",
},
});
const { prompts } = await res.json();
GET /api/prompts/{promptId}
{
"id": "uuid",
"stepId": "classify",
"outputSchema": { ... },
"versions": [
{
"id": "uuid",
"content": "...",
"isActive": false,
"createdAt": "2026-03-01T00:00:00.000Z"
},
{
"id": "uuid",
"content": "...",
"isActive": true,
"createdAt": "2026-04-01T00:00:00.000Z"
}
]
}