Skip to main content
POST
/
ai
/
session-analyzer
/
providers
Upsert AI Session Analyzer Provider
curl --request POST \
  --url https://use.hoop.dev/api/ai/session-analyzer/providers \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gpt-4o",
  "provider": "openai",
  "api_key": "sk-...",
  "api_url": "https://api.openai.com/v1"
}
'
{
  "api_key": "sk-...",
  "api_url": "https://api.openai.com/v1",
  "created_at": "2024-07-25T15:56:35.317601Z",
  "id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
  "model": "gpt-4o",
  "provider": "openai",
  "updated_at": "2024-07-25T15:56:35.317601Z"
}

Body

application/json

The request body resource

model
string
required

Model to use

Example:

"gpt-4o"

provider
enum<string>
required

Name for the AI provider

Available options:
openai,
anthropic,
azure-openai,
custom
Example:

"openai"

api_key
string

API key for authentication

Example:

"sk-..."

api_url
string

Base URL of the AI API

Example:

"https://api.openai.com/v1"

Response

OK

api_key
string

API key for authentication

Example:

"sk-..."

api_url
string

Base URL of the AI API

Example:

"https://api.openai.com/v1"

created_at
string

The time the resource was created

Example:

"2024-07-25T15:56:35.317601Z"

id
string<uuid>

The resource identifier

Example:

"15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7"

model
string

Model to use

Example:

"gpt-4o"

provider
string

Name for the AI provider

Example:

"openai"

updated_at
string

The time the resource was updated

Example:

"2024-07-25T15:56:35.317601Z"