Skip to Content
Docs

Test a saved BYOM record

POST
/api/user/models/{model_id}/test

Test a saved BYOM record. Defaults to the stored base_url / upstream_model_id / encrypted api_key, but any of those can be overridden via the request body so the UI can test in-flight edits before saving. Used by the 'Test connection' button in edit mode.

Personal access token scope: models:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

model_id*string

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/user/models/string/test'
Example Response200
Empty