Skip to content

Send one short call to a backend and model, to check the setup.

POST
/admin/backends/{backendId}/test
curl --request POST \
--url https://example.com/api/v1/admin/backends/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/test \
--header 'Content-Type: application/json' \
--data '{ "model": "example" }'
backendId
required
string format: uuid
Media typeapplication/json
object
model
required
string
Examplegenerated
{
"model": "example"
}

The outcome.

Media typeapplication/json
object
ok
required
boolean
answer
string
error
string
tokens_in
integer format: int64
tokens_out
integer format: int64
estimated
boolean
duration_ms
required
integer format: int64
Examplegenerated
{
"ok": true,
"answer": "example",
"error": "example",
"tokens_in": 1,
"tokens_out": 1,
"estimated": true,
"duration_ms": 1
}

An error.

Media typeapplication/problem+json

RFC 9457 problem details with a stable code.

object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required

A stable machine-readable error code.

string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": "example"
}