Skip to Content
Configuration

Remove an assistant provider connection

Deletes the connection and its stored API key. Conversations that used it keep their history and ask to choose another enabled model before continuing.

DELETE
/api/settings/assistant/connections/{id}

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.

Path Parameters

id*string
Length1 <= length <= 100

Response Body

Response for status 200

application/json
  1. response
deletedId*string
affectedConversations*integer
Range0 <= value
settings*
Example Request
curl -X DELETE 'https://postdot.example/api/settings/assistant/connections/string'
Example Response
{
  "deletedId": "string",
  "affectedConversations": 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
    }
  }
}

Was this page helpful?