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 boolean
  • name: String (required)
  • initialMessage: Optional string
  • prompt: Optional string
  • llmModel: 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.