Skip to main content

Headers

All REST API requests require two headers that together identify the caller and the organization being accessed:
HeaderValueDescription
x-api-keyYour API keyIssued by Artanis. Treat it like a password.
x-org-slugOrganization slugThe slug of the organization you want to read from. Visible in the dashboard URL.
Never commit your API key to version control or expose it in client-side code. Rotate it immediately if it leaks.

Example

curl https://app.artanis.ai/api/prompts?projectSlug=my-project \
  -H "x-api-key: $ARTANIS_API_KEY" \
  -H "x-org-slug: my-org"

Errors

StatusMeaning
401Missing or invalid x-api-key, or no Clerk session if you’re calling without an API key
403The requested project or resource does not belong to the organization in x-org-slug
404Resource does not exist