agents_connection
Testar a sessão do agente e consultar a versão e as permissões da instalação.
REST · POST /api/v1/operations/agents_connection · MCP · agents_connection
Permissão necessária · read. Esta operação consulta dados.
Exemplo de entrada
{}
O REST retorna a saída abaixo diretamente. No MCP leia structuredContent.result. Consulte o contrato atual em /api/v1/openapi.json.
Em 401 confira a validade da credencial. Em 403 confira papel, escopos e contas. Em 409 releia o registro antes de tentar novamente.
JSON Schema · Entrada
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
JSON Schema · Saída
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"installation": {
"type": "object",
"properties": {
"version": {
"type": "string"
},
"apiVersion": {
"type": "string"
},
"maxUploadBytes": {
"type": "number"
},
"features": {
"type": "object",
"properties": {
"batches": {
"type": "number"
},
"agentOAuth": {
"type": "boolean"
},
"tiktokPosting": {
"type": "string"
}
},
"required": [
"batches",
"agentOAuth",
"tiktokPosting"
],
"additionalProperties": {}
}
},
"required": [
"version",
"apiVersion",
"maxUploadBytes",
"features"
],
"additionalProperties": {}
},
"workspace": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": {}
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"accounts": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"grantId": {
"type": [
"string",
"null"
]
},
"expiresAt": {
"type": [
"string",
"null"
]
},
"auth": {
"type": "string"
}
},
"required": [
"installation",
"workspace",
"scopes",
"accounts",
"grantId",
"expiresAt",
"auth"
],
"additionalProperties": {}
}