Create a new test agent

Creates a new test agent

POST /manage/agents

Request Body

Name Type Required Description

name

string

True

Arbitrary name of the test agent, length 1-256

Responses

Name Type Description

201 Created

Agent

The new test agent object

Consumes

  • application/json

Produces

  • application/json

Security

Every request requires a JWT access token for authentication in the Authorisation HTTP header. Please see the API authentication page for details about how to get a JWT token.

Authorization: Bearer {JWT_TOKEN}

Roles

  • Wenenu Owner

  • Wenenu Test Agent Administrator

Sample request

POST https://wenenu.com/manage/agents HTTP/1.1
Authorization: Bearer {jwt_token}
Content-type: application/json

Request body:

{
  "name": "Wenenu agent 2"
}

Sample Response

Status code: 201 Created

{
  "id": "aa1244414cc1241f39037a37eb95df436ebd580fbe4cc4e78287450d68507019",
  "tenantId": "108365366dc9-88be-4c42-8329-55808630",
  "name": "Wenenu agent 2",
  "type": "user",
  "key1": "aa1244414cc1241f39037a37eb95df436ebd580fbe4cc4e78287450d68507019.LLXDuhFrSdqhxbdR6fKKmAHRC+nmq8k9yJnm0YOSM0+bJlJt/mgT7q28Afqoj3E/jHynz5SwnjpgZ5qVjghXtg==",
  "key2": "aa1244414cc1241f39037a37eb95df436ebd580fbe4cc4e78287450d68507019.E2LEsVMAnOEHEemm1jBrOMNzbNV6V2mYtY/qMo+Fm21ScXZMkJDumI826XKaxo7gWJAKBRRaFLsIjprZEjVgMA=="
}

Definitions

Agent

Name Type Description

id

string

Id of th test agent

tenantId

string

Version 4 UUID of the Wenenu tenant of the test agent

name

string

Arbitrary name of the test agent, length 1-256

type

string

Type of the test agent, always 'user' for user-created agents

key1

string

First API key of the test agent

key2

string

Second API key of the test agent