Skip to Content
Configuration

Check that a provider connection answers, without saving

Sends one short request to the given provider and model. Pass `connectionId` and omit `apiKey` to test with that connection’s stored key while its provider type and server origin stay unchanged.

POST
/api/settings/assistant/connections/test

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.

Request Body

  1. body
connectionId?string
Length1 <= length <= 100
provider*string
Value in"openai-compatible""openai""anthropic""google""openrouter"
baseUrl?string
Lengthlength <= 2048
model*string
Lengthlength <= 200
contextWindow?|null
apiKey?|null

Response Body

Response for status 200

application/json
  1. response
ok*boolean
model*string
latencyMs*integer
Example Request
curl -X POST 'https://postdot.example/api/settings/assistant/connections/test' \
  -H 'Content-Type: application/json' \
  -d '{
  "provider": "openai-compatible",
  "model": "string"
}'
Example Response
{
  "ok": true,
  "model": "string",
  "latencyMs": 0
}

Was this page helpful?