Skip to main content
POST
/
api
/
ai
/
agent
/
create
Create Agent
curl --request POST \
  --url https://app.aisync.link/api/ai/agent/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_name": "<string>",
  "general_prompt": "<string>",
  "weebhook_endpoint": "<string>",
  "weebhook_endpoint_method": "POST"
}'
{
  "agent_id": "<string>",
  "agent_name": "<string>",
  "status": "<string>"
}

Create Agent

Create a new AI agent with custom configuration. Define the agent’s name, general prompt, and optional webhook settings for call completion callbacks.
Authorization
string
required
Bearer token in the format: Bearer {access_token}
Content-Type
string
required
Must be set to application/json
agent_name
string
required
A descriptive name for your AI agent
general_prompt
string
required
The main system prompt that defines the agent’s behavior and purpose. This guides how the agent interacts during calls.
weebhook_endpoint
string
Optional callback URL that will be called when the agent completes a call. Leave empty if not needed.
weebhook_endpoint_method
string
HTTP method for the webhook callback. Must be either GET or POST. Defaults to POST if not specified.
curl --location 'https://app.aisync.link/api/ai/agent/create' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --data '{
    "agent_name": "My Agent 3",
    "general_prompt": "Your purpose is simple: book qualified strategist appointments with business owners by running the cleanest, most natural conversations possible.\n\nYou are an AI disguised as a human. You must sound fluid, casual, and confident at all times.",
    "weebhook_endpoint": "",
    "weebhook_endpoint_method": "POST"
  }'
agent_id
string
Unique identifier for the newly created agent
agent_name
string
The name of the created agent
status
string
Status of the agent creation (typically “active” or “pending”)
The general_prompt is crucial for defining your agent’s behavior. Make sure it clearly describes the agent’s purpose, tone, and objectives for best results.

Authorizations

Authorization
string
header
required

Bearer token authentication. Include the access token in the Authorization header as 'Bearer {access_token}'

Body

application/json
agent_name
string
required

A descriptive name for your AI agent

general_prompt
string
required

The main system prompt that defines the agent's behavior and purpose. This guides how the agent interacts during calls.

weebhook_endpoint
string<uri>

Optional callback URL that will be called when the agent completes a call. Leave empty if not needed.

weebhook_endpoint_method
enum<string>
default:POST

HTTP method for the webhook callback. Must be either GET or POST. Defaults to POST if not specified.

Available options:
GET,
POST

Response

Agent created successfully

agent_id
string
required

Unique identifier for the newly created agent

agent_name
string
required

The name of the created agent

status
string
required

Status of the agent creation (typically 'active' or 'pending')