Aprobar el video y su destino en TikTok
Registra el consentimiento de la persona autenticada para el video, texto, cuenta y opciones exactos que revisó.
| Tool ID | tiktok.publicacion.aprobar |
| Nombre MCP | tiktok__publicacion__aprobar |
| Conector | tiktok |
| Plano | action |
| Scope (permiso) | tiktok:publish |
| Auth | none |
| Versión | 1 |
| Sensible | sí |
| Deprecado | no |
| Comportamiento | readOnly=false, destructive=false, idempotent=true, openWorld=false |
Requiere conexión. Indica cuál en cada llamada: header
X-Connect-Connectionen REST y campoconnectionIden elexecute_writede MCP. No hay resolución implícita, ni siquiera con una sola conexión activa: la conexión es la empresa. El id sale deconexiones.estado.consultar.
Qué hace
Exige sesión humana; una API key o agente no puede sustituir esta aprobación. No publica.
Entrada
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
mediaId | string | sí | |
mediaSha256 | string ^[a-f0-9]{64}$ | sí | |
creatorInfoSha256 | string ^[a-f0-9]{64}$ | sí | |
idempotencyKey | string `^([0-9a-fA-F]8-[0-9a-fA-F]4-[1-8][0-9a-fA-F]3-[89abAB][0-9a-fA-F]3-[0-9a-fA-F]12 | 00000000-0000-0000-0000-000000000000 | ffffffff-ffff-ffff-ffff-ffffffffffff)$` |
title | string | sí | |
choices | objeto | sí | |
choices.privacy | "PUBLIC_TO_EVERYONE" · "MUTUAL_FOLLOW_FRIENDS" · "FOLLOWER_OF_CREATOR" · "SELF_ONLY" | sí | |
choices.allowComment | booleano | sí | |
choices.allowDuet | booleano | sí | |
choices.allowStitch | booleano | sí | |
choices.durationSeconds | número | sí | |
brandContent | booleano | sí | |
brandOrganic | booleano | sí | |
isAigc | booleano | sí | |
musicConsent | booleano | sí | |
expressConsent | booleano | sí |
JSON Schema de entrada
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"mediaId": {
"type": "string",
"minLength": 1,
"maxLength": 240
},
"mediaSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"creatorInfoSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"idempotencyKey": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"title": {
"type": "string",
"maxLength": 2200
},
"choices": {
"type": "object",
"properties": {
"privacy": {
"type": "string",
"enum": [
"PUBLIC_TO_EVERYONE",
"MUTUAL_FOLLOW_FRIENDS",
"FOLLOWER_OF_CREATOR",
"SELF_ONLY"
]
},
"allowComment": {
"type": "boolean"
},
"allowDuet": {
"type": "boolean"
},
"allowStitch": {
"type": "boolean"
},
"durationSeconds": {
"type": "number",
"exclusiveMinimum": 0
}
},
"required": [
"privacy",
"allowComment",
"allowDuet",
"allowStitch",
"durationSeconds"
],
"additionalProperties": false
},
"brandContent": {
"type": "boolean"
},
"brandOrganic": {
"type": "boolean"
},
"isAigc": {
"type": "boolean"
},
"musicConsent": {
"type": "boolean",
"const": true
},
"expressConsent": {
"type": "boolean",
"const": true
}
},
"required": [
"mediaId",
"mediaSha256",
"creatorInfoSha256",
"idempotencyKey",
"title",
"choices",
"brandContent",
"brandOrganic",
"isAigc",
"musicConsent",
"expressConsent"
],
"additionalProperties": false
}Ejemplo
curl -X POST https://connect.emisso.ai/api/v1/tools/tiktok.publicacion.aprobar/execute \
-H "Authorization: Bearer connect_sk_…" \
-H "X-Connect-Connection: conn_9tKfR2mQx4Vb" \
-H "Content-Type: application/json" \
-d '{"input":{"mediaId":"media_ejemplo","mediaSha256":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","creatorInfoSha256":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","idempotencyKey":"00000000-0000-4000-8000-000000000001","title":"Video aprobado","choices":{"privacy":"SELF_ONLY","allowComment":false,"allowDuet":false,"allowStitch":false,"durationSeconds":5},"brandContent":false,"brandOrganic":false,"isAigc":false,"musicConsent":true,"expressConsent":true}}'{
"tool": "tiktok.publicacion.aprobar",
"params": {
"mediaId": "media_ejemplo",
"mediaSha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"creatorInfoSha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"idempotencyKey": "00000000-0000-4000-8000-000000000001",
"title": "Video aprobado",
"choices": {
"privacy": "SELF_ONLY",
"allowComment": false,
"allowDuet": false,
"allowStitch": false,
"durationSeconds": 5
},
"brandContent": false,
"brandOrganic": false,
"isAigc": false,
"musicConsent": true,
"expressConsent": true
},
"connectionId": "conn_9tKfR2mQx4Vb"
}Salida esperada (200):
{
"data": {
"approvalId": "aprobacion_ejemplo",
"intentSha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"idempotencyKey": "00000000-0000-4000-8000-000000000001",
"expiresAt": 1800000000000
},
"meta": {
"request_id": "req_…",
"tool_id": "tiktok.publicacion.aprobar",
"plane": "action",
"latency_ms": 24,
"audit_status": "recorded"
}
}Salida
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
approvalId | string | sí | |
intentSha256 | string ^[a-f0-9]{64}$ | sí | |
idempotencyKey | string `^([0-9a-fA-F]8-[0-9a-fA-F]4-[1-8][0-9a-fA-F]3-[89abAB][0-9a-fA-F]3-[0-9a-fA-F]12 | 00000000-0000-0000-0000-000000000000 | ffffffff-ffff-ffff-ffff-ffffffffffff)$` |
expiresAt | número | sí |
JSON Schema de salida
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"approvalId": {
"type": "string",
"minLength": 1,
"maxLength": 240
},
"intentSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"idempotencyKey": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expiresAt": {
"type": "number"
}
},
"required": [
"approvalId",
"intentSha256",
"idempotencyKey",
"expiresAt"
],
"additionalProperties": false
}Errores de esta tool
| Código | HTTP | Reintentable | Qué hacer |
|---|---|---|---|
connection_disabled | 403 | no | Reactívala en /connections o usa otra conexión del mismo sistema. |
connection_not_found | 404 | no | Usa uno de los connectionId que lista el error, o revisa la conexión en /connections. No hace falta reactivar nada. |
Toda llamada puede devolver además los códigos transversales (validation_error, unauthorized, scope_not_granted, rate_limited, entre otros): el detalle vive en el catálogo de errores.