POST
/
agents
curl --request POST \
  --url https://api.chaindesk.ai/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "modelName": "gpt_3_5_turbo",
  "temperature": 123,
  "promptType": "raw",
  "promptTemplate": "<string>",
  "visibility": "public"
}'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "modelName": "gpt_3_5_turbo",
  "temperature": 123,
  "promptType": "raw",
  "promptTemplate": "<string>",
  "visibility": "public"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
description
string
required
name
string
modelName
enum<string>
Available options:
gpt_3_5_turbo,
gpt_3_5_turbo_16k,
gpt_4,
gpt_4_32k
temperature
number

Temperature of the model (min 0.0, max 1.0)

promptType
enum<string>

Set the prompt type for this query

Available options:
raw,
customer_support
promptTemplate
string

Set the prompt template for this query

visibility
enum<string>
Available options:
public,
private

Response

200
application/json

Success

id
string
name
string
description
string
modelName
enum<string>
Available options:
gpt_3_5_turbo,
gpt_3_5_turbo_16k,
gpt_4,
gpt_4_32k
temperature
number

Temperature of the model (min 0.0, max 1.0)

promptType
enum<string>

Set the prompt type for this query

Available options:
raw,
customer_support
promptTemplate
string

Set the prompt template for this query

visibility
enum<string>
Available options:
public,
private
POST
/
agents
curl --request POST \
  --url https://api.chaindesk.ai/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "modelName": "gpt_3_5_turbo",
  "temperature": 123,
  "promptType": "raw",
  "promptTemplate": "<string>",
  "visibility": "public"
}'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "modelName": "gpt_3_5_turbo",
  "temperature": 123,
  "promptType": "raw",
  "promptTemplate": "<string>",
  "visibility": "public"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
description
string
required
name
string
modelName
enum<string>
Available options:
gpt_3_5_turbo,
gpt_3_5_turbo_16k,
gpt_4,
gpt_4_32k
temperature
number

Temperature of the model (min 0.0, max 1.0)

promptType
enum<string>

Set the prompt type for this query

Available options:
raw,
customer_support
promptTemplate
string

Set the prompt template for this query

visibility
enum<string>
Available options:
public,
private

Response

200
application/json

Success

id
string
name
string
description
string
modelName
enum<string>
Available options:
gpt_3_5_turbo,
gpt_3_5_turbo_16k,
gpt_4,
gpt_4_32k
temperature
number

Temperature of the model (min 0.0, max 1.0)

promptType
enum<string>

Set the prompt type for this query

Available options:
raw,
customer_support
promptTemplate
string

Set the prompt template for this query

visibility
enum<string>
Available options:
public,
private