API Reference
API Documentation
V3
- Get Started
- π Workspaces
- π€ Agents
- Calls & Numbers
- π¨ Tools
- βοΈ Variables
- π₯ Leads
- π§ Knowledge Base
- π¬ Conversations
- π’ Orgs
Agents
- Introduction
- GETGet Agent
- POSTCreate/Edit Agent
- DELDelete Agent
- POSTChat Interact
- POSTConfigure State
- π§ Knowledge Base
- π¬ Conversations
- π Analytics
Workspaces
- GETGet Workspace
- POSTEdit Workspace
- DELDelete Workspace
- πΌ Agency
- π’ Orgs
- π€ Clients
πΌ Agency
Edit/Create Agency
Creates/Edit an agency
POST
/
v2
/
agencies
Copy
curl --request POST \
--url https://eu-vg-edge.moeaymandev.workers.dev/v2/agencies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"squarePhotoURL": "<string>",
"darkModeSquarePhotourl": "<string>",
"brandingText": "<string>",
"customDomain": "<string>",
"VGsubDomain": "<string>",
"customThemeJSONString": "<string>",
"isVerifiedSubDomain": true,
"isVerifiedCustomDomain": true,
"withVGBranding": true,
"themeVariant": "default",
"themeColorUsage": "gradient",
"googleFont": "<string>",
"mainWebsite": "<string>",
"supportEmail": "<string>",
"tosPage": "<string>",
"privacyPolicypPage": "<string>",
"secret": "<string>",
"OPENAI_API_KEY": "<string>",
"OPENAI_DEFAULT_MODEL": "gpt-3.5-turbo",
"address": "<string>",
"customCSS": "<string>",
"enableHumanHandoff": true,
"resendEmailDomain": "<string>",
"resendEmailDomainId": "<string>",
"resendEmailDomainStatus": "not_started",
"resendEmailDomainRecords_JSON_STRING": "<string>"
}'
Copy
{
"success": true,
"message": "Agency created/edited successfully"
}
Authorizations
Workspace secret API key, found in the workspace settings page (top left).
Body
application/json
New agency data to create/edit
The body is of type object
.
Response
200
application/json
Agency created/edited succesfully
The response is of type object
.
Copy
curl --request POST \
--url https://eu-vg-edge.moeaymandev.workers.dev/v2/agencies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"squarePhotoURL": "<string>",
"darkModeSquarePhotourl": "<string>",
"brandingText": "<string>",
"customDomain": "<string>",
"VGsubDomain": "<string>",
"customThemeJSONString": "<string>",
"isVerifiedSubDomain": true,
"isVerifiedCustomDomain": true,
"withVGBranding": true,
"themeVariant": "default",
"themeColorUsage": "gradient",
"googleFont": "<string>",
"mainWebsite": "<string>",
"supportEmail": "<string>",
"tosPage": "<string>",
"privacyPolicypPage": "<string>",
"secret": "<string>",
"OPENAI_API_KEY": "<string>",
"OPENAI_DEFAULT_MODEL": "gpt-3.5-turbo",
"address": "<string>",
"customCSS": "<string>",
"enableHumanHandoff": true,
"resendEmailDomain": "<string>",
"resendEmailDomainId": "<string>",
"resendEmailDomainStatus": "not_started",
"resendEmailDomainRecords_JSON_STRING": "<string>"
}'
Copy
{
"success": true,
"message": "Agency created/edited successfully"
}
Assistant
Responses are generated using AI and may contain mistakes.