Skip to content

Remove the key of the instance's own AI account

POST
/api/platform/ai-account/remove-key
curl --request POST \
--url https://forge.example.com/api/platform/ai-account/remove-key \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "reason": "example" }'

For an operator administrator, with a reason. The rest of the account is kept but not in use, and the server’s settings apply again, if they set an account.

Media typeapplication/json
object
reason
required
string

Example generated

{
"reason": "example"
}

OK

Media typeapplication/json
object
inUse
required
string
account
required
One of:
null
console
required
One of:
null
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
default: key
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
/^-?(?:0|[1-9]\d*)$/
version
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

Example

{
"account": {
"key": {
"revealable": false
}
},
"console": {
"key": {
"revealable": false
}
},
"vendors": [
{
"models": [
{
"retentionRequired": false
}
],
"identity": "key"
}
]
}

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"
}