Skip to main content
POST
/
api
/
v1
/
agents
/
byoa
cURL
curl --request POST \
  --url https://backend.wassist.app/api/v1/agents/byoa/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "webhookUrl": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "systemPrompt": "<string>",
  "firstMessage": "<string>",
  "profilePicture": "<string>",
  "tools": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "apiSchema": "<unknown>",
      "creditCost": 123,
      "active": true
    }
  ],
  "documents": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "file": "<string>",
      "status": "<string>"
    }
  ],
  "memoryKeys": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "key": "<string>",
      "type": "<string>",
      "initialValue": "<string>",
      "whenToUpdate": "<string>"
    }
  ],
  "wakeUpConfigs": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "description": "<string>",
      "forceMessage": true,
      "enabled": true
    }
  ],
  "outboundTriggers": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "url": "<string>",
      "templateId": "<string>",
      "templateName": "<string>",
      "secret": "<string>",
      "enabled": true
    }
  ],
  "websiteTools": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "url": "<string>",
      "prompt": "<string>",
      "active": true
    }
  ],
  "imageGenerateTools": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "prompt": "<string>",
      "creditCost": 123,
      "name": "<string>",
      "description": "<string>",
      "active": true
    }
  ],
  "handoffTools": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "parentAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "childAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "childAgentName": "<string>",
      "description": "<string>",
      "active": true
    }
  ],
  "mcpConfigs": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "connectorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "connectorName": "<string>",
      "toolWhitelist": "<unknown>"
    }
  ],
  "paywallConfig": "<string>",
  "adConfig": "<string>",
  "creditSettings": "<string>",
  "voiceCallConfig": "<string>",
  "owner": "<string>",
  "sharings": "<string>",
  "phoneNumbers": [
    {
      "whatsappPhoneNumberId": "<string>",
      "whatsappBusinessAccountId": "<string>",
      "wabaId": "<string>",
      "phoneNumber": "<string>"
    }
  ],
  "totalMessages": "<string>",
  "totalSessions": "<string>",
  "connectUrl": "<string>",
  "ownerActive": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "icebreakers": "<unknown>"
}
This endpoint lets you create a new Bring Your Own Agent (BYOA). See BYOA Agent for more information.

Authorizations

X-API-Key
string
header
required

API key authentication. Pass your API key in the X-API-Key header.

Body

application/json

Input serializer for creating a Bring Your Own Agent (BYOA) agent.

webhookUrl
string
required

The webhook URL where messages will be forwarded

Response

201 - application/json
id
string<uuid>
required
name
string
required
Maximum string length: 255
systemPrompt
string
required
firstMessage
string
required
profilePicture
string
required
tools
object[]
required
documents
object[]
required
memoryKeys
object[]
required
wakeUpConfigs
object[]
required
outboundTriggers
object[]
required
websiteTools
object[]
required
imageGenerateTools
object[]
required
handoffTools
object[]
required
mcpConfigs
object[]
required
paywallConfig
string
required
adConfig
string
required
creditSettings
string
required
voiceCallConfig
string
required
owner
string
required
sharings
string
required
phoneNumbers
object[]
required
totalMessages
string
required
totalSessions
string
required
connectUrl
string
required
ownerActive
string
required
createdAt
string<date-time>
required
description
string
icebreakers
any