Create an anonymous auth token
Creates a short-lived auth token for anonymous external search, for example with the Web SDK. Call this from your backend with an API token that has anonymous permissions and the anonymous_auth_tokens:write scope, then pass the returned token to the browser. The returned token acts as no user and expires at expires_at. Any other caller gets 403, and so does a deployment where anonymous external search is off.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 408
- 429
- 500
- 503
The anonymous auth token was created.
Invalid request (malformed JSON, invalid parameter values, unknown fields).
Missing or invalid authentication token.
Token valid but lacks permission for the requested operation.
Resource not found.
Backend did not respond within the timeout window.
Rate limit exceeded. Includes Retry-After header.
Unexpected server-side failure.
Backend temporarily unavailable.