Test the instance's own AI account
POST
/api/platform/ai-account/test
const url = 'https://forge.example.com/api/platform/ai-account/test';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/platform/ai-account/test \ --header 'Authorization: Bearer <token>'One small request to the vendor with the account in effect, as the AI settings’ test sends. A refusal says what kind it was and, after that, the vendor’s own words with anything secret taken out. Recorded in the platform audit.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
ok
required
boolean
message
required
string
Example generated
{ "ok": true, "message": "example"}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}