Agent
Create Agent
POST
/
api
/
v1
/
agents
This endpoint creates a new agent.
HTTP Request
POST https://api.gptlab.cloud/api/v1/agents
Headers
- Content-Type: application/json
- Authorization: Bearer
<token>
- Accept: application/json
Request Body
The request body should contain an object with the following fields:
isActive
: Optional booleanname
: String (required)initialMessage
: Optional stringprompt
: Optional stringllmModel
: String (required)description
: String (required)avatar
: Optional string
Response The response will return a JSON object indicating the success of the operation and details of the created agent.