AI Agent

Create AI Agent

Endpoint to create a new AI Agent

post/ai-agent

Request

Request body

Example request

{
  "data": {
    "name": "Example Text"
  }
}

Response

Created successfully

Example response

{
  "data": {
    "_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "createdAt": {
      "_type": "DateTime",
      "value": "2023-10-01T12:00:00Z"
    },
    "updatedAt": {
      "_type": "DateTime",
      "value": "2023-10-01T12:00:00Z"
    },
    "deletedAt": {
      "_type": "DateTime",
      "value": "2023-10-01T12:00:00Z"
    },
    "key": "Example Text",
    "name": "Example Text",
    "description": null,
    "slug": "example-slug",
    "aiAgentVersion": 1,
    "lastAlive": {
      "_type": "DateTime",
      "value": "2023-10-01T12:00:00Z"
    },
    "iconFile": {
      "_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
    },
    "iconFileId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "project": {
      "_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
    },
    "projectId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "createdByUser": {
      "_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
    },
    "createdByUserId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "connectionStatus": "Example Text",
    "isDefault": true,
    "labels": [
      {
        "_id": "cccccccc-cccc-cccc-cccc-cccccccccccc"
      },
      {
        "_id": "dddddddd-dddd-dddd-dddd-dddddddddddd"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.