Client API
Authentication #
The Satori Client API authenticates with an API key.
Requests follow two steps:
- Authenticate. Call
POST /v1/authenticatewith your API key passed as the username in an HTTP Basic Authentication header and an empty password. The response returns a session token and a refresh token. - Call the API. Send the session token as a Bearer credential in the
Authorizationheader on every other endpoint.
See client libraries for concrete code examples.
Two endpoints differ from the pattern above:
GET /v1/flagandGET /v1/flag/overrideaccept either an API key or a session token. The reference shows both as required. Only one is needed.POST /v1/server-eventuses Basic Authentication with an API key. See Server events.
