Aurabase Logo
aurabasedocs
Aurabase Logo
aurabasedocs
API/Functions/Invoke an edge function

Invoke an edge function

POST/v1/functions/{project_id}/{name}/invoke

Triggers a deployed handler. The body of the request is NOT transmitted as is: it describes the request to be replayed (method, path, headers, body).

This English text was generated automatically from the French original and has not been reviewed yet.
#
Request

Headers

HeaderRequiredValue
apikeyyesClé API du projet
AuthorizationnoBearer <JWT utilisateur>
Content-Typeyesapplication/json
x-aurabase-invoke-modenoraw → renvoie la réponse brute de la fonction (statut, content-type et octets réels) au lieu de l'enveloppe { data, meta }
#
Request

Bodysuit

ParameterTypeRequiredDescription
methodstringnoHTTP method seen by the handler. Default POST.
pathstringnoPath seen by the handler. Default /.
headersobjectnoHeaders passed to the handler (string → string pairs).
bodyanynoPayload passed to the handler.
Info

These four fields describe the request that your function receives. On the Deno runtime, req.method, new URL(req.url).pathname, req.headers and await req.json() render exactly what you sent — body is the application body, not the shell. GET and HEAD leave without a body (Fetch spec).

#
Notes

Idempotence

Attention

Idempotency-Key is not read on this route: no deduplication is done, two identical invocations are executed twice. If you need idempotence, handle it in the function code.

#
Notes

Execution Limits

Info

The timeout is set by function: default 30 s, hard ceiling 300 s (5 min) — it does not depend on the plan. Memory ranges from 16 to 1024 MB. Invocations are limited to their own throughput profile, and each call consumes the project's functions.invocations quota.

#
Notes

Asynchronous execution

Astuce

For long work, prefer the job queue: POST /v1/functions/{project_id}/jobs, followed by GET …/jobs/{job_id}, with restart (…/retry) and scrap queue (…/jobs/dlq).

v1.0 · revised Apr 15, 2026