Skip to main content
POST
Call a gateway operation of an adapter a published widget uses

Path Parameters

compositionId
string<uuid>
required
adapterId
string
required

The id of the adapter, the name its module is known by, for example upload.

Maximum string length: 40
Pattern: ^[a-z][a-z0-9]*(-[a-z0-9]+)*$
operation
string
required

The name of one operation of the adapter, as its documentation gives it.

Maximum string length: 40
Pattern: ^[a-z][a-z0-9]*(-[a-z0-9]+)*$

Body

application/json
requestId
string
required

Names this attempt: 8 to 64 characters, letters, digits, _ and -, the first a letter or a digit (a UUID fits). A module makes a new one for each action of the visitor. An operation that costs credits is charged once for each requestId, so a repeat of one that was charged and not given back is refused (409 REQUEST_ALREADY_USED) and does no work.

Pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{7,63}$
version
integer

The version of the adapter the widget's code was built against (the vN of its import). When it is left out, the newest version the widget's live manifest lists.

Required range: 1 <= x <= 1000
input
object

What the operation is asked to do. Each operation says what it accepts and answers 400, 413 or 422 with a code of its own for what it cannot use. Defaults to an empty object.

context
object | null

The host context the embedding page gave the widget, as the entry route takes it (see the description of createPublicCompositionEntry, with its Signed context). It is not authenticated unless the partner signs it. At most 4096 bytes of JSON, the two signature keys included.

captchaToken
string | null

The visitor's CAPTCHA token, for an operation that asks for one (the answer CAPTCHA_REQUIRED says so).

Maximum string length: 4096

Response

The operation answered

success
boolean
required
Example:

true

data
object
required