Skip to content

Function: bloksAsyncAction() ​

ts
function bloksAsyncAction(
   client, 
   action, 
   params, 
   options?
): Promise<PrivateResponseJson>;

Performs a Bloks async action: posts the form-encoded Bloks payload to bloks/async_action/<action>/ and returns the parsed response. Bloks requests are sent unsigned, so the body is plain form fields.

Parameters ​

ParameterType
clientPrivateClient
actionstring
paramsRecord<string, unknown>
options?BloksActionOptions

Returns ​

Promise<PrivateResponseJson>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.