Dispra Docs

request.check

How every request made with a key is checked before it reaches your project.

  • Starts when: Your code sends a request with a key
  • Involved: Your code, Dispra API
  • Ends with: The answer, or a refusal with a code
  • Takes: A few milliseconds

Steps

StepWhoWhatCalls / logs
1Your codeSends the request with Authorization: Bearer dsp_live_... (and an Idempotency-Key on a write).
2Dispra APIChecks the key: it must exist, be live and be for this environment of Dispra (dsp_live_ or dsp_dev_). Else 401 invalid_key.
3Dispra APIChecks the key's creator is still in the workspace (else 403 key_creator_gone) and the request's browser Origin (else 403 origin_not_allowed).
4Dispra APIChecks scope: the object must belong to the key's project, and environment when the key has one. Else 404 not_found.
5Dispra APIChecks access: the key's level and its creator's current role must both allow the route. Else 403 key_access_denied.
6Dispra APITakes one token from the key's rate-limit bucket. Else 429 rate_limited with Retry-After.
7Dispra APIRuns the route and records the call in the key's call log.calls List API calls

Related