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
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.
- body
connectionId?stringLength
1 <= length <= 100provider*stringValue in
"openai-compatible""openai""anthropic""google""openrouter"baseUrl?stringLength
length <= 2048model*stringLength
length <= 200contextWindow?|nullapiKey?|nullResponse for status 200
application/json- response
ok*booleanmodel*stringlatencyMs*integercurl -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
}