Configuration
Update an assistant provider connection
Omit `apiKey` to keep this connection’s stored key while the provider type and server origin stay the same; pass `null` to remove it. Changing provider or server origin clears the stored key.
PUT
header
AuthorizationBearer <Postdot API key>A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.
id*stringLength
1 <= length <= 100- body
provider*stringValue in
"openai-compatible""openai""anthropic""google""openrouter"label?stringLength
length <= 80baseUrl?stringLength
length <= 2048enabled*booleanmodels*array<>Enabled models on this provider connection. Each model has an ID, an optional short note and, on OpenAI-compatible servers, whether it accepts images.
Items
items <= 50contextWindow?|nullapiKey?|nullResponse for status 200
application/json- response
connection*settings*curl -X PUT 'https://postdot.example/api/settings/assistant/connections/string' \
-H 'Content-Type: application/json' \
-d '{
"provider": "openai-compatible",
"enabled": true,
"models": [
{
"id": "string"
}
]
}'Example Response
{
"connection": {
"id": "string",
"provider": "openai-compatible",
"label": "string",
"baseUrl": "string",
"enabled": true,
"models": [
{
"id": "string",
"note": "string",
"images": true
}
],
"contextWindow": 4000,
"hasApiKey": true,
"conversationCount": 0,
"createdAt": 0,
"updatedAt": 0
},
"settings": {
"enabled": true,
"defaultConnectionId": "string",
"defaultModel": "string",
"limits": {
"maxRunning": 1,
"maxTurns": 1,
"answerTimeoutSeconds": 10,
"retentionDays": 1
},
"connections": [
{
"id": "string",
"provider": "openai-compatible",
"label": "string",
"baseUrl": "string",
"enabled": true,
"models": [
{
"id": "string",
"note": "string",
"images": true
}
],
"contextWindow": 4000,
"hasApiKey": true,
"conversationCount": 0,
"createdAt": 0,
"updatedAt": 0
}
],
"source": "database",
"provider": "openai-compatible",
"baseUrl": "string",
"model": "string",
"models": [
{
"id": "string",
"note": "string",
"images": true
}
],
"contextWindow": 4000,
"hasApiKey": true,
"memory": {
"enabled": true,
"maxEntriesAllProjects": 5,
"maxEntriesPerProject": 5,
"maxCharactersAllProjects": 400,
"maxCharactersPerProject": 400,
"entryCount": 0
}
}
}