Get the instance's own AI account
GET
/api/platform/ai-account
const url = 'https://forge.example.com/api/platform/ai-account';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/platform/ai-account \ --header 'Authorization: Bearer <token>'The account organizations on “Included” use: inUse is console when it was set here, settings when it comes from the server’s settings (Assistant:Included), none, or scripted for the development stand-in. Its vendor, model, key or instance identity, AWS Region, Anthropic workspace and each organization’s monthly allowance (0 for no limit); of a key set here only its badge and last four characters, never the key. console is what was set here, in use or not, and consoleProblem why it is not. Send version back with a change.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
inUse
required
string
account
required
One of:
null
object
vendor
required
string
model
required
string
identity
required
string
region
required
null | string
workspaceId
required
null | string
monthlyTokens
required
integer | string format: int64
hasKey
required
boolean
key
setAt
null | string format: date-time
resourceName
null | string
deployment
null | string
project
null | string
endpoint
null | string
routineModel
null | string
routineDeployment
null | string
console
required
One of:
null
object
vendor
required
string
model
required
string
identity
required
string
region
required
null | string
workspaceId
required
null | string
monthlyTokens
required
integer | string format: int64
hasKey
required
boolean
key
setAt
null | string format: date-time
resourceName
null | string
deployment
null | string
project
null | string
endpoint
null | string
routineModel
null | string
routineDeployment
null | string
consoleProblem
required
null | string
vendors
required
Array<object>
object
key
required
string
label
required
string
models
required
Array<object>
object
id
required
string
label
required
string
tested
required
boolean
retentionRequired
boolean
geography
null | string
available
required
boolean
identity
string
retention
null | string
retentionRequiredNote
null | string
regions
Array<object> | null
object
key
required
string
label
required
string
geography
required
string
identities
Array<string> | null
limits
Array<string> | null
deepDefault
null | string
routineDefault
null | string
reasoningAcrossModels
boolean
takesEffort
boolean
canKeepKeys
required
boolean
instanceIdentity
required
boolean
settingsMonthlyTokens
required
integer | string format: int64
version
integer | string format: int32
Example
{ "account": { "key": { "revealable": false } }, "console": { "key": { "revealable": false } }, "vendors": [ { "models": [ { "retentionRequired": false } ], "identity": "key" } ]}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"}