Skip to main content
Call Actors

Raw HTTP Request

Forward a raw HTTP request to an actor's onRequest handler. The method, headers, body, and the path after /request/ are passed through unchanged.

Use this when an actor exposes its own HTTP routes, streams responses (for example Server-Sent Events), or needs to accept non-JSON payloads. The response is whatever the actor’s onRequest handler returns.

ANY https://api.rivet.dev/gateway/{actor}/request/{path}

Accepts GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS.

Examples

Authentication

Send a token in the x-rivet-token header, inline in the path as {actor_id}@{token}, or in the rvt-token query parameter. Use a public token (pk_) from browsers and a secret token (sk_) from trusted backends. See Authentication.

Path Parameters

NameTypeRequiredDescription
actorstringYesActor ID, actor ID with an inline token ({actor_id}@{token}), or actor name combined with the rvt-* query parameters.
pathstringYesPath forwarded to the actor. The actor sees a request whose URL path is /{path}.

Actor Selector

{actor} accepts an actor ID, an actor ID with an inline routing token ({actor_id}@{token}), or an actor name combined with the rvt-* query parameters below. See Actor Routing for the full rules.

Responses

200

The response returned by the actor’s onRequest handler.