# chats_confirm

Confirm the reviewed publication proposals in this chat message.

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

Required scope · `publish`. Send Idempotency-Key in REST or requestKey in MCP. Replace example IDs and times before running.

## Example request body

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

REST returns the output below directly. In MCP read structuredContent.result. Check the current installation at /api/v1/openapi.json.

For 401 check credential validity. For 403 inspect the role, scopes and selected accounts. For 409 reread the record before retrying.

## JSON Schema · Input

~~~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 · Output

~~~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": {}
}
~~~
