accounts_configure
Cadastrar o aplicativo OAuth da rede neste workspace.
REST · POST /api/v1/operations/accounts_configure · MCP · accounts_configure
Permissão necessária · admin. Envie Idempotency-Key no REST ou requestKey no MCP. Substitua IDs e datas do exemplo antes de executar.
Exemplo de entrada
{
"platform": "youtube",
"clientId": "CLIENT_ID",
"clientSecret": "CLIENT_SECRET"
}
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": {
"platform": {
"type": "string",
"enum": [
"youtube",
"instagram",
"tiktok"
]
},
"clientId": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"clientSecret": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"configId": {
"type": "string",
"pattern": "^\\d{1,40}$"
}
},
"required": [
"platform",
"clientId",
"clientSecret"
],
"additionalProperties": false
}
JSON Schema · Saída
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"platform": {
"type": "string"
},
"configured": {
"type": "boolean"
}
},
"required": [
"platform",
"configured"
],
"additionalProperties": {}
}