Skip to main content
POST
/
v1
/
configurations
Create a new configuration
curl --request POST \
  --url https://api.honeyhive.ai/v1/configurations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "provider": "<string>",
  "parameters": {
    "call_type": "chat",
    "model": "<string>",
    "hyperparameters": {},
    "responseFormat": {
      "type": "text"
    },
    "selectedFunctions": [
      {
        "id": "<string>",
        "name": "<string>",
        "description": "<string>",
        "parameters": {}
      }
    ],
    "functionCallParams": "none",
    "forceFunction": {},
    "template": [
      {
        "role": "<string>",
        "content": "<string>"
      }
    ]
  },
  "type": "LLM",
  "env": [
    "dev"
  ],
  "tags": [
    "<string>"
  ],
  "user_properties": {}
}
'
{
  "acknowledged": true,
  "insertedId": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
Maximum string length: 200
provider
string
required
Minimum string length: 1
parameters
object
required
type
enum<string>
default:LLM
Available options:
LLM,
pipeline
env
enum<string>[]
Available options:
dev,
staging,
prod
tags
string[]
user_properties
object

Response

200 - application/json

Configuration created successfully

acknowledged
boolean
required
insertedId
string
required
Minimum string length: 1