Skip to content

API reference

Every call an API key can make, one page per call, generated from the same document each Polaris serves at /api/openapi.json.

Calls an API key can make. A key acts as the person who made it, and never with more than they can do themselves.

Download openapi.json
On this page

Base address

Every path is relative to your own Polaris. Save its address and every example on these pages uses it.

Your Polaris

Examples on this site use the address you pick. Saved in this browser only.

https://polaris.example.com/api/v1

Authentication

Create a key in Account > API keys on your Polaris, then send it in the Authorization header of every request. A key only reaches what its owner can, narrowed by the scopes you gave it.

curl -X GET "https://polaris.example.com/api/v1/me" \
  -H "Authorization: Bearer $POLARIS_API_KEY"

Errors

A failed call answers with one of these statuses and a JSON body whose error field says what went wrong. They apply to every call, so each call lists only its own.

StatusMeaning
400The request did not match the schema; the message names the field
401The key is missing, invalid, revoked, expired, or not allowed from here
403The key or its owner lacks the permission this needs
404Not found, or not visible to this key
429Too many calls with this key; wait the seconds in Retry-After

Error body

{
  "error": "string"
}

Groups