# chats_get

Abrir conversa com mensagens e propostas de publicação.

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

Permissão necessária · `read`. Esta operação consulta dados.

## Exemplo de entrada

~~~json
{
  "id": "RECORD_ID"
}
~~~

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
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}
~~~

## JSON Schema · Saída

~~~json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "project_id": {
      "type": "string"
    },
    "runs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "seq": {
            "type": "number"
          },
          "provider": {
            "type": "string",
            "enum": [
              "codex",
              "claude",
              "antigravity"
            ]
          },
          "prompt": {
            "type": "string"
          },
          "proposals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "mediaId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "caption": {
                  "type": "string",
                  "maxLength": 12000
                },
                "hashtags": {
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 100
                  }
                },
                "targets": {
                  "minItems": 1,
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "accountId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "title": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "visibility": {
                        "type": "string",
                        "enum": [
                          "private",
                          "unlisted",
                          "public"
                        ]
                      },
                      "madeForKids": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "accountId"
                    ],
                    "additionalProperties": false
                  }
                },
                "mode": {
                  "default": "best",
                  "type": "string",
                  "enum": [
                    "best",
                    "schedule",
                    "now"
                  ]
                },
                "localTime": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$"
                },
                "timezone": {
                  "type": "string",
                  "maxLength": 80
                }
              },
              "required": [
                "mediaId",
                "caption",
                "hashtags",
                "targets",
                "mode"
              ],
              "additionalProperties": false
            }
          },
          "confirmed_posts": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "reply": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "seq",
          "provider",
          "prompt",
          "proposals",
          "confirmed_posts",
          "reply"
        ],
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "id",
    "title",
    "project_id",
    "runs"
  ],
  "additionalProperties": {}
}
~~~
