Skip to main content
POST
/
api
/
agents
/
samples
/
create
cURL
curl --request POST \
  --url http://localhost:8080/api/agents/samples/create \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>'
{
  "message": "Sample agent created successfully",
  "status": "success",
  "error": null,
  "data": {
    "agent_id": "agent_sample_1640995200000",
    "organization_id": "org_456",
    "agent_name": "Sample Agent",
    "begin_message": "Hello! I'm a sample AI agent. How can I help you today?",
    "test_variables": {
      "sample": "true",
      "created_at": "2024-01-01T00:00:00Z"
    }
  }
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Response

201 - application/json

Sample agent created successfully

message
string
status
string
error
string
data
object