# chats_confirm

Confirmar e agendar os destinos revisados desta resposta. TikTok usa a revisão individual.

REST · `POST /api/v1/operations/chats_confirm` · MCP · `chats_confirm`

Permissão necessária · `publish`. Envie Idempotency-Key no REST ou requestKey no MCP. Substitua IDs e datas do exemplo antes de executar.

## Exemplo de entrada

~~~json
{
  "id": "RECORD_ID",
  "posts": [
    {
      "index": 0,
      "accountId": "ACCOUNT_ID",
      "caption": "Atlas",
      "hashtags": [],
      "options": {
        "title": "Atlas",
        "visibility": "private",
        "madeForKids": false
      },
      "mode": "schedule",
      "at": "2030-07-01T18:00:00-03:00",
      "timezone": "America/Sao_Paulo"
    }
  ]
}
~~~

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

~~~json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "posts": {
      "minItems": 1,
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": 0,
            "maximum": 49
          },
          "accountId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "caption": {
            "type": "string",
            "maxLength": 12000
          },
          "hashtags": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 100
            }
          },
          "options": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 200
              },
              "visibility": {
                "type": "string",
                "enum": [
                  "public",
                  "unlisted",
                  "private"
                ]
              },
              "madeForKids": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "mode": {
            "type": "string",
            "enum": [
              "best",
              "schedule",
              "now"
            ]
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "timezone": {
            "type": "string",
            "maxLength": 80
          }
        },
        "required": [
          "index",
          "accountId",
          "caption",
          "hashtags",
          "options",
          "mode",
          "timezone"
        ]
      }
    }
  },
  "required": [
    "id",
    "posts"
  ],
  "additionalProperties": false
}
~~~

## JSON Schema · Saída

~~~json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "publications": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "id",
    "publications"
  ],
  "additionalProperties": {}
}
~~~
