Functions

Prepare a narrowed runtime key

Ask for the capacity a per-function key needs before creating a function with a narrowed preset, then answer the presets as they now stand. Needs the same permission as deploying a function.

post/functions/runtime-grant-presets/runner-request

Request

  • Base URL
    https://api.primitive.dev/v1
  • URL
    https://api.primitive.dev/v1/functions/runtime-grant-presets/runner-request
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring

Optional client-supplied idempotency key. Retrying a request with the same key returns the original result instead of performing the action a second time; if omitted the server derives one from the canonical payload hash. Safe to retry network failures without duplicating side effects.

Request body

presetstring

Response

Prepare a narrowed runtime key

successtrue required

Changes

No operation changes recorded.