Skip to Content
Configuration

Read the assistant settings: provider connections, default model and limits

Provider API keys are never returned; `hasApiKey` tells whether one is stored on each connection. Top-level `provider`, `model` and `models` mirror the default connection for backward compatibility.

GET
/api/settings/assistant

Authorization

headerAuthorizationBearer <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.

Response Body

Response for status 200

application/json
  1. response
enabled*boolean
defaultConnectionId*string
defaultModel*string
limits*
connections*array<>
source*string
Value in"database""deployment""none"
provider*string
Value in"openai-compatible""openai""anthropic""google""openrouter"
baseUrl*string
Lengthlength <= 2048
model*string
Lengthlength <= 200
models*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.

Itemsitems <= 50
contextWindow*|null
hasApiKey*boolean
memory*
Example Request
curl -X GET 'https://postdot.example/api/settings/assistant'
Example Response
{
  "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
  }
}

Was this page helpful?