Skip to main content
POST
/
api
/
llms
Create LLM
curl --request POST \
  --url https://api.upon-ai.com/api/llms \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": 42,
  "display_name": "Concierge v2",
  "model": "gpt-4o-mini",
  "general_prompt": "You are the voice of UponAI...",
  "begin_message": "Hi there! Thanks for calling.",
  "responsiveness": "fast",
  "general_tools": [
    {
      "name": "lookup_customer",
      "description": "Retrieve CRM records by phone number.",
      "type": "function"
    }
  ]
}
'
{
  "llm_id": "llm_1ab234cde567fgh",
  "display_name": "Concierge v2",
  "version": 1,
  "model": "gpt-4o-mini",
  "general_prompt": "You are the voice of UponAI...",
  "begin_message": "Hi there! Thanks for calling UponAI.",
  "updated_at": "2025-02-08T17:21:34.000Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
workspaceId
integer
required
display_name
string
required
model
string
general_prompt
string
begin_message
string | null
responsiveness
string
general_tools
object[]

Response

201 - application/json

Newly created LLM configuration.

llm_id
string
required
display_name
string
required
version
integer
required
model
string
general_prompt
string | null
begin_message
string | null
responsiveness
string | null
general_tools
object[]
updated_at
string<date-time> | null