Skip to main content
Inspector

Enqueue Message

Enqueue a message through the inspector.

The inspector API is subject to change without notice. Do not build production integrations on it.

POST https://rivet.example.com/gateway/{actor}/inspector/queue

Examples

Authentication

Inspector endpoints do not accept namespace tokens. Send the actor’s inspector token as a bearer token in the Authorization header.

Path Parameters

NameTypeRequiredDescription
actorstringYesActor ID, actor ID with an inline token ({actor_id}@{token}), or actor name combined with the rvt-* query parameters.

Headers

NameTypeRequiredDescription
AuthorizationstringNoBearer token for inspector authentication. Required in production, optional in development.

Request Body

Content type: application/json.

FieldTypeRequiredDescription
namestringYesQueue message name.
bodyanyNoMessage payload. Any JSON value.

Responses

200

Metadata for the enqueued message.

FieldTypeDescription
idstring
namestring
createdAtMsinteger
{
  "id": "<id>",
  "name": "my-actor",
  "createdAtMs": 0
}

401

The inspector token is missing or invalid.