Whether the assistant is on for you
GET
/api/assistant
const url = 'https://forge.example.com/api/assistant';const options = {method: 'GET', 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 GET \ --url https://forge.example.com/api/assistant \ --header 'Authorization: Bearer <token>'And for which classifications an AI may see a model.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
available
required
boolean
source
required
string
vendor
required
null | string
model
required
null | string
canConfigure
required
boolean
classifications
required
Array<object>
object
key
required
string
aiUse
required
string
reason
required
null | string
Example generated
{ "available": true, "source": "example", "vendor": "example", "model": "example", "canConfigure": true, "classifications": [ { "key": "example", "aiUse": "example" } ], "reason": "example", "routine": { "model": "example", "effort": "example" }, "deep": { "model": "example", "effort": "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"}