LocalRunsController_start
POST
/api/agents/local-runs/{invocationId}/start
const url = 'https://api.streams.chat/api/agents/local-runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/start';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"accountId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","attemptId":"example","supportedProviders":["example"],"deviceId":"example","deviceName":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.streams.chat/api/agents/local-runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/start \ --header 'Content-Type: application/json' \ --data '{ "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "attemptId": "example", "supportedProviders": [ "example" ], "deviceId": "example", "deviceName": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”invocationId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
accountId
required
string format: uuid
attemptId
required
string
supportedProviders
Array<string>
deviceId
string
deviceName
string
Examplegenerated
{ "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "attemptId": "example", "supportedProviders": [ "example" ], "deviceId": "example", "deviceName": "example"}