Drafts

Информация о черновике

Черновик. У отложенного сообщения сюда же приходит его расписание.

get/drafts/{id}

Request

  • Base URL: https://api.pachca.com/api/shared/v1
  • URL: https://api.pachca.com/api/shared/v1/drafts/{id}
  • Auth: HTTP bearer

Path parameters

idinteger required
Example:4821

Идентификатор черновика

Response

The request has succeeded.

Example response

{
  "data": {
    "id": 4821,
    "entity_id": 334,
    "chat_id": 334,
    "content": "Отчёт за неделю: продажи выросли на 10%",
    "parent_message_id": 196093,
    "files": [
      {
        "id": 3560,
        "key": "attaches/files/12/21zu7934-02e1-44d9-8df2-0f970c259796/congrat.png",
        "name": "congrat.png",
        "url": "https://pachca-prod-uploads.s3.storage.selcloud.ru/attaches/files/12/21zu7934-02e1-44d9-8df2-0f970c259796/congrat.png?response-cache-control=max-age%3D3600%3B&response-content-disposition=attachment&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=142155_staply%2F20231107%2Fru-1a%2Fs3%2Faws4_request&X-Amz-Date=20231107T160412&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=98765asgfadsfdSaDSd4sdfg35asdf67sadf8",
        "width": 1920,
        "height": 1080,
        "duration_ms": 5400
      }
    ],
    "voice_content": {
      "duration_ms": 5400,
      "waveform": "4,8,12,20,16,10,6,3",
      "transcript": "Привет, посмотри пожалуйста последний отчёт"
    },
    "schedule": {
      "start_date": "2026-09-17T12:00:00.000Z",
      "end_date": "2026-12-31T12:00:00.000Z",
      "repetition": {
        "days": [
          1,
          3
        ],
        "nth_day": 2
      }
    },
    "next_send_at": "2026-09-17T12:00:00.000Z",
    "created_at": "2026-09-16T10:00:00.000Z",
    "updated_at": "2026-09-16T10:00:00.000Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.