AgentsController_create
POST
/api/agents
const url = 'https://api.streams-ai.com/api/agents';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"providerType":"custom_webhook","authMode":"api_key","name":"example","avatarAssetId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","credentialId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","config":{},"instructions":"example","templateId":"example","capabilities":{"streaming":false,"tools":[]},"endpointUrl":"https://example.com"}'};
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-ai.com/api/agents \ --header 'Content-Type: application/json' \ --data '{ "providerType": "custom_webhook", "authMode": "api_key", "name": "example", "avatarAssetId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "credentialId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "config": {}, "instructions": "example", "templateId": "example", "capabilities": { "streaming": false, "tools": [] }, "endpointUrl": "https://example.com" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
providerType
string
authMode
string
name
required
string
avatarAssetId
string format: uuid
credentialId
string format: uuid
config
object
key
additional properties
instructions
string
templateId
string
capabilities
object
streaming
boolean
tools
Array<string>
endpointUrl
string format: uri

