Skip to Content
Docs

POST /api/user/models/test

POST
/api/user/models/test

Test an arbitrary BYOM payload (display_name / model id / base_url / api_key) without saving. Used by the UI's 'Test connection' button so the user can validate before they Save. Uses the selected API protocol with the same SSRF guard and 5s timeout as the by-id variant.

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

Response Body

Success

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