Skip to main content

fireWebhook

Fires a webhook using a template configured on the dashboard, optionally passing data to populate it.

Parameters

Player | table | number
required
Who is firing the webhook. See the actor object.
string
required
The id of the webhook template to fire.
table
required
Key/value data used to populate the template’s placeholders. Pass an empty table {} if the template needs no data. Values can be strings, numbers, or nested tables, matching the placeholders configured on the template.
boolean
default:"false"
When true, waits for the message to be delivered before returning (so you can read back the messageId). When false, the call returns as soon as the request is accepted.

Returns

table | nil
The delivery result on success, or nil if the request was rejected or the backend was unreachable.

Examples


apiBatch

Runs multiple operations in a single request. All operations share one actor and are executed sequentially on the backend. This is the most efficient way to perform several writes at once.
A batch may contain at most 20 operations. Duplicate operations within the same batch are rejected. Each operation’s args payload is capped at 24 KB.

Parameters

Player | table | number
required
The actor applied to every operation in the batch. See the actor object.
object[]
required
An array of operation objects to execute in order.

Returns

array | nil
The per-operation results, in the same order as operations. A failed individual operation yields { error = "message" } in its slot. nil if the whole batch was rejected or the backend was unreachable.

Example