Skip to main content
POST
/
agents
새 에이전트 생성
curl --request POST \
  --url https://api.example.com/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "system_prompt": "<string>",
  "role_description": "<string>",
  "template_source": "<string>",
  "is_active": true
}
'
{
  "agent_id": 123,
  "owner_id": 123,
  "name": "<string>",
  "system_prompt": "<string>",
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "role_description": "<string>",
  "template_source": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

에이전트 생성용 입력 스키마.

  • owner_id는 서버에서 me.user_id로 채운다.
  • is_active는 지정 안 하면 DB server_default(true) 사용.
name
string
required
system_prompt
string
required
role_description
string | null
template_source
string | null
is_active
boolean | null

Response

Successful Response

agent_id
integer
required
owner_id
integer
required
name
string
required
system_prompt
string
required
is_active
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
role_description
string | null
template_source
string | null