Debriefer

Create an agent

POST
/api/v1/agents

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/api/v1/agents" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "persona": {      "system_prompt": "string",      "tone": "conversational"    },    "techniques": [      "funnel"    ],    "probing_depth": "light"  }'
{
  "id": "string",
  "organization_id": "string",
  "test_mode": true,
  "name": "string",
  "description": "string",
  "persona": {
    "system_prompt": "string",
    "tone": "conversational",
    "language": "string"
  },
  "voice": {
    "provider": "string",
    "voice_id": "string",
    "speed": 0.5
  },
  "techniques": [
    "funnel"
  ],
  "probing_depth": "light",
  "boundaries": {
    "max_follow_ups_per_question": 0,
    "off_topic_handling": "gentle_redirect",
    "sensitive_topics": [
      "string"
    ]
  },
  "model_config": {
    "generation": {
      "provider": "anthropic",
      "model": "string"
    },
    "assessment": {
      "provider": "anthropic",
      "model": "string"
    }
  },
  "metadata": {
    "property1": null,
    "property2": null
  },
  "created_at": "string",
  "updated_at": "string",
  "object": "agent"
}