{
  "info": {
    "name": "Moacere API (sandbox)",
    "description": "გენერირებულია /openapi.json-იდან. შეავსეთ clientId/clientSecret sandbox ინტეგრაციიდან (app.moacere.ge/developers/). არასდროს ჩადოთ live საიდუმლო საზიარო კოლექციაში.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "version": "1.0.0"
  },
  "auth": {
    "type": "oauth2",
    "oauth2": [
      {
        "key": "grant_type",
        "value": "client_credentials",
        "type": "string"
      },
      {
        "key": "accessTokenUrl",
        "value": "{{baseUrl}}/oauth/token",
        "type": "string"
      },
      {
        "key": "clientId",
        "value": "{{clientId}}",
        "type": "string"
      },
      {
        "key": "clientSecret",
        "value": "{{clientSecret}}",
        "type": "string"
      },
      {
        "key": "scope",
        "value": "{{scope}}",
        "type": "string"
      },
      {
        "key": "client_authentication",
        "value": "header",
        "type": "string"
      },
      {
        "key": "addTokenTo",
        "value": "header",
        "type": "string"
      },
      {
        "key": "tokenName",
        "value": "moacere-sandbox",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://app.moacere.ge"
    },
    {
      "key": "clientId",
      "value": ""
    },
    {
      "key": "clientSecret",
      "value": ""
    },
    {
      "key": "scope",
      "value": "documents:read documents:write envelopes:send templates:read templates:write artifacts:read webhooks:manage"
    }
  ],
  "item": [
    {
      "name": "შაბლონები",
      "item": [
        {
          "name": "მასობრივი გაგზავნა შაბლონით",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/bulk-jobs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "bulk-jobs"
              ],
              "variable": []
            },
            "description": "თითო სტრიქონი = ერთი კონვერტი. ღირებულება და ლიმიტი მოწმდება დაწყებამდე (billing), იგივე წესებით, რაც ვებ-ინტერფეისში.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"template_id\": \"00000000-0000-0000-0000-000000000000\",\n  \"rows\": [\n    {\n      \"recipients\": []\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "მასობრივი გაგზავნის სტატუსი",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/bulk-jobs/:job_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "bulk-jobs",
                ":job_id"
              ],
              "variable": [
                {
                  "key": "job_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": ""
          }
        },
        {
          "name": "საჯარო ფორმის შექმნა შაბლონიდან",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/forms",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "forms"
              ],
              "variable": []
            },
            "description": "",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"template_id\": \"00000000-0000-0000-0000-000000000000\",\n  \"form_role_key\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "შაბლონების სია",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/templates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "templates"
              ],
              "variable": []
            },
            "description": ""
          }
        },
        {
          "name": "შაბლონის შექმნა",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/templates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "templates"
              ],
              "variable": []
            },
            "description": "",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"document_id\": \"00000000-0000-0000-0000-000000000000\",\n  \"name\": \"\",\n  \"roles\": [\n    {\n      \"key\": \"\",\n      \"label\": \"\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "შაბლონიდან კონვერტის შექმნა (მონახაზი)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/templates/:template_id/instantiate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "templates",
                ":template_id",
                "instantiate"
              ],
              "variable": [
                {
                  "key": "template_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "მონაწილეები მიებმება შაბლონის როლებს (role_key). გაგზავნა — POST /envelopes/{id}/send.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"recipients\": [\n    {\n      \"role_key\": \"\",\n      \"full_name\": \"\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "კონტაქტები",
      "item": [
        {
          "name": "კონტაქტების სია",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contacts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contacts"
              ],
              "variable": []
            },
            "description": ""
          }
        },
        {
          "name": "კონტაქტის შექმნა",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contacts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contacts"
              ],
              "variable": []
            },
            "description": "",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"full_name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "კონტაქტი",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contacts/:contact_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contacts",
                ":contact_id"
              ],
              "variable": [
                {
                  "key": "contact_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": ""
          }
        },
        {
          "name": "კონტაქტის შეცვლა",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contacts/:contact_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contacts",
                ":contact_id"
              ],
              "variable": [
                {
                  "key": "contact_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"full_name\": \"\",\n  \"email\": \"\",\n  \"phone_e164\": \"\",\n  \"company\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "კონტაქტის წაშლა",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contacts/:contact_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contacts",
                ":contact_id"
              ],
              "variable": [
                {
                  "key": "contact_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": ""
          }
        }
      ]
    },
    {
      "name": "დოკუმენტები",
      "item": [
        {
          "name": "დოკუმენტების სია",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/documents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "documents"
              ],
              "variable": []
            },
            "description": ""
          }
        },
        {
          "name": "დოკუმენტის ატვირთვა (multipart)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/documents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "documents"
              ],
              "variable": []
            },
            "description": "ფაილი მოწმდება (ზომა, ტიპი, შიგთავსი), ინახება დაშიფრულად და, საჭიროებისას, PDF-ად გარდაიქმნება. status=converting → დაელოდეთ status=ready-ს (GET /documents/{id}) კონვერტის გაგზავნამდე. ლიმიტები: 25 მბ, ≤300 გვერდი, PDF/DOC/DOCX/JPG/PNG. დაშიფრული PDF უარყოფილია.",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": []
                },
                {
                  "key": "title",
                  "type": "text",
                  "value": "სატესტო ხელშეკრულება"
                }
              ]
            }
          }
        },
        {
          "name": "დოკუმენტის სტატუსი",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/documents/:document_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "documents",
                ":document_id"
              ],
              "variable": [
                {
                  "key": "document_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": ""
          }
        }
      ]
    },
    {
      "name": "კონვერტები",
      "item": [
        {
          "name": "კონვერტების სია",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/envelopes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "envelopes"
              ],
              "variable": []
            },
            "description": ""
          }
        },
        {
          "name": "კონვერტის შექმნა (მონახაზი)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/envelopes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "envelopes"
              ],
              "variable": []
            },
            "description": "ქმნის მონახაზს: დოკუმენტის მიმდინარე ვერსია, მონაწილეები (როლი, ეტაპი/რიგი, ავთენტიფიკაცია) და ველები ნორმალიზებული კოორდინატებით (0..1, გვერდის ხილული არე, სათავე — ზედა მარცხენა კუთხე). ველი მონაწილეს მიუთითებს `recipient_key`-ით. გაგზავნა — ცალკე: POST /envelopes/{id}/send.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"document_id\": \"7c1e0b8a-2f4d-4c1b-9a51-0d3e6f7a9b21\",\n  \"title\": \"მომსახურების ხელშეკრულება\",\n  \"expires_at\": \"2026-10-25T20:00:00Z\",\n  \"external_ref\": \"crm-4711\",\n  \"recipients\": [\n    {\n      \"key\": \"client\",\n      \"full_name\": \"სატესტო კლიენტი\",\n      \"email\": \"client@example.ge\",\n      \"role\": \"signer\",\n      \"order\": 1\n    }\n  ],\n  \"fields\": [\n    {\n      \"recipient_key\": \"client\",\n      \"type\": \"signature\",\n      \"page\": 0,\n      \"x\": 0.1,\n      \"y\": 0.78,\n      \"w\": 0.3,\n      \"h\": 0.08\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "კონვერტის სტატუსი და მონაწილეები",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/envelopes/:envelope_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "envelopes",
                ":envelope_id"
              ],
              "variable": [
                {
                  "key": "envelope_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "სახელი/ელფოსტა/ტელეფონი ჩანს მხოლოდ იმ კონვერტებზე, რომლებიც თქვენმა ინტეგრაციამ შექმნა."
          }
        },
        {
          "name": "დაუსრულებელი კონვერტის გამოთხოვა",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/envelopes/:envelope_id/recall",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "envelopes",
                ":envelope_id",
                "recall"
              ],
              "variable": [
                {
                  "key": "envelope_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reason\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "მონაწილის ხელმოწერის ბმული (hosted, ერთჯერადი)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/envelopes/:envelope_id/recipients/:recipient_id/signing-session",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "envelopes",
                ":envelope_id",
                "recipients",
                ":recipient_id",
                "signing-session"
              ],
              "variable": [
                {
                  "key": "envelope_id",
                  "value": "",
                  "description": "id"
                },
                {
                  "key": "recipient_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "აბრუნებს ერთჯერად, 15-წუთიან ბმულს Moacere-ის ხელმოწერის გვერდზე. გადაამისამართეთ მონაწილე ამ ბმულზე; მოქმედების შემდეგ ის დაბრუნდება return_url-ზე პარამეტრებით moacere_event და recipient_id. return_url-ის origin უნდა იყოს ინტეგრაციის „დაშვებულ origin-ებში“ (აპლიკაციის პარამეტრები). iframe-ში ჩასმა მხარდაჭერილი არ არის (frame-ancestors 'none') — მხოლოდ გადამისამართება. თანხმობა და ავთენტიფიკაცია (OTP) ისევე მოითხოვება, როგორც ელფოსტის ბმულზე. ბმულს გასცემს მხოლოდ ის ინტეგრაცია, რომელმაც კონვერტი შექმნა (სხვა შემთხვევაში 403 envelope_not_created_by_application).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"return_url\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "კონვერტის გაგზავნა",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/envelopes/:envelope_id/send",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "envelopes",
                ":envelope_id",
                "send"
              ],
              "variable": [
                {
                  "key": "envelope_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "ამოწმებს მზადყოფნას (ველები, როლები, პაკეტის ფუნქციები) და ლიმიტს/ბალანსს — ზუსტად იგივე ბილინგის გზით, რაც ვებ-ინტერფეისში (ერთი დოკუმენტი ითვლება პირველ წარმატებულ გაგზავნაზე; sandbox არ ითვლება). განმეორებითი გაგზავნა: იგივე Idempotency-Key → იგივე პასუხი; სხვა გასაღები უკვე გაგზავნილზე → 409 envelope_already_sent. ფასიანი მოხმარება: live რეჟიმში გაგზავნა ხარჯავს პაკეტის თვიურ ლიმიტს (GET /usage)."
          }
        }
      ]
    },
    {
      "name": "ფაილები",
      "item": [
        {
          "name": "საბოლოო ფაილები (ხელმოწერილი PDF, მტკიცებულება)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/envelopes/:envelope_id/artifacts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "envelopes",
                ":envelope_id",
                "artifacts"
              ],
              "variable": [
                {
                  "key": "envelope_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": ""
          }
        },
        {
          "name": "ფაილის ჩამოტვირთვა",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/envelopes/:envelope_id/artifacts/:kind",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "envelopes",
                ":envelope_id",
                "artifacts",
                ":kind"
              ],
              "variable": [
                {
                  "key": "envelope_id",
                  "value": "",
                  "description": "id"
                },
                {
                  "key": "kind",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": ""
          }
        }
      ]
    },
    {
      "name": "Sandbox",
      "item": [
        {
          "name": "[sandbox] ხელმოწერის სიმულაცია",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/sandbox/envelopes/:envelope_id/simulate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "sandbox",
                "envelopes",
                ":envelope_id",
                "simulate"
              ],
              "variable": [
                {
                  "key": "envelope_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "მხოლოდ sandbox. ასრულებს გაგზავნილ კონვერტს ისე, თითქოს ყველა მონაწილემ გახსნა ბმული, დაეთანხმა და მოაწერა ხელი სატესტო ტექსტური ხელმოწერით „სატესტო ხელმოწერა“ — ნამდვილი ხელმოწერის გზით (თანხმობა, ველები, მტკიცებულება, საბოლოო PDF, webhooks). OTP-ით დაცულ მონაწილეს არ ასრულებს."
          }
        },
        {
          "name": "[sandbox] სინთეზური PDF დოკუმენტი",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/sandbox/fixtures/sample-document",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "sandbox",
                "fixtures",
                "sample-document"
              ],
              "variable": []
            },
            "description": "მხოლოდ sandbox ტოკენით. ქმნის სატესტო PDF-ს (რეალური მონაცემების გარეშე) და აბრუნებს დოკუმენტს.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"title\": \"\",\n  \"pages\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "მოხმარება",
      "item": [
        {
          "name": "პაკეტის მოხმარება და ლიმიტები",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "usage"
              ],
              "variable": []
            },
            "description": "ნებისმიერი ვალიდური ტოკენით. live გაგზავნები ითვლება პაკეტის თვიურ ლიმიტში; sandbox — არა."
          }
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "მიწოდების დეტალები",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-deliveries/:delivery_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-deliveries",
                ":delivery_id"
              ],
              "variable": [
                {
                  "key": "delivery_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "მცდელობების ჟურნალი (სტატუსი, დრო, შეცდომის კლასი; პასუხის შიგთავსი არ ინახება). sandbox-ში `request` შეიცავს ზუსტ ნედლ body-ს და Moacere-Signature სათაურს — ხელმოწერის შესამოწმებლად."
          }
        },
        {
          "name": "მიწოდების ხელახლა გაგზავნა",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-deliveries/:delivery_id/replay",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-deliveries",
                ":delivery_id",
                "replay"
              ],
              "variable": [
                {
                  "key": "delivery_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "იგივე მოვლენა (იგივე id და body) ახალი ხელმოწერის დროით. რიგში ჩადგომა ≠ მიწოდება."
          }
        },
        {
          "name": "webhook მისამართები",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-endpoints"
              ],
              "variable": []
            },
            "description": ""
          }
        },
        {
          "name": "webhook მისამართის დამატება",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-endpoints"
              ],
              "variable": []
            },
            "description": "საიდუმლო (whsec_…) ნაჩვენებია მხოლოდ ამ პასუხში. live: მხოლოდ https://, შიდა/ლოკალური/მეტამონაცემების მისამართები (127.0.0.1, 10.x, 169.254.169.254, ::1 …) უარყოფილია. sandbox მოვლენები ქსელში არ იგზავნება — ისინი ხელმოწერით ინახება და ჩანს მიწოდების ისტორიაში.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"\",\n  \"events\": [\n    \"envelope.sent\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "webhook მისამართი",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-endpoints/:endpoint_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-endpoints",
                ":endpoint_id"
              ],
              "variable": [
                {
                  "key": "endpoint_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": ""
          }
        },
        {
          "name": "webhook მისამართის შეცვლა",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-endpoints/:endpoint_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-endpoints",
                ":endpoint_id"
              ],
              "variable": [
                {
                  "key": "endpoint_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"\",\n  \"events\": [\n    \"envelope.sent\"\n  ],\n  \"description\": \"\",\n  \"active\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "webhook მისამართის წაშლა",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-endpoints/:endpoint_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-endpoints",
                ":endpoint_id"
              ],
              "variable": [
                {
                  "key": "endpoint_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": ""
          }
        },
        {
          "name": "მიწოდების ისტორია",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-endpoints/:endpoint_id/deliveries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-endpoints",
                ":endpoint_id",
                "deliveries"
              ],
              "variable": [
                {
                  "key": "endpoint_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": ""
          }
        },
        {
          "name": "სატესტო მოვლენა (webhook.ping)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-endpoints/:endpoint_id/ping",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-endpoints",
                ":endpoint_id",
                "ping"
              ],
              "variable": [
                {
                  "key": "endpoint_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": "ხელმოწერილი webhook.ping (მხოლოდ მისამართის id). 2xx პასუხზე მისამართი დადასტურებულად ითვლება."
          }
        },
        {
          "name": "ხელმოწერის საიდუმლოს განახლება",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-endpoints/:endpoint_id/rotate-secret",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-endpoints",
                ":endpoint_id",
                "rotate-secret"
              ],
              "variable": [
                {
                  "key": "endpoint_id",
                  "value": "",
                  "description": "id"
                }
              ]
            },
            "description": ""
          }
        },
        {
          "name": "მოვლენების კატალოგი",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/webhook-events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "webhook-events"
              ],
              "variable": []
            },
            "description": ""
          }
        }
      ]
    }
  ]
}