Execute Action

Executes a specified action.
It is similar to /chat but it only handles transaction requests. It is designed to be used without history context.

Headers

Body

Request

POST
/execute
fetch("https://nebula-api.thirdweb.com/execute", {
method: "POST",
headers: {
"x-secret-key": "YOUR_THIRDWEB_SECRET_KEY",
},
body: {
message: "Hello",
stream: false,
session_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
execute_config: {
mode: "client",
signer_wallet_address:
"0xc3F2b2a12Eba0f5989cD75B2964E31D56603a2cE",
},
},
});

Response

{
"message": "string",
"actions": [
{
"session_id": "string",
"request_id": "string",
"type": "init",
"source": "string",
"data": "string"
}
],
"session_id": "string",
"request_id": "string"
}