{
    "openapi": "3.1.0",
    "info": {
        "title": "Specyfikacja API LOX24 (PL)",
        "description": "# Wprowadzenie\n\nNa tych stronach znajdziesz nasz\u0105 dokumentacj\u0119 przesy\u0142ania wiadomo\u015bci za po\u015brednictwem bramki SMS LOX24. Dokumentacja\npomaga zintegrowa\u0107 nasze API SMS z w\u0142asnymi aplikacjami, a tym samym wysy\u0142a\u0107 i odbiera\u0107 wiadomo\u015bci SMS.\nNasze API SMS znajdziesz pod adresem api.lox24.eu. Do poszczeg\u00f3lnych funkcji uzyskujesz dost\u0119p odpowiednio przez /function.\nNa przyk\u0142ad api.lox24.eu/me s\u0142u\u017cy do odpytywania konta klienta, a api.lox24.eu/sms do wysy\u0142ania wiadomo\u015bci SMS. Wszystkie\nendpointy wymagaj\u0105 uwierzytelnienia za pomoc\u0105 nag\u0142\u00f3wka HTTP.\n\n### Najwa\u017cniejsze mo\u017cliwo\u015bci\n\n- U\u017cywaj HTTPS, aby wiadomo\u015bci by\u0142y w pe\u0142ni szyfrowane SSL\n- Wysy\u0142aj wiadomo\u015bci SMS \u0142\u0105czone, wy\u015bwietlane w telefonie jako jedna wiadomo\u015b\u0107 SMS\n- Wysy\u0142aj wiadomo\u015bci z tekstem w zestawie znak\u00f3w GSM 03.38 lub Unicode\n- Przesy\u0142aj dowolny identyfikator nadawcy o d\u0142ugo\u015bci do 15 cyfr lub 11 znak\u00f3w\n- Wysy\u0142aj wiadomo\u015bci masowe SMS do ca\u0142ej listy mailingowej jednym \u017c\u0105daniem\n- Odbieraj odpowiedzi na wys\u0142ane wiadomo\u015bci przez HTTP, HTTPS lub SMTP\n- Odbieraj lub sprawdzaj status dor\u0119czenia wiadomo\u015bci wychodz\u0105cych\n- Odbieraj wiadomo\u015bci przychodz\u0105ce na sw\u00f3j (opcjonalny) numer przychodz\u0105cy\n\n### Content-Type \u017c\u0105dania\n\nContent-Type dla \u017c\u0105da\u0144 POST i PUT mo\u017cna ustawi\u0107 na `application/json`\nlub `multipart/form-data` (w endpointach z przesy\u0142aniem plik\u00f3w).\n\n### Nag\u0142\u00f3wki odpowiedzi\n\nKa\u017cda odpowied\u017a API zawiera unikalny identyfikator \u017c\u0105dania w nag\u0142\u00f3wku `X-LOX24-REQUEST-ID`.\nTen 32-znakowy identyfikator alfanumeryczny jest generowany dla ka\u017cdego \u017c\u0105dania i mo\u017ce by\u0107 u\u017cywany\ndo cel\u00f3w wsparcia przy zg\u0142aszaniu problem\u00f3w lub \u015bledzeniu konkretnych wywo\u0142a\u0144 API.\n\n### W\u0142a\u015bciwo\u015bci daty i czasu\n\nWi\u0119kszo\u015b\u0107 w\u0142a\u015bciwo\u015bci daty i czasu w obiektach \u017c\u0105da\u0144 i odpowiedzi to znaczniki czasu unix (liczba ca\u0142kowita).\n\n### Blokowanie adres\u00f3w IP\n\nJe\u015bli w ci\u0105gu jednej minuty z danego adresu IP zostanie odebranych wi\u0119cej ni\u017c trzy \u017c\u0105dania z nieprawid\u0142owymi danymi uwierzytelniaj\u0105cymi,\nwszystkie kolejne \u017c\u0105dania z tego adresu IP otrzymaj\u0105 odpowied\u017a ze statusem 429 (Too Many Requests) w ci\u0105gu nast\u0119pnych dziesi\u0119ciu\nminut.\n\n## Uwierzytelnianie\n\nWszystkie endpointy wymagaj\u0105 uwierzytelnienia. Aby si\u0119 uwierzytelni\u0107,\nmusisz utworzy\u0107 token API w swoim koncie internetowym ([http://account.lox24.eu](http://account.lox24.eu),\nsekcje \u201cSettings\u201d i \u201cAPI-Settings\u201d). Gdy masz ju\u017c klucz API, mo\u017cesz przekaza\u0107 go\njako **nag\u0142\u00f3wek HTTP** w nast\u0119puj\u0105cy spos\u00f3b:\n\n```\ncurl -X GET https://api.lox24.eu/me \\\n  -H 'Host: api.lox24.eu' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n```\n\n```\ncurl -X POST https://api.lox24.eu/groups/7116/phones \\\n  -H 'Content-Type: application/json' \\\n  -H 'Host: api.lox24.eu' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n    \"phone\": \"+4917663804817\",\n    \"a\": \"o2\"\n}'\n```\n\n### Starsza metoda uwierzytelniania\n\nNadal obs\u0142ugujemy r\u00f3wnie\u017c star\u0105 wersj\u0119 uwierzytelniania z dwoma nag\u0142\u00f3wkami 'X-LOX24-CLIENT-ID' i '\nX-LOX24-AUTH-TOKEN'\n\n```\ncurl -X GET https://api.lox24.eu/me \\\n  -H 'Host: api.lox24.eu' \\\n  -H 'X-LOX24-AUTH-TOKEN: e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -H 'X-LOX24-CLIENT-ID: 1234567'\n```\n\n### Wa\u017cne!\n\nNigdy nie udost\u0119pniaj swoich kluczy tajnych. Przechowuj je w bezpiecznym miejscu. Je\u015bli klucz zostanie\nprzypadkowo ujawniony, mo\u017cesz go w dowolnym momencie dezaktywowa\u0107 lub usun\u0105\u0107\nw swoim koncie internetowym (https://account.lox24.eu) w sekcjach \"Settings\" i \"API settings\".\n<!-- ReDoc-Inject: <security-definitions> -->\n",
        "version": "2.28",
        "contact": {
            "name": "LOX24",
            "email": "berlin@lox24.eu",
            "url": "https://doc.lox24.eu"
        },
        "license": {
            "name": "Warunki korzystania z us\u0142ug LOX24",
            "url": "https://www.lox24.eu/en/terms/"
        },
        "x-logo": {
            "url": "/images/logo.png",
            "href": "https://doc.lox24.eu/",
            "altText": "Specyfikacja API LOX24"
        }
    },
    "servers": [
        {
            "url": "https://api.lox24.eu",
            "description": ""
        }
    ],
    "security": [
        {
            "token": []
        }
    ],
    "tags": [
        {
            "name": "sms",
            "x-displayName": "SMS",
            "description": "Endpoint sms s\u0142u\u017cy do wysy\u0142ania **pojedynczych wiadomo\u015bci SMS**. Obejmuje to zwyk\u0142e wiadomo\u015bci SMS, a tak\u017ce dryrun do cel\u00f3w testowych. Ponadto dost\u0119pnych jest szereg funkcji do odpytywania wys\u0142anych wiadomo\u015bci SMS, usuwania wiadomo\u015bci SMS lub zatrzymywania wysy\u0142ki.\n\n* Wysy\u0142anie pojedynczej wiadomo\u015bci SMS\n* Odpytywanie wys\u0142anych wiadomo\u015bci SMS\n* Zatrzymywanie wiadomo\u015bci SMS z op\u00f3\u017anieniem czasowym\n* Usuwanie danych SMS\n* Odpytywanie danych SMS\n\nJe\u015bli nie chcesz wysy\u0142a\u0107 pojedynczych wiadomo\u015bci SMS, ale chcesz wysy\u0142a\u0107 masowe wiadomo\u015bci SMS przez API, odpowiedni jest endpoint \"bulks\".\n"
        },
        {
            "name": "bulks",
            "x-displayName": "SMS masowe",
            "description": "Interfejs wiadomo\u015bci masowych s\u0142u\u017cy do **wysy\u0142ania masowych SMS**. Obejmuje to prawid\u0142ow\u0105 wysy\u0142k\u0119 masowych SMS na wiele numer\u00f3w telefon\u00f3w i/lub do grup, a tak\u017ce dryrun. Ponadto dost\u0119pnych jest szereg funkcji do sprawdzania statusu wiadomo\u015bci masowej lub zatrzymywania wysy\u0142ki.\n\n* Wysy\u0142anie masowych SMS\n* Sprawdzanie statusu masowych SMS\n* Zatrzymywanie masowych SMS\n\nJe\u015bli nie chcesz wysy\u0142a\u0107 masowych SMS, ale chcesz wysy\u0142a\u0107 pojedyncze SMS przez API, odpowiedni jest endpoint \"sms\".\n"
        },
        {
            "name": "blocked-numbers",
            "x-displayName": "Zablokowane numery telefon\u00f3w",
            "description": "Endpoint zablokowanych numer\u00f3w s\u0142u\u017cy do zarz\u0105dzania **zablokowanymi numerami telefon\u00f3w** dla kampanii SMS. Pozwala to utrzymywa\u0107 list\u0119 numer\u00f3w telefon\u00f3w, kt\u00f3re nie powinny otrzymywa\u0107 wiadomo\u015bci SMS, poniewa\u017c zosta\u0142y zablokowane na \u017cyczenie klienta lub poniewa\u017c u\u017cytkownicy zrezygnowali z subskrypcji. Numery telefon\u00f3w s\u0105 automatycznie dodawane do tej listy, gdy u\u017cytkownicy rezygnuj\u0105 z subskrypcji za po\u015brednictwem formularzy rezygnacji kampanii kr\u00f3tkich link\u00f3w typu 2 ('unsubscribed').\n\n* Dodawanie numer\u00f3w telefon\u00f3w do listy zablokowanych.\n* Zapytanie o zablokowane numery telefon\u00f3w\n* Usuwanie numer\u00f3w telefon\u00f3w z listy zablokowanych.\n* Filtrowanie zablokowanych numer\u00f3w wed\u0142ug typu lub numeru.\n\nTen endpoint pomaga zapewni\u0107 zgodno\u015b\u0107 z przepisami dotycz\u0105cymi SMS oraz preferencjami u\u017cytkownik\u00f3w, zapobiegaj\u0105c wysy\u0142aniu wiadomo\u015bci do niechcianych odbiorc\u00f3w."
        },
        {
            "name": "incomings",
            "x-displayName": "Wiadomo\u015bci przychodz\u0105ce",
            "description": "Ten interfejs s\u0142u\u017cy do odpytywania przychodz\u0105cych wiadomo\u015bci SMS (pull). Zwraca list\u0119 wszystkich wiadomo\u015bci przychodz\u0105cych oraz tre\u015b\u0107 konkretnej wiadomo\u015bci SMS. Pami\u0119taj jednak, \u017ce mo\u017cesz r\u00f3wnie\u017c otrzymywa\u0107 wiadomo\u015bci SMS jako push, zaraz po ich nadej\u015bciu. Wariant [push](/info/inbound-and-reply-sms/) jest preferowany, poniewa\u017c nie musisz sprawdza\u0107 przychodz\u0105cych wiadomo\u015bci SMS, lecz s\u0105 one wysy\u0142ane bezpo\u015brednio do Twojego skryptu.\n"
        },
        {
            "name": "groups",
            "x-displayName": "Grupy",
            "description": "Funkcja \"Grupy\" pozwala tworzy\u0107 listy wysy\u0142kowe masowych SMS. Ka\u017cda lista wysy\u0142kowa reprezentuje\ngrup\u0119. Korzystaj\u0105c z funkcji w sekcji \"Grupy\", mo\u017cesz tworzy\u0107, przegl\u0105da\u0107, usuwa\u0107 i eksportowa\u0107 listy wysy\u0142kowe.\n"
        },
        {
            "name": "phones",
            "x-displayName": "Telefony",
            "description": "Ten interfejs stanowi uzupe\u0142nienie grup. Za pomoc\u0105 numer\u00f3w telefon\u00f3w mo\u017cesz dodawa\u0107, usuwa\u0107 lub modyfikowa\u0107 numery telefon\u00f3w na swojej li\u015bcie wysy\u0142kowej SMS. Za po\u015brednictwem tego interfejsu mo\u017cliwy jest r\u00f3wnie\u017c eksport zawarto\u015bci grupy.\n"
        },
        {
            "name": "campaigns",
            "x-displayName": "Kampanie",
            "description": "Kampani\u0119 kr\u00f3tkich link\u00f3w mo\u017cesz utworzy\u0107 za po\u015brednictwem API kampanii. Kampania kr\u00f3tkich link\u00f3w s\u0142u\u017cy do utworzenia kr\u00f3tkiego linku, kt\u00f3rego mo\u017cesz nast\u0119pnie u\u017cy\u0107 w pojedynczych i masowych wiadomo\u015bciach SMS.\nMo\u017cesz r\u00f3wnie\u017c odpytywa\u0107 istniej\u0105ce kr\u00f3tkie linki za po\u015brednictwem tego interfejsu oraz je zmienia\u0107 lub usuwa\u0107.\n"
        },
        {
            "name": "links",
            "x-displayName": "Linki",
            "description": "API kr\u00f3tkich link\u00f3w s\u0142u\u017cy do odpytywania konkretnych kr\u00f3tkich link\u00f3w jednej lub wszystkich kampanii kr\u00f3tkich link\u00f3w.\n"
        },
        {
            "name": "requests",
            "x-displayName": "\u017b\u0105dania",
            "description": "Za po\u015brednictwem endpointu requests mo\u017cesz pobiera\u0107 wyniki swojej kampanii kr\u00f3tkich link\u00f3w. W zale\u017cno\u015bci od tego, czy wys\u0142a\u0142e\u015b SMS ze \u015bledzeniem prostym czy zaawansowanym, mo\u017cesz ustali\u0107, kt\u00f3re numery telefon\u00f3w i jak cz\u0119sto klika\u0142y linki w Twoich wiadomo\u015bciach SMS. Dzi\u0119ki temu interfejsowi mo\u017cna sprawdzi\u0107, kt\u00f3rzy odbiorcy lub kt\u00f3re wiadomo\u015bci SMS uzyska\u0142y jak dobre wyniki.\n"
        },
        {
            "name": "click-rate",
            "x-displayName": "Wsp\u00f3\u0142czynnik klikni\u0119\u0107",
            "description": "Korzystaj\u0105c z tego interfejsu, mo\u017cesz mierzy\u0107 liczb\u0119 klikni\u0119\u0107 w Twoich wysy\u0142kach SMS.\n"
        },
        {
            "name": "pricelist",
            "x-displayName": "Cennik",
            "description": "Pobierz cennik us\u0142ug SMS w formacie XLSX lub CSV. Cennik pokazuje stawki Direct i Text2Speech dla poziom\u00f3w wiadomo\u015bci S, M, L i XL. Mo\u017cesz poda\u0107 kod kraju (np. DE, CH) lub u\u017cy\u0107 \"all\", aby uzyska\u0107 wszystkie dost\u0119pne kraje. Endpoint jest publiczny i nie wymaga uwierzytelnienia.\n"
        },
        {
            "name": "user",
            "x-displayName": "U\u017cytkownik",
            "description": "Interfejs User jest interfejsem pomocniczym, np. do odpytywania salda konta lub linii kredytowej. Mo\u017ce to pom\u00f3c w ustaleniu, czy dost\u0119pne jest jeszcze wystarczaj\u0105ce saldo do wys\u0142ania kolejnych wiadomo\u015bci SMS.\n"
        },
        {
            "name": "send-link",
            "x-displayName": "Wy\u015blij link",
            "description": "### Jak wysy\u0142a\u0107 SMS z kr\u00f3tkimi linkami\n\nLOX24 pozwala skraca\u0107 d\u0142ugie adresy URL, zast\u0119puj\u0105c je kr\u00f3tkimi adresami URL w naszej domenie l24.pw.\n\nUmo\u017cliwia to r\u00f3wnie\u017c realizacj\u0119 skutecznych kampanii marketingowych. Dzi\u0119ki temu z ka\u017cdym SMS mo\u017cna wys\u0142a\u0107 unikalny kr\u00f3tki link. Pozwala to **\u015bledzi\u0107, kt\u00f3rzy z Twoich klient\u00f3w klikn\u0119li link**. Dzi\u0119ki tym danym mo\u017cesz w bardziej ukierunkowany spos\u00f3b kontaktowa\u0107 si\u0119 z klientami lub ulepsza\u0107 swoje kampanie.\n\nTo jednak nie wszystko! LOX24 oferuje r\u00f3wnie\u017c specjalne kr\u00f3tkie linki, kt\u00f3re pozwalaj\u0105 u\u017cytkownikowi **zapisa\u0107 si\u0119 do Twoich newsletter\u00f3w SMS lub zrezygnowa\u0107 z nich**. Pozwala to zautomatyzowa\u0107 double opt-in i opt-out w spos\u00f3b zgodny z prawem.\n\n#### Jak utworzy\u0107 kampani\u0119 kr\u00f3tkich link\u00f3w\n\nZapoznaj si\u0119 z rozdzia\u0142em [Tworzenie kampanii kr\u00f3tkich link\u00f3w](/api/operations/api_short_link_campaigns_post_collection/)\n\n***Istniej\u0105 dwa typy kampanii:***\n\n1. Prosty (type = 1). Jeden kr\u00f3tki link b\u0119dzie u\u017cywany dla wszystkich SMS. Link jest bezp\u0142atny. Zbierana jest ca\u0142kowita liczba klikni\u0119\u0107, wsp\u00f3\u0142czynnik klikalno\u015bci i inne dane.\n2. Zaawansowany (type = 2). Dla ka\u017cdego SMS zostanie u\u017cyty unikalny kr\u00f3tki link. Pozwala to ustali\u0107, kt\u00f3rzy odbiorcy klikn\u0119li Tw\u00f3j link, a kt\u00f3rzy nie. Koszt ka\u017cdego linku wynosi \u20ac0.005.\n\n\n#### Jak utworzy\u0107 link rejestracyjny do listy wysy\u0142kowej SMS.\n\nPrzeczytaj rozdzia\u0142 [Tworzenie kampanii formularza rejestracji](/api/operations/post_subscribe/).\n\nZostanie wygenerowany specjalny typ kr\u00f3tkiego linku, kt\u00f3ry przekieruje u\u017cytkownika do formularza rejestracji na naszej stronie internetowej (white label). Musisz tak\u017ce doda\u0107 identyfikator grupy, aby okre\u015bli\u0107 list\u0119 wysy\u0142kow\u0105 SMS. Numery telefon\u00f3w u\u017cytkownik\u00f3w, kt\u00f3rzy wype\u0142nili formularz rejestracji, zostan\u0105 dodane do tej grupy.\n\n#### Jak utworzy\u0107 link rezygnacji z subskrypcji dla listy wysy\u0142kowej SMS.\n\nPrzeczytaj rozdzia\u0142 [Tworzenie kampanii formularza rezygnacji z subskrypcji](/api/operations/post_unsubscribe/).\n\nTworzony jest specjalny kr\u00f3tki link, kt\u00f3ry przekierowuje u\u017cytkownika do formularza rezygnacji z subskrypcji (white label). Mo\u017cesz tak\u017ce doda\u0107 identyfikator grupy (listy wysy\u0142kowej SMS), z kt\u00f3rej zostan\u0105 usuni\u0119te numery telefon\u00f3w u\u017cytkownik\u00f3w, kt\u00f3rzy wys\u0142ali formularz rezygnacji. Nawet je\u015bli grupa nie jest wskazana podczas rezygnacji, numer u\u017cytkownika zostanie dodany do czarnej listy.\n\n#### Jak wys\u0142a\u0107 SMS z kr\u00f3tkim linkiem\n\nZapoznaj si\u0119 z rozdzia\u0142em [Wysy\u0142anie SMS](/api/operations/api_sms_post_collection/) lub [Tworzenie wiadomo\u015bci masowej](/api/operations/api_bulks_post_collection/), aby pozna\u0107 og\u00f3ln\u0105 funkcjonalno\u015b\u0107.\n\nAby wys\u0142a\u0107 SMS z kr\u00f3tkim linkiem, musisz umie\u015bci\u0107 w tre\u015bci wiadomo\u015bci nast\u0119puj\u0105cy symbol zast\u0119pczy```[slink campaing_id]```, gdzie ```campaing_id``` to warto\u015b\u0107 identyfikatora kampanii. Otrzymasz t\u0119 warto\u015b\u0107 jako warto\u015b\u0107 zwracan\u0105 podczas tworzenia kampanii. Oczywi\u015bcie mo\u017cesz r\u00f3wnie\u017c odpyta\u0107 warto\u015b\u0107 dla istniej\u0105cych kampanii. Na przyk\u0142ad tak b\u0119dzie wygl\u0105da\u0142 tekst Twojego SMS dla kampanii o ID *eGxoGRMq*:\n\n```\nPlease check a link [slink eGxoGRMq]\n```\n\nNasz system zast\u0119puje warto\u015b\u0107 symbolu zast\u0119pczego odpowiednim linkiem dla ka\u017cdego odbiorcy SMS. Mo\u017cesz tak\u017ce u\u017cy\u0107 [trybu dry-run SMS](/api/operations/api_sms_post_dryrun_collection/)  do sprawdzenia z grubsza, jak b\u0119dzie wygl\u0105da\u0142 tekst z linkiem i jaka b\u0119dzie ostateczna cena SMS.\n\n#### Jak sprawdzi\u0107 liczb\u0119 klikni\u0119\u0107\n\n***(Ta informacja jest dost\u0119pna tylko dla kampanii typu Zaawansowany)***\n\nLiczb\u0119 klikni\u0119\u0107 w pojedynczym SMS mo\u017cna sprawdzi\u0107 wed\u0142ug [identyfikatora SMS](/api/operations/api_sms_clicks_per_message_get_collection/) lub na [li\u015bcie](/info/click-rate/) dla wszystkich SMS.\n\n#### Jak uzyska\u0107 list\u0119 wszystkich kr\u00f3tkich link\u00f3w (wed\u0142ug kampanii)\n\nMo\u017cesz uzyska\u0107 [pe\u0142n\u0105 list\u0119 kr\u00f3tkich link\u00f3w](/api/operations/api_short_links_get_collection/), kt\u00f3re zosta\u0142y wygenerowane przez wszystkie Twoje kampanie lub [przez wybran\u0105 kampani\u0119](/api/operations/api_short_link_campaigns_short_links_get_item/).\n\n#### Jak uzyska\u0107 list\u0119 \u017c\u0105da\u0144 u\u017cytkownik\u00f3w wed\u0142ug kr\u00f3tkich link\u00f3w\n\nDost\u0119pne s\u0105 endpointy, kt\u00f3re dostarczaj\u0105 szczeg\u00f3\u0142owych informacji o \u017c\u0105daniach u\u017cytkownik\u00f3w:\n\n- [pe\u0142na lista \u017c\u0105da\u0144](/api/operations/api_short_link_requests_get_collection/)\n- [wed\u0142ug SMS](/api/operations/get_sms_requests/)\n- [wed\u0142ug masowych SMS](/api/operations/get_bulk_requests/)\n- [wed\u0142ug kampanii kr\u00f3tkich link\u00f3w](/api/operations/get_campaign_requests/)\n- [wed\u0142ug kr\u00f3tkiego linku](/api/operations/get_short_links_requests/)\n"
        },
        {
            "name": "fraud-detection",
            "x-displayName": "API wykrywania oszustw",
            "description": "*Fraud Detection API* pomaga identyfikowa\u0107 podejrzane \u017c\u0105dania kierowane do Twojej us\u0142ugi. API otrzymuje od Ciebie dane, takie jak numer telefonu, adres e-mail i adres IP potencjalnego klienta, zgodnie z **przepisami o ochronie danych** obowi\u0105zuj\u0105cymi w Europie. Nasz system weryfikuje je za pomoc\u0105 baz danych, algorytm\u00f3w i sztucznej inteligencji. Ostatecznie API zwraca ocen\u0119 ryzyka **oszustwa**. Ryzyko jest mierzone jako prawdopodobie\u0144stwo oszustwa **od 0 do 100**, gdzie `0` oznacza niskie prawdopodobie\u0144stwo oszustwa (dobra warto\u015b\u0107 ryzyka), a `100` oznacza wyj\u0105tkowo wysokie prawdopodobie\u0144stwo oszustwa (z\u0142a warto\u015b\u0107 ryzyka).\n\nUs\u0142uga pozwala r\u00f3wnie\u017c samodzielnie sprawdzi\u0107 ka\u017cd\u0105 cz\u0119\u015b\u0107 \u017c\u0105dania osobno, na przyk\u0142ad przekazuj\u0105c wy\u0142\u0105cznie dane telefonu.\n\nOpr\u00f3cz oceny ryzyka odpowied\u017a API Fraud Detection zawiera tak\u017ce **dodatkowe informacje**, kt\u00f3re pomog\u0105 Ci w **w\u0142asnej ocenie ryzyka**:\n- O telefonie:\n\t- region\n\t- typ numeru (kom\u00f3rkowy, VoIP itp.)\n\t- poprawny format\n\t- czy numer jest w og\u00f3le mo\u017cliwy\n- o adresie e-mail:\n\t- czy taki adres e-mail jest mo\u017cliwy\n\t- czy domena podanego adresu e-mail jest podejrzana\n- o adresie IP\n\t- region\n\t- stan\n\t- miasto\n\t- kod pocztowy\n\t- wsp\u00f3\u0142rz\u0119dne geograficzne\n\t- ISP\n\t- ocena ryzyka ISP\n\t- typ serwera proxy (je\u015bli jest u\u017cywany)\n\t- typ po\u0142\u0105czenia\n\nW zale\u017cno\u015bci od wybranego taryfy 'direct' odpowied\u017a i szybko\u015b\u0107 przetwarzania \u017c\u0105dania s\u0105 r\u00f3\u017cne. \u017b\u0105dania Economy s\u0105 odpowiednie np. do prostego logowania. \u017b\u0105dania Pro do rejestracji nowego klienta, a \u017c\u0105dania direct do sprzeda\u017cy produktu:\n- '**direct**' - odpowied\u017a zawiera wszystkie szczeg\u00f3\u0142owe dane, a \u017c\u0105danie jest przetwarzane w osobnej kolejce z **zwi\u0119kszonym priorytetem**.\n\n\nPoniewa\u017c ocena punktowa zajmuje pewien czas, \u017c\u0105danie jest przetwarzane w trybie asynchronicznym, a po przetworzeniu us\u0142uga odsy\u0142a dane \u017c\u0105dania w formacie JSON na wskazany przez Ciebie adres URL HTTP lub adres e-mail. T\u0119 warto\u015b\u0107 mo\u017cesz ustawi\u0107 w panelu internetowym w sekcji Ustawienia i Powiadomienia (**Event Notifications**).\nMo\u017cesz r\u00f3wnie\u017c sprawdzi\u0107 status \u017c\u0105dania na podstawie jego ID, wysy\u0142aj\u0105c \u017c\u0105danie do API. Zdecydowanie zalecamy jednak korzystanie z systemu powiadomie\u0144 (webhook), poniewa\u017c us\u0142uga mo\u017ce blokowa\u0107 Twoje \u017c\u0105dania w przypadku du\u017cej liczby \u017c\u0105da\u0144 z Twojej strony.\n"
        },
        {
            "name": "collection-filters",
            "x-displayName": "Filtry i sortowanie",
            "description": "API LOX24 udost\u0119pnia uniwersalny system stosowania filtr\u00f3w i kryteri\u00f3w sortowania na\nkolekcjach. Kt\u00f3re filtry mo\u017cesz zastosowa\u0107, zobaczysz w opisie w\u0142a\u015bciwo\u015bci.\n\n### Filtr wyszukiwania\n\nAPI u\u017cywa dw\u00f3ch typ\u00f3w filtr\u00f3w tekstowych:\n\n- strategia ***partial*** u\u017cywa podanego tekstu do wyszukiwania p\u00f3l, kt\u00f3re\nzawieraj\u0105 cz\u0119\u015b\u0107 tego tekstu\n- strategia ***exact*** u\u017cywa podanego tekstu do wyszukiwania p\u00f3l,\nkt\u00f3re zawieraj\u0105 dok\u0142adnie ten tekst\n\n**Uwaga**: filtry wyszukiwania ze strategi\u0105 exact mog\u0105 mie\u0107 wiele warto\u015bci\ndla tej samej w\u0142a\u015bciwo\u015bci (w tym przypadku warunek b\u0119dzie podobny do klauzuli IN w SQL).\n\n#### Przyk\u0142ady u\u017cycia\n\nZnajd\u017a wiadomo\u015bci SMS, kt\u00f3rych w\u0142a\u015bciwo\u015b\u0107 `phone` zawiera *\"4979\"*, a w\u0142a\u015bciwo\u015b\u0107 `text`\nzawiera *\"hello\":\n\n```\ncurl -X GET https://api.lox24.eu/sms?phone=4979&text=hello \\\n  -H 'Host: api.lox24.eu' \\\n  -H 'X-LOX24-AUTH-TOKEN: e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -H 'X-LOX24-CLIENT-ID: 1234567' \n```\n\nZnajd\u017a wiadomo\u015bci SMS, w kt\u00f3rych w\u0142a\u015bciwo\u015b\u0107 kraju `iso2` jest r\u00f3wna 'DE' LUB 'CH', a `status_code` = 0\n\n```\ncurl -X GET https://api.lox24.eu/sms?iso2[]=DE&iso2[]=CH&status_code=0 \\\n  -H 'Host: api.lox24.eu' \\\n  -H 'X-LOX24-AUTH-TOKEN: e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -H 'X-LOX24-CLIENT-ID: 1234567' \n```\n\n### Filtr boolowski\n\nFiltr boolowski pozwala wyszukiwa\u0107 po polach i warto\u015bciach boolowskich.\n\n**Sk\u0142adnia**: ?property=<true|false|1|0>\n\nPobierz wiadomo\u015bci SMS, kt\u00f3re nie zosta\u0142y jeszcze wys\u0142ane do operatora sieci kom\u00f3rkowej:\n```\ncurl -X GET https://api.lox24.eu/sms?sent=0 \\\n  -H 'Host: api.lox24.eu' \\\n  -H 'X-LOX24-AUTH-TOKEN: e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -H 'X-LOX24-CLIENT-ID: 1234567' \n```\n\n### Filtr istnienia\n\nFiltr istnienia pozwala wybiera\u0107 elementy na podstawie warto\u015bci pola, kt\u00f3ra mo\u017ce by\u0107 pusta\n\n**Sk\u0142adnia**: ?exists[property]=<true|false|1|0>\n\nPobierz wiadomo\u015bci masowe, kt\u00f3re maj\u0105 w\u0142a\u015bciwo\u015b\u0107 `is_unicode=null` (automatyczne wykrywanie kodowania wiadomo\u015bci SMS):\n```\ncurl -X GET https://api.lox24.eu/bulks?exists[is_unicode]=0 \\\n  -H 'Host: api.lox24.eu' \\\n  -H 'X-LOX24-AUTH-TOKEN: e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -H 'X-LOX24-CLIENT-ID: 1234567'\n```\n\n### Filtr zakresu\n\nFiltr zakresu pozwala filtrowa\u0107 wed\u0142ug warto\u015bci mniejszej ni\u017c, wi\u0119kszej ni\u017c,\nmniejszej lub r\u00f3wnej, wi\u0119kszej lub r\u00f3wnej oraz mieszcz\u0105cej si\u0119 mi\u0119dzy dwiema warto\u015bciami.\n\n**Sk\u0142adnia**: ?property[<lt|gt|lte|gte|between>]=value\n\n#### Przyk\u0142ady u\u017cycia\n\nFiltruj kolekcj\u0119 wiadomo\u015bci SMS wed\u0142ug pola `created_at` mi\u0119dzy 1575158400 (2019-12-01)\na 1575676800 (2019-12-07):\n```\ncurl -X GET https://api.lox24.eu/sms?created_at[between]=1575158400..1575676800 \\\n  -H 'Host: api.lox24.eu' \\\n  -H 'X-LOX24-AUTH-TOKEN: e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -H 'X-LOX24-CLIENT-ID: 1234567' \n```\n\n\n\n### Filtr kolejno\u015bci (sortowanie)\n\nFiltr kolejno\u015bci pozwala sortowa\u0107 kolekcj\u0119 wed\u0142ug podanych w\u0142a\u015bciwo\u015bci.\nParametrem kolejno\u015bci jest `_order`.\n\n#### Przyk\u0142ady u\u017cycia\n\nSortuj kolekcj\u0119 wiadomo\u015bci SMS wed\u0142ug pola 'created_at' w kolejno\u015bci malej\u0105cej:\n```\ncurl -X GET https://api.lox24.eu/sms?_order[created_at]=desc \\\n  -H 'Host: api.lox24.eu' \\\n  -H 'X-LOX24-AUTH-TOKEN: e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -H 'X-LOX24-CLIENT-ID: 1234567' \n```\n"
        },
        {
            "name": "sms-status-codes",
            "x-displayName": "Kody status\u00f3w SMS",
            "description": "Opis kod\u00f3w statusu wiadomo\u015bci SMS (w\u0142a\u015bciwo\u015b\u0107 `status_code`):\n\n|Kod statusu|Opis|\n|---|---|\n|0|Nowa, \u015bwie\u017co utworzona wiadomo\u015b\u0107|\n|100|Wiadomo\u015b\u0107 zosta\u0142a pomy\u015blnie przekazana do operatora sieci kom\u00f3rkowej|\n|208|Sie\u0107 docelowa lub kraj docelowy s\u0105 zablokowane|\n|400|Nie uda\u0142o si\u0119 dor\u0119czy\u0107 wiadomo\u015bci podczas prac konserwacyjnych|\n|410|Wiadomo\u015b\u0107 zosta\u0142a zatrzymana przed wys\u0142aniem za po\u015brednictwem konta internetowego|\n|2000|Brak mo\u017cliwo\u015bci po\u0142\u0105czenia ze stacjonarn\u0105 sieci\u0105 telefoniczn\u0105 w tej chwili|\n|3000|Za ma\u0142o \u015brodk\u00f3w na saldzie u\u017cytkownika, aby wys\u0142a\u0107 wiadomo\u015b\u0107|\n|5000|Nie znaleziono operatora sieci kom\u00f3rkowej dla tej wiadomo\u015bci|\n|6000|Wiadomo\u015b\u0107 zosta\u0142a zatrzymana przed wys\u0142aniem za po\u015brednictwem API|\n"
        },
        {
            "name": "sms-delivery-report-codes-dlr",
            "x-displayName": "Kody raport\u00f3w dor\u0119cze\u0144 SMS (DLR)",
            "description": "Dla ka\u017cdej wys\u0142anej wiadomo\u015bci SMS istnieje raport dor\u0119czenia (DLR). Raporty dor\u0119czenia mo\u017cna uzyska\u0107 na dwa sposoby:\n\n1. push http: wysy\u0142amy raporty dor\u0119czenia \u017c\u0105daniem HTTP GET lub e-mailem (webhook) na Tw\u00f3j endpoint. Wi\u0119cej informacji znajdziesz w sekcji [`Event notifications`](/info/notifications/).\n2. pull http: odpytujesz raport DLR za pomoc\u0105 endpointu [`GET /sms/{id}`](/api/operations/api_sms_get_item/) (id - identyfikator wiadomo\u015bci SMS) i sprawdzasz parametr `dlr_code`.\n\n### Opis kod\u00f3w statusu raportu dor\u0119czenia (w\u0142a\u015bciwo\u015b\u0107 `dlr_code`):\n\n|Kod statusu|Opis|\n|---|---|\n|0|NONE: raport dor\u0119czenia nie jest dost\u0119pny|\n|1|DELIVERY_OK: wiadomo\u015b\u0107 zosta\u0142a pomy\u015blnie dor\u0119czona|\n|2|DELIVERY_QUEUE: wiadomo\u015b\u0107 jest zaplanowana do p\u00f3\u017aniejszej wysy\u0142ki|\n|4|DELIVERY_SUBMIT_ACK: wiadomo\u015b\u0107 jest w drodze|\n|8|DELIVERY_EXPIRED: SMSC nie by\u0142 w stanie dor\u0119czy\u0107 wiadomo\u015bci w okre\u015blonym czasie. Na przyk\u0142ad gdy telefon by\u0142 wy\u0142\u0105czony|\n|16|DELIVERY_REJECTED: wiadomo\u015b\u0107 zosta\u0142a odrzucona. Dostawca m\u00f3g\u0142 zablokowa\u0107 numery telefon\u00f3w z tego zakresu|\n"
        },
        {
            "name": "encoding-and-number-of-characters",
            "x-displayName": "Kodowanie i liczba znak\u00f3w",
            "description": "Zasadniczo tekst wiadomo\u015bci SMS musi by\u0107 przesy\u0142any do bramki w kodowaniu UTF-8. Masz mo\u017cliwo\u015b\u0107 u\u017cycia parametru \"is_unicode\", aby zdecydowa\u0107, czy chcesz wys\u0142a\u0107 zwyk\u0142\u0105 wiadomo\u015b\u0107 SMS 7-bitow\u0105\nczy UCS-2.\n\n#### Standardowy alfabet GSM 7 bit (GSM 03.38)\nPodstawowy zestaw znak\u00f3w zawiera wszystkie znaki, kt\u00f3re mo\u017cna przes\u0142a\u0107 w zwyk\u0142ej wiadomo\u015bci SMS 7-bitowej. Ka\u017cdy z tych znak\u00f3w liczy si\u0119 jako 1 znak. Rozszerzony zestaw znak\u00f3w r\u00f3wnie\u017c mo\u017cna przes\u0142a\u0107, ale wymaga to 2 znak\u00f3w na transmisj\u0119. Wiadomo\u015bci SMS zawieraj\u0105ce wi\u0119cej ni\u017c 160 znak\u00f3w s\u0105 dostarczane do telefonu jako wiele wiadomo\u015bci SMS, ka\u017cda po 153 znaki, i \u0142\u0105czone przez telefon w jedn\u0105 wiadomo\u015b\u0107. Je\u015bli wy\u015blesz wiadomo\u015b\u0107 SMS jawnie w zestawie znak\u00f3w GSM 03.38, a Twoja wiadomo\u015b\u0107 b\u0119dzie zawiera\u0107 znaki nienale\u017c\u0105ce do zestawu GSM, nasz system spr\u00f3buje przekonwertowa\u0107 tekst za pomoc\u0105 transliteracji.\n\n**Podstawowy zestaw znak\u00f3w**\n\n||0x00|0x10|0x20|0x30|0x40|0x50|0x60|0x70|\n|---|---|---|---|---|---|---|---|---|\n|0x00|@|\u0394|SP|0|\u00a1|P|\u00bf|p|\n|0x01|\u00a3|_|!|1|A|Q|a|q|\n|0x02|$|\u03a6|\"|2|B|R|b|r|\n|0x03|\u00a5|\u0393|#|3|C|S|c|s|\n|0x04|\u00e8|\u039b|\u00a4|4|D|T|d|t|\n|0x05|\u00e9|\u03a9|%|5|E|U|e|u|\n|0x06|\u00f9|\u03a0|&|6|F|V|f|v|\n|0x07|\u00ec|\u03a8|'|7|G|W|g|w|\n|0x08|\u00f2|\u03a3|(|8|H|X|h|x|\n|0x09|\u00c7|\u0398|)|9|I|Y|i|y|\n|0x0A|LF|\u039e|*|:|J|Z|j|z|\n|0x0B|\u00d8|ESC|+|;|K|\u00c4|k|\u00e4|\n|0x0C|\u00f8|\u00c6|,|<|L|\u00d6|l|\u00f6|\n|0x0D|CR|\u00e6|-|=|M|\u00d1|m|\u00f1|\n|0x0E|\u00c5|\u00df|.|>|N|\u00dc|n|\u00fc|\n|0x0F|\u00e5|\u00c9|/|?|O|\u00a7|o|\u00e0|\n\n- LF to znak steruj\u0105cy Line Feed (przej\u015bcie do nowego wiersza).\n- CR to znak steruj\u0105cy Carriage Return (powr\u00f3t karetki) lub wype\u0142niacz.\n- ESC to znak steruj\u0105cy Escape.\n- SP to znak spacji.\n\n\n**Rozszerzony zestaw znak\u00f3w**\n\n||0x00|0x10|0x20|0x30|0x40|0x50|0x60|0x70|\n|---|---|---|---|---|---|---|---|---|\n|0x00| | | | ||| | | \n|0x01| | | | | | | | |\n|0x02| | | | | | | | |\n|0x03| | | | | | | | |\n|0x04| |^| | | | | | |\n|0x05| | | | | | |\u20ac| |\n|0x06| | | | | | | | |\n|0x07| | | | | | | | |\n|0x08| | |{| | | | | |\n|0x09| | |}| | | | | |\n|0x0A|FF| | | | | | | |\n|0x0B| |SS2| | | | | | |\n|0x0C| | | |[| | | | |\n|0x0D|CR2| | |~| | | | |\n|0x0E| | | |]| | | | |\n|0x0F| | |\\| | | | | ||\n\n- FF to znak steruj\u0105cy Page Break (podzia\u0142 strony). Je\u015bli nie jest rozpoznawany, nale\u017cy go traktowa\u0107 jak LF.\n- CR2 to znak steruj\u0105cy. Na tej pozycji nie nale\u017cy kodowa\u0107\n\u017cadnego znaku specyficznego dla j\u0119zyka.\n- SS2 to drugi znak steruj\u0105cy Single Shift Escape, zarezerwowany na przysz\u0142e rozszerzenia.\n\n#### UCS-2 (wiadomo\u015bci SMS Unicode)\nDzi\u0119ki UCS-2 mo\u017cna przes\u0142a\u0107 1 112 064 znak\u00f3w. Znaki te\nreprezentuj\u0105 niemal ka\u017cdy j\u0119zyk m\u00f3wiony. Ka\u017cdy znak liczy si\u0119 jako 1 znak,\nale wiadomo\u015b\u0107 SMS w Unicode mo\u017ce sk\u0142ada\u0107 si\u0119 tylko z 70 znak\u00f3w albo z wielu\npo\u0142\u0105czonych wiadomo\u015bci SMS, ka\u017cda po 67 znak\u00f3w.\n\n#### Wiadomo\u015bci SMS \u0142\u0105czone\nZe wzgl\u0119d\u00f3w technicznych jedna wiadomo\u015b\u0107 SMS mo\u017ce przenie\u015b\u0107 tylko 160 znak\u00f3w tekstu (70\nznak\u00f3w tekstu Unicode). Je\u015bli wysy\u0142asz wiadomo\u015b\u0107 SMS z\nwi\u0119ksz\u0105 liczb\u0105 znak\u00f3w, wysy\u0142asz tak zwan\u0105 wiadomo\u015b\u0107 SMS \u0142\u0105czon\u0105. Zbyt d\u0142ugie\nwiadomo\u015bci tekstowe / Multi-SMS (wiadomo\u015bci SMS \u0142\u0105czone, Long SMS) sk\u0142adaj\u0105 si\u0119 z cz\u0119\u015bci\ni s\u0105 przesy\u0142ane osobno. Ka\u017cda cz\u0119\u015b\u0107 jest osobn\u0105 wiadomo\u015bci\u0105 tekstow\u0105.\nOdbiorca ponownie scala cz\u0119\u015bci w sp\u00f3jny tekst. Aby ustali\u0107,\n\u017ce wiadomo\u015b\u0107 jest wiadomo\u015bci\u0105 \u0142\u0105czon\u0105 i kt\u00f3ra cz\u0119\u015b\u0107 nale\u017cy do\nkt\u00f3rej, potrzebne jest 7 znak\u00f3w (lub 3 w Unicode) z dost\u0119pnych znak\u00f3w.\nJest to pow\u00f3d, dla kt\u00f3rego jedna cz\u0119\u015b\u0107 zbyt d\u0142ugiej wiadomo\u015bci SMS mo\u017ce\nsk\u0142ada\u0107 si\u0119 tylko ze 153 znak\u00f3w (lub 67 w Unicode) Twojego tekstu. Maksimum to\n1530 znak\u00f3w w jednej wiadomo\u015bci \u0142\u0105czonej (lub 670 znak\u00f3w w\nUnicode).\n\n"
        },
        {
            "name": "kannel",
            "x-displayName": "Kannel API (emulacja)",
            "description": "# Wst\u0119p\n\nTo przewodnik po konfiguracji i pod\u0142\u0105czaniu naszego API SMS do Twojego klienta Kannel.\n\nJe\u015bli u\u017cywasz Kannel do kierowania wiadomo\u015bci do r\u00f3\u017cnych bramek SMS, mo\u017cesz\n\u0142atwo doda\u0107 dodatkowy modu\u0142 SMSC bez zmiany architektury\naplikacji.\n\nWsparcie: [berlin@lox24.eu](mailto:berlin@lox24.eu)\n\n# Klucz API\n\nAby wysy\u0142a\u0107 wiadomo\u015bci za pomoc\u0105 Kannel, musisz utworzy\u0107 klucz uwierzytelniaj\u0105cy na\n[*stronie konta*](https://account.lox24.eu) z typem \\'Kannel\nAPI\\'. Przejd\u017a do \"*Settings*\" -> \"*API-Settings*\" i kliknij \"*Create new\nkey*\". Jako typ musisz wybra\u0107 \"*Kannel API*\".\n\n![Strona konta i klucz API](/images/kannel/kannel-api-auth-key.png)\n\n# Konfiguracja\n\nIstniej\u0105 dwa typy konfiguracji SMSC umo\u017cliwiaj\u0105ce wysy\u0142anie wiadomo\u015bci SMS\nza po\u015brednictwem LOX24 przez Kannel:\n\n-   wysy\u0142anie \u017c\u0105da\u0144 DLR na Tw\u00f3j endpoint\n-   wysy\u0142anie \u017c\u0105da\u0144 DLR do modu\u0142u SMSC Kannel, kt\u00f3ry z kolei wysy\u0142a\n    \u017c\u0105danie DLR na Tw\u00f3j endpoint (\u0142\u0105czenie adres\u00f3w URL DLR)\n\n**Uwaga**: o \u017c\u0105daniach DLR mo\u017cesz przeczyta\u0107 tutaj:\n\n-   [Oficjalna dokumentacja Kannel](https://www.kannel.com/download/1.4.5/userguide-1.4.5/userguide.html#delivery-reports)\n-   [Dokumentacja DLR LOX24](/info/sms-delivery-report-codes-dlr/)\n\n\n## Wysy\u0142anie \u017c\u0105da\u0144 DLR na Tw\u00f3j endpoint\n\nAPI LOX24 b\u0119dzie wysy\u0142a\u0107 raporty dor\u0119czenia bezpo\u015brednio na Tw\u00f3j endpoint,\nbez po\u015brednictwa Kannel.\n\n![](/images/kannel/kannel_api_dlr.png)\n\nAby korzysta\u0107 z API Kannel, wystarczy utworzy\u0107 now\u0105 konfiguracj\u0119 SMSC:\n\n  ```\n  group = smsc\n  smsc = http\n  system-type = kannel\n  smsc-id = \"lox24\"\n  allowed-smsc-id = \"lox24\"\n  port = 10443\n  send-url = \"https://lox24.eu/api/kannel/{SERVICE_CODE}.php\"\n  smsc-username = \"{USER_ID}\"\n  smsc-password = \"{API_KEY}\"\n  max-sms-octets = 1530\n  ```\n\n**Gdzie**:\n\n-   *SERVICE_CODE* - dowolny dost\u0119pny dla Twojego konta kod us\u0142ugi pisany ma\u0142ymi\n    literami, np. '*text2speech*', '*direct*' itd.\n-   *USER_ID* - identyfikator Twojego konta, taki sam jak identyfikator klienta u\u017cywany do logowania\n    na account.lox24.eu\n-   *API_KEY* - aktywny token API z typem '*API Kannel*'. Jak go utworzy\u0107,\n    zobacz [*tutaj*](/info/kannel/#api-key).\n\n## Wysy\u0142anie \u017c\u0105da\u0144 DLR do Kannel\n\nB\u0119dziemy wysy\u0142a\u0107 raporty dor\u0119czenia z powrotem do Kannel, kt\u00f3re nast\u0119pnie prze\u015ble raporty DLR\nz powrotem na Tw\u00f3j endpoint.\n\n![](/images/kannel/kannel_api_dlr_chaining.png)\n\nAby korzysta\u0107 z API Kannel, wystarczy utworzy\u0107 now\u0105 konfiguracj\u0119 SMSC:\n\n```\n  group = smsc\n  smsc = http\n  system-type = kannel\n  smsc-id = \"lox24\"\n  allowed-smsc-id = \"lox24\"\n  port = 10443\n  send-url = \"https://lox24.eu/api/kannel/{SERVICE_CODE}.php\"\n  smsc-username = \"{USER_ID}\"\n  smsc-password = \"{API_KEY}\"\n  dlr-url = \"http://youhosthere.com:10443/?username={USER_ID}&password={API_KEY}\"\n  connect-allow-ip = \"127.0.0.1;213.133.127.70;116.203.64.153;85.10.245.*\"\n  max-sms-octets = 1530\n```\n\n\n**Gdzie**:\n\n-   *SERVICE_CODE* - dowolny dost\u0119pny dla Twojego konta kod us\u0142ugi pisany ma\u0142ymi\n    literami, np. '*text2speech*', '*direct*' itd.\n-   *USER_ID* - identyfikator Twojego konta, taki sam jak identyfikator klienta u\u017cywany do logowania\n    na account.lox24.eu\n-   *API_KEY* - aktywny token API z typem '*API Kannel*'. Jak go utworzy\u0107,\n    zobacz [*tutaj*](/info/kannel/#api-key).\n\n## Dodatkowe uwagi\n\n### Brak DLR, ale powiadomienia LOX24\n\nJe\u015bli w koncie internetowym lox24 ustawisz Status URL/E-mail API v2, mo\u017cesz\npomin\u0105\u0107 parametr `dlr-url` i otrzymywa\u0107 powiadomienia o wiadomo\u015bciach w taki sam\nspos\u00f3b, jakby\u015b wysy\u0142a\u0142 wiadomo\u015bci SMS przez nasze zwyk\u0142e API v2 bezpo\u015brednio do skryptu na swoim\nserwerze lub poczt\u0105 [*dokumentacja*](/info/sms-delivery-report-codes-dlr/)\n\n![](/images/kannel/kannel_api_status_endpoint.png)\n\n### Port SMSC\n\nW przyk\u0142adowych konfiguracjach SMSC u\u017cywany jest port 10443, ale mo\u017ce to by\u0107 dowolny\nport. Zdecydowanie zalecamy zablokowanie go zapor\u0105 sieciow\u0105 i\nzezwolenie na po\u0142\u0105czenia TCP z serwer\u00f3w LOX24\n(116.203.64.153,213.133.127.70,85.10.245.\\*) oraz znanych host\u00f3w.\n\n## Obs\u0142ugiwane zmienne DLR\n\nAPI Kannel LOX24 to minimalna implementacja Kannel i obs\u0142uguje\ntylko nast\u0119puj\u0105ce zmienne:\n\n-   ***%d*** - typ raportu Kannel (liczba ca\u0142kowita):\n    -   1: dor\u0119czono do telefonu\n    -   2: nie dor\u0119czono do telefonu\n    -   4: zakolejkowano w SMSC\n    -   8: dor\u0119czono do SMSC\n    -   16: nie dor\u0119czono do SMSC\n\n-   ***%q*** - mi\u0119dzynarodowy numer telefonu (E.164), kt\u00f3ry otrzyma\n    wiadomo\u015b\u0107.\n\n-   ***%T*** - czas raportu dor\u0119czenia wyra\u017cony w sekundach\n    od pocz\u0105tku epoki UNIX.\n\n**Uwaga:** mo\u017cesz u\u017cywa\u0107 innych zmiennych, ale nie mo\u017cemy zagwarantowa\u0107\npoprawno\u015bci danych.\n\n# Parametry\n\n## from\n\n*(wymagane)*\n\nIdentyfikator nadawcy wiadomo\u015bci. Mo\u017ce by\u0107 numerem (do 15 cyfr) lub tekstem\n(do 11 znak\u00f3w). W przypadku numeru preferuj format numeru telefonu\nE.164. Nadawca b\u0119d\u0105cy tekstem mo\u017ce zawiera\u0107 spacje, ale nie\ninne znaki specjalne. Pami\u0119taj, \u017ce niekt\u00f3re kraje nie obs\u0142uguj\u0105\nw\u0142asnych identyfikator\u00f3w nadawcy lub wymagaj\u0105 wcze\u015bniejszej rejestracji. Nasz system automatycznie\npr\u00f3buje wykry\u0107, czy identyfikator nadawcy jest tekstem, czy numerem telefonu. Unikaj\nznak\u00f3w specjalnych w numerze i wprowadzaj go tak samo, jak by\u0142by\nwybierany na telefonie.\n\n## to\n\n*(wymagane)*\n\nNumer odbiorcy (mi\u0119dzynarodowy)\n\n## text\n\n*(wymagane)*\n\nTekst wiadomo\u015bci mo\u017ce mie\u0107 d\u0142ugo\u015b\u0107 do 1530 znak\u00f3w. W przypadku wiadomo\u015bci SMS\nw Unicode maksymalna d\u0142ugo\u015b\u0107 jest zmniejszona do 670 znak\u00f3w.\nKodowanie wewn\u0119trzne to UTF-8.\n\n## coding\n\n*(opcjonalne)*\n\nWiadomo\u015b\u0107 SMS mo\u017cesz wys\u0142a\u0107 z parametrem '*coding*':\n\n0 - GSM 03.38 (domy\u015blnie),\n1 - 8-bit lub\n2 - kodowanie UCS-2.\n\n*W naszym przypadku 8-bit i UCS-2 s\u0105 takie same (is\\_unicode = true) i b\u0119d\u0105\nobs\u0142ugiwane jako wiadomo\u015b\u0107 SMS w Unicode.*\n\n## dlr-url\n\n*(opcjonalne)*\n\nPodaj adres URL, a my wywo\u0142amy go z raportami statusu dor\u0119czenia. Je\u015bli\nparametr 'dlr-url' nie zostanie podany, u\u017cyty zostanie *endpoint DLR API v2\nz ustawie\u0144 u\u017cytkownika* (je\u015bli jest\nustawiony).\n\n## deferred\n\n*(opcjonalne)*\n\nJe\u015bli podany, centrum SMS odroczy dor\u0119czenie wiadomo\u015bci o podan\u0105 liczb\u0119 minut\nod teraz. Je\u015bli pomini\u0119ty, wiadomo\u015b\u0107 SMS zostanie wys\u0142ana jak najszybciej.\n\n## Przyk\u0142ad \u017c\u0105dania\n\nTo przyk\u0142ad \u017c\u0105dania GET, kt\u00f3re u\u017cytkownik wysy\u0142a do **swojego** smsbox Kannel\nnas\u0142uchuj\u0105cego na porcie 9001.\n\n[*http://127.0.0.1:9001/cgi-bin/sendsms?dlr-url=http://yourhost.com/dlr_test.php?status=%d%26time=%T%26q=%q%26customid=1234567&from=sender&password=test1&smsc=lox24&text=test%20message&to=+49751234567&username=test1&coding=0*](http://127.0.0.1:9001/cgi-bin/sendsms?dlr-url=http://yourhost.com/dlr_test.php?status=%d%26time=%T%26q=%q%26customid=1234567&from=sender&password=test1&smsc=lox24&text=test%20message&to=+49751234567&username=test1&coding=0)\n\n### Wskaz\u00f3wka\nDodaj do adresu URL DLR niestandardowy parametr z wewn\u0119trznym identyfikatorem wiadomo\u015bci, aby zapewni\u0107 prawid\u0142owe\nprzetwarzanie \u017c\u0105da\u0144 DLR. W naszym przyk\u0142adzie jest to `customid` = 1234567.\n"
        },
        {
            "name": "notifications",
            "x-displayName": "Powiadomienia",
            "description": "### Notifications\n\nThe event messaging system is a replacement for the outdated inbound sms and delivery report notification system (these\nold systems are considered obsolete, will not be improved, and are not recommended for use).\n\nThe event messaging system allows you to send information about events to URIs (http or email). You can customize the\nsystem to send notifications of one event to different URIs. You can also send different events to the same URI.\n\nTo configure the notifications, open the settings page (account.lox24.eu -> Settings -> Notifications), click \"Create\nwebhook\" and enter in the URI field the http address or e-mail where you want to receive notifications. By default, all\nevents will be sent to the specified URI. If you want to be notified only about certain events, check the box next to\nthe events you want to be notified about.\n\nIf additional webhooks are required, repeat the instructions above. A maximum of five individual notification settings\ncan be created.\n\nThe event information will be transmitted in the JSON object format, which has the same format for all events and\ndiffers only in the data of the event itself.\n\n#### Structure of the event object\n\n| Field                | Type              | Description                               |\n|----------------------|-------------------|-------------------------------------------|\n| id                   | string (36 chars) | Event ID                                  |\n| api_version          | string            | Version of the data structure             |\n| name                 | string            | Event name, e.g. 'sms.delivery'           |\n| created_at           | integer           | Unix timestamp when event was created     |\n| attempt_total        | integer           | Total number of attempts (re-tries).      |\n| attempt_number       | integer           | Current number of attempt                 |                                     |\n| data                 | object            | Event's data (see list of events)         |\n| notification_task_id | string (36 chars) | Notification task ID (request identifier) |\n\n##### Event example\n\n```json\n{\n    \"id\": \"a3cd6e19-8af2-498d-ad07-c7840f1b4ac8\",\n    \"data\": {\n        \"id\": \"d6c12ac4-cc7d-11ec-b6da-525400bbb7dc\",\n        \"key_id\": 8207,\n        \"dlr_code\": 1,\n        \"status_code\": 100,\n        \"callback_data\": \"some data from user's request here\"\n    },\n    \"name\": \"sms.delivery\",\n    \"created_at\": 1653378603,\n    \"api_version\": \"2022-05-25\",\n    \"attempt_number\": 1,\n    \"attempts_total\": 4,\n    \"notification_task_id\": \"3378de83-de66-4de8-9d29-2b10d41bb641\"\n}\n```\n\n#### Event transport types\n\nThe notification system can send event information in two ways (transports): HTTPS and E-mail.\n\n##### HTTP\n\nThe json is sent as the body of the http request with the header ```Content-Type: application/json```.\nThe service will continue to attempt to send the request (at increasing time intervals) until it receives a response\nwith a status code >= 200 and < 300 or the number of attempts reaches the value specified in the `attempt_number` field.\n\n**NOTE**: The response of your endpoint script is not taken into account therefore you have to monitor your script. In\nthe case of malfunctions there is no notification by us.\n\n##### E-mail\n\nKa\u017cde zdarzenie jest dostarczane w jednej pr\u00f3bie z adresu `no-reply@lox24.eu`. Format tre\u015bci jest ustawiany dla ka\u017cdego endpointu e-mail:\n\n- `json` (domy\u015blnie): json zdarzenia jest wysy\u0142any jako tre\u015b\u0107 wiadomo\u015bci.\n- `text`: wysy\u0142ana jest czytelna tre\u015b\u0107 wraz z podpisem LOX24, a ten sam json jest do\u0142\u0105czany jako plik `lox24-{event}-{uuid}.json`.\n\n##### Service hosts and IP adresses\n\nAlerts are sent from the following IP addresses. If you use a firewall, don't forget to whitelist those IP addresses.\n\nIPv4:\n- `162.55.80.140`\n- `162.55.80.141`\n- `5.9.114.27`\n- `144.76.190.20`\n\nIPv6:\n- `2a01:4f8:271:10a7::2`\n- `2a01:4f8:271:10a6::2`\n\n#### Events list\n\n- [sms.delivery](/api/webhooks/webhookssms-delivery-webhook/)\n- [sms.delivery.dryrun](/api/webhooks/webhookssms-delivery-dryrun-webhook/)\n- [sms.incoming](/api/webhooks/smsincomingwebhook/)\n- [sms.email.parsing.success](/api/webhooks/webhookssms-email-parsing-success/)\n- [sms.email.parsing.fail](/api/webhooks/webhookssms-email-parsing-fail/)\n- [bulk.email.parsing.success](/api/webhooks/bulkemailparsingsuccesswebhook/)\n- [bulk.email.parsing.fail](/api/webhooks/bulkemailparsingfailwebhook/)\n- [fraud-check.done](/api/webhooks/fraudcheckdonewebhook/)\n"
        },
        {
            "name": "inbound-and-reply-sms",
            "x-displayName": "SMS przychodz\u0105ce i odpowiedzi SMS",
            "description": "### Wiadomo\u015bci przychodz\u0105ce SMS i odpowiedzi SMS:\n\nMo\u017cesz otrzymywa\u0107 wiadomo\u015bci SMS przychodz\u0105ce (mobile originated - SMS-MO) wysy\u0142ane metod\u0105 push do skryptu na Twoim serwerze WWW. Mo\u017cesz odbiera\u0107 wiadomo\u015bci przychodz\u0105ce na sw\u00f3j indywidualny numer przychodz\u0105cy. Mo\u017cesz go zam\u00f3wi\u0107 w swoim koncie internetowym w sekcjach Settings i Inbound number. Mo\u017cesz r\u00f3wnie\u017c otrzymywa\u0107 bezp\u0142atne odpowiedzi na wiadomo\u015bci SMS Economy wysy\u0142ane do Niemiec.\n\nMo\u017cesz okre\u015bli\u0107 indywidualny endpoint (HTTPS lub poczt\u0119 e-mail) dla ka\u017cdego numeru telefonu. Alternatywnie mo\u017cesz odbiera\u0107 wszystkie wiadomo\u015bci przychodz\u0105ce za pomoc\u0105 naszego [Event Notification Service](/info/notifications/).\n\nUs\u0142uga push oznacza, \u017ce nasza bramka wysy\u0142a \u017c\u0105dania HTTP z danymi do skryptu na Twoim ho\u015bcie. W przypadku odpowiedzi ze statusem HTTP < `200` lub >= `300` us\u0142uga podejmie dodatkowe pr\u00f3by, ale maksymalnie trzy. Odpowied\u017a Twojego skryptu nie jest uwzgl\u0119dniana, wi\u0119c musisz monitorowa\u0107 sw\u00f3j skrypt. W razie awarii nie powiadomimy Ci\u0119. Adres URL dla wszystkich us\u0142ug push mo\u017cesz wprowadzi\u0107 na stronie swojego konta internetowego LOX24 (Settings -> API settings). Alternatywnie mo\u017cesz r\u00f3wnie\u017c otrzymywa\u0107 informacje o wiadomo\u015bciach SMS przychodz\u0105cych poczt\u0105 e-mail.\n\nWiadomo\u015bci przychodz\u0105ce SMS s\u0105 wysy\u0142ane jako \u017c\u0105danie HTTP GET z parametrami `sender_id` dla numeru telefonu nadawcy, `text` dla tekstu wiadomo\u015bci oraz `time` dla czasu wys\u0142ania wiadomo\u015bci w formacie znacznika czasu Unix. W przypadku wiadomo\u015bci SMS b\u0119d\u0105cych odpowiedzi\u0105 na wiadomo\u015b\u0107 SMS Economy otrzymujesz r\u00f3wnie\u017c `uuid` jako powi\u0105zanie z pocz\u0105tkow\u0105 wiadomo\u015bci\u0105 SMS. Dla numeru przychodz\u0105cego `phone` zawiera numer telefonu przychodz\u0105cego (odbiorcy), a `id` zawiera identyfikator wiadomo\u015bci SMS przychodz\u0105cej.\n\nWiadomo\u015bci SMS przychodz\u0105ce wysy\u0142ane poczt\u0105 zawieraj\u0105 obiekt JSON z tymi samymi parametrami.\n\n| Parametr  |Typ      |Opis|\n|-----------|---------|-----------|\n| id        | integer |Identyfikator wiadomo\u015bci SMS przychodz\u0105cej (nie dotyczy odpowiedzi SMS Economy) |\n| phone     | string  |Numer telefonu przychodz\u0105cego (nie dotyczy odpowiedzi SMS Economy) |\n| sender_id | string  |Numer telefonu nadawcy wiadomo\u015bci SMS przychodz\u0105cej                      |\n| text      | string  |Tekst wiadomo\u015bci                                                 |\n| time      | integer |Czas, w kt\u00f3rym wiadomo\u015b\u0107 SMS zosta\u0142a odebrana przez LOX24                 |\n| uuid      | UUID    |Identyfikator wiadomo\u015bci, na kt\u00f3r\u0105 przysz\u0142a odpowied\u017a (tylko dla odpowiedzi SMS Economy) |\n"
        },
        {
            "name": "ssml-language-detection",
            "x-displayName": "SSML i wykrywanie j\u0119zyka",
            "description": "### Wykrywanie j\u0119zyka wiadomo\u015bci g\u0142osowej\n\nGdy `voice_lang` ma warto\u015b\u0107 null, system automatycznie wykrywa j\u0119zyk wiadomo\u015bci g\u0142osowej na podstawie tre\u015bci wiadomo\u015bci, korzystaj\u0105c z biblioteki patrickschur/language-detection.\n\nObs\u0142ugiwane j\u0119zyki: angielski (`EN`), niemiecki (`DE`), francuski (`FR`), w\u0142oski (`IT`), hiszpa\u0144ski (`ES`), polski (`PL`), niderlandzki (`NL`), rumu\u0144ski (`RO`), portugalski (`PT`), czeski (`CS`), w\u0119gierski (`HU`), szwedzki (`SV`), du\u0144ski (`DA`), fi\u0144ski (`FI`), s\u0142owacki (`SK`), chorwacki (`HR`), turecki (`TR`), rosyjski (`RU`), bu\u0142garski (`BG`), ukrai\u0144ski (`UK`).\n\n### Obs\u0142uga SSML\n\nAPI obs\u0142uguje teraz podzbi\u00f3r [SSML (Speech Synthesis Markup Language)](https://en.wikipedia.org/wiki/Speech_Synthesis_Markup_Language) do zaawansowanego formatowania wiadomo\u015bci g\u0142osowych.\n\n#### Obs\u0142ugiwane funkcje\n\n##### Dost\u0119pne znaczniki\n- `<break>` - wstawianie pauz w mowie\n- `<say-as>` - kontrolowanie wymowy tekstu\n\n#### Specyfikacja znacznik\u00f3w\n\n##### Znacznik `<break>`\n- **Cel**: dodawanie pauz mi\u0119dzy s\u0142owami lub zdaniami\n- **Atrybuty**: `time` (np. \"1s\", \"500ms\")\n- **Cennik**: <0.5ms = 1 znak, <1s = 2 znaki, <1,5s = 3 znaki itd.\n\n##### Znacznik `<say-as>`\n- **Cel**: kontrolowanie sposobu interpretacji i wypowiadania tekstu\n- **Obs\u0142ugiwane atrybuty**:\n  - `interpret-as=\"characters\"` - literowanie tekstu znak po znaku\n- **Uwaga**: obecnie obs\u0142ugiwana jest tylko warto\u015b\u0107 \"characters\"\n\n#### U\u017cycie\n\nOtocz tre\u015b\u0107 wiadomo\u015bci elementem g\u0142\u00f3wnym `<speak>`:\n\n```xml\n<speak>\n  Your verification code is <say-as interpret-as=\"characters\">A1B2C3</say-as>.\n  <break time=\"1s\"/>\n  Please enter it now.\n</speak>\n"
        },
        {
            "name": "email-to-sms",
            "x-displayName": "Email to SMS",
            "description": "### Wysy\u0142anie wiadomo\u015bci SMS e-mailem\n\nWiadomo\u015bci SMS mo\u017cesz wysy\u0142a\u0107 e-mailem na dwa r\u00f3\u017cne sposoby: wysy\u0142aj\u0105c pojedyncz\u0105 wiadomo\u015b\u0107 SMS na konkretny numer telefonu lub wysy\u0142aj\u0105c wiadomo\u015b\u0107 SMS do grupy numer\u00f3w telefon\u00f3w.\n\n#### Wysy\u0142anie pojedynczej wiadomo\u015bci SMS\n\nAby wys\u0142a\u0107 pojedyncz\u0105 wiadomo\u015b\u0107 SMS, e-mail powinien mie\u0107 nast\u0119puj\u0105cy format:\n\n```\n{{user_id}}.{{api_key}}.{{phone}}.{{service_code}}.{{sender_id}}.{{text_source}}.{{encoding}}.{{max_sms_parts}}@mail2sms.lox24.eu\n```\n\n#### Wysy\u0142anie na wiele numer\u00f3w telefon\u00f3w (grupowa wiadomo\u015b\u0107 SMS)\n\nAby wys\u0142a\u0107 wiadomo\u015b\u0107 SMS na numery telefon\u00f3w z konkretnej grupy, u\u017cyj nast\u0119puj\u0105cego formatu:\n\n```\n{{user_id}}.{{api_key}}.{{group_id}}.{{service_code}}.{{sender_id}}.{{text_source}}.{{encoding}}.{{max_sms_parts}}@email2bulk.lox24.eu\n```\n\n##### Parametry:\n\n| Kolejno\u015b\u0107 | Etykieta      | Opis                                                                                                                                            |\n|-------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1     | user_id       | Identyfikator u\u017cytkownika (liczba ca\u0142kowita), identyczny z loginem do LOX24                                                                                                              |\n| 2     | api_key       | Klucz API \"Email2SMS\" ze strony ustawie\u0144 kluczy API (\"Settings\" -> \"API Settings\")                                                                     |\n| 3     | phone/group_id| Dla pojedynczej wiadomo\u015bci SMS jest to numer telefonu w formacie E.164 bez wiod\u0105cego znaku \"+\" (np. \"491701234567\"). Dla grupowej wiadomo\u015bci SMS jest to identyfikator grupy, kt\u00f3ry znajdziesz w swoim koncie internetowym lub pobierzesz przez API                 |\n| 4     | service_code  | Kod us\u0142ugi 'text2speech' lub 'direct' (domy\u015blnie)                                                                                                 |\n| 5     | sender_id     | Identyfikator nadawcy: liczba ca\u0142kowita od 1 do 6 (domy\u015blnie 1). Wyb\u00f3r nadawcy spo\u015br\u00f3d nadawc\u00f3w wcze\u015bniej zapisanych na koncie (\"Settings\" -> \"Sender-IDs\"). Je\u015bli identyfikator nadawcy nie zostanie znaleziony, domy\u015bln\u0105 warto\u015bci\u0105 jest 'email2sms'.                 |\n| 6     | text_source   | \u0179r\u00f3d\u0142o tekstu: 0 - temat i tre\u015b\u0107 (domy\u015blnie), 1 - tylko temat, 2 - tylko tre\u015b\u0107                                                                             |\n| 7     | encoding      | Liczba ca\u0142kowita: 0 - zwyk\u0142e GSM (domy\u015blnie), 1 - unicode, 2 - automatyczne wykrywanie (na podstawie ca\u0142ego tekstu z \u017c\u0105dania)                                          |\n| 8     | max_sms_parts | Liczba ca\u0142kowita od 1 do 10. Warto\u015b\u0107 domy\u015blna to 1. Podczas przetwarzania e-maila obowi\u0105zuje limit d\u0142ugo\u015bci tekstu. Dodatkowe znaki s\u0105 u\u017cywane do \u0142\u0105czenia wiadomo\u015bci d\u0142u\u017cszych ni\u017c standardowe limity. |\n\n#### Przyk\u0142ady adres\u00f3w e-mail\n\n##### Przyk\u0142ady grupowych wiadomo\u015bci SMS\n\n**Wy\u015blij wiadomo\u015b\u0107 SMS na numery telefon\u00f3w z grupy o id = 12345 (minimalne parametry)**\n\n```\n1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.12345@email2bulk.lox24.eu\n```\n\n**Wy\u015blij wiadomo\u015b\u0107 SMS na numery telefon\u00f3w z grupy o id = 12345 z us\u0142ug\u0105 'direct'**\n\n```\n1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.12345.direct@email2bulk.lox24.eu\n```\n\n**Wy\u015blij wiadomo\u015b\u0107 SMS na numery telefon\u00f3w z grupy o id = 12345 z us\u0142ug\u0105 'direct' i identyfikatorem nadawcy = 2**\n\n```\n1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.12345.direct.2@email2bulk.lox24.eu\n```\n\n**Wy\u015blij wiadomo\u015b\u0107 SMS na numery telefon\u00f3w z grupy o id = 12345 z us\u0142ug\u0105 'direct', identyfikatorem nadawcy = 2 i tekstem z tematu e-maila**\n\n```\n1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.12345.direct.2.1@email2bulk.lox24.eu\n```\n\n**Wy\u015blij wiadomo\u015b\u0107 SMS na numery telefon\u00f3w z grupy o id = 12345 z us\u0142ug\u0105 'direct', identyfikatorem nadawcy = 2, tekstem z tematu e-maila i automatycznym wykrywaniem kodowania**\n\n```\n1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.12345.direct.2.1.2@email2bulk.lox24.eu\n```\n\n##### Przyk\u0142ady pojedynczych wiadomo\u015bci SMS\n\n**Wy\u015blij wiadomo\u015b\u0107 SMS na pojedynczy numer telefonu \"+1234567890\" (minimalne parametry)**\n\n```\n1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.1234567890@mail2sms.lox24.eu\n```\n\n**Wy\u015blij wiadomo\u015b\u0107 SMS na pojedynczy numer telefonu \"+1234567890\" z us\u0142ug\u0105 'direct'**\n\n```\n1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.1234567890.direct@mail2sms.lox24.eu\n```\n\n**Wy\u015blij wiadomo\u015b\u0107 SMS na pojedynczy numer telefonu \"+1234567890\" z us\u0142ug\u0105 'direct' i identyfikatorem nadawcy = 2**\n\n```\n1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.1234567890.direct.2@mail2sms.lox24.eu\n```\n\n**Wy\u015blij wiadomo\u015b\u0107 SMS na pojedynczy numer telefonu \"+1234567890\" z us\u0142ug\u0105 'direct', identyfikatorem nadawcy = 2 i tekstem z tematu e-maila**\n\n```\n1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.1234567890.direct.2.1@mail2sms.lox24.eu\n```\n\n**Wy\u015blij wiadomo\u015b\u0107 SMS na pojedynczy numer telefonu \"+1234567890\" z us\u0142ug\u0105 'direct', identyfikatorem nadawcy = 2, tekstem z tematu e-maila i automatycznym wykrywaniem kodowania**\n\n```\n1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.1234567890.direct.2.1.2@mail2sms.lox24.eu\n```\n\n#### Odpowiedzi o b\u0142\u0119dach\n\n\nWi\u0119kszo\u015b\u0107 b\u0142\u0119d\u00f3w jest ignorowana, aby ograniczy\u0107 niechciane masowe wiadomo\u015bci, w tym b\u0142\u0119dy zwi\u0105zane z uwierzytelnianiem. Jednak w przypadku niekt\u00f3rych b\u0142\u0119d\u00f3w system wysy\u0142a odpowied\u017a JSON z opisem b\u0142\u0119du.\n\n**B\u0142\u0105d JSON**\n\n| W\u0142a\u015bciwo\u015b\u0107  | Opis                                        |\n|-------------|---------------------------------------------|\n| field       | Pole b\u0142\u0119du w \u017c\u0105daniu                        |\n| description | Opis b\u0142\u0119du                                  |\n| request     | Adres e-mail, na kt\u00f3ry wys\u0142ano \u017c\u0105danie      |\n\n##### Przyk\u0142ad\n{\"field\":\"group_id\",\"description\":\"Group with id = 12345 was not found!\",\"request\":\"1234567.e3f3a759b6677959b6ebfcxxxxxxxxxx.12345.direct@email2bulk.lox24.eu\"}\n\n#### Ostrze\u017cenie dotycz\u0105ce przekazywania e-maili\n\nPami\u0119taj, \u017ce bramka pocztowa nie dzia\u0142a z przekazywaniem e-maili. E-mail musi zosta\u0107 wys\u0142any bezpo\u015brednio do skrzynki bramki Mail2SMS.\n"
        },
        {
            "name": "verify-codes",
            "x-displayName": "Kody weryfikacyjne",
            "description": "Endpoint kod\u00f3w weryfikacyjnych s\u0142u\u017cy do wysy\u0142ania **jednorazowych kod\u00f3w weryfikacyjnych (OTP)** na numery telefon\u00f3w za po\u015brednictwem wielu kana\u0142\u00f3w dostarczania. Obs\u0142uguje **wieloetapow\u0105 strategi\u0119 routingu** z automatycznym fallbackiem \u2014 je\u015bli jeden kana\u0142 ulegnie awarii lub przekroczy limit czasu, nast\u0119pny kana\u0142 jest automatycznie uruchamiany.\n\n- Tworzenie \u017c\u0105dania kodu weryfikacyjnego z elastyczn\u0105 strategi\u0105 routingu\n- Obs\u0142uga kana\u0142\u00f3w dostarczania **Telegram**, **G\u0142os (tekst na mow\u0119)** i **SMS**\n- Automatyczny fallback mi\u0119dzy kana\u0142ami w przypadku awarii lub przekroczenia czasu\n- Zapytanie o status kodu weryfikacyjnego, histori\u0119 dostarczania i informacje o kosztach\n- Usuwanie kod\u00f3w weryfikacyjnych z pami\u0119ci po dostarczeniu ze wzgl\u0119d\u00f3w bezpiecze\u0144stwa\n\n### Jak to dzia\u0142a\n\nTworz\u0105c \u017c\u0105danie kodu weryfikacyjnego, definiujesz **strategi\u0119 routingu** \u2014 uporz\u0105dkowan\u0105 list\u0119 kana\u0142\u00f3w dostarczania do wypr\u00f3bowania. System przetwarza ka\u017cdy kana\u0142 w kolejno\u015bci:\n\n1. Wysy\u0142a kod weryfikacyjny przez pierwszy kana\u0142 (np. Telegram).\n2. **Telegram**: czeka na potwierdzenie dostarczenia z API Telegram w ramach `timeout_sec`. **G\u0142os**: wykonuje jedn\u0105 pr\u00f3b\u0119 po\u0142\u0105czenia; sukces, je\u015bli odbiorca odbierze. **SMS**: uznaje si\u0119 za udane, gdy wiadomo\u015b\u0107 zostanie zaakceptowana przez sie\u0107 kom\u00f3rkow\u0105.\n3. Je\u015bli kana\u0142 ulegnie awarii lub przekroczy limit czasu, automatycznie przechodzi do nast\u0119pnego kana\u0142u.\n4. Powtarza, dop\u00f3ki kana\u0142 nie odniesie sukcesu lub wszystkie kana\u0142y zostan\u0105 wyczerpane.\n\n### Strategia routingu\n\nKa\u017cdy krok w strategii routingu okre\u015bla `channel` i opcjonalne parametry. Wszystkie parametry poza `channel` s\u0105 opcjonalne \u2014 po pomini\u0119ciu stosowane s\u0105 rozs\u0105dne warto\u015bci domy\u015blne.\n\n| Kana\u0142 | Parametry | Kryterium sukcesu | Uwagi |\n|---------|-----------|-------------------|-------|\n| `telegram` | `timeout_sec` | Otrzymano potwierdzenie dostarczenia z Telegram w ramach `timeout_sec` | `timeout_sec`: min 30, max 3600, domy\u015blnie 30. |\n| `voice` | `sender_id`, `template` | Odbiorca odebra\u0142 po\u0142\u0105czenie | Po\u0142\u0105czenie tekst-na-mow\u0119. Wykonywana jest tylko **jedna pr\u00f3ba po\u0142\u0105czenia**. Szablon jest automatycznie otaczany tagami SSML `<speak>`. |\n| `sms` | `sender_id`, `template` | SMS zosta\u0142 zaakceptowany do dostarczenia przez sie\u0107 | Standardowe dostarczanie SMS. Mo\u017ce by\u0107 tylko **ostatnim** krokiem w strategii routingu. |\n\n**Zasady:**\n- Wymagany jest co najmniej jeden kana\u0142.\n- Zduplikowane kana\u0142y s\u0105 niedozwolone.\n- Kana\u0142 `sms` mo\u017ce by\u0107 tylko ostatnim krokiem (brak fallbacku po SMS).\n- Parametr `timeout_sec` ma zastosowanie tylko dla kana\u0142u `telegram`.\n\n### Optymalizacja koszt\u00f3w\n\nCa\u0142kowity koszt \u017c\u0105dania kodu weryfikacyjnego to **suma wszystkich wys\u0142anych wiadomo\u015bci** przez wszystkie kana\u0142y, kt\u00f3re zosta\u0142y spr\u00f3bowane \u2014 nawet je\u015bli niekt\u00f3re kana\u0142y nie powiod\u0142y si\u0119. Ka\u017cda pr\u00f3ba kana\u0142u wi\u0105\u017ce si\u0119 z kosztem za wiadomo\u015b\u0107.\n\n**Zalecenie:** Uporz\u0105dkuj strategi\u0119 routingu od najta\u0144szego do najdro\u017cszego kana\u0142u. Na przyk\u0142ad umie\u015b\u0107 `telegram` jako pierwszy (najni\u017cszy koszt), nast\u0119pnie `voice` i `sms` na ko\u0144cu. Dzi\u0119ki temu, je\u015bli ta\u0144szy kana\u0142 zako\u0144czy si\u0119 sukcesem, unikniesz p\u0142acenia za dro\u017csze.\n\n### Blokowanie i filtrowanie\n\nPrzed pr\u00f3b\u0105 dostarczenia system sprawdza numer telefonu odbiorcy pod k\u0105tem ogranicze\u0144 na poziomie konta:\n\n- **Zablokowane numery telefon\u00f3w**: Je\u015bli numer odbiorcy znajduje si\u0119 na Twojej li\u015bcie [zablokowanych numer\u00f3w](/#tag/blocked-numbers), wiadomo\u015b\u0107 nie zostanie wys\u0142ana.\n- **Filtry SMS**: Je\u015bli numer odbiorcy pasuje do kt\u00f3rego\u015b z Twoich [filtr\u00f3w SMS](/#tag/sms-filters), wiadomo\u015b\u0107 nie zostanie wys\u0142ana.\n\nGdy wiadomo\u015b\u0107 jest blokowana przez filtr lub zablokowany numer, krok kana\u0142u i og\u00f3lne zadanie otrzymuj\u0105 status `20` (Niepowodzenie). W tym przypadku nie nast\u0119puje pr\u00f3ba fallbacku do nast\u0119pnego kana\u0142u.\n\n### Kod weryfikacyjny\n\nKod weryfikacyjny to ci\u0105g numeryczny (4\u20138 cyfr) wysy\u0142any do odbiorcy:\n\n- **Kod niestandardowy**: Podaj w\u0142asny kod za pomoc\u0105 w\u0142a\u015bciwo\u015bci `code` (4\u20138 znak\u00f3w).\n- **Generowany automatycznie**: Je\u015bli `code` nie zostanie podany, generowany jest losowy kod numeryczny. Kontroluj d\u0142ugo\u015b\u0107 za pomoc\u0105 `code_length` (domy\u015blnie: 4, zakres: 4\u20138).\n\nU\u017cyj w\u0142a\u015bciwo\u015bci `template` dla ka\u017cdego kana\u0142u, aby dostosowa\u0107 tekst wiadomo\u015bci. Symbol zast\u0119pczy `{{code}}` jest zast\u0119powany rzeczywistym kodem weryfikacyjnym. Je\u015bli nie podano szablonu, u\u017cywana jest domy\u015blna przet\u0142umaczona wiadomo\u015b\u0107 na podstawie pola `lang`.\n\n### Bezpiecze\u0144stwo: Usuwanie kodu po wys\u0142aniu\n\nUstaw `is_code_deleted` na `true`, aby automatycznie usun\u0105\u0107 kod weryfikacyjny z pami\u0119ci LOX24 po wys\u0142aniu go do odbiorcy. Zapewnia to, \u017ce kod nie b\u0119dzie przechowywany w bazie danych po dostarczeniu.\n\n**WA\u017bNE:** Gdy `is_code_deleted` jest aktywne, pole `code` b\u0119dzie nieobecne w kolejnych odpowiedziach GET po zako\u0144czeniu zadania.\n\n### Kody statusu\n\nZar\u00f3wno og\u00f3lne zadanie, jak i ka\u017cdy pojedynczy kana\u0142 u\u017cywaj\u0105 tych samych warto\u015bci statusu, ale semantyka si\u0119 r\u00f3\u017cni:\n\n**Status zadania** (status najwy\u017cszego poziomu):\n\n| Status | Znaczenie |\n|--------|-----------|\n| `0` | Nowy \u2014 \u017c\u0105danie utworzone, jeszcze nieprzetworzone |\n| `5` | W toku \u2014 dostarczanie w course |\n| `10` | Sukces \u2014 kod pomy\u015blnie dostarczony przez co najmniej jeden kana\u0142 |\n| `20` | Niepowodzenie \u2014 dostarczanie nie powiod\u0142o si\u0119 przez **wszystkie** kana\u0142y |\n| `100` | B\u0142\u0105d \u2014 b\u0142\u0105d systemu |\n\n**Status kana\u0142u** (`history[].status`):\n\n| Status | Znaczenie |\n|--------|-----------|\n| `0` | Nowy \u2014 krok kana\u0142u utworzony, jeszcze nieprzetworzony |\n| `5` | W toku \u2014 wysy\u0142anie przez ten kana\u0142 |\n| `10` | Sukces \u2014 dostarczanie potwierdzone na tym kanale |\n| `20` | Niepowodzenie \u2014 dostarczanie nie powiod\u0142o si\u0119 na **tym** kanale |\n| `100` | B\u0142\u0105d \u2014 b\u0142\u0105d systemu na tym kanale |\n\n### Powiadomienia Webhook\n\nZdarzenia kod\u00f3w weryfikacyjnych mog\u0105 by\u0107 wysy\u0142ane do Twojego endpointu webhook. Dost\u0119pne s\u0105 nast\u0119puj\u0105ce zdarzenia:\n\n- `verify_code.success` \u2014 kod zosta\u0142 pomy\u015blnie dostarczony\n- `verify_code.failed` \u2014 dostarczanie nie powiod\u0142o si\u0119 przez wszystkie kana\u0142y\n- `verify_code.channel.sent` \u2014 kod wys\u0142any przez okre\u015blony kana\u0142\n- `verify_code.channel.success` \u2014 kana\u0142 potwierdzi\u0142 pomy\u015blne dostarczenie\n- `verify_code.channel.failed` \u2014 kana\u0142 nie m\u00f3g\u0142 dostarczy\u0107\n- `verify_code.channel.updated` \u2014 status kana\u0142u zaktualizowany\n\nZobacz sekcj\u0119 [Powiadomienia Webhook](/#tag/notifications), aby uzyska\u0107 wi\u0119cej informacji o konfiguracji endpoint\u00f3w webhook.\n"
        },
        {
            "name": "invoices",
            "x-displayName": "Faktury",
            "description": "Pobierz list\u0119 swoich faktur i not kredytowych. Obs\u0142ugiwane jest filtrowanie wed\u0142ug zakresu dat, statusu, typu p\u0142atno\u015bci, typu dokumentu i kwoty.\n"
        },
        {
            "name": "payments",
            "x-displayName": "P\u0142atno\u015bci",
            "description": "Tw\u00f3rz nowe p\u0142atno\u015bci i sprawdzaj ich status. Oferowane metody p\u0142atno\u015bci zale\u017c\u0105 od oceny Twojego konta.\n"
        },
        {
            "name": "credit_notes",
            "x-displayName": "Noty kredytowe",
            "description": "Noty kredytowe uwierzytelnionego u\u017cytkownika, wraz ze statusem, kwotami i szczeg\u00f3\u0142ami p\u0142atno\u015bci.\nNoty kredytowe mo\u017cna filtrowa\u0107 wed\u0142ug statusu, daty utworzenia, kwoty i daty p\u0142atno\u015bci.\nKa\u017cda nota kredytowa zawiera link do pobrania pliku PDF oraz odwo\u0142anie do powi\u0105zanej faktury.\n"
        },
        {
            "name": "release-notes",
            "x-displayName": "Informacje o wydaniu",
            "description": "Informacje o wydaniach informuj\u0105, co nowego pojawia si\u0119 w API. Jak zawsze, czekamy na Twoj\u0105 [opini\u0119](mailto:berlin@lox24.eu).\n\n### 2.28 (2026-10-30)\n\n#### Dodano\n\n- Nowa w\u0142a\u015bciwo\u015b\u0107 `format` dla endpoint\u00f3w powiadomie\u0144 e-mail: `json` (domy\u015blnie) wysy\u0142a payload zdarzenia jako tre\u015b\u0107 wiadomo\u015bci, `text` wysy\u0142a czyteln\u0105 tre\u015b\u0107 z podpisem LOX24 i do\u0142\u0105cza ten sam payload jako plik `lox24-{event}-{uuid}.json`.\n\n### 2.26 (2026-06-11)\n\n#### Dodano\n\n- Nowy Endpoint: `/pricelist/{country}`: Publiczny endpoint do pobierania cennik\u00f3w SMS. Zwraca ceny dla wszystkich dost\u0119pnych tras us\u0142ug (direct, text2speech, economy, pro) w formacie JSON, Excel lub CSV. Obs\u0142uguje filtrowanie wed\u0142ug waluty (EUR, CHF) i wieloj\u0119zyczne nazwy kraj\u00f3w (pl, en, de, es, pt). Zawiera wymagania dotycz\u0105ce wysy\u0142ki specyficzne dla kraju. Nie wymaga uwierzytelnienia.\n- Nowy Endpoint: `/me/pricelist/{country}`: Uwierzytelniony endpoint do pobierania spersonalizowanego cennika z indywidualnymi stawkami SMS. Zwraca pojedyncz\u0105 cen\u0119 za us\u0142ug\u0119 na podstawie poziomu cenowego u\u017cytkownika. Waluta pobierana z ustawie\u0144 konta, j\u0119zyk domy\u015blnie z profilu u\u017cytkownika. Dost\u0119pny w JSON, Excel lub CSV.\n\n### 2.25 (2026-06-07)\n\n#### Dodano\n\n- Nowy endpoint: `/verify_codes`: dodano dedykowane REST API do tworzenia i zarz\u0105dzania jednorazowymi kodami weryfikacyjnymi (OTP). Obs\u0142uguje wieloetapow\u0105 strategi\u0119 routingu (Telegram, po\u0142\u0105czenie g\u0142osowe, SMS) z automatycznym prze\u0142\u0105czaniem awaryjnym i kontrol\u0105 limit\u00f3w czasu.\n\n### 2.24 (2025-12-10)\n\n#### Dodano\n\n- Nowa w\u0142a\u015bciwo\u015b\u0107 `attempts_count_max` dla endpointu SMS: kontrola maksymalnej liczby pr\u00f3b dor\u0119czenia dla us\u0142ug g\u0142osowych (text2speech, text2speech_ssml). Akceptuje warto\u015bci 1, 2 lub 3 dla us\u0142ug g\u0142osowych, co pozwala precyzyjnie sterowa\u0107 ponawianiem po\u0142\u0105cze\u0144. Dla standardowych us\u0142ug SMS musi mie\u0107 warto\u015b\u0107 null.\n\n### 2.23 (2025-11-20)\n\n#### Zmieniono\n\n- Rozszerzono obs\u0142ug\u0119 j\u0119zyk\u00f3w wiadomo\u015bci g\u0142osowych z 5 do 20 j\u0119zyk\u00f3w. U\u017cytkownicy mog\u0105 teraz ustawi\u0107 `voice_lang` na dowolny z nast\u0119puj\u0105cych j\u0119zyk\u00f3w europejskich: EN, DE, FR, IT, ES, PL, NL, RO, PT, CS, HU, SV, DA, FI, SK, HR, TR, RU, BG, UK.\n- Ulepszono automatyczne wykrywanie j\u0119zyka. Zamiast analizy prefiksu numeru telefonu stosowana jest analiza tre\u015bci wiadomo\u015bci oparta na AI, gdy `voice_lang` ma warto\u015b\u0107 null.\n\n### 2.22 (2025-09-15)\n\n#### Dodano\n\n- Nowe zdarzenia webhook do zarz\u0105dzania subskrypcj\u0105 numer\u00f3w telefon\u00f3w: `phone.subscribe` i `phone.unsubscribe`\n- Dodano obs\u0142ug\u0119 adres\u00f3w IPv6 dla endpointu `POST /fraud-checks`\n\n\n### 2.21 (2025-09-10)\n\n#### Dodano\n\n- Nowy endpoint: `/blocked_numbers`: dodano dedykowane REST API do zarz\u0105dzania zablokowanymi numerami telefon\u00f3w w kampaniach SMS. Endpoint zapewnia pe\u0142n\u0105 funkcjonalno\u015b\u0107 CRUD do utrzymywania centralnej listy blokad numer\u00f3w telefon\u00f3w, kt\u00f3re nie powinny otrzymywa\u0107 wiadomo\u015bci SMS.\n\n### 2.20 (2025-08-20)\n\n#### Dodano\n\n- Nag\u0142\u00f3wki odpowiedzi - wszystkie odpowiedzi API zawieraj\u0105 teraz unikalny nag\u0142\u00f3wek `X-LOX24-REQUEST-ID` na potrzeby wsparcia i \u015bledzenia\n\n\n### 2.19 (2025-08-15)\n\n#### Zmieniono\n\n- Specyfikacja OpenAPI zosta\u0142a uporz\u0105dkowana - du\u017ca przebudowa wraz z napraw\u0105 wielu b\u0142\u0119d\u00f3w semantycznych\n- Renderowanie dokumentacji - dynamiczne renderowanie JSON OpenAPI w przegl\u0105darce zast\u0105piono statycznymi, skompilowanymi stronami HTML\n\n#### Dodano\n\n- Dokumentacja webhook\u00f3w - dodano kompleksowy opis webhook\u00f3w i szczeg\u00f3\u0142y implementacji\n- Nowe zdarzenia webhook do przetwarzania Email to SMS: `sms.email.parsing.success` i `sms.email.parsing.fail`\n\n### 2.18 (2024-10-03)\n\n#### Nowe\n\n- Dodano [funkcj\u0119 Email to single SMS](/info/email-to-sms/)\n\n\n### 2.17 (2023-06-28)\n\n#### Nowe\n\n- W\u0142a\u015bciwo\u015b\u0107 `is_text_deleted` wiadomo\u015bci SMS i wiadomo\u015bci masowych SMS w endpointach [Symulacja wys\u0142ania wiadomo\u015bci SMS (do test\u00f3w)](/api/operations/api_sms_post_collection/) i [Utworzenie wiadomo\u015bci masowej](/api/operations/api_bulks_post_collection/)\n- [W\u0142a\u015bciwo\u015b\u0107 `max_sms_parts` endpointu Email2Bulk](/info/email-to-sms/)\n- Powiadomienia o zdarzeniach `bulk.email.parsing.success` i `bulk.email.parsing.fail`\n- Dodano globaln\u0105 w\u0142a\u015bciwo\u015b\u0107 `is_text_deleted` do endpointu `GET /me`.\n\n### 2.16 (2023-01-09)\n\n#### Nowe\n\n- Dodano filtrowanie po w\u0142a\u015bciwo\u015bci `callback_data` endpointu [Pobiera kolekcj\u0119 wiadomo\u015bci SMS](/api/operations/api_sms_get_collection/)\n- [W\u0142a\u015bciwo\u015b\u0107 `max_sms_parts` endpointu Email2Bulk](/info/email-to-sms/)\n- Powiadomienia o zdarzeniach `bulk.email.parsing.success` i `bulk.email.parsing.fail`\n\n\n### 2.15 (2022-10-25)\n\n#### Nowe\n\n- Dodano w\u0142a\u015bciwo\u015b\u0107 adresu do [Fraud Detection API](/info/fraud-detection/)\n\n\n\n### 2.14 (2022-08-17)\n\n#### Nowe\n\n- Dodano w\u0142a\u015bciwo\u015bci tylko do odczytu numeru telefonu `subscribed_at`, `unsubscribed_at` i `unsubscribed_reason` (zobacz [Phone API](/api/operations/api_phones_get_item/)\n\n\n### 2.13 (2022-08-01)\n\n#### Nowe\n\n- Dodano [Fraud Detection API](/info/fraud-detection/)\n-\n\n### 2.12 (2022-05-05)\n\n#### Nowe\n\n- Dodano [funkcj\u0119 Email to SMS Bulk](/info/email-to-sms/)\n\n### 2.11 (2022-03-31)\n\n#### Nowe\n\n- Dodano funkcjonalno\u015b\u0107 kr\u00f3tkich link\u00f3w\n  - [Kampanie kr\u00f3tkich link\u00f3w](/info/campaigns/)\n  - [Listy kr\u00f3tkich link\u00f3w](/info/links/)\n  - [\u017b\u0105dania wed\u0142ug kr\u00f3tkich link\u00f3w](/info/requests/)\n  - [Statystyki wsp\u00f3\u0142czynnika klikni\u0119\u0107](/info/click-rate/)\n\n\n### 2.10 (2021-09-23)\n\n#### Nowe\n\n- Dodano endpoint [Usuni\u0119cie wiadomo\u015bci SMS przychodz\u0105cej](/api/operations/api_incomings_delete_item/)\n\n#### Poprawki\n- Lista wiadomo\u015bci SMS przychodz\u0105cych jest domy\u015blnie sortowana wed\u0142ug malej\u0105cych warto\u015bci pola ```received_at```.\n\n\n### 2.9 (2021-05-06)\n\n#### Nowe\n\n- Dodano mo\u017cliwo\u015b\u0107 uwierzytelniania za pomoc\u0105 nowej wersji klucza API\n  z jednym nag\u0142\u00f3wkiem ```X-LOX24-AUTH-TOKEN```; nag\u0142\u00f3wek ```X-LOX24-AUTH-CLIENT-ID``` jest przestarza\u0142y i niezalecany do stosowania.\n\n\n### 2.8.1 (2021-04-01)\n\n#### Nowe\n\n- Wiadomo\u015bci g\u0142osowe. Dodano w\u0142a\u015bciwo\u015b\u0107 ```voice_lang``` do obiekt\u00f3w \u017c\u0105da\u0144 i odpowiedzi wiadomo\u015bci SMS oraz wiadomo\u015bci masowych.\n\n### 2.8.0 (2021-02-21)\n\n#### Nowe\n\n- Tymczasowa blokada adresu IP po wielu nieudanych pr\u00f3bach uwierzytelnienia.\n\n### 2.7.1 (2021-02-16)\n\n#### Poprawki\n- Poprawiono opis \u017c\u0105dania w [Utworzenie wiadomo\u015bci masowej](/api/operations/api_bulks_post_collection/) i [Symulacja utworzenia wiadomo\u015bci masowej (do test\u00f3w)](/api/operations/api_bulks_post_dryrun_collection/)\n\n### 2.7 (2020-07-17)\n\n#### Nowe\n\n- Utworzono [emulacj\u0119 API Kannel](/info/kannel/).\n\n### 2.6 (2020-06-23)\n\n#### Nowe\n\n- Dodano mo\u017cliwo\u015b\u0107 wysy\u0142ania wiadomo\u015bci SMS z dodatkowymi danymi, kt\u00f3re zostan\u0105 przes\u0142ane z powrotem do endpointu DLR.\n\n### 2.5 (2020-06-10)\n\n#### Dla deweloper\u00f3w\n\n- Dodano przyk\u0142adowy kod dla endpoint\u00f3w Phones i Groups.\n\n### 2.4 (2020-05-29)\n\n#### Dla deweloper\u00f3w\n\n- Dodano przyk\u0142adowy kod w GoLang, Java i Python.\n\n### 2.3 (2020-05-25)\n\n#### Nowe\n\n- Dodano filtr boolowski listy wiadomo\u015bci masowych `GET /bulks` po w\u0142a\u015bciwo\u015bci `is_dryrun`.\n- Dodano w\u0142a\u015bciwo\u015b\u0107 znacznika czasu `balance_changed_at` do endpointu `GET /me`.\n\n### 2.2 (2020-05-19)\n\n#### Nowe\n\n- Utworzono endpointy `GET /incomings` i `GET /incomings/{id}` do pobierania informacji o wiadomo\u015bciach SMS przychodz\u0105cych i powi\u0105zanych.\n- W\u0142\u0105czono webhook raport\u00f3w DLR dla \u017c\u0105dania `POST /sms/dryrun`.\n- Dodano filtr *exact* po `key_id` w `GET /bulks` i `GET /sms`.\n\n\n#### Dla deweloper\u00f3w\n- Dodano przyk\u0142adowy kod w PHP, C# i Javascript dla endpoint\u00f3w `/sms`, `/bulks` i `/incomings`.\n- Dodano sekcj\u0119 [Wiadomo\u015bci przychodz\u0105ce SMS i odpowiedzi SMS](/info/inbound-and-reply-sms/) o wiadomo\u015bciach przychodz\u0105cych.\n\n#### Poprawki\n\n- Naprawiono b\u0142\u0105d zwi\u0105zany z przechowywaniem adresu IP, daty i godziny ostatniego u\u017cycia klucza API\n\n\n### 2.1 (2020-03-18)\n\n#### Nowe\n\n- Funkcja, kt\u00f3ra pomaga tworzy\u0107 [wiadomo\u015bci masowe SMS](/info/bulks/) jednym \u017c\u0105daniem HTTP:\n  - z szablonem tekstu i grupami kontakt\u00f3w\n  - wst\u0119pne obliczanie kosztu wiadomo\u015bci masowych SMS\n  - szybka odpowied\u017a serwera i asynchroniczne przetwarzanie\n  - mo\u017cliwo\u015b\u0107 anulowania wiadomo\u015bci masowych SMS nawet w trakcie przetwarzania\n- Nowy endpoint POST /groups/{id}/phones/batch\n  - \u0142\u0105czy wiele \u017c\u0105da\u0144 POST /groups/{id}/phones w jedno \u017c\u0105danie\n- Zaimplementowano filtry `GET /sms` po w\u0142a\u015bciwo\u015bci `bulk`\n- Zaimplementowano filtry `GET /bulks` po w\u0142a\u015bciwo\u015bci `source`\n- Dodano informacj\u0119 o identyfikatorze klucza API do odpowiedzi `sms` i `bulks`\n\n#### Poprawki\n\n- Dodano w\u0142a\u015bciwo\u015b\u0107 `price` do obiektu odpowiedzi SMS\n- Opis parametr\u00f3w autoryzacji w dokumentacji API\n\n### 2.0-beta (2019-12-15)\n\n#### Nowe\n\n- API v2.0 zosta\u0142o opracowane zgodnie ze standardami bran\u017cowymi, aby maksymalnie u\u0142atwi\u0107 integracj\u0119. Ponadto mo\u017cesz teraz przesy\u0142a\u0107 du\u017ce ilo\u015bci wiadomo\u015bci SMS jednym zapytaniem i w dowolnym momencie pobiera\u0107 szczeg\u00f3\u0142owe informacje o wiadomo\u015bciach.\n\n- Rozbudowana funkcjonalno\u015b\u0107 grup pozwala zarz\u0105dza\u0107 listami mailingowymi w naszej wydajnej chmurze i tym samym oszcz\u0119dza\u0107 w\u0142asne zasoby. Wszystko to nadal jest zgodne z europejskimi standardami ochrony danych oraz niemieck\u0105 ustaw\u0105 o telekomunikacji.\n\n#### Dla deweloper\u00f3w\n\nOpis nowego API znajdziesz na stronie https://doc.lox24.eu/\n"
        }
    ],
    "paths": {
        "/bulks": {
            "get": {
                "operationId": "api_bulks_get_collection",
                "tags": [
                    "bulks"
                ],
                "responses": {
                    "200": {
                        "description": "bulks collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "@context": {
                                            "$ref": "#/components/schemas/property._jsonld_context"
                                        },
                                        "@id": {
                                            "$ref": "#/components/schemas/property._jsonld_id"
                                        },
                                        "@type": {
                                            "$ref": "#/components/schemas/property._jsonld_type"
                                        },
                                        "totalItems": {
                                            "$ref": "#/components/schemas/hydra.totalItems"
                                        },
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.bulks.jsonld-bulk_read_status"
                                            }
                                        },
                                        "search": {
                                            "type": "object",
                                            "properties": {
                                                "@type": {
                                                    "type": "string"
                                                },
                                                "template": {
                                                    "type": "string"
                                                },
                                                "variableRepresentation": {
                                                    "type": "string"
                                                },
                                                "mapping": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "@type": {
                                                                "type": "string"
                                                            },
                                                            "variable": {
                                                                "type": "string"
                                                            },
                                                            "property": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "required": {
                                                                "type": "boolean"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                },
                                "examples": {
                                    "example_bulks_response_get": {
                                        "$ref": "#/components/examples/example_bulks_response_get_jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.bulks-bulk_read_status"
                                    }
                                },
                                "examples": {
                                    "example_bulks_response_get": {
                                        "$ref": "#/components/examples/example_bulks_response_get"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera kolekcj\u0119 wiadomo\u015bci masowych",
                "description": "Pobieranie listy wiadomo\u015bci masowych ze skrzynki nadawczej, uporz\u0105dkowanej wed\u0142ug pola `created_at` w kolejno\u015bci malej\u0105cej. Skrzynka nadawcza zawiera wszystkie wys\u0142ane, niewys\u0142ane i anulowane SMS-y. Opcjonalnie mo\u017cesz sortowa\u0107 tak\u017ce wed\u0142ug ceny lub czasu przekazania do operatora sieci. Masz r\u00f3wnie\u017c mo\u017cliwo\u015b\u0107 przekazania r\u00f3\u017cnych kryteri\u00f3w wyszukiwania, aby ograniczy\u0107 wynik wiadomo\u015bci ze skrzynki.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.uuid.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.uuid.exact"
                    },
                    {
                        "$ref": "#/components/parameters/order.common.created_at"
                    },
                    {
                        "$ref": "#/components/parameters/order.messages.delivery_at"
                    },
                    {
                        "$ref": "#/components/parameters/order.common.processed_at"
                    },
                    {
                        "$ref": "#/components/parameters/order.bulks.msg_total_count"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.text.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.sender_id.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.bulks.status_code.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.bulks.status_code.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.created_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.created_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.delivery_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.delivery_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.processed_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.processed_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.bulks.msg_total_count.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.bulks.msg_total_count.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.source.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.source.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.key_id.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.key_id.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.is_unicode.boolean"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.is_dryrun.boolean"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.is_unicode.exists"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/bulks \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/bulks?_order[created_at]=desc\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"bulks collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/bulks?sender_id=testsender\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.bulks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetBulksCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n        var url = \"https://api.lox24.eu/bulks?_order[created_at]=desc\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"bulks collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"created_at[gte]=1589713050&_order[created_at]=desc\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/bulks?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - bulks collection response');\n        res.on('data', d => {process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    }  else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/bulks';\n\n$filters = [\n    'sender_id' => 'test',\n    'created_at' => [\n        'gte' => 1588777845\n    ],\n    'page' => 1,\n    '_order' => [\n        'created_at' => 'desc'\n    ],\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\necho $uri;\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = \"https://api.lox24.eu/bulks?_order[created_at]=desc\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - bulks collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            },
            "post": {
                "operationId": "api_bulks_post_collection",
                "tags": [
                    "bulks"
                ],
                "responses": {
                    "201": {
                        "description": "bulks resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.bulks.jsonld-bulk_read"
                                },
                                "examples": {
                                    "example_bulks_response_post": {
                                        "$ref": "#/components/examples/example_bulks_response_post_jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.bulks-bulk_read"
                                },
                                "examples": {
                                    "example_bulks_response_post": {
                                        "$ref": "#/components/examples/example_bulks_response_post"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Tworzenie wiadomo\u015bci masowej",
                "description": "Utw\u00f3rz kampani\u0119 wiadomo\u015bci masowych, wysy\u0142aj\u0105c \u017c\u0105danie POST z danymi wiadomo\u015bci i informacjami o odbiorcach.",
                "parameters": [],
                "requestBody": {
                    "description": "The new bulks resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.bulks-bulk_write"
                            },
                            "examples": {
                                "example_bulks_request": {
                                    "$ref": "#/components/examples/example_bulks_request"
                                }
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/bulks \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n   -d '{\n\t\"sender_id\": \"testbulk\",\n    \"text\": \"test bulk text\",\n    \"service_code\": \"direct\",\n    \"phones\": [\"+49751234567\"],\n    \"msg_groups\": [7117],\n    \"delivery_at\": 1573724611,\n    \"is_unicode\": true,\n    \"source\": 1234,\n    \"voice_lang\": \"DE\"\n    }'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/bulks\";\n\n            var data = new {\n                sender_id = \"My Sender\",\n                text = \"Test message!\",\n                service_code = \"direct\",\n                phones = new string[]{\"+49751234567\", \"+49751234568\"},\n                msg_groups = new int[]{14514},\n                delivery_at = 1573724611,\n                is_unicode = true,\n                voice_lang = \"DE\"\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"bulks resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create bulk\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/bulks\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"sender_id\":    \"testbulk\",\n\t\t\"text\":         \"test bulk text\",\n\t\t\"service_code\": \"direct\",\n\t\t\"phones\":       []string{\"+49751234567\"},\n\t\t\"msg_groups\":   []int{7117},\n\t\t\"delivery_at\":  1593724611,\n\t\t\"is_unicode\":   true,\n\t\t\"source\":       1234,\n\t\t\"voice_lang\":   \"DE\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.bulks;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PostBulksCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/bulks\";\n\n        var json = new JSONObject();\n        json.put(\"sender_id\", \"My Sender\");\n        json.put(\"text\", \"Test message!\");\n        json.put(\"service_code\", \"direct\");\n        json.put(\"phones\", new String[]{\"+49751234567\", \"+49751234568\", \"+49751234569\"});\n        json.put(\"msg_groups\", new int[]{7116, 7117});\n        json.put(\"delivery_at\", 1573724611);\n        json.put(\"is_unicode\", true);\n        json.put(\"voice_lang\", \"DE\");\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"bulks resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create bulk\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    sender_id: 'My Sender',\n    text: 'Test message',\n    service_code: 'direct',\n    phones: ['+49751234567', '+344354634'],\n    msg_groups: [7117],\n    delivery_at: 1573724611,\n    is_unicode: true,\n    voice_lang: 'DE',\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/bulks',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - bulks resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.write(postdata);\nreq.end();\n\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/bulks';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    'sender_id' => 'testbulk',\n    'text' => 'test bulk text',\n    'service_code' => 'direct',\n    'phones' => ['+49751234567'],\n    'msg_groups' => [7117],\n    'delivery_at' => 1573724611,\n    'is_unicode' => true,\n    'source' => 1234,\n    'voice_lang' => 'DE',\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = \"https://api.lox24.eu/bulks\"\n\ndata = {\n    'sender_id': \"My Sender\",\n    'text' : \"Test message\",\n    'service_code' : \"direct\",\n    'phones': [\"+49751234567\", \"+49751234568\"],\n    'msg_groups': [14514],\n    'delivery_at': 1573724611,\n    'is_unicode': True,\n    'voice_lang' : \"DE\"\n}\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data: \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - bulks resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(\"Response: \", json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/bulks/dryrun": {
            "post": {
                "operationId": "api_bulks_post_dryrun_collection",
                "tags": [
                    "bulks"
                ],
                "responses": {
                    "201": {
                        "description": "bulks resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.bulks.jsonld-bulk_read"
                                },
                                "examples": {
                                    "example": {
                                        "$ref": "#/components/examples/example_bulks_response_post_jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.bulks-bulk_read"
                                },
                                "examples": {
                                    "example": {
                                        "$ref": "#/components/examples/example_bulks_response_post"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Symulacja utworzenia wiadomo\u015bci masowej (do test\u00f3w)",
                "description": "Ten endpoint s\u0142u\u017cy do cel\u00f3w testowych, aby symulowa\u0107 utworzenie wiadomo\u015bci masowej bez faktycznego tworzenia SMS-\u00f3w i przekazywania ich do operatora sieci za op\u0142at\u0105.",
                "parameters": [],
                "requestBody": {
                    "description": "The new bulks resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.bulks-bulk_write"
                            },
                            "examples": {
                                "example": {
                                    "$ref": "#/components/examples/example_bulks_request"
                                }
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/bulks/dryrun \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n   -d '{\n\t\"sender_id\": \"testbulk\",\n    \"text\": \"test bulk text\",\n    \"service_code\": \"direct\",\n    \"phones\": [\"+49751234567\"],\n    \"msg_groups\": [7117],\n    \"delivery_at\": 1573724611,\n    \"is_unicode\": true,\n    \"source\": 1234,\n    \"voice_lang\": \"DE\"\n    }'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/bulks/dryrun\";\n\n            var data = new {\n                sender_id = \"My Sender\",\n                text = \"Test message!\",\n                service_code = \"direct\",\n                phones = new string[]{\"+49751234567\", \"+49751234568\"},\n                msg_groups = new int[]{14514},\n                delivery_at = 1573724611,\n                is_unicode = true,\n                voice_lang = \"DE\"\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"bulks resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create bulk\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/bulks/dryrun\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"sender_id\":    \"testbulk\",\n\t\t\"text\":         \"test bulk text\",\n\t\t\"service_code\": \"direct\",\n\t\t\"phones\":       []string{\"+49751234567\"},\n\t\t\"msg_groups\":   []int{7117},\n\t\t\"delivery_at\":  1593724611,\n\t\t\"is_unicode\":   true,\n\t\t\"source\":       1234,\n\t\t\"voice_lang\":   \"DE\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.bulks;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PostDryRunBulksCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/bulks/dryrun\";\n\n        var json = new JSONObject();\n        json.put(\"sender_id\", \"My Sender\");\n        json.put(\"text\", \"Test message!\");\n        json.put(\"service_code\", \"direct\");\n        json.put(\"phones\", new String[]{\"+49751234567\", \"+49751234568\", \"+49751234569\"});\n        json.put(\"msg_groups\", new int[]{7116, 7117});\n        json.put(\"delivery_at\", 1573724611);\n        json.put(\"is_unicode\", true);\n        json.put(\"voice_lang\", \"DE\");\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"bulks resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create bulk\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    sender_id: 'My Sender',\n    text: 'Test message',\n    service_code: 'direct',\n    phones: ['+49751234567', '+344354634'],\n    msg_groups: [7117],\n    delivery_at: 1573724611,\n    is_unicode: true,\n    voice_lang: 'DE',\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/bulks/dryrun',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - bulks resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.write(postdata);\nreq.end();\n\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/bulks/dryrun';\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    'sender_id' => 'testbulk',\n    'text' => 'test bulk text',\n    'service_code' => 'direct',\n    'phones' => ['+49751234567'],\n    'msg_groups' => [7117],\n    'delivery_at' => 1573724611,\n    'is_unicode' => true,\n    'source' => 1234,\n    'voice_lang' => 'DE',\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = \"https://api.lox24.eu/bulks/dryrun\"\n\ndata = {\n    'sender_id': \"My Sender\",\n    'text' : \"Test message\",\n    'service_code' : \"direct\",\n    'phones': [\"+49751234567\", \"+49751234568\"],\n    'msg_groups': [14514],\n    'delivery_at': 1573724611,\n    'is_unicode': True,\n    'voice_lang' : \"DE\"\n}\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data: \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - bulks resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(\"Response: \", json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/bulks/{id}": {
            "get": {
                "operationId": "api_bulks_get_item",
                "tags": [
                    "bulks"
                ],
                "responses": {
                    "200": {
                        "description": "bulks resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.bulks.jsonld-bulk_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.bulks-bulk_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera pojedynczy wpis wiadomo\u015bci masowej",
                "description": "Pobieranie pojedynczej encji wiadomo\u015bci masowej wed\u0142ug identyfikatora (`uuid`). Je\u015bli wiadomo\u015b\u0107 masowa nie zostanie znaleziona, odpowied\u017a b\u0119dzie mia\u0142a kod HTTP 404.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.bulks.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/bulks/da0fa78c-4699-11ea-a637-96000028b339 \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n\n            string url = \"https://api.lox24.eu/bulks/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"bulks resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/bulks/981f6497-a03e-11ea-b2e9-b8ca3a65338c\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.bulks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetBulksItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n\n        var url = \"https://api.lox24.eu/bulks/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"bulks resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create bulk\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '34153580-982d-11ea-aa81-96000028b339';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/bulks/' + id,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - bulks resource response');\n        res.on('data', d => { process.stdout.write(d)})\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '11111111-2222-3333-4444-55555555555';\n$uri = 'https://api.lox24.eu/bulks/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Bulk with id = {$id} not found!\";\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nbulk_id = \"343c785b-8567-11ea-aa81-96000028b339\"\n\nurl = f'https://api.lox24.eu/bulks/{bulk_id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - bulks resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            },
            "delete": {
                "operationId": "api_bulks_delete_item",
                "tags": [
                    "bulks"
                ],
                "responses": {
                    "204": {
                        "$ref": "#/components/responses/204-deleted"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Usuwanie wiadomo\u015bci masowej",
                "description": "Usuwa encj\u0119 wiadomo\u015bci masowej wed\u0142ug identyfikatora. Odpowied\u017a endpointu nie zawiera tre\u015bci i ma kod HTTP 204, je\u015bli SMS zosta\u0142 usuni\u0119ty, lub 404, je\u015bli nie istnieje. Uwaga. Wiadomo\u015b\u0107 masowa jest r\u00f3wnie\u017c usuwana z zestawienia szczeg\u00f3\u0142owego. P\u00f3\u017aniejsze reklamacje s\u0105 zatem wykluczone z powodu braku mo\u017cliwo\u015bci weryfikacji.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Bulk ID",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X DELETE https://api.lox24.eu/bulks/da0fa78c-4699-11ea-a637-96000028b339 \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n            var id = \"851b600d-901e-11ea-aa81-96000028b339\";\n            string url = \"https://api.lox24.eu/bulks/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"DELETE\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    if(resp.StatusCode == HttpStatusCode.NoContent) { //204\n                        Console.WriteLine(\"Success: bulk was deleted\");\n                    } else {\n                        Console.WriteLine(\"Error: something went wrong, code({0})\", respCode);\n                        Stream respStream = resp.GetResponseStream();\n                        using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                        {\n                            string responseText = sr.ReadToEnd();\n\n                            JObject parsed = JObject.Parse(responseText);\n\n                            foreach (var pair in parsed)\n                            {\n                                Console.WriteLine(\"{0}: {1}\", pair.Key, pair.Value);\n                            }\n                        }\n                    }\n\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"DELETE\"\n\tconst URL = \"https://api.lox24.eu/bulks/981f6497-a03e-11ea-b2e9-b8ca3a65338c\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tswitch res.StatusCode {\n\tcase 204:\n\t\tfmt.Println(\"Bulk and related sms was deleted!\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.bulks;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class DeleteBulksItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n        var id = \"851b600d-901e-11ea-aa81-96000028b339\";\n        var url = \"https://api.lox24.eu/bulks/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .DELETE()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) {\n                System.out.println(\"Success: bulk was deleted\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: something went wrong \" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                JSONObject parsed = new JSONObject(httpResponse.body());\n\n                parsed.keys().forEachRemaining(jsonKey -> System.out.println(jsonKey + \":\" + parsed.get(jsonKey)));\n\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '20f39273-0566-11ea-a637-96000028b339';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/bulks/' + id,\n    method: 'DELETE',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 204) {\n        console.log(\"Success: code = 204 - bulks resource deleted\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    }  else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '11111111-2222-3333-4444-55555555555';\n$uri = 'https://api.lox24.eu/bulks/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_CUSTOMREQUEST => 'DELETE',\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\nif(204 === $code) {\n    echo \"Bulk with id = {$id} was deleted!\";\n} elseif(404 === $code) {\n    echo \"Bulk with id = {$id} not found!\";\n} else {\n    $data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nbulk_id = \"851b600d-901e-11ea-aa81-96000028b339\"\n\nurl = f'https://api.lox24.eu/bulks/{bulk_id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.delete(url, headers=headers, timeout=100)\n    if res.status_code != 204: # No Content\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - bulk was deleted')\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error: code = 404 -  Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/bulks/{id}/cancel": {
            "put": {
                "operationId": "api_bulks_put_cancel_item",
                "tags": [
                    "bulks"
                ],
                "responses": {
                    "200": {
                        "description": "bulks resource updated",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.bulks.jsonld-bulk_read_status"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.bulks-bulk_read_status"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Anulowanie przetwarzania wiadomo\u015bci masowej",
                "description": "Anuluje przetwarzanie wiadomo\u015bci masowej, je\u015bli ma ona `status_code = 0` (Nowa) lub `status_code = 5` i dotyczy wiadomo\u015bci nale\u017c\u0105cych do wysy\u0142ki masowej z `is_sent = False`",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.bulks.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X PUT https://api.lox24.eu/bulks/da0fa78c-4699-11ea-a637-96000028b339/cancel \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string id = \"984af866-902e-11ea-aa81-96000028b339\";\n            string url = \"https://api.lox24.eu/bulks/\" + id + \"/cancel\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000; //this can cause issues which is why we are manually setting this\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"PUT\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    if(resp.StatusCode == HttpStatusCode.OK) {\n                        Console.WriteLine(\"Success: bulk {0} was canceled!\", id);\n                    } else {\n                        Console.WriteLine(\"Error: bulk {0} wasn't canceled, code = {0}\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"PUT\"\n\tconst URL = \"https://api.lox24.eu/bulks/52a84594-9a7b-11ea-b2e9-b8ca3a65338c/cancel\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.bulks;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PutCancelBulksItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n        var url = \"https://api.lox24.eu/bulks/\" + id + \"/cancel\";\n\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .PUT(HttpRequest.BodyPublishers.noBody())\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"bulks resource updated\");\n\n                JSONObject parsed = new JSONObject(httpResponse.body());\n\n                parsed.keys().forEachRemaining(jsonKey -> System.out.println(jsonKey + \":\" + parsed.get(jsonKey)));\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on update bulks\");\n\n                switch (httpResponse.statusCode()) {\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '4897749e-982d-11ea-aa81-96000028b339';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/bulks/' + id + '/cancel',\n    method: 'PUT',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log(\"Success: code = 204 - bulks resource processing canceled\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    }  else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '11111111-2222-3333-4444-55555555555';\n$uri = 'https://api.lox24.eu/bulks/' . $id  . '/cancel';\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_CUSTOMREQUEST => 'PUT',\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo \"Bulk with id = {$id} was canceled: \" . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Bulk with id = {$id} not found!\";\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nbulk_id = \"343c785b-8567-11ea-aa81-96000028b339\"\n\nurl = f'https://api.lox24.eu/bulks/{bulk_id}/cancel'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.put(url, headers=headers, timeout=100)\n    if res.status_code != 200: # Ok\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - bullks resource updated')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(res.text)\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/bulks/{id}/status": {
            "get": {
                "operationId": "get_status",
                "tags": [
                    "bulks"
                ],
                "responses": {
                    "200": {
                        "description": "bulks resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.bulks.jsonld-bulk_read_status"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.bulks-bulk_read_status"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera bie\u017c\u0105cy status wpisu wiadomo\u015bci masowej",
                "description": "Pobieranie kr\u00f3tkich informacji o statusie wiadomo\u015bci masowej",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.bulks.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/bulks/da0fa78c-4699-11ea-a637-96000028b339/status \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n\n            string url = \"https://api.lox24.eu/bulks/\" + id + \"/status\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"bulk status resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/bulks/981f6497-a03e-11ea-b2e9-b8ca3a65338c/status\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.bulks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetBulksItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n\n        var url = \"https://api.lox24.eu/bulks/\" + id + \"/status\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"bulks resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create bulk\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '4897749e-982d-11ea-aa81-96000028b339';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/bulks/' + id + '/status',\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - bulks resource response');\n        res.on('data', d => { process.stdout.write(d)})\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '11111111-2222-3333-4444-55555555555';\n$uri = 'https://api.lox24.eu/bulks/' . $id . '/status';\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Bulk with id = {$id} not found!\";\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nbulk_id = \"343c785b-8567-11ea-aa81-96000028b339\"\n\nurl = f'https://api.lox24.eu/bulks/{bulk_id}/status'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - bulks resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/me": {
            "get": {
                "operationId": "getAccountInfo",
                "tags": [
                    "user"
                ],
                "responses": {
                    "200": {
                        "description": "client resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.client.jsonld-get"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.client-get"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Informacje o profilu u\u017cytkownika",
                "description": "Za pomoc\u0105 tego interfejsu mo\u017cesz sprawdzi\u0107 saldo swojego konta. W przypadku konta przedp\u0142aconego\notrzymasz dost\u0119pne saldo (bez VAT). W przypadku konta z odroczonym terminem p\u0142atno\u015bci otrzymasz pozosta\u0142y limit\nkredytu na SMS-y. Odpowied\u017a na zapytanie zawiera r\u00f3wnie\u017c informacje o dost\u0119pnych us\u0142ugach SMS i Twoich grupach.",
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/me \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/me\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"client resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                //int errorCode = int.Parse(Regex.Replace(ex.Message, @\"\\D\", \"\"));\n                switch (webResponse.StatusCode)\n                {\n\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/me\"\n\tconst Token = \"1234567:1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.user;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetAccountInfo {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/me\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\")\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder().build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"client resource response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error:\" + httpResponse.statusCode());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/me',\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - client resource response');\n        res.on('data', d => {\n            process.stdout.write(d)\n        })\n    } else {\n        console.log(`statusCode: ${res.statusCode}`)\n        if (res.statusCode == 200) {\n            console.log(\"Success: code = 200 - bulks collection response\");\n        } else if (res.statusCode  == 401) {\n            console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n        } else if (res.statusCode  == 403) {\n            console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n        }  else {\n            console.log(\"Error: code = \" + res.statusCode );\n        }\n    }\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/me';\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\ntoken = \"4f8432430c640ee96c9f8a3eb880d477\"\nclient_id = \"3\"\n\nurl = 'https://api.lox24.eu/me'\n\n\nheaders = {\n    'Accept': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print('Success: code = 200 - client resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/me/pricelist/{country}": {
            "get": {
                "operationId": "getUserPricelist",
                "tags": [
                    "pricelist"
                ],
                "summary": "Indywidualny cennik u\u017cytkownika",
                "description": "Pobierz sw\u00f3j indywidualny cennik z osobistymi stawkami SMS. Zwraca jedn\u0105 cen\u0119 za us\u0142ug\u0119 na podstawie poziomu cen Twojego konta. Podaj dwuliterowy kod kraju ISO (np. DE, CH) lub 'all' dla wszystkich kraj\u00f3w. Wymaga uwierzytelnienia.",
                "parameters": [
                    {
                        "name": "country",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Za-z]{2}$|^all$"
                        },
                        "description": "Dwuliterowy kod kraju ISO lub 'all' dla wszystkich kraj\u00f3w"
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "json",
                                "xlsx",
                                "csv"
                            ],
                            "default": "json"
                        },
                        "description": "Format wyj\u015bciowy"
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "en",
                                "de",
                                "es",
                                "pt",
                                "pl"
                            ],
                            "default": "en"
                        },
                        "description": "J\u0119zyk nazw kraj\u00f3w"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "User-specific price list",
                        "content": {
                            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "text/csv": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.user_pricelist"
                                },
                                "examples": {
                                    "user_pricelist": {
                                        "$ref": "#/components/examples/user_pricelist"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/me/pricelist/de?lang=de' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jq\n",
                        "label": "Bash - Get user prices for Germany"
                    },
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/me/pricelist/all?format=xlsx&lang=de' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' -o lox24_user_pricelist_all.xlsx\n",
                        "label": "Bash - Download all user prices in Excel"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.Net.Http;\nusing System.Net.Http.Headers;\nusing System.Threading.Tasks;\n\nclass Program\n{\n    static async Task Main()\n    {\n        using var client = new HttpClient();\n        client.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\n\n        string url = \"https://api.lox24.eu/me/pricelist/de?lang=de\";\n        var response = await client.GetStringAsync(url);\n        Console.WriteLine(response);\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\turl := \"https://api.lox24.eu/me/pricelist/de?lang=de\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\treq.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n\n\tresp, _ := http.DefaultClient.Do(req)\n\tdefer resp.Body.Close()\n\n\tbody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(body))\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        var url = \"https://api.lox24.eu/me/pricelist/de?lang=de\";\n\n        var request = HttpRequest.newBuilder()\n            .uri(URI.create(url))\n            .header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n            .GET()\n            .build();\n\n        var response = HttpClient.newHttpClient()\n            .send(request, HttpResponse.BodyHandlers.ofString());\n\n        System.out.println(response.body());\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const url = 'https://api.lox24.eu/me/pricelist/de?lang=de';\n\nfetch(url, {\n    headers: {\n        'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'\n    }\n})\n.then(response => response.json())\n.then(data => console.log(JSON.stringify(data, null, 2)));\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/me/pricelist/de?lang=de';\n$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL, $uri);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN',\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\n\necho $response;\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests\n\nurl = 'https://api.lox24.eu/me/pricelist/de'\nheaders = {'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}\nparams = {'lang': 'de'}\n\nresponse = requests.get(url, headers=headers, params=params)\nprint(response.json())\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/pricelist/{country}": {
            "get": {
                "operationId": "getPricelist",
                "tags": [
                    "pricelist"
                ],
                "security": [],
                "summary": "Eksport cennika",
                "description": "Pobierz cennik us\u0142ug SMS. Zwraca ceny dla tras Direct i Text2Speech w formacie JSON, XLSX lub CSV. Podaj dwuliterowy kod kraju ISO (np. DE, CH) lub 'all' dla wszystkich kraj\u00f3w. Odpowied\u017a zawiera walut\u0119 i wymagania specyficzne dla kraju.",
                "parameters": [
                    {
                        "name": "country",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Za-z]{2}$|^all$"
                        },
                        "description": "Dwuliterowy kod kraju ISO lub 'all' dla wszystkich kraj\u00f3w"
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "json",
                                "xlsx",
                                "csv"
                            ],
                            "default": "json"
                        },
                        "description": "Format wyj\u015bciowy"
                    },
                    {
                        "name": "currency",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "EUR",
                                "CHF"
                            ],
                            "default": "EUR"
                        },
                        "description": "Waluta cen"
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "en",
                                "de",
                                "es",
                                "pt",
                                "pl"
                            ],
                            "default": "en"
                        },
                        "description": "J\u0119zyk nazw kraj\u00f3w"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Price list file",
                        "content": {
                            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "text/csv": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.pricelist"
                                },
                                "examples": {
                                    "pricelist": {
                                        "$ref": "#/components/examples/pricelist"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    }
                },
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -s 'https://api.lox24.eu/pricelist/de?currency=chf&lang=de'\n",
                        "label": "Bash - Get prices for Germany in CHF"
                    },
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -s 'https://api.lox24.eu/pricelist/all?format=xlsx&currency=eur&lang=de' -o lox24_pricelist_eur_all.xlsx\n",
                        "label": "Bash - Download all prices in Excel"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class Pricelist\n    {\n        static void Main()\n        {\n            string url = \"https://api.lox24.eu/pricelist/de?currency=chf&lang=de\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.Method = \"GET\";\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    using (StreamReader sr = new StreamReader(resp.GetResponseStream(), Encoding.UTF8))\n                    {\n                        Console.WriteLine(sr.ReadToEnd());\n                    }\n                }\n            }\n            catch (WebException ex)\n            {\n                var webResponse = ex.Response as HttpWebResponse;\n                Console.WriteLine(\"Error: \" + webResponse.StatusCode);\n                using (StreamReader sr = new StreamReader(webResponse.GetResponseStream(), Encoding.UTF8))\n                {\n                    Console.WriteLine(sr.ReadToEnd());\n                }\n            }\n        }\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\turl := \"https://api.lox24.eu/pricelist/de?currency=chf&lang=de\"\n\n\tres, err := http.Get(url)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n\tbody, err := io.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tif res.StatusCode == 200 {\n\t\tfmt.Println(string(body))\n\t} else {\n\t\tfmt.Printf(\"Error: %d\\n%s\\n\", res.StatusCode, string(body))\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.user;\n\nimport java.io.IOException;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetPricelist {\n\n    public static void main(String[] args) {\n\n        var url = \"https://api.lox24.eu/pricelist/de?currency=chf&lang=de\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder().build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == 200) {\n                System.out.println(httpResponse.body());\n            } else {\n                System.out.println(\"Error: \" + httpResponse.statusCode());\n                System.out.println(httpResponse.body());\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const https = require('https');\n\nconst url = 'https://api.lox24.eu/pricelist/de?currency=chf&lang=de';\n\nhttps.get(url, res => {\n    let data = '';\n    res.on('data', chunk => data += chunk);\n    res.on('end', () => {\n        if (res.statusCode === 200) {\n            console.log(JSON.parse(data));\n        } else {\n            console.log(`Error: ${res.statusCode}`);\n            console.log(data);\n        }\n    });\n}).on('error', err => {\n    console.error(err);\n});\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/pricelist/de?currency=chf&lang=de';\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, true);\n\nif (200 === $code) {\n    echo json_encode($data, JSON_PRETTY_PRINT);\n} else {\n    echo \"Error: code = {$code}\\n\" . $response;\n}\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\nurl = 'https://api.lox24.eu/pricelist/de'\nparams = {'currency': 'chf', 'lang': 'de'}\n\ntry:\n    res = requests.get(url, params=params, timeout=100)\n    res.raise_for_status()\n    print(json.dumps(res.json(), indent=4))\nexcept requests.HTTPError:\n    print(f'Error: {res.status_code}')\n    print(res.text)\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/invoices": {
            "get": {
                "operationId": "getInvoices",
                "tags": [
                    "invoices"
                ],
                "responses": {
                    "200": {
                        "description": "Invoice collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": true,
                                    "properties": {
                                        "@context": {
                                            "oneOf": [
                                                {
                                                    "type": "string"
                                                },
                                                {
                                                    "type": "object"
                                                }
                                            ],
                                            "description": "JSON-LD context"
                                        },
                                        "@id": {
                                            "type": "string",
                                            "description": "JSON-LD ID"
                                        },
                                        "@type": {
                                            "type": "string",
                                            "description": "JSON-LD type"
                                        },
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.invoice.jsonld-invoice_read_item"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "$ref": "#/components/schemas/hydra.totalItems"
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    }
                                },
                                "examples": {
                                    "invoices_jsonld": {
                                        "$ref": "#/components/examples/invoices.jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.invoice-invoice_read_item"
                                    }
                                },
                                "examples": {
                                    "invoices_json": {
                                        "$ref": "#/components/examples/invoices"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista faktur",
                "description": "Zwraca paginowan\u0105 list\u0119 faktur dla uwierzytelnionego u\u017cytkownika. Obs\u0142uguje filtrowanie wed\u0142ug statusu, typu p\u0142atno\u015bci, zakresu dat, zakresu kwot i konkretnych identyfikator\u00f3w.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.common.created_at"
                    },
                    {
                        "$ref": "#/components/parameters/order.accounting.amount"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.status.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.payment_type.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.id.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.id.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.created_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.created_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.amount.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.amount.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.paid_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.paid_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.paid_at.exists"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/invoices' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jq\n",
                        "label": "Bash - List invoices"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.Net.Http;\nusing System.Net.Http.Headers;\nusing System.Threading.Tasks;\n\nclass Program\n{\n    static async Task Main()\n    {\n        using var client = new HttpClient();\n        client.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\n\n        var response = await client.GetStringAsync(\"https://api.lox24.eu/invoices\");\n        Console.WriteLine(response);\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\treq, _ := http.NewRequest(\"GET\", \"https://api.lox24.eu/invoices\", nil)\n\treq.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n\n\tresp, _ := http.DefaultClient.Do(req)\n\tdefer resp.Body.Close()\n\tbody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(body))\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        var client = HttpClient.newHttpClient();\n        var request = HttpRequest.newBuilder()\n                .uri(URI.create(\"https://api.lox24.eu/invoices\"))\n                .header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n                .GET()\n                .build();\n\n        var response = client.send(request, HttpResponse.BodyHandlers.ofString());\n        System.out.println(response.body());\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "fetch('https://api.lox24.eu/invoices', {\n    headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN' }\n})\n.then(res => res.json())\n.then(console.log);\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$ch = curl_init('https://api.lox24.eu/invoices');\ncurl_setopt($ch, CURLOPT_HTTPHEADER, ['X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN']);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($ch);\ncurl_close($ch);\n\necho $response;\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests\n\nresponse = requests.get(\n    'https://api.lox24.eu/invoices',\n    headers={'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}\n)\nprint(response.json())\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/invoices/{id}": {
            "get": {
                "operationId": "getInvoiceById",
                "tags": [
                    "invoices"
                ],
                "responses": {
                    "200": {
                        "description": "Invoice resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.invoice.jsonld-invoice_read_item"
                                },
                                "examples": {
                                    "invoice_jsonld": {
                                        "$ref": "#/components/examples/invoice.jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.invoice-invoice_read_item"
                                },
                                "examples": {
                                    "invoice_json": {
                                        "$ref": "#/components/examples/invoice"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobierz szczeg\u00f3\u0142y faktury",
                "description": "Zwraca szczeg\u00f3\u0142owe informacje o wybranej fakturze. Wymaga uwierzytelnienia; zwraca wy\u0142\u0105cznie dokumenty nale\u017c\u0105ce do uwierzytelnionego u\u017cytkownika.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.accounting.invoice_id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/invoices/34101' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jq\n",
                        "label": "Bash - Get invoice"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.Net.Http;\nusing System.Net.Http.Headers;\nusing System.Threading.Tasks;\n\nclass Program\n{\n    static async Task Main()\n    {\n        using var client = new HttpClient();\n        client.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\n\n        var response = await client.GetStringAsync(\"https://api.lox24.eu/invoices/34101\");\n        Console.WriteLine(response);\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\treq, _ := http.NewRequest(\"GET\", \"https://api.lox24.eu/invoices/34101\", nil)\n\treq.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n\n\tresp, _ := http.DefaultClient.Do(req)\n\tdefer resp.Body.Close()\n\tbody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(body))\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        var client = HttpClient.newHttpClient();\n        var request = HttpRequest.newBuilder()\n                .uri(URI.create(\"https://api.lox24.eu/invoices/34101\"))\n                .header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n                .GET()\n                .build();\n\n        var response = client.send(request, HttpResponse.BodyHandlers.ofString());\n        System.out.println(response.body());\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "fetch('https://api.lox24.eu/invoices/34101', {\n    headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN' }\n})\n.then(res => res.json())\n.then(console.log);\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$ch = curl_init('https://api.lox24.eu/invoices/34101');\ncurl_setopt($ch, CURLOPT_HTTPHEADER, ['X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN']);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($ch);\ncurl_close($ch);\n\necho $response;\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests\n\nresponse = requests.get(\n    'https://api.lox24.eu/invoices/34101',\n    headers={'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}\n)\nprint(response.json())\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/invoices/{id}/pdf": {
            "get": {
                "operationId": "getInvoicePdf",
                "tags": [
                    "invoices"
                ],
                "responses": {
                    "200": {
                        "description": "Invoice PDF file",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobierz PDF faktury",
                "description": "Pobiera plik PDF wybranej faktury. Wymaga uwierzytelnienia; zwraca wy\u0142\u0105cznie dokumenty nale\u017c\u0105ce do uwierzytelnionego u\u017cytkownika.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.accounting.invoice_id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/invoices/34101/pdf' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' --output invoice.pdf\n",
                        "label": "Bash - Download PDF"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.Net.Http;\nusing System.Net.Http.Headers;\nusing System.IO;\nusing System.Threading.Tasks;\n\nclass Program\n{\n    static async Task Main()\n    {\n        using var client = new HttpClient();\n        client.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\n\n        var response = await client.GetByteArrayAsync(\"https://api.lox24.eu/invoices/34101/pdf\");\n        await File.WriteAllBytesAsync(\"invoice.pdf\", response);\n        Console.WriteLine(\"PDF saved to invoice.pdf\");\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n\t\"os\"\n)\n\nfunc main() {\n\treq, _ := http.NewRequest(\"GET\", \"https://api.lox24.eu/invoices/34101/pdf\", nil)\n\treq.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n\n\tresp, _ := http.DefaultClient.Do(req)\n\tdefer resp.Body.Close()\n\tbody, _ := io.ReadAll(resp.Body)\n\tos.WriteFile(\"invoice.pdf\", body, 0644)\n\tfmt.Println(\"PDF saved to invoice.pdf\")\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        var client = HttpClient.newHttpClient();\n        var request = HttpRequest.newBuilder()\n                .uri(URI.create(\"https://api.lox24.eu/invoices/34101/pdf\"))\n                .header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n                .GET()\n                .build();\n\n        var response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());\n        Files.write(Path.of(\"invoice.pdf\"), response.body());\n        System.out.println(\"PDF saved to invoice.pdf\");\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "fetch('https://api.lox24.eu/invoices/34101/pdf', {\n    headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN' }\n})\n.then(res => res.blob())\n.then(blob => {\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'invoice.pdf';\n    a.click();\n});\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$ch = curl_init('https://api.lox24.eu/invoices/34101/pdf');\ncurl_setopt($ch, CURLOPT_HTTPHEADER, ['X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN']);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$pdf = curl_exec($ch);\ncurl_close($ch);\n\nfile_put_contents('invoice.pdf', $pdf);\necho \"PDF saved to invoice.pdf\\n\";\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests\n\nresponse = requests.get(\n    'https://api.lox24.eu/invoices/34101/pdf',\n    headers={'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}\n)\nwith open('invoice.pdf', 'wb') as f:\n    f.write(response.content)\nprint('PDF saved to invoice.pdf')\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/credit_notes": {
            "get": {
                "operationId": "getCreditNotes",
                "tags": [
                    "credit_notes"
                ],
                "responses": {
                    "200": {
                        "description": "Credit Note collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": true,
                                    "properties": {
                                        "@context": {
                                            "oneOf": [
                                                {
                                                    "type": "string"
                                                },
                                                {
                                                    "type": "object"
                                                }
                                            ],
                                            "description": "JSON-LD context"
                                        },
                                        "@id": {
                                            "type": "string",
                                            "description": "JSON-LD ID"
                                        },
                                        "@type": {
                                            "type": "string",
                                            "description": "JSON-LD type"
                                        },
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.credit_note.jsonld-credit_note_read_item"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "$ref": "#/components/schemas/hydra.totalItems"
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    }
                                },
                                "examples": {
                                    "credit_notes_jsonld": {
                                        "$ref": "#/components/examples/credit_notes.jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.credit_note-credit_note_read_item"
                                    }
                                },
                                "examples": {
                                    "credit_notes_json": {
                                        "$ref": "#/components/examples/credit_notes"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista not kredytowych",
                "description": "Zwraca paginowan\u0105 list\u0119 not kredytowych dla uwierzytelnionego u\u017cytkownika. Obs\u0142uguje filtrowanie wed\u0142ug statusu, typu p\u0142atno\u015bci, zakresu dat, zakresu kwot i konkretnych identyfikator\u00f3w.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.common.created_at"
                    },
                    {
                        "$ref": "#/components/parameters/order.accounting.amount"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.status.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.payment_type.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.id.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.id.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.created_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.created_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.amount.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.amount.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.paid_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.paid_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.paid_at.exists"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/credit_notes' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jq\n",
                        "label": "Bash - List credit notes"
                    },
                    {
                        "lang": "csharp",
                        "source": "using var client = new HttpClient();\nclient.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\nvar response = await client.GetStringAsync(\"https://api.lox24.eu/credit_notes\");\nConsole.WriteLine(response);\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\nimport (\"fmt\"; \"net/http\"; \"io\")\nfunc main() {\n    req, _ := http.NewRequest(\"GET\", \"https://api.lox24.eu/credit_notes\", nil)\n    req.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n    resp, _ := http.DefaultClient.Do(req)\n    body, _ := io.ReadAll(resp.Body)\n    fmt.Println(string(body))\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.http.*;\nimport java.net.URI;\nvar request = HttpRequest.newBuilder().uri(URI.create(\"https://api.lox24.eu/credit_notes\")).header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\").build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "fetch('https://api.lox24.eu/credit_notes', {headers: {'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}}).then(r => r.json()).then(console.log)\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n$ch = curl_init(\"https://api.lox24.eu/credit_notes\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\"X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN\"]);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\necho curl_exec($ch);\ncurl_close($ch);\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests; r = requests.get(\"https://api.lox24.eu/credit_notes\", headers={\"X-LOX24-AUTH-TOKEN\": \"YOUR_API_TOKEN\"}); print(r.json())\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/credit_notes/{id}": {
            "get": {
                "operationId": "getCreditNoteById",
                "tags": [
                    "credit_notes"
                ],
                "responses": {
                    "200": {
                        "description": "Credit Note resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.credit_note.jsonld-credit_note_read_item"
                                },
                                "examples": {
                                    "credit_note_jsonld": {
                                        "$ref": "#/components/examples/credit_note.jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.credit_note-credit_note_read_item"
                                },
                                "examples": {
                                    "credit_note_json": {
                                        "$ref": "#/components/examples/credit_note"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobierz szczeg\u00f3\u0142y noty kredytowej",
                "description": "Zwraca szczeg\u00f3\u0142owe informacje o wybranej nocie kredytowej. Wymaga uwierzytelnienia; zwraca wy\u0142\u0105cznie dokumenty nale\u017c\u0105ce do uwierzytelnionego u\u017cytkownika.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.accounting.credit_note_id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/credit_notes/7' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jq\n",
                        "label": "Bash - Get credit note"
                    },
                    {
                        "lang": "csharp",
                        "source": "using var client = new HttpClient();\nclient.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\nvar response = await client.GetStringAsync(\"https://api.lox24.eu/credit_notes/7\");\nConsole.WriteLine(response);\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\nimport (\"fmt\"; \"net/http\"; \"io\")\nfunc main() {\n    req, _ := http.NewRequest(\"GET\", \"https://api.lox24.eu/credit_notes/7\", nil)\n    req.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n    resp, _ := http.DefaultClient.Do(req)\n    body, _ := io.ReadAll(resp.Body)\n    fmt.Println(string(body))\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.http.*;\nimport java.net.URI;\nvar request = HttpRequest.newBuilder().uri(URI.create(\"https://api.lox24.eu/credit_notes/7\")).header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\").build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "fetch('https://api.lox24.eu/credit_notes/7', {headers: {'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}}).then(r => r.json()).then(console.log)\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n$ch = curl_init(\"https://api.lox24.eu/credit_notes/7\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\"X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN\"]);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\necho curl_exec($ch);\ncurl_close($ch);\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests; r = requests.get(\"https://api.lox24.eu/credit_notes/7\", headers={\"X-LOX24-AUTH-TOKEN\": \"YOUR_API_TOKEN\"}); print(r.json())\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/credit_notes/{id}/pdf": {
            "get": {
                "operationId": "getCreditNotePdf",
                "tags": [
                    "credit_notes"
                ],
                "responses": {
                    "200": {
                        "description": "Credit Note PDF file",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobierz PDF noty kredytowej",
                "description": "Pobiera plik PDF wybranej noty kredytowej. Wymaga uwierzytelnienia; zwraca wy\u0142\u0105cznie dokumenty nale\u017c\u0105ce do uwierzytelnionego u\u017cytkownika.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.accounting.credit_note_id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/credit_notes/7/pdf' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' --output credit_note.pdf\n",
                        "label": "Bash - Download PDF"
                    },
                    {
                        "lang": "csharp",
                        "source": "using var client = new HttpClient();\nclient.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\nvar response = await client.GetByteArrayAsync(\"https://api.lox24.eu/credit_notes/7/pdf\");\nawait File.WriteAllBytesAsync(\"credit_note.pdf\", response);\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\nimport (\"net/http\"; \"os\"; \"io\")\nfunc main() {\n    req, _ := http.NewRequest(\"GET\", \"https://api.lox24.eu/credit_notes/7/pdf\", nil)\n    req.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n    resp, _ := http.DefaultClient.Do(req)\n    f, _ := os.Create(\"credit_note.pdf\")\n    io.Copy(f, resp.Body)\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.http.*;\nimport java.net.URI;\nimport java.nio.file.*;\nvar request = HttpRequest.newBuilder().uri(URI.create(\"https://api.lox24.eu/credit_notes/7/pdf\")).header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\").build();\nvar response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofByteArray());\nFiles.write(Path.of(\"credit_note.pdf\"), response.body());\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "fetch('https://api.lox24.eu/credit_notes/7/pdf', {headers: {'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}}).then(r => r.blob()).then(b => { /* save blob */ })\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n$ch = curl_init(\"https://api.lox24.eu/credit_notes/7/pdf\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\"X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN\"]);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\nfile_put_contents(\"credit_note.pdf\", curl_exec($ch));\ncurl_close($ch);\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests; r = requests.get(\"https://api.lox24.eu/credit_notes/7/pdf\", headers={\"X-LOX24-AUTH-TOKEN\": \"YOUR_API_TOKEN\"}); open(\"credit_note.pdf\", \"wb\").write(r.content)\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/payments": {
            "get": {
                "operationId": "getPayments",
                "tags": [
                    "payments"
                ],
                "summary": "Lista pr\u00f3b p\u0142atno\u015bci",
                "description": "Zwraca paginowan\u0105 list\u0119 pr\u00f3b p\u0142atno\u015bci dla uwierzytelnionego u\u017cytkownika. Obs\u0142uguje filtrowanie wed\u0142ug statusu, typu p\u0142atno\u015bci, zakresu dat i konkretnych identyfikator\u00f3w.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.common.created_at"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.payment_status.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.payments_payment_type.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.payment_id.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.payment_id.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.payment_created_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.accounting.payment_created_at.array"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Payment collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": true,
                                    "properties": {
                                        "@context": {
                                            "oneOf": [
                                                {
                                                    "type": "string"
                                                },
                                                {
                                                    "type": "object"
                                                }
                                            ],
                                            "description": "JSON-LD context"
                                        },
                                        "@id": {
                                            "type": "string",
                                            "description": "JSON-LD ID"
                                        },
                                        "@type": {
                                            "type": "string",
                                            "description": "JSON-LD type"
                                        },
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.payment.jsonld-payment_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "$ref": "#/components/schemas/hydra.totalItems"
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    }
                                },
                                "examples": {
                                    "payments_jsonld": {
                                        "$ref": "#/components/examples/payments.jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.payment-payment_read"
                                    }
                                },
                                "examples": {
                                    "payments_json": {
                                        "$ref": "#/components/examples/payments"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/payments' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jq\n",
                        "label": "Bash - List payments"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.Net.Http;\nusing System.Net.Http.Headers;\nusing System.Threading.Tasks;\n\nclass Program\n{\n    static async Task Main()\n    {\n        using var client = new HttpClient();\n        client.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\n\n        var response = await client.GetStringAsync(\"https://api.lox24.eu/payments\");\n        Console.WriteLine(response);\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\treq, _ := http.NewRequest(\"GET\", \"https://api.lox24.eu/payments\", nil)\n\treq.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n\n\tresp, _ := http.DefaultClient.Do(req)\n\tdefer resp.Body.Close()\n\tbody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(body))\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        var client = HttpClient.newHttpClient();\n        var request = HttpRequest.newBuilder()\n                .uri(URI.create(\"https://api.lox24.eu/payments\"))\n                .header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n                .GET()\n                .build();\n\n        var response = client.send(request, HttpResponse.BodyHandlers.ofString());\n        System.out.println(response.body());\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "fetch('https://api.lox24.eu/payments', {\n    headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN' }\n})\n.then(res => res.json())\n.then(console.log);\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$ch = curl_init('https://api.lox24.eu/payments');\ncurl_setopt($ch, CURLOPT_HTTPHEADER, ['X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN']);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($ch);\ncurl_close($ch);\n\necho $response;\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests\n\nresponse = requests.get(\n    'https://api.lox24.eu/payments',\n    headers={'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}\n)\nprint(response.json())\n",
                        "label": "Python"
                    }
                ]
            },
            "post": {
                "operationId": "createPayment",
                "tags": [
                    "payments"
                ],
                "summary": "Utw\u00f3rz p\u0142atno\u015b\u0107",
                "description": "Tworzy now\u0105 pr\u00f3b\u0119 p\u0142atno\u015bci. Nale\u017cy poda\u0107 typ p\u0142atno\u015bci i koszt netto. W zale\u017cno\u015bci od metody p\u0142atno\u015bci odpowied\u017a mo\u017ce zawiera\u0107 adres URL przekierowania, kt\u00f3ry u\u017cytkownik musi otworzy\u0107 w przegl\u0105darce, aby doko\u0144czy\u0107 p\u0142atno\u015b\u0107.",
                "requestBody": {
                    "description": "The payment request payload",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.payment_request"
                            },
                            "examples": {
                                "stored_card": {
                                    "$ref": "#/components/examples/payment_stored_card"
                                },
                                "sepa": {
                                    "$ref": "#/components/examples/payment_sepa"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Payment created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.payment.jsonld-payment_read"
                                },
                                "examples": {
                                    "bank_transfer": {
                                        "$ref": "#/components/examples/payment_created_bank_transfer"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.payment-payment_read"
                                },
                                "examples": {
                                    "bank_transfer": {
                                        "$ref": "#/components/examples/payment_created_bank_transfer"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "402": {
                        "$ref": "#/components/responses/402-not-enough-funds"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s -X POST 'https://api.lox24.eu/payments' \\\n  -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"net_val\": 100.00, \"type\": \"stored_card\", \"method_id\": 94}' | jq\n",
                        "label": "Bash - Create payment"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.Net.Http;\nusing System.Text;\nusing System.Threading.Tasks;\n\nclass Program\n{\n    static async Task Main()\n    {\n        using var client = new HttpClient();\n        client.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\n\n        var content = new StringContent(\n            \"{\\\"net_val\\\": 100.00, \\\"type\\\": \\\"stored_card\\\", \\\"method_id\\\": 94}\",\n            Encoding.UTF8,\n            \"application/json\"\n        );\n\n        var response = await client.PostAsync(\"https://api.lox24.eu/payments\", content);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n\t\"strings\"\n)\n\nfunc main() {\n\tbody := `{\"net_val\": 100.00, \"type\": \"stored_card\", \"method_id\": 94}`\n\treq, _ := http.NewRequest(\"POST\", \"https://api.lox24.eu/payments\", strings.NewReader(body))\n\treq.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, _ := http.DefaultClient.Do(req)\n\tdefer resp.Body.Close()\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        var client = HttpClient.newHttpClient();\n        var body = \"{\\\"net_val\\\": 100.00, \\\"type\\\": \\\"stored_card\\\", \\\"method_id\\\": 94}\";\n        var request = HttpRequest.newBuilder()\n                .uri(URI.create(\"https://api.lox24.eu/payments\"))\n                .header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n                .header(\"Content-Type\", \"application/json\")\n                .POST(HttpRequest.BodyPublishers.ofString(body))\n                .build();\n\n        var response = client.send(request, HttpResponse.BodyHandlers.ofString());\n        System.out.println(response.body());\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "fetch('https://api.lox24.eu/payments', {\n    method: 'POST',\n    headers: {\n        'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN',\n        'Content-Type': 'application/json'\n    },\n    body: JSON.stringify({ net_val: 100.00, type: 'stored_card', method_id: 94 })\n})\n.then(res => res.json())\n.then(console.log);\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$data = json_encode(['net_val' => 100.00, 'type' => 'stored_card', 'method_id' => 94]);\n\n$ch = curl_init('https://api.lox24.eu/payments');\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN',\n    'Content-Type: application/json'\n]);\ncurl_setopt($ch, CURLOPT_POST, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($ch);\ncurl_close($ch);\n\necho $response;\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests\nimport json\n\nresponse = requests.post(\n    'https://api.lox24.eu/payments',\n    headers={\n        'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN',\n        'Content-Type': 'application/json'\n    },\n    data=json.dumps({'net_val': 100.00, 'type': 'stored_card', 'method_id': 94})\n)\nprint(response.json())\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/payments/{id}": {
            "get": {
                "operationId": "getPayment",
                "tags": [
                    "payments"
                ],
                "summary": "Pobierz status p\u0142atno\u015bci",
                "description": "Zwraca szczeg\u00f3\u0142owe informacje o wybranej pr\u00f3bie p\u0142atno\u015bci. Wymaga uwierzytelnienia; zwraca wy\u0142\u0105cznie pr\u00f3by p\u0142atno\u015bci nale\u017c\u0105ce do uwierzytelnionego u\u017cytkownika.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.accounting.payment_id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Payment details",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.payment.jsonld-payment_read"
                                },
                                "examples": {
                                    "payment_jsonld": {
                                        "$ref": "#/components/examples/payment.jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.payment-payment_read"
                                },
                                "examples": {
                                    "payment_json": {
                                        "$ref": "#/components/examples/payment"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/payments/123' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jq\n",
                        "label": "Bash - Get payment status"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.Net.Http;\nusing System.Net.Http.Headers;\nusing System.Threading.Tasks;\n\nclass Program\n{\n    static async Task Main()\n    {\n        using var client = new HttpClient();\n        client.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\n\n        var response = await client.GetStringAsync(\"https://api.lox24.eu/payments/123\");\n        Console.WriteLine(response);\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\treq, _ := http.NewRequest(\"GET\", \"https://api.lox24.eu/payments/123\", nil)\n\treq.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n\n\tresp, _ := http.DefaultClient.Do(req)\n\tdefer resp.Body.Close()\n\tbody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(body))\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        var client = HttpClient.newHttpClient();\n        var request = HttpRequest.newBuilder()\n                .uri(URI.create(\"https://api.lox24.eu/payments/123\"))\n                .header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n                .GET()\n                .build();\n\n        var response = client.send(request, HttpResponse.BodyHandlers.ofString());\n        System.out.println(response.body());\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "fetch('https://api.lox24.eu/payments/123', {\n    headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN' }\n})\n.then(res => res.json())\n.then(console.log);\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$ch = curl_init('https://api.lox24.eu/payments/123');\ncurl_setopt($ch, CURLOPT_HTTPHEADER, ['X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN']);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($ch);\ncurl_close($ch);\n\necho $response;\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests\n\nresponse = requests.get(\n    'https://api.lox24.eu/payments/123',\n    headers={'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}\n)\nprint(response.json())\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/payment_methods": {
            "get": {
                "operationId": "getPaymentMethods",
                "tags": [
                    "payments"
                ],
                "summary": "Pobierz dost\u0119pne metody p\u0142atno\u015bci",
                "description": "Zwraca dost\u0119pne metody p\u0142atno\u015bci dla uwierzytelnionego u\u017cytkownika: mandat SEPA (je\u015bli istnieje) oraz zapisane karty kredytowe/debetowe. U\u017cyj zwr\u00f3conych identyfikator\u00f3w z POST /payments.",
                "responses": {
                    "200": {
                        "description": "Payment methods",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.payment_methods"
                                },
                                "examples": {
                                    "payment_methods": {
                                        "$ref": "#/components/examples/payment_methods"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -s 'https://api.lox24.eu/payment_methods' \\\n  -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jq\n",
                        "label": "Bash - Get payment methods"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\nclass Program\n{\n    static async Task Main()\n    {\n        using var client = new HttpClient();\n        client.DefaultRequestHeaders.Add(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\");\n        client.DefaultRequestHeaders.Add(\"Accept\", \"application/json\");\n\n        var response = await client.GetAsync(\"https://api.lox24.eu/payment_methods\");\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\treq, _ := http.NewRequest(\"GET\", \"https://api.lox24.eu/payment_methods\", nil)\n\treq.Header.Set(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n\treq.Header.Set(\"Accept\", \"application/json\")\n\n\tresp, _ := http.DefaultClient.Do(req)\n\tdefer resp.Body.Close()\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        var client = HttpClient.newHttpClient();\n        var request = HttpRequest.newBuilder()\n                .uri(URI.create(\"https://api.lox24.eu/payment_methods\"))\n                .header(\"X-LOX24-AUTH-TOKEN\", \"YOUR_API_TOKEN\")\n                .header(\"Accept\", \"application/json\")\n                .GET()\n                .build();\n\n        var response = client.send(request, HttpResponse.BodyHandlers.ofString());\n        System.out.println(response.body());\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "fetch('https://api.lox24.eu/payment_methods', {\n    headers: {\n        'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN',\n        'Accept': 'application/json'\n    }\n})\n.then(res => res.json())\n.then(console.log);\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$ch = curl_init('https://api.lox24.eu/payment_methods');\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN',\n    'Accept: application/json'\n]);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($ch);\ncurl_close($ch);\n\necho $response;\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import requests\n\nresponse = requests.get(\n    'https://api.lox24.eu/payment_methods',\n    headers={\n        'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN',\n        'Accept': 'application/json'\n    }\n)\nprint(response.json())\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/fraud-checks": {
            "get": {
                "operationId": "api_fraud-check_get_collection",
                "tags": [
                    "fraud-detection"
                ],
                "responses": {
                    "200": {
                        "description": "fraud-check collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.fraud-check.jsonld-fraud_request_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "$ref": "#/components/schemas/hydra.totalItems"
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.fraud-check-fraud_request_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista wszystkich \u017c\u0105da\u0144 sprawdzenia oszustwa",
                "description": "Pobiera list\u0119 wszystkich wcze\u015bniejszych \u017c\u0105da\u0144 sprawdzenia oszustwa",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.common.created_at"
                    },
                    {
                        "$ref": "#/components/parameters/filter.fraud-check.id.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.fraud-check.id.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.callback_data.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.fraud-check.request_phone.phone.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.fraud-check.request_email.email.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.fraud-check.request_ip.ip.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.fraud-check.status_code.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.fraud-check.status_code.array"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/fraud-checks \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/fraud-checks?page=1&request_email.email=lox24.eu\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/fraud-checks?created_at[gte]=1590737094&request_email.email=lox24.eu\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.fraud_checks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetFraudRequestsCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/fraud-checks?created_at[gte]=1590737094&request_email.email=lox24.eu\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\")\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder().build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"bulks collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error:\" + httpResponse.statusCode());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nlet query = \"_order[created_at]=desc&request_email.email=%40gmail.com\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/fraud-checks?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - request resource response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/fraud-checks';\n\n$filters = [\n    'request_email.email' => '@lox24.eu',\n    'id' => [\n        '8481900d-86ce-11ea-aa81-96000028b339',\n        'd5ceb189-86cd-11ea-aa81-96000028b339',\n    ],\n    'page' => 1,\n    '_order' => [\n        'created_at' => 'asc'\n    ],\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/fraud-checks?created_at[gte]=1590737094&request_email.email=lox24.eu'\n\n\nheaders = {\n    'Accept': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - Fraud request collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n",
                        "label": "Python"
                    }
                ]
            },
            "post": {
                "operationId": "api_fraud-check_post_collection",
                "tags": [
                    "fraud-detection"
                ],
                "responses": {
                    "201": {
                        "description": "fraud-check resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.fraud-check.jsonld-fraud_request_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.fraud-check-fraud_request_read"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "402": {
                        "description": "There are not enough funds on your account!"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Tworzy nowe \u017c\u0105danie sprawdzenia oszustwa",
                "description": "Wy\u015blij \u017c\u0105danie sprawdzenia oszustwa i otrzymaj warto\u015b\u0107 oceny ryzyka.",
                "parameters": [],
                "requestBody": {
                    "description": "The new fraud-check resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.fraud-check-fraud_request_write"
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/fraud-checks \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n          \"service_code\": \"direct\",\n          \"phone\": \"+49751234567\",\n          \"email\": \"test@lox24.de\",\n          \"ip\": \"1.1.1.1\"\n}'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/fraud-checks\";\n\n            var data = new {\n                service_code = \"direct\",\n                phone = \"+49751234567\",\n                email = \"test@lox24.de\",\n                ip = \"1.1.1.1\"\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"sms resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create sms\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.PaymentRequired: // 402\n                        Console.WriteLine(\"Error:402 There are not enough funds on your account!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/fraud-checks\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"service_code\": \"direct\",\n\t\t\"phone\":        \"+49751234567\",\n\t\t\"email\":        \"test@lox24.de\",\n\t\t\"ip\":           \"1.1.1.1\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.fraud_checks;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PostFraudRequestCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/fraud-checks\";\n\n        var json = new JSONObject();\n\t\tjson.put(\"service_code\", \"direct\");\n\t\tjson.put(\"phone\", \"+49751234567\");\n\t\tjson.put(\"email\", \"test@lox24.de\");\n\t\tjson.put(\"ip\", \"1.1.1.1\");\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"request created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create request\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_PAYMENT_REQUIRED: // 402\n                        System.out.println(\"Error:402 There are not enough funds on your account!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const token = \"7b7c6063bab885ce79814b5ff1ee6885\";\n\nlet postObj = {\n\t\"service_code\": \"direct\",\n\t\"phone\": \"+49751234567\",\n\t\"email\": \"test@lox24.de\",\n\t\"ip\": \"1.1.1.1\"\n};\n\nlet postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: 'api.lox24.eu',\n    path: '/fraud-checks',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - request resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    }\n    else if (res.statusCode == 400) console.log(\"Error: code = 400 - Invalid input\");\n    else if (res.statusCode == 401) console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    else if (res.statusCode == 402) console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    else if (res.statusCode == 403) console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/fraud-checks';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    'service_code' => 'direct',\n    'phone' => '+49751234567',\n    'email' => 'test@lox24.de',\n    'ip' => '1.1.1.1',\n];\n\nif (!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif (201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/fraud-checks'\n\n\ndata = {\n\t'service_code': 'direct',\n\t'phone': '+49751234567',\n\t'email': 'test@lox24.de',\n\t'ip': '1.1.1.1'\n}\n\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        print(\"Error: Wrong response code on create sms\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - Fraud request resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 402:\n        print(\"Error:402 There are not enough funds on your account!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/fraud-checks/{id}": {
            "get": {
                "operationId": "api_fraud-check_get_item",
                "tags": [
                    "fraud-detection"
                ],
                "responses": {
                    "200": {
                        "description": "fraud-check resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.fraud-check.jsonld-fraud_request_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.fraud-check-fraud_request_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobierz \u017c\u0105danie sprawdzenia oszustwa",
                "description": "Zwraca dane konkretnego \u017c\u0105dania sprawdzenia oszustwa",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.fraud-check.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl https://api.lox24.eu/fraud-checks/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n            var id = \"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\";\n            string url = \"https://api.lox24.eu/fraud-checks/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"item resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/fraud-checks/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.fraud_checks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetBulksItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\";\n\n        var url = \"https://api.lox24.eu/fraud-checks/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nconst id = 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/fraud-checks/' + id,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '11111111-2222-3333-4444-55555555555';\n$uri = 'https://api.lox24.eu/fraud-checks/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Request with id = $id not found!\";\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nsms_id = \"11111111-2222-3333-4444-55555555555\"\n\nurl = f'https://api.lox24.eu/fraud-checks/{sms_id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - Fraud request resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            },
            "delete": {
                "operationId": "api_fraud-check_delete_item",
                "tags": [
                    "fraud-detection"
                ],
                "responses": {
                    "204": {
                        "$ref": "#/components/responses/204-deleted"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Usu\u0144 konkretne wcze\u015bniejsze \u017c\u0105danie sprawdzenia oszustwa",
                "description": "Usu\u0144 wszystkie informacje o wcze\u015bniejszym \u017c\u0105daniu sprawdzenia oszustwa.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.fraud-check.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X DELETE https://api.lox24.eu/fraud-checks/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n            var id = \"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\";\n            string url = \"https://api.lox24.eu/fraud-checks/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"DELETE\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    if(resp.StatusCode == HttpStatusCode.NoContent) { //204\n                        Console.WriteLine(\"Success: sms was deleted\");\n                    } else {\n                        Console.WriteLine(\"Error: something went wrong, code({0})\", respCode);\n                        Stream respStream = resp.GetResponseStream();\n                        using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                        {\n                            string responseText = sr.ReadToEnd();\n\n                            JObject parsed = JObject.Parse(responseText);\n\n                            foreach (var pair in parsed)\n                            {\n                                Console.WriteLine(\"{0}: {1}\", pair.Key, pair.Value);\n                            }\n                        }\n                    }\n\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"DELETE\"\n\tconst URL = \"https://api.lox24.eu/fraud-checks/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tswitch res.StatusCode {\n\tcase 204:\n\t\tfmt.Println(\"Fraud request was deleted!\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.fraud_checks;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class DeleteFraudRequestItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n        var id = \"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\";\n        var url = \"https://api.lox24.eu/fraud-checks/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .DELETE()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"request was deleted.\");\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                JSONObject parsed = new JSONObject(httpResponse.body());\n\n                parsed.keys().forEachRemaining(jsonKey -> System.out.println(jsonKey + \":\" + parsed.get(jsonKey)));\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nlet id = 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/fraud-checks/' + id,\n    method: 'DELETE',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 204) {\n        console.log('Success: code = 204 - fraud request resource deleted');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '11111111-2222-3333-4444-55555555555';\n$uri = 'https://api.lox24.eu/fraud-checks/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_CUSTOMREQUEST => 'DELETE',\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\nif(204 === $code) {\n    echo \"Fraud check request with id = $id was deleted!\";\n} elseif(404 === $code) {\n    echo \"Fraud check request with id = $id not found!\";\n} else {\n    $data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n    echo \"Fraud check request: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nsms_id = \"11111111-2222-3333-4444-55555555555\"\n\nurl = f'https://api.lox24.eu/fraud-checks/{sms_id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.delete(url, headers=headers, timeout=100)\n    if res.status_code != 204: # No Content\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - Fraud request was deleted')\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/groups": {
            "get": {
                "operationId": "api_groups_get_collection",
                "tags": [
                    "groups"
                ],
                "responses": {
                    "200": {
                        "description": "groups collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.groups.jsonld-group_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.groups-group_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera kolekcj\u0119 grup",
                "description": "Zwraca wszystkie Twoje grupy (lista dystrybucyjna SMS).",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/groups \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/groups?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"groups collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/groups?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.group;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetGroupsCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/groups?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"groups collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"page=1\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/groups?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - groups list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/groups';\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = \"https://api.lox24.eu/groups?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - groups collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            },
            "post": {
                "operationId": "api_groups_post_collection",
                "tags": [
                    "groups"
                ],
                "responses": {
                    "201": {
                        "description": "groups resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.groups.jsonld-group_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.groups-group_read"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Utw\u00f3rz grup\u0119",
                "description": "Za pomoc\u0105 tego polecenia tworzysz list\u0119 mailingow\u0105 SMS, kt\u00f3ra jest przechowywana w naszym systemie. Lista mailingowa ma nazw\u0119, opis oraz pi\u0119\u0107 dodatkowych kolumn, kt\u00f3re mo\u017cesz doda\u0107 opr\u00f3cz numeru telefonu.",
                "parameters": [],
                "requestBody": {
                    "description": "The new groups resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.groups-write"
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/groups \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n      \"name\": \"My Clients\",\n      \"description\": \"Best clients\",\n      \"name_a\": \"prefix\",\n      \"name_b\": \"name\",\n      \"name_c\": \"datetime\",\n      \"name_d\": \"price\",\n      \"name_e\": \"something_else\"\n}'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/groups\";\n\n\n            var data = new {\n                name = \"My Clients\",\n                description = \"Best clients\",\n                name_a = \"prefix\",\n                name_b = \"name\",\n                name_c = \"datetime\",\n                name_d = \"price\",\n                name_e = \"something_else\"\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"group resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create group\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/groups\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"name\": \"My Clients\",\n\t\t\"description\": \"Best clients\",\n\t\t\"name_a\": \"prefix\",\n\t\t\"name_b\": \"name\",\n\t\t\"name_c\": \"datetime\",\n\t\t\"name_d\": \"price\",\n\t\t\"name_e\": \"something_else\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.group;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PostGroupCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/groups\";\n\n        var json = new JSONObject();\n        json.put(\"name\", \"My Clients\");\n        json.put(\"description\", \"Best clients\");\n        json.put(\"name_a\", \"prefix\");\n        json.put(\"name_b\", \"name\");\n        json.put(\"name_c\", \"datetime\");\n        json.put(\"name_d\", \"price\");\n        json.put(\"name_e\", \"something_else\");\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"group resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create group\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    sender_id: 'My Sender',\n    text: 'Test message',\n    service_code: 'direct',\n    phone: '+49751234567',\n    delivery_at: 1573724611,\n    is_unicode: true\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/groups',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - group resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 402) {\n        console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/groups';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    \"name\" => \"My Clients\",\n    \"description\" => \"Best clients\",\n    \"name_a\" => \"prefix\",\n    \"name_b\" => \"name\",\n    \"name_c\" => \"datetime\",\n    \"name_d\" => \"price\",\n    \"name_e\" => \"something_else\",\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/groups'\n\n\ndata = {\n    'name': 'My Clients',\n    'description': 'Best clients',\n    'name_a': 'prefix',\n    'name_b': 'name',\n    'name_c': 'datetime',\n    'name_d': 'price',\n    'name_e': 'something_else'\n}\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        print(\"Error: Wrong response code on create group\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - group resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 402:\n        print(\"Error:402 There are not enough funds on your account!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/groups/{id}": {
            "get": {
                "operationId": "api_groups_get_item",
                "tags": [
                    "groups"
                ],
                "responses": {
                    "200": {
                        "description": "groups resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.groups.jsonld-group_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.groups-group_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera wpis grupy",
                "description": "Zwraca dane konkretnej grupy, takie jak nazwa grupy i nazwa kolumny.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.groups.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl https://api.lox24.eu/groups/12344  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            var id = \"12344\";\n\n            string url = \"https://api.lox24.eu/groups/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"groups resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/groups/12344\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.group;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetGroupItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var userId = \"1234567\";\n        var id = \"12344\";\n\n        var url = \"https://api.lox24.eu/groups/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '12344';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/groups/' + id,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '12344';\n$uri = 'https://api.lox24.eu/groups/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Group with id = {$id} not found!\";\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nid = \"12344\"\n\nurl = f'https://api.lox24.eu/groups/{id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - group resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            },
            "put": {
                "operationId": "api_groups_put_item",
                "tags": [
                    "groups"
                ],
                "responses": {
                    "200": {
                        "description": "groups resource updated",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.groups.jsonld-group_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.groups-group_read"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Edytuj grup\u0119",
                "description": "Zmie\u0144 konfiguracj\u0119 grupy, na przyk\u0142ad nazw\u0119 lub opis grupy.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.groups.id"
                    }
                ],
                "requestBody": {
                    "description": "The updated groups resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.groups-write"
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X PUT https://api.lox24.eu/groups/12344 \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n      \"name\": \"My Clients\",\n      \"description\": \"Best clients\",\n      \"name_a\": \"prefix\",\n      \"name_b\": \"name\",\n      \"name_c\": \"datetime\",\n      \"name_d\": \"price\",\n      \"name_e\": \"something_else\"\n}'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/groups/12344\";\n\n\n            var data = new {\n                name = \"New group name\"\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"group resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create group\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"PUT\"\n\tconst URL = \"https://api.lox24.eu/groups/12344\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"name\": \"New group name\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.group;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PutGroupCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/groups/12344\";\n\n        var json = new JSONObject();\n        json.put(\"name\", \"New group name Clients\");\n\n        var data = json.toString();\n\n        System.out.println(\"PUT data: \" + data);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .PUT(HttpRequest.BodyPublishers.ofString(data))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"group resource updated);\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on update group\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '12344';\n\nvar postObj = {\n    \"name\": \"New group name\"\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/groups/' + id,\n    method: 'PUT',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log(\"Success: code = 201 - group resource updated\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode);\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/groups/12344';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    'name' => 'New group name',\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_CUSTOMREQUEST => 'PUT',\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nid = \"12344\"\n\nurl = f'https://api.lox24.eu/groups/{id}'\n\n\ndata = {\n    'name': 'New group name'\n}\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.put(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 200: # OK\n        print(\"Error: Wrong response code on update group\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - group resource updated')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            },
            "delete": {
                "operationId": "api_groups_delete_item",
                "tags": [
                    "groups"
                ],
                "responses": {
                    "204": {
                        "$ref": "#/components/responses/204-deleted"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Usu\u0144 grup\u0119",
                "description": "Usu\u0144 grup\u0119 wraz ze wszystkimi powi\u0105zanymi numerami telefon\u00f3w.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.groups.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X DELETE https://api.lox24.eu/groups/12344  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n            var id = \"12344\";\n            string url = \"https://api.lox24.eu/groups/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"DELETE\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    if(resp.StatusCode == HttpStatusCode.NoContent) { //204\n                        Console.WriteLine(\"Success: group was deleted\");\n                    } else {\n                        Console.WriteLine(\"Error: something went wrong, code({0})\", respCode);\n                        Stream respStream = resp.GetResponseStream();\n                        using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                        {\n                            string responseText = sr.ReadToEnd();\n\n                            JObject parsed = JObject.Parse(responseText);\n\n                            foreach (var pair in parsed)\n                            {\n                                Console.WriteLine(\"{0}: {1}\", pair.Key, pair.Value);\n                            }\n                        }\n                    }\n\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"DELETE\"\n\tconst URL = \"https://api.lox24.eu/groups/12344\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tswitch res.StatusCode {\n\tcase 204:\n\t\tfmt.Println(\"Group and related phones was deleted!\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.group;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class DeleteGroupItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var userId = \"1234567\";\n\n        var id = \"12344\";\n        var url = \"https://api.lox24.eu/groups/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .DELETE()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"group was delete.\");\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                JSONObject parsed = new JSONObject(httpResponse.body());\n\n                parsed.keys().forEachRemaining(jsonKey -> System.out.println(jsonKey + \":\" + parsed.get(jsonKey)));\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '12344';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/groups/' + id,\n    method: 'DELETE',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 204) {\n        console.log('Success: code = 204 - group resource deleted');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '12344';\n$uri = 'https://api.lox24.eu/groups/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_CUSTOMREQUEST => 'DELETE',\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\nif(204 === $code) {\n    echo \"Group with id = {$id} was deleted!\";\n} elseif(404 === $code) {\n    echo \"Group with id = {$id} not found!\";\n} else {\n    $data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n    echo \"Group: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nid = \"12344\"\n\nurl = f'https://api.lox24.eu/groups/{id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.delete(url, headers=headers, timeout=100)\n    if res.status_code != 204: # No Content\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - group was deleted')\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/groups/{id}/file/csv": {
            "get": {
                "operationId": "group_export_to_file",
                "tags": [
                    "phones"
                ],
                "responses": {
                    "200": {
                        "description": "Eksportuj numery telefon\u00f3w z grupy jako plik CSV",
                        "content": {
                            "text/csv": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.groups-group_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Eksport numer\u00f3w telefon\u00f3w w formacie CSV",
                "description": "##### Przyk\u0142ad pliku CSV\n\n||id|phone|col_A|col_B|col_C|col_D|col_E|callback_data|\n|---|---|---|---|---|---|---|---|\n||7848412|+49123456780|Name|Second name|Foo|Bar|Zoo|12345|\n||7848413|+49123456781|Name|Second name|Foo|Bar|Zoo|12346|\n||7848414|+49123456782|Name|Second name|Foo|Bar|Zoo|12347|\n||7848415|+49123456783|Name|Second name|Foo|Bar|Zoo|12348|\n\nNazwy kolumn b\u0119d\u0105 odpowiada\u0107 warto\u015bciom w polach \n`name_X` odpowiedniego obiektu `/group`. Je\u015bli odpowiednia \nwarto\u015b\u0107 nie jest podana, domy\u015blnie stosowany jest `col_X`, gdzie X = (a, b, c, d, e).\n",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.groups.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl https://api.lox24.eu/groups/7116/file/csv  \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class phones\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            var id = \"12344\";\n\n            string url = \"https://api.lox24.eu/groups/\" + id + \"/file/csv\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"text/csv\";\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"phones resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\turl := \"https://api.lox24.eu/groups/7116/file/csv\"\n\tmethod := \"GET\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(method, url, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println(string(body))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.phones;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GroupExportToFilePhonesItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"7116\";\n\n        var url = \"https://api.lox24.eu/groups/\" + id + \"/file/csv\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"text/csv\")\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"Import phones items as CSV file\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on import phone items as CSV file\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/groups/12344/file/csv',\n    method: 'GET',\n    headers: {\n        'Accept': 'text/csv',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - phones list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/groups/12344/file/csv';\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: text/csv', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . $data;\n} else {\n    echo \"Error: code = {$code}, data = \" . $data;\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\ngroup_id = \"7116\"\n\nurl = f'https://api.lox24.eu/groups/{group_id}/file/csv'\n\n\nheaders = {\n    'Accept': 'text/csv',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - Import phone items as CSV file')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/groups/{id}/phones": {
            "get": {
                "operationId": "api_phones_get_collection",
                "tags": [
                    "phones"
                ],
                "responses": {
                    "200": {
                        "description": "groups resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "properties": {
                                        "member": {
                                            "items": {
                                                "$ref": "#/components/schemas/schema.phones.jsonld-phone_read"
                                            }
                                        }
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.phones-phone_read"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera kolekcj\u0119 numer\u00f3w telefon\u00f3w wed\u0142ug ID grupy",
                "description": "Pobiera kolekcj\u0119 numer\u00f3w telefon\u00f3w wed\u0142ug ID grupy",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.groups.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl https://api.lox24.eu/groups/7116/phones  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class phones\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string id = \"12344\"\n            string url = \"https://api.lox24.eu/groups/12344/phones\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"phones collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\turl := \"https://api.lox24.eu/groups/7116/phones\"\n\tmethod := \"GET\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(method, url, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println(string(body))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.phones;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetGroupPhonesGroupsItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"7116\";\n\n        var url = \"https://api.lox24.eu/groups/\" + id + \"/phones\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"phones resource response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on get group's items\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/groups/12344/phones',\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - phones list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/groups/12344/phones';\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\ngroup_id = \"7116\"\n\nurl = f'https://api.lox24.eu/groups/{group_id}/phones'\n\n\nheaders = {\n    'Accept': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - get group phones response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n",
                        "label": "Python"
                    }
                ]
            },
            "post": {
                "operationId": "api_phones_post_collection",
                "tags": [
                    "phones"
                ],
                "responses": {
                    "201": {
                        "description": "phones resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.phones.jsonld-phone_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.phones-phone_read"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Utw\u00f3rz numer telefonu",
                "description": "Utw\u00f3rz wpis z numerem telefonu.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.groups.id"
                    }
                ],
                "requestBody": {
                    "description": "The new phones resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.phones-phone_write"
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/groups/12344/phones \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n      \"phone\": \"+93701234567\",\n      \"a\": \"Mr. \",\n      \"b\": \"Smith \",\n      \"c\": \"2020-02-23 18:00\",\n      \"d\": \"12.34\",\n      \"e\": \"restaurant Blue Oyster\"\n}'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class phones\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/groups/12344/phones\";\n\n            var data = new {\n                phone = \"+93701234567\",\n                a = \"Mr. \",\n                b = \"Smith\",\n                c = \"2020-02-23 18:00\",\n                d = \"12.34\",\n                e = \"restaurant Blue Oyster\"\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"phone resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create phone\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\turl := \"https://api.lox24.eu/groups/7116/phones\"\n\tmethod := \"POST\"\n\n\tpayload := map[string]string{\n\t\t\"phone\": \"+93701234567\",\n\t\t\"a\":     \"Mr. \",\n\t\t\"b\":     \"Smith \",\n\t\t\"c\":     \"2020-02-23 18:00\",\n\t\t\"d\":     \"12.34\",\n\t\t\"e\":     \"restaurant Blue Oyster\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(method, url, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\")\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println(string(body))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.phones;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PostPhonesCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"12344\";\n\n        var url = \"https://api.lox24.eu/groups/\" + id + \"/phones\";\n\n        var json = new JSONObject();\n        json.put(\"phone\", \"+93701234567\");\n        json.put(\"a\", \"Mr. \");\n        json.put(\"b\", \"Smith \");\n        json.put(\"c\", \"2020-02-23 18:00\");\n        json.put(\"d\", \"12.34\");\n        json.put(\"e\", \"restaurant Blue Oyster\");\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"phones resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create phone\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    phone: '+93701234567',\n    a: 'Mr. ',\n    b: 'Smith',\n    c: '2020-02-23 18:00',\n    d: '12.34',\n    e: 'restaurant Blue Oyster'\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/groups',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - phone resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 402) {\n        console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/groups/12344/phones';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    'phone' => '+93701234567',\n    'a' => 'Mr. ',\n    'b' => 'Smith ',\n    'c' => '2020-02-23 18 =>00',\n    'd' => '12.34',\n    'e' => 'restaurant Blue Oyster',\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\ngroup_id = \"12344\"\n\nurl = f'https://api.lox24.eu/groups/{group_id}/phones'\n\n\ndata = {\n    \"phone\": \"+93701234567\",\n    \"a\": \"Mr. \",\n    \"b\": \"Smith \",\n    \"c\": \"2020-02-23 18:00\",\n    \"d\": \"12.34\",\n    \"e\": \"restaurant Blue Oyster\",\n}\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - phones resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/groups/{id}/phones/batch": {
            "post": {
                "operationId": "phone_batch_post",
                "tags": [
                    "phones"
                ],
                "responses": {
                    "201": {
                        "description": "groups resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.phones.jsonld-batch-read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.phones-batch-read"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Tw\u00f3rz numery telefon\u00f3w wsadowo",
                "description": "Zamiast wysy\u0142a\u0107 wiele \u017c\u0105da\u0144, lepiej wys\u0142a\u0107 jedno \u017c\u0105danie z list\u0105 obiekt\u00f3w numer\u00f3w telefon\u00f3w jako tre\u015bci\u0105 \u017c\u0105dania.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.groups.id"
                    }
                ],
                "requestBody": {
                    "description": "The new groups resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.phones-batch-write"
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class phones\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/groups/12344/phones/batch\";\n\n            var data = new[] {\n               new {\n                   phone = \"+93701234567\",\n                   a = \"Mr. \",\n                   b = \"Smith\"\n               },\n               new {\n                  phone = \"+93701234568\",\n                  a = \"Ms. \",\n                  b = \"Smith\"\n               }\n            }\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"phone resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create phone\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\turl := \"https://api.lox24.eu/groups/7116/phones/batch\"\n\tmethod := \"POST\"\n\n\tpayload := []map[string]string{\n\t\t{\n\t\t\t\"phone\": \"+93701234567\",\n\t\t\t\"a\":     \"Mr. \",\n\t\t\t\"b\":     \"Smith \",\n\t\t\t\"c\":     \"2020-02-23 18:00\",\n\t\t\t\"d\":     \"12.34\",\n\t\t\t\"e\":     \"restaurant Blue Oyster\",\n\t\t},\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(method, url, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\")\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println(string(body))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.phones;\n\nimport org.json.JSONArray;\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PhoneBatchPostGroupsItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"7116\";\n\n        var url = \"https://api.lox24.eu/groups/\" + id + \"/phones/batch\";\n\n        var jsonArray = new JSONArray();\n        var validPhoneNumber = new JSONObject();\n        validPhoneNumber.put(\"phone\", \"+4912345678\");\n        validPhoneNumber.put(\"a\", \"column A text\");\n\n        var invalidPhoneNumber = new JSONObject();\n        invalidPhoneNumber.put(\"a\", \"column A text #2\");\n\n        jsonArray.put(validPhoneNumber);\n        jsonArray.put(invalidPhoneNumber);\n\n        var postData = jsonArray.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"phones resource created by the batch\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on phones resource by the batch\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = [{\n    phone: '+93701234567',\n    a: 'Mr. ',\n    b: 'Smith',\n}, {\n    a: \"wrong phone resource\"\n}];\n\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/groups/12344/phone/batch',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - phone resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 402) {\n        console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/groups/12344/phones/batch';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    [\n        'phone' => '+93701234567',\n        'a' => 'Mr. ',\n        'b' => 'Smith ',\n        'c' => '2020-02-23 18 =>00',\n        'd' => '12.34',\n        'e' => 'restaurant Blue Oyster',\n    ],\n    [\n        'a' => 'Invalid phone object',\n    ]\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\ngroup_id = \"7116\"\n\nurl = f'https://api.lox24.eu/groups/{group_id}/phones/batch'\n\n\ndata = [\n    {\n    \"phone\": \"+4912345678\",\n    \"a\": \"column A text\"\n    },\n    {\n    \"a\": \"column A text #2\"\n    }\n]\n\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201:  # Created\n        res.raise_for_status()\n    else:\n        print(\n            f'Success: code = {res.status_code} - phones resource created by the batch')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/incomings": {
            "get": {
                "operationId": "api_incomings_get_collection",
                "tags": [
                    "incomings"
                ],
                "responses": {
                    "200": {
                        "description": "incomings collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.incomings.jsonld-incoming_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "$ref": "#/components/schemas/hydra.totalItems"
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.incomings-incoming_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera kolekcj\u0119 wiadomo\u015bci przychodz\u0105cych",
                "description": "Pobieranie listy wiadomo\u015bci przychodz\u0105cych uporz\u0105dkowanej wed\u0142ug pola `received_at` w kolejno\u015bci malej\u0105cej. Skrzynka zawiera wszystkie wiadomo\u015bci przychodz\u0105ce i odpowiedzi. W przypadku odpowiedzi na SMS w\u0142a\u015bciwo\u015b\u0107 'msg_uuid' jest wype\u0142niana przez odpowiadaj\u0105c\u0105 encj\u0119 /sms.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.incomings.received_at"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.text.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.incomings.from"
                    },
                    {
                        "$ref": "#/components/parameters/filter.incomings.to"
                    },
                    {
                        "$ref": "#/components/parameters/filter.incomings.msg_uuid"
                    },
                    {
                        "$ref": "#/components/parameters/filter.incomings.msg_uuid.array"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/incomings \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/incomings?text=Test&msg_uuid[]=8481900d-86ce-11ea-aa81-96000028b339&msg_uuid[]=d5ceb189-86cd-11ea-aa81-96000028b339&page=1&_order[created_at]=desc\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"Incoming SMS collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/incomings\"\n\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println(string(body))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.incomings;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetIncomingsCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/incomings?text=Test&msg_uuid[]=8481900d-86ce-11ea-aa81-96000028b339&msg_uuid[]=d5ceb189-86cd-11ea-aa81-96000028b339&page=1&_order[created_at]=desc\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"incomings collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"text=Test&msg_uuid[]=8481900d-86ce-11ea-aa81-96000028b339&msg_uuid[]=d5ceb189-86cd-11ea-aa81-96000028b339&page=1&_order[created_at]=desc\";\n\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/incomings?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - incoming messages collection response');\n        res.on('data', d => {process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    }  else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/incomings';\n\n$filters = [\n    'text' => 'Test',\n    'msg_uuid' => [\n        '8481900d-86ce-11ea-aa81-96000028b339',\n        'd5ceb189-86cd-11ea-aa81-96000028b339',\n    ],\n    'page' => 1,\n    '_order' => [\n        'received_at' => 'desc'\n    ],\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\necho $uri;\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = \"https://api.lox24.eu/incomings?text=Test&msg_uuid[]=8481900d-86ce-11ea-aa81-96000028b339&msg_uuid[]=d5ceb189-86cd-11ea-aa81-96000028b339&page=1&_order[created_at]=desc\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - incomings collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/incomings/{uuid}": {
            "get": {
                "operationId": "api_incomings_get_item",
                "deprecated": false,
                "tags": [
                    "incomings"
                ],
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/incomings/20f39273-0566-11ea-a637-96000028b339 \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n\n            string url = \"https://api.lox24.eu/incomings/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"Incoming SMS resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/incomings/85c2b099-9d84-11ea-b2e9-b8ca3a65338c\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println(string(body))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.incomings;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetIncomingsItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n\n        var url = \"https://api.lox24.eu/incomings/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"incomings resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error:\" + httpResponse.statusCode());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "//const host = 'api.lox24.eu';\n//const clientid = \"1234567\";\n//const token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\nconst host = 'api2-test.lox24.eu';\nconst token = \"21911_4f8432430c640ee96c9f8a3eb880d477\";\n\nvar id = '8481900d-86ce-11ea-aa81-96000028b339';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/incomings/' + id,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - incoming message resource response');\n        res.on('data', d => { process.stdout.write(d)})\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '11111111-2222-3333-4444-55555555555';\n$uri = 'https://api.lox24.eu/incomings/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Incoming SMS with id = {$id} not found!\";\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nincoming_id = \"343c785b-8567-11ea-aa81-96000028b339\"\n\nurl = f'https://api.lox24.eu/incomings/{incoming_id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - incoming sms resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "incomings resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.incomings.jsonld-incoming_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.incomings-incoming_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera wpis wiadomo\u015bci przychodz\u0105cej",
                "description": "Pobieranie wpisu wiadomo\u015bci przychodz\u0105cej. Skrzynka zawiera wszystkie wiadomo\u015bci przychodz\u0105ce i odpowiedzi. W przypadku odpowiedzi na SMS w\u0142a\u015bciwo\u015b\u0107 'msg_uuid' jest wype\u0142niana przez odpowiadaj\u0105c\u0105 encj\u0119 /sms.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.incomings.id"
                    }
                ]
            },
            "delete": {
                "operationId": "api_incomings_delete_item",
                "deprecated": false,
                "tags": [
                    "incomings"
                ],
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X DELETE https://api.lox24.eu/incomings/20f39273-0566-11ea-a637-96000028b339 \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n\n            string url = \"https://api.lox24.eu/incomings/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"DELETE\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"Incoming SMS resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"DELETE\"\n\tconst URL = \"https://api.lox24.eu/incomings/85c2b099-9d84-11ea-b2e9-b8ca3a65338c\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println(string(body))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.incomings;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetIncomingsItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n\n        var url = \"https://api.lox24.eu/incomings/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .DELETE()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"incomings resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error:\" + httpResponse.statusCode());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "//const host = 'api.lox24.eu';\n//const clientid = \"1234567\";\n//const token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\nconst host = 'api2-test.lox24.eu';\nconst token = \"21911_4f8432430c640ee96c9f8a3eb880d477\";\n\nvar id = '8481900d-86ce-11ea-aa81-96000028b339';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/incomings/' + id,\n    method: 'DELETE',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - incoming message resource response');\n        res.on('data', d => { process.stdout.write(d)})\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '11111111-2222-3333-4444-55555555555';\n$uri = 'https://api.lox24.eu/incomings/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_CUSTOMREQUEST => 'DELETE',\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Incoming SMS with id = {$id} not found!\";\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nincoming_id = \"343c785b-8567-11ea-aa81-96000028b339\"\n\nurl = f'https://api.lox24.eu/incomings/{incoming_id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.delete(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - incoming sms resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ],
                "responses": {
                    "204": {
                        "$ref": "#/components/responses/204-deleted"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Usuwanie wiadomo\u015bci przychodz\u0105cej",
                "description": "Odebrany SMS (przychodz\u0105cy lub b\u0119d\u0105cy odpowiedzi\u0105) mo\u017cna usun\u0105\u0107 z serwera na podstawie UUID.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.incomings.id"
                    }
                ]
            }
        },
        "/phones/{id}": {
            "get": {
                "operationId": "api_phones_get_item",
                "tags": [
                    "phones"
                ],
                "responses": {
                    "200": {
                        "description": "phones resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.phones.jsonld-phone_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.phones-phone_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera wpis numeru telefonu",
                "description": "Odczytaj wpis z numerem telefonu.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.phones.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl https://api.lox24.eu/phones/12344  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class phones\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            var id = \"12344\";\n\n            string url = \"https://api.lox24.eu/phones/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"phones resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\turl := \"https://api.lox24.eu/phones/12344\"\n\tmethod := \"GET\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(method, url, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println(string(body))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.phones;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetPhonesItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"12344\";\n\n        var url = \"https://api.lox24.eu/phones/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"phones resource response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on get phones item\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '12344';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/phones/' + id,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '12344';\n$uri = 'https://api.lox24.eu/phones/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Group with id = {$id} not found!\";\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nphone_id = \"12344\"\n\nurl = f'https://api.lox24.eu/phones/{phone_id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - phones resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            },
            "put": {
                "operationId": "api_phones_put_item",
                "tags": [
                    "phones"
                ],
                "responses": {
                    "200": {
                        "description": "phones resource updated",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.phones.jsonld-phone_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.phones-phone_read"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Edytuj wpis numeru telefonu",
                "description": "Edytuj wpis z numerem telefonu.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.phones.id"
                    }
                ],
                "requestBody": {
                    "description": "The updated phones resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.phones-phone_write"
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X PUT https://api.lox24.eu/phones/12344 \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n      \"phone\": \"+93701234567\",\n      \"a\": \"Mr. \",\n      \"b\": \"Smith \",\n      \"c\": \"2020-02-23 18:00\",\n      \"d\": \"12.34\",\n      \"e\": \"restaurant Blue Oyster\"\n}'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/phones/12344\";\n\n\n            var data = new {\n                phone = \"+93701234599\"\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"phone resource updated\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on update phone\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\turl := \"https://api.lox24.eu/phones/12344\"\n\tmethod := \"PUT\"\n\n\tpayload := map[string]string{\n\t\t\"phone\": \"+93701234567\",\n\t\t\"a\":     \"Mr. \",\n\t\t\"b\":     \"Smith \",\n\t\t\"c\":     \"2020-02-23 18:00\",\n\t\t\"d\":     \"12.34\",\n\t\t\"e\":     \"restaurant Blue Oyster\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(method, url, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\")\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println(string(body))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.phones;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PutPhonesItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"12344\";\n        var url = \"https://api.lox24.eu/phones/\" + id;\n\n        var json = new JSONObject();\n        json.put(\"phone\", \"+93701234567\");\n        json.put(\"a\", \"Mr. \");\n        json.put(\"b\", \"Smith \");\n        json.put(\"c\", \"2020-02-23 18:00\");\n        json.put(\"d\", \"12.34\");\n        json.put(\"e\", \"restaurant Blue Oyster\");\n\n\n        var putData = json.toString();\n\n        System.out.println(\"Put data: \" + putData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .PUT(HttpRequest.BodyPublishers.ofString(putData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"phones resource updated\");\n\n                JSONObject parsed = new JSONObject(httpResponse.body());\n\n                parsed.keys().forEachRemaining(jsonKey -> System.out.println(jsonKey + \":\" + parsed.get(jsonKey)));\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on update phone\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    phone: '+93701234567',\n    a: 'Mr. ',\n    b: 'Smith',\n    c: '2020-02-23 18:00',\n    d: '12.34',\n    e: 'restaurant Blue Oyster'\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/phones/1234',\n    method: 'PUT',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log(\"Success: code = 200 - phone resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 402) {\n        console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/phones/12344';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    'phone' => '+93701234567',\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_CUSTOMREQUEST => 'PUT',\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nphone_id = \"12344\"\n\nurl = f'https://api.lox24.eu/phones/{phone_id}'\n\ndata = {\n    \"phone\": \"+93701234567\",\n    \"a\": \"Mr. \",\n    \"b\": \"Smith \",\n    \"c\": \"2020-02-23 18:00\",\n    \"d\": \"12.34\",\n    \"e\": \"restaurant Blue Oyster\",\n}\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.put(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - phones resource updated')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            },
            "delete": {
                "operationId": "api_phones_delete_item",
                "tags": [
                    "phones"
                ],
                "responses": {
                    "204": {
                        "$ref": "#/components/responses/204-deleted"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Usu\u0144 wpis numeru telefonu",
                "description": "Usu\u0144 wpis z numerem telefonu.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.phones.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X DELETE https://api.lox24.eu/phones/12344  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class phones\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n            var id = \"12344\";\n            string url = \"https://api.lox24.eu/phones/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"DELETE\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    if(resp.StatusCode == HttpStatusCode.NoContent) { //204\n                        Console.WriteLine(\"Success: phone was deleted\");\n                    } else {\n                        Console.WriteLine(\"Error: something went wrong, code({0})\", respCode);\n                        Stream respStream = resp.GetResponseStream();\n                        using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                        {\n                            string responseText = sr.ReadToEnd();\n\n                            JObject parsed = JObject.Parse(responseText);\n\n                            foreach (var pair in parsed)\n                            {\n                                Console.WriteLine(\"{0}: {1}\", pair.Key, pair.Value);\n                            }\n                        }\n                    }\n\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\turl := \"https://api.lox24.eu/phones/12344\"\n\tmethod := \"DELETE\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(method, url, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tswitch res.StatusCode {\n\tcase 204:\n\t\tfmt.Println(\"Success: code = 204 - phones resource deleted\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.phones;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class DeletePhonesItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n        var id = \"12344\";\n        var url = \"https://api.lox24.eu/phones/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .DELETE()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) {\n                System.out.println(\"Success: phone was deleted\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: something went wrong \" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                JSONObject parsed = new JSONObject(httpResponse.body());\n\n                parsed.keys().forEachRemaining(jsonKey -> System.out.println(jsonKey + \":\" + parsed.get(jsonKey)));\n\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '12344';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/phones/' + id,\n    method: 'DELETE',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 204) {\n        console.log('Success: code = 204 - phones resource deleted');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '12344';\n$uri = 'https://api.lox24.eu/phones/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_CUSTOMREQUEST => 'DELETE',\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\nif(204 === $code) {\n    echo \"Phone with id = {$id} was deleted!\";\n} elseif(404 === $code) {\n    echo \"Phone with id = {$id} not found!\";\n} else {\n    $data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n    echo \"Phone: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nid = \"12344\"\n\nurl = f'https://api.lox24.eu/phones/{id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.delete(url, headers=headers, timeout=100)\n    if res.status_code != 204: # No Content\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - phones resource was deleted')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_link_campaigns": {
            "get": {
                "operationId": "api_short_link_campaigns_get_collection",
                "tags": [
                    "campaigns"
                ],
                "responses": {
                    "200": {
                        "description": "short_link_campaigns collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.short_link_campaigns.jsonld-short_link_campaign_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.short_link_campaigns-short_link_campaign_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista wszystkich kampanii kr\u00f3tkich link\u00f3w",
                "description": "Pobierz list\u0119 wszystkich istniej\u0105cych kampanii kr\u00f3tkich link\u00f3w posortowan\u0105 wed\u0142ug pola `created_at` w kolejno\u015bci malej\u0105cej.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.common.created_at"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link.name.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.url.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.created_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.created_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.array"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/short_link_campaigns \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/short_link_campaigns?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/short_link_campaigns?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.short_links;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetShortLinkCampaignCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/short_link_campaigns?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"page=1\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_link_campaigns?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/short_link_campaigns';\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = \"https://api.lox24.eu/short_link_campaigns?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - items collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            },
            "post": {
                "operationId": "api_short_link_campaigns_post_collection",
                "tags": [
                    "campaigns"
                ],
                "responses": {
                    "201": {
                        "description": "short_link_campaigns resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_campaigns.jsonld-short_link_campaign_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_campaigns-short_link_campaign_read"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Utw\u00f3rz kampani\u0119 kr\u00f3tkich link\u00f3w",
                "description": "Utw\u00f3rz now\u0105 encj\u0119 kampanii kr\u00f3tkich link\u00f3w z docelowym adresem URL, typem i nazw\u0105",
                "parameters": [],
                "requestBody": {
                    "description": "The new short_link_campaigns resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.short_link_campaigns-short_link_campaign_write"
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/short_link_campaigns \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n      \"type\": 2,\n      \"name\": \"test #2\",\n      \"url\": \"https://some-destination-endpoint.here\"\n  }'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/short_link_campaigns\";\n\n            var data = new {\n                type = 2,\n                name = \"test #2\",\n                url = \"https://some-destination-endpoint.here\",\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"item resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create item\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/short_link_campaigns\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"type\": 2,\n\t\t\"name\": \"test #2\",\n\t\t\"url\": \"https://some-destination-endpoint.here\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.short_links;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class AddShortLinkCampaignItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/short_link_campaigns\";\n\n        var json = new JSONObject();\n\n        json.put(\"type\", 2);\n        json.put(\"name\", \"test #2\");\n        json.put(\"url\", \"https://some-destination-endpoint.here\");\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create item\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    type: 2,\n    name: \"test #2\",\n    url: \"https://some-destination-endpoint.here\"\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_link_campaigns',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 402) {\n        console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/short_link_campaigns';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    \"type\" => 2,\n    \"name\" => \"test #2\",\n    \"url\" => \"https://some-destination-endpoint.here\",\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/short_link_campaigns'\n\n\ndata = {\n   'type': 2,\n   'name': 'test #2',\n   'url': 'https://some-destination-endpoint.here'\n}\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        print(\"Error: Wrong response code on create campaign\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 402:\n        print(\"Error:402 There are not enough funds on your account!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_link_campaigns/subscribe": {
            "post": {
                "operationId": "post_subscribe",
                "tags": [
                    "campaigns"
                ],
                "responses": {
                    "201": {
                        "description": "short_link_campaigns resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_campaigns.jsonld-short_link_campaign_subscribe_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_campaigns-short_link_campaign_subscribe_read"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Utw\u00f3rz kampani\u0119 z formularzem zapisu",
                "description": "Tworzy kampani\u0119 kr\u00f3tkich link\u00f3w udost\u0119pniaj\u0105c\u0105 URL do formularza zapisu, w kt\u00f3rym u\u017cytkownicy mog\u0105 zapisywa\u0107 si\u0119 na kampanie. Numer telefonu u\u017cytkownika zostanie dodany do zdefiniowanej przez u\u017cytkownika grupy wskazanej podczas tworzenia kampanii.",
                "parameters": [],
                "requestBody": {
                    "description": "The new short_link_campaigns resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.short_link_campaigns-short_link_campaign_subscribe_write"
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/short_link_campaigns/subscription \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n      \"name\": \"test #2\",\n      \"group_id\": 12345\n  }'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/short_link_campaigns/subscription\";\n\n            var data = new {\n                name = \"test #2\",\n                group_id = 12345,\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"item resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create item\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/short_link_campaigns/subscription\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"name\": \"test #2\",\n\t\t\"group_id\": 12345\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.short_links;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class AddShortLinkCampaignItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/short_link_campaigns/subscription\";\n\n        var json = new JSONObject();\n\n        json.put(\"name\", \"test #2\");\n        json.put(\"group_id\", 12345);\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create item\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    group_id: 12345,\n    name: \"test #2\"\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_link_campaigns/subscription',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 402) {\n        console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/short_link_campaigns/subscription';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    \"group_id\" => 12345,\n    \"name\" => \"test #2\",\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/short_link_campaigns/subscription'\n\n\ndata = {\n   'group_id': 2,\n   'name': 'test #2',\n}\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        print(\"Error: Wrong response code on create campaign\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 402:\n        print(\"Error:402 There are not enough funds on your account!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_link_campaigns/unsubscribe": {
            "post": {
                "operationId": "post_unsubscribe",
                "tags": [
                    "campaigns"
                ],
                "responses": {
                    "201": {
                        "description": "short_link_campaigns resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_campaigns.jsonld-short_link_campaign_subscribe_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_campaigns-short_link_campaign_subscribe_read"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Utw\u00f3rz kampani\u0119 z formularzem wypisu",
                "description": "Tworzy kampani\u0119 kr\u00f3tkich link\u00f3w przekierowuj\u0105c\u0105 u\u017cytkownik\u00f3w do specjalnego formularza wypisu, gdzie mog\u0105 wypisa\u0107 si\u0119 z powiadomie\u0144 SMS i opcjonalnie poda\u0107 pow\u00f3d. Opcjonalnie mo\u017cesz wskaza\u0107 grup\u0119 telefon\u00f3w, w kt\u00f3rej b\u0119d\u0105 gromadzone dane. Nawet bez wskazania grupy numer telefonu zostanie dodany do listy zablokowanych numer\u00f3w z typem 2 (wypisany).",
                "parameters": [],
                "requestBody": {
                    "description": "The new short_link_campaigns resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.short_link_campaigns-short_link_campaign_subscribe_write"
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/short_link_campaigns/unsubscription \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n      \"name\": \"test #2\",\n      \"group_id\": 12345\n  }'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/short_link_campaigns/unsubscription\";\n\n            var data = new {\n                name = \"test #2\",\n                group_id = 12345,\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"item resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create item\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/short_link_campaigns/unsubscription\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"name\": \"test #2\",\n\t\t\"group_id\": 12345\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.short_links;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class AddShortLinkCampaignItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/short_link_campaigns/unsubscription\";\n\n        var json = new JSONObject();\n\n        json.put(\"name\", \"test #2\");\n        json.put(\"group_id\", 12345);\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create item\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    group_id: 12345,\n    name: \"test #2\"\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_link_campaigns/unsubscription',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 402) {\n        console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/short_link_campaigns/unsubscription';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    \"group_id\" => 12345,\n    \"name\" => \"test #2\",\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/short_link_campaigns/unsubscription'\n\n\ndata = {\n   'group_id': 2,\n   'name': 'test #2',\n}\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        print(\"Error: Wrong response code on create campaign\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 402:\n        print(\"Error:402 There are not enough funds on your account!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_link_campaigns/{code}": {
            "get": {
                "operationId": "api_short_link_campaigns_get_item",
                "tags": [
                    "campaigns"
                ],
                "responses": {
                    "200": {
                        "description": "short_link_campaigns resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_campaigns.jsonld-short_link_campaign_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_campaigns-short_link_campaign_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobierz dane kr\u00f3tkiego linku wed\u0142ug ID kampanii",
                "description": "Pobierz konkretn\u0105 kampani\u0119 kr\u00f3tkich link\u00f3w wed\u0142ug jej ID. Je\u015bli kampania nie zostanie znaleziona, odpowied\u017a HTTP b\u0119dzie mia\u0142a kod 404.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.short_link_campaigns.code"
                    }
                ],
                "deprecated": false
            },
            "put": {
                "operationId": "api_short_link_campaigns_put_item",
                "tags": [
                    "campaigns"
                ],
                "responses": {
                    "200": {
                        "description": "short_link_campaigns resource updated",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_campaigns.jsonld-short_link_campaign_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_campaigns-short_link_campaign_read"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Edytuj kampani\u0119 kr\u00f3tkich link\u00f3w",
                "description": "Edytuj warto\u015bci konkretnej kampanii kr\u00f3tkich link\u00f3w. Je\u015bli kampania nie zostanie znaleziona, odpowied\u017a HTTP b\u0119dzie mia\u0142a kod 404.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.short_link_campaigns.code"
                    }
                ],
                "requestBody": {
                    "description": "The updated short_link_campaigns resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.short_link_campaigns-short_link_campaign_write"
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X PUT https://api.lox24.eu/short_link_campaigns/campaign_id_here \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n      \"type\": 2,\n      \"name\": \"test #2\",\n      \"url\": \"https://some-destination-endpoint.here\"\n  }'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/short_link_campaigns/campaign_id_here\";\n\n            var data = new {\n                name = \"test #2\",\n                url = \"https://some-destination-endpoint.here\",\n            };\n\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"item resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create item\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"PUT\"\n\tconst URL = \"https://api.lox24.eu/short_link_campaigns/campaign_id_here\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"name\": \"test #2\",\n\t\t\"url\": \"https://some-destination-endpoint.here\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.short_links;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class EditShortLinkCampaignItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/short_link_campaigns/campaign_id_here\";\n\n        var json = new JSONObject();\n        json.put(\"type\", 2);\n        json.put(\"name\", \"test #2\");\n        json.put(\"url\", \"https://some-destination-endpoint.here\");\n\n        var data = json.toString();\n\n        System.out.println(\"PUT data: \" + data);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .PUT(HttpRequest.BodyPublishers.ofString(data))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success: \" + httpResponse.statusCode() + \" resource updated\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on update a campaign\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = 'campaign_id_here';\n\nvar postObj = {\n    name: \"test #2\",\n    url: \"https://some-destination-endpoint.here\"\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_link_campaigns/' + id,\n    method: 'PUT',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log(\"Success: code = 201 - resource updated\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode);\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/short_link_campaigns/campaign_id_here';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    \"name\" => \"test #2\",\n    \"url\" => \"https://some-destination-endpoint.here\",\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_CUSTOMREQUEST => 'PUT',\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nid = \"short_link_campaigns\"\n\nurl = f'https://api.lox24.eu/short_link_campaigns/{id}'\n\n\ndata = {\n   'name': 'test #2',\n   'url': 'https://some-destination-endpoint.here'\n}\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.put(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 200: # OK\n        print(\"Error: Wrong response code on update campaign\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - campaign updated')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            },
            "delete": {
                "operationId": "api_short_link_campaigns_delete_item",
                "tags": [
                    "campaigns"
                ],
                "responses": {
                    "204": {
                        "$ref": "#/components/responses/204-deleted"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Usu\u0144 kampani\u0119 kr\u00f3tkich link\u00f3w",
                "description": "Usu\u0144 kampani\u0119 kr\u00f3tkich link\u00f3w. Je\u015bli kampania nie zostanie znaleziona, odpowied\u017a HTTP b\u0119dzie mia\u0142a kod 404.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.short_link_campaigns.code"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X DELETE https://api.lox24.eu/short_link_campaigns/campaign_id_here  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n            var id = \"campaign_id_here\";\n            string url = \"https://api.lox24.eu/short_link_campaigns/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"DELETE\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    if(resp.StatusCode == HttpStatusCode.NoContent) { //204\n                        Console.WriteLine(\"Success: item was deleted\");\n                    } else {\n                        Console.WriteLine(\"Error: something went wrong, code({0})\", respCode);\n                        Stream respStream = resp.GetResponseStream();\n                        using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                        {\n                            string responseText = sr.ReadToEnd();\n\n                            JObject parsed = JObject.Parse(responseText);\n\n                            foreach (var pair in parsed)\n                            {\n                                Console.WriteLine(\"{0}: {1}\", pair.Key, pair.Value);\n                            }\n                        }\n                    }\n\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"DELETE\"\n\tconst URL = \"https://api.lox24.eu/short_link_campaigns/campaign_id_here\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tswitch res.StatusCode {\n\tcase 204:\n\t\tfmt.Println(\"Item was deleted!\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.short_links;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class DeleteShortLinkCampaignItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var userId = \"1234567\";\n\n        var id = \"campaign_id_here\";\n        var url = \"https://api.lox24.eu/short_link_campaigns/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .DELETE()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"item was delete.\");\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                JSONObject parsed = new JSONObject(httpResponse.body());\n\n                parsed.keys().forEachRemaining(jsonKey -> System.out.println(jsonKey + \":\" + parsed.get(jsonKey)));\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = 'campaign_id_here';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_link_campaigns/' + id,\n    method: 'DELETE',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 204) {\n        console.log('Success: code = 204 - resource deleted');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = 'campaign_id_here';\n$uri = 'https://api.lox24.eu/short_link_campaigns/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_CUSTOMREQUEST => 'DELETE',\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\nif(204 === $code) {\n    echo \"Item with id = $id was deleted!\";\n} elseif(404 === $code) {\n    echo \"Item with id = $id not found!\";\n} else {\n    $data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n    echo \"Campaign: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nid = \"campaign_id_here\"\n\nurl = f'https://api.lox24.eu/short_link_campaigns/{id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.delete(url, headers=headers, timeout=100)\n    if res.status_code != 204: # No Content\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - item was deleted')\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/bulks/{id}/requests": {
            "get": {
                "operationId": "get_bulk_requests",
                "tags": [
                    "requests"
                ],
                "responses": {
                    "200": {
                        "description": "short_link_requests collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.short_link_requests.jsonld-short_link_request_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.short_link_requests-short_link_request_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista wed\u0142ug ID masowej wiadomo\u015bci SMS",
                "description": "Lista wszystkich \u017c\u0105da\u0144 wed\u0142ug ID masowej wiadomo\u015bci SMS",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.bulks.id"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.short_link_request.date"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.ip.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.url.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.user_agent.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.country.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.country.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.referer.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.browser.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.os.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.os_version.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.software_type.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.hardware_type.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.between"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.gt"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.gte"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.lt"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.lte"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/bulks/{bulk_id_here}/requests \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string bulk = \"bulk_id_here\";\n            string url = \"https://api.lox24.eu/bulks/\" + bulk + \"/requests?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/bulks/{bulk_id_here}/requests?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/bulks/{bulk_id_here}/requests?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"page=1\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/bulks/{bulk_id_here}/requests?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n$bulkId = 'bulk_id';\n\n$uri = \"https://api.lox24.eu/bulks/$bulkId/requests\";\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nbulkId = \"bulk_id\"\n\nurl = \"https://api.lox24.eu/bulks/{bulk_id}/requests?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - items collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_link_campaigns/{code}/requests": {
            "get": {
                "operationId": "get_campaign_requests",
                "tags": [
                    "requests"
                ],
                "responses": {
                    "200": {
                        "description": "short_link_requests collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.short_link_requests.jsonld-short_link_request_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.short_link_requests-short_link_request_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista \u017c\u0105da\u0144 wed\u0142ug kampanii",
                "description": "Wy\u015bwietla wszystkie klikni\u0119cia w kr\u00f3tkie linki dla konkretnej kampanii",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.short_link_campaigns.code"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.short_link_request.date"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.ip.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.url.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.user_agent.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.country.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.country.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.referer.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.browser.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.os.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.os_version.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.software_type.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.hardware_type.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.between"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.gt"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.gte"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.lt"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.lte"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu//short_link_campaigns/{campaign_id}/requests \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string campaign = \"campaign_id_here\";\n            string url = \"https://api.lox24.eu/short_link_campaigns/\" + campaign + \"/requests?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/short_link_campaigns/{campaign_id_here}/requests?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/short_link_campaigns/{campaign_id_here}/requests?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"page=1\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_link_campaigns/{campaign_id_here}/requests?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n$campaignId = 'campaign_id';\n\n$uri = \"https://api.lox24.eu/short_link_campaigns/$campaignId/requests\";\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\ncampaignId = \"campaign_id\"\n\nurl = \"https://api.lox24.eu/short_link_campaigns/{campaignId}/requests?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - items collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_link_requests": {
            "get": {
                "operationId": "api_short_link_requests_get_collection",
                "tags": [
                    "requests"
                ],
                "responses": {
                    "200": {
                        "description": "short_link_requests collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.short_link_requests.jsonld-short_link_request_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.short_link_requests-short_link_request_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista wszystkich \u017c\u0105da\u0144",
                "description": "Wy\u015bwietla wszystkie klikni\u0119cia w kr\u00f3tkie linki",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.short_link_request.date"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.ip.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.url.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.user_agent.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.country.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.country.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.referer.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.browser.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.browser_version.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.os.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.os_version.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.software_type.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.hardware_type.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.between"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.gt"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.gte"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.lt"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.lte"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/short_link_requests \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/short_link_requests?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/short_link_requests?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/short_link_requests?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"page=1\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_link_requests?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/short_link_requests';\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = \"https://api.lox24.eu/short_link_requests?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - items collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_link_requests/{id}": {
            "get": {
                "operationId": "api_short_link_requests_get_item",
                "tags": [
                    "requests"
                ],
                "responses": {
                    "200": {
                        "description": "short_link_requests resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_requests.jsonld-short_link_request_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_link_requests-short_link_request_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Informacje o \u017c\u0105daniu",
                "description": "Pobierz szczeg\u00f3\u0142owe informacje o klikni\u0119ciu w kr\u00f3tki link",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.short_link_requests.id"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl https://api.lox24.eu/short_link_requests/request_id_here  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string id = \"request_id_here\";\n\n            string url = \"https://api.lox24.eu/short_link_requests/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"item resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/short_link_requests/request_id_here\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var userId = \"1234567\";\n        var id = \"request_id_here\";\n\n        var url = \"https://api.lox24.eu/short_link_requests\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = 'request_id_here';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_link_requests/' + id,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = 'request_id_here';\n$uri = 'https://api.lox24.eu/short_link_requests/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Item with id = $id not found!\";\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nid = \"request_id\"\n\nurl = f'https://api.lox24.eu/short_link_requests/{id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_links/{shortCode}/requests": {
            "get": {
                "operationId": "get_short_links_requests",
                "tags": [
                    "requests"
                ],
                "responses": {
                    "200": {
                        "description": "short_link_requests collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.short_link_requests.jsonld-short_link_request_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.short_link_requests-short_link_request_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista wed\u0142ug kr\u00f3tkiego linku",
                "description": "Lista wszystkich \u017c\u0105da\u0144 wed\u0142ug kodu kampanii kr\u00f3tkich link\u00f3w",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.short_links.shortCode"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.short_link_request.date"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.ip.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.url.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.user_agent.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.country.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.country.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.referer.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.browser.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.browser_version.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.os.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.os_version.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.software_type.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.hardware_type.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.between"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.gt"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.gte"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.lt"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.lte"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/short_links/{short_link_id}/requests \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string link = \"short_link_id\";\n            string url = \"https://api.lox24.eu/short_links/\" + link + \"/requests?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/short_links/{short_link_id_here}/requests?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/short_links/{short_link_id_here}/requests?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"page=1\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_links/{short_link_id_here}/requests?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n$linkId = 'campaign_id';\n\n$uri = \"https://api.lox24.eu/short_links/$linkId/requests\";\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nlinkId = \"short_link_id\"\n\nurl = \"https://api.lox24.eu/short_links/{linkId}/requests?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - items collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/sms/{uuid}/requests": {
            "get": {
                "operationId": "get_sms_requests",
                "tags": [
                    "requests"
                ],
                "responses": {
                    "200": {
                        "description": "short_link_requests collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.short_link_requests.jsonld-short_link_request_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.short_link_requests-short_link_request_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista wed\u0142ug wiadomo\u015bci SMS",
                "description": "Lista wszystkich \u017c\u0105da\u0144 wed\u0142ug pojedynczego ID wiadomo\u015bci SMS",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.sms.uuid"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.short_link_request.date"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.ip.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.url.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.user_agent.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.country.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.country.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.referer.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.type.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.browser.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.os.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.os_version.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.software_type.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.hardware_type.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.between"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.gt"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.gte"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.lt"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.date.lte"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/sms/{sms_id}/requests \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\t\t\tstring sms = \"sms_id\";\n\t\t\tstring url = \"https://api.lox24.eu/sms/\" + sms + \"/requests?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/sms/{sms_id_here}/requests?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/sms/{sms_id_here}/requests?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"page=1\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/sms/{sms_id_here}/requests?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n$smsId = 'sms_id';\n\n$uri = \"https://api.lox24.eu/sms/$smsId/requests\";\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nsmsId = \"sms_id\"\n\nurl = \"https://api.lox24.eu/sms/{smsId}/requests?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - items collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_links": {
            "get": {
                "operationId": "api_short_links_get_collection",
                "tags": [
                    "links"
                ],
                "responses": {
                    "200": {
                        "description": "short_links collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.short_links.jsonld-short_link_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.short_links-short_link_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista wszystkich pojedynczych kr\u00f3tkich link\u00f3w",
                "description": "Lista wszystkich kr\u00f3tkich link\u00f3w u\u017cytych we wszystkich istniej\u0105cych kampaniach.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.common.updated_at"
                    },
                    {
                        "$ref": "#/components/parameters/filter.short_link_request.url.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.updated_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.updated_at.array"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/short_links \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/short_links?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/short_links?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/short_links?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"page=1\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_links?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/short_links';\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = \"https://api.lox24.eu/short_links?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - items collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_links/{shortCode}": {
            "get": {
                "operationId": "api_short_links_get_item",
                "deprecated": false,
                "responses": {
                    "200": {
                        "description": "short_links resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_links.jsonld-short_link_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.short_links-short_link_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Dane pojedynczego kr\u00f3tkiego linku wed\u0142ug ID",
                "description": "Pobierz wszystkie informacje o konkretnym kr\u00f3tkim linku.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.short_links.shortCode"
                    }
                ],
                "tags": [
                    "links"
                ],
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl https://api.lox24.eu/short_links/short_link_id  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string id = \"short_link_id\";\n\n            string url = \"https://api.lox24.eu/short_links/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"item resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/short_links/short_link_id\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var userId = \"1234567\";\n        var id = \"short_link_id\";\n\n        var url = \"https://api.lox24.eu/short_links/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = 'short_link_id';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_links/' + id,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = 'short_link_id';\n$uri = 'https://api.lox24.eu/short_links/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Item with id = $id not found!\";\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nid = \"short_link_id\"\n\nurl = f'https://api.lox24.eu/short_links/{id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/sms": {
            "get": {
                "operationId": "api_sms_get_collection",
                "tags": [
                    "sms"
                ],
                "responses": {
                    "200": {
                        "description": "sms collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.sms.jsonld-sms_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "$ref": "#/components/schemas/hydra.totalItems"
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.sms-sms_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera kolekcj\u0119 SMS-\u00f3w",
                "description": "Pobieranie listy wiadomo\u015bci ze skrzynki nadawczej, uporz\u0105dkowanej wed\u0142ug pola `created_at` w kolejno\u015bci malej\u0105cej. Skrzynka nadawcza zawiera wszystkie wys\u0142ane, niewys\u0142ane i anulowane SMS-y. Opcjonalnie mo\u017cesz sortowa\u0107 tak\u017ce wed\u0142ug ceny lub czasu przekazania do operatora sieci. Masz r\u00f3wnie\u017c mo\u017cliwo\u015b\u0107 przekazania r\u00f3\u017cnych kryteri\u00f3w wyszukiwania, aby ograniczy\u0107 wynik wiadomo\u015bci ze skrzynki.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "$ref": "#/components/parameters/order.common.created_at"
                    },
                    {
                        "$ref": "#/components/parameters/order.messages.gateway_sent_at"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.is_sent.boolean"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.is_unicode.boolean"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.uuid.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.uuid.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.iso2.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.iso2.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.dlr_code.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.dlr_code.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.status_code.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.status_code.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.gateway_sent_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.gateway_sent_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.delivery_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.delivery_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.created_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.created_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.chars_count.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.chars_count.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.parts_count.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.parts_count.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.bulk.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.bulk.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.source.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.source.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.text.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.phone.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.sender_id.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.ip.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.key_id.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.key_id.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.callback_data.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.callback_data.array"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/sms \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/sms\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"bulks collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/sms?created_at[gte]=1590737094\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetSmsCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/sms?created_at[gte]=1590737094\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\")\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder().build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"bulks collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error:\" + httpResponse.statusCode());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"uuid[]=44657141-9830-11ea-aa81-96000028b339&uuid[]=5dd2ba0e-9830-11ea-aa81-96000028b339&_order[created_at]=desc\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/sms?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - sms resource response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/sms';\n\n$filters = [\n    'text' => 'Test',\n    'uuid' => [\n        '8481900d-86ce-11ea-aa81-96000028b339',\n        'd5ceb189-86cd-11ea-aa81-96000028b339',\n    ],\n    'page' => 1,\n    '_order' => [\n        'created_at' => 'asc'\n    ],\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/sms?created_at[gte]=1590737094'\n\n\nheaders = {\n    'Accept': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - sms collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n",
                        "label": "Python"
                    }
                ]
            },
            "post": {
                "operationId": "api_sms_post_collection",
                "tags": [
                    "sms"
                ],
                "responses": {
                    "201": {
                        "description": "sms resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.sms.jsonld-sms_read"
                                },
                                "examples": {
                                    "example_sms_response_basic_sms": {
                                        "$ref": "#/components/examples/example_sms_response_basic_sms_jsonld"
                                    },
                                    "example_sms_response_jsonld_translit": {
                                        "$ref": "#/components/examples/example_sms_response_translit_jsonld"
                                    },
                                    "example_sms_response_jsonld_delete_text": {
                                        "$ref": "#/components/examples/example_sms_response_delete_text_jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.sms-sms_read"
                                },
                                "examples": {
                                    "example_sms_response_basic_sms": {
                                        "$ref": "#/components/examples/example_sms_response_basic_sms"
                                    },
                                    "example_sms_response_translit": {
                                        "$ref": "#/components/examples/example_sms_response_translit"
                                    },
                                    "example_sms_response_delete_text": {
                                        "$ref": "#/components/examples/example_sms_response_delete_text"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "402": {
                        "$ref": "#/components/responses/402-not-enough-funds"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Wysy\u0142anie SMS-a",
                "description": "Wy\u015blij dane kr\u00f3tkiej wiadomo\u015bci, takie jak tre\u015b\u0107, numer docelowy i identyfikacja nadawcy, za pomoc\u0105 \u017c\u0105dania POST, a my przeka\u017cemy wiadomo\u015b\u0107 do sieci docelowej.",
                "parameters": [],
                "requestBody": {
                    "description": "The new sms resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.sms-write"
                            },
                            "examples": {
                                "example_sms_request_minimal": {
                                    "$ref": "#/components/examples/example_sms_request_minimal"
                                },
                                "example_sms_request_text2speech": {
                                    "$ref": "#/components/examples/example_sms_request_text2speech"
                                },
                                "example_sms_request_text2speech_ssml": {
                                    "$ref": "#/components/examples/example_sms_request_text2speech_ssml"
                                },
                                "example_sms_request_text2speech_single_call": {
                                    "$ref": "#/components/examples/example_sms_request_text2speech_single_call"
                                },
                                "example_sms_request_unicode": {
                                    "$ref": "#/components/examples/example_sms_request_unicode"
                                },
                                "example_sms_request_translit": {
                                    "$ref": "#/components/examples/example_sms_request_translit"
                                },
                                "example_sms_request_delete_text": {
                                    "$ref": "#/components/examples/example_sms_request_delete_text"
                                },
                                "example_sms_request_callback": {
                                    "$ref": "#/components/examples/example_sms_request_callback"
                                }
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/sms \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n    \"sender_id\": \"My Sender\",\n    \"phone\": \"+49751234567\",\n    \"source\": 111,\n    \"service_code\": \"direct\",\n    \"text\": \"Test message\",\n    \"delivery_at\": 1573724611,\n    \"is_unicode\": true,\n    \"callback_data\": \"123456\",\n    \"voice_lang\": \"DE\"\n}'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/sms\";\n\n            var data = new {\n                sender_id = \"My Sender\",\n                text = \"Test message\",\n                service_code = \"direct\",\n                phone = \"+49751234567\",\n                delivery_at = 1573724611,\n                is_unicode = true,\n                callback_data = \"123456\",\n                voice_lang = \"DE\"\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"sms resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create sms\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.PaymentRequired: // 402\n                        Console.WriteLine(\"Error:402 There are not enough funds on your account!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/sms\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"sender_id\":    \"My Sender\",\n\t\t\"phone\":        \"+49751234567\",\n\t\t\"source\":       111,\n\t\t\"service_code\": \"direct\",\n\t\t\"text\":         \"Test message\",\n\t\t\"delivery_at\":  1593724611,\n\t\t\"is_unicode\":   true,\n\t\t\"callback_data\": \"123456\",\n\t\t\"voice_lang\": \"DE\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PostSmsCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/sms\";\n\n        var json = new JSONObject();\n        json.put(\"sender_id\", \"My Sender\");\n        json.put(\"text\", \"Test message\");\n        json.put(\"service_code\", \"direct\");\n        json.put(\"phone\", \"+49751234567\");\n        json.put(\"delivery_at\", 1573724611);\n        json.put(\"is_unicode\", true);\n        json.put(\"callback_data\", \"123456\");\n        json.put(\"voice_lang\", \"DE\");\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"sms resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create sms\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_PAYMENT_REQUIRED: // 402\n                        System.out.println(\"Error:402 There are not enough funds on your account!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "/*\n * Post sms\n */\nconst token = \"7b7c6063bab885ce79814b5ff1ee6885\";\n\nvar postObj = {\n    sender_id: 'My Sender',\n    text: 'Test message',\n    service_code: 'direct',\n    phone: '+49751234567',\n    delivery_at: 1573724611,\n    is_unicode: true,\n    callback_data: \"123456\",\n    voice_lang: \"DE\"\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: 'api.lox24.eu',\n    path: '/sms',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - sms resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    }\n    else if (res.statusCode == 400) console.log(\"Error: code = 400 - Invalid input\");\n    else if (res.statusCode == 401) console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    else if (res.statusCode == 402) console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    else if (res.statusCode == 403) console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/sms';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    'sender_id' => 'My Sender',\n    'text' => \"First line\\nSecond line\",\n    'service_code' => 'direct',\n    'phone' => '+49751234567',\n    'delivery_at' => 1573724611,\n    'is_unicode' => true,\n    'callback_data' => '123456',\n    'voice_lang' => 'DE',\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/sms'\n\n\ndata = {\n    'sender_id': \"My Sender\",\n    'text' : \"Test message\",\n    'service_code' : \"direct\",\n    'phone': \"+49751234567\",\n    'delivery_at': 1573724611,\n    'is_unicode': True,\n    'callback_data' => '123456',\n    'voice_lang' => 'DE'\n}\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        print(\"Error: Wrong response code on create sms\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - sms resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 402:\n        print(\"Error:402 There are not enough funds on your account!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/sms/dryrun": {
            "post": {
                "operationId": "api_sms_post_dryrun_collection",
                "tags": [
                    "sms"
                ],
                "responses": {
                    "201": {
                        "description": "sms resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.sms.jsonld-sms_read"
                                },
                                "examples": {
                                    "example_sms_response_basic_sms": {
                                        "$ref": "#/components/examples/example_sms_response_basic_sms_jsonld"
                                    },
                                    "example_sms_response_jsonld_translit": {
                                        "$ref": "#/components/examples/example_sms_response_translit_jsonld"
                                    },
                                    "example_sms_response_jsonld_delete_text": {
                                        "$ref": "#/components/examples/example_sms_response_delete_text_jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.sms-sms_read"
                                },
                                "examples": {
                                    "example_sms_response_basic_sms": {
                                        "$ref": "#/components/examples/example_sms_response_basic_sms"
                                    },
                                    "example_sms_response_dryrun_translit": {
                                        "$ref": "#/components/examples/example_sms_response_translit"
                                    },
                                    "example_sms_response_dryrun_delete_text": {
                                        "$ref": "#/components/examples/example_sms_response_delete_text"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Symulacja wys\u0142ania SMS-a (do test\u00f3w)",
                "description": "Ten endpoint nie wysy\u0142a \u017cadnego SMS-a, lecz emuluje proces i odpowied\u017a. Mo\u017cna go u\u017cy\u0107 do sprawdzenia ceny SMS-a lub przetestowania API podczas integracji. W\u0142a\u015bciwo\u015b\u0107 `uuid` b\u0119dzie zawsze r\u00f3wna `11111111-2222-3333-4444-55555555555`. \u017badne dane nie zostan\u0105 zapisane w LOX24, dlatego nie mo\u017cna pobra\u0107 informacji o SMS przez `GET /sms/{id}`. [Raport DLR](/info/sms-delivery-report-codes-dlr/) jest odsy\u0142any w taki sam spos\u00f3b jak dla rzeczywistego SMS-a, je\u015bli adres URL lub e-mail dla DLR zosta\u0142 wcze\u015bniej skonfigurowany, ale z kodem statusu 0.",
                "parameters": [],
                "requestBody": {
                    "description": "The new sms resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.sms-write"
                            },
                            "examples": {
                                "example_sms_dryrun_request_minimal": {
                                    "$ref": "#/components/examples/example_sms_request_minimal"
                                },
                                "example_sms_dryrun_request_text2speech": {
                                    "$ref": "#/components/examples/example_sms_request_text2speech"
                                },
                                "example_sms_dryrun_request_text2speech_ssml": {
                                    "$ref": "#/components/examples/example_sms_request_text2speech_ssml"
                                },
                                "example_sms_dryrun_request_unicode": {
                                    "$ref": "#/components/examples/example_sms_request_unicode"
                                },
                                "example_sms_dryrun_request_translit": {
                                    "$ref": "#/components/examples/example_sms_request_translit"
                                },
                                "example_sms_dryrun_request_delete_text": {
                                    "$ref": "#/components/examples/example_sms_request_delete_text"
                                },
                                "example_sms_dryrun_request_callback": {
                                    "$ref": "#/components/examples/example_sms_request_callback"
                                }
                            }
                        }
                    },
                    "required": true
                },
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/sms/dryrun \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n    \"sender_id\": \"My Sender\",\n    \"phone\": \"+49751234567\",\n    \"source\": 111,\n    \"service_code\": \"direct\",\n    \"text\": \"Test message\",\n    \"delivery_at\": 1573724611,\n    \"is_unicode\": true,\n    \"callback_data\": \"123456\",\n    \"voice_lang\": \"DE\"\n}'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/sms/dryrun\";\n\n            var data = new {\n                sender_id = \"My Sender\",\n                text = \"Test message\",\n                service_code = \"direct\",\n                phone = \"+49751234567\",\n                delivery_at = 1573724611,\n                is_unicode = true,\n                voice_lang = \"DE\"\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"sms resource created in dryrun mode\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create sms\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/sms/dryrun\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"sender_id\":    \"My Sender\",\n\t\t\"phone\":        \"+49751234567\",\n\t\t\"source\":       111,\n\t\t\"service_code\": \"direct\",\n\t\t\"text\":         \"Test message\",\n\t\t\"delivery_at\":  1593724611,\n\t\t\"is_unicode\":   true,\n\t\t\"voice_lang\": \"DE\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PostSmsCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/sms/dryrun\";\n\n        var json = new JSONObject();\n        json.put(\"sender_id\", \"My Sender\");\n        json.put(\"text\", \"Test message\");\n        json.put(\"service_code\", \"direct\");\n        json.put(\"phone\", \"+49751234567\");\n        json.put(\"delivery_at\", 1573724611);\n        json.put(\"is_unicode\", true);\n        json.put(\"voice_lang\", \"DE\");\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"sms resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create sms\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    sender_id: 'My Sender',\n    text: 'Test message',\n    service_code: 'direct',\n    phone: '+49751234567',\n    delivery_at: 1573724611,\n    is_unicode: true,\n    voice_lang: \"DE\"\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/sms/dryrun',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - sms resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 402) {\n        console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/sms/dryrun';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n\n$body = [\n    'sender_id' => 'My Sender',\n    'text' => \"First line\\nSecond line\",\n    'service_code' => 'direct',\n    'phone' => '+49751234567',\n    'delivery_at' => 1573724611,\n    'is_unicode' => true,\n    'voice_lang' => 'DE',\n];\n\n;\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/sms/dryrun'\n\n\ndata = {\n    'sender_id': \"My Sender\",\n    'text' : \"Test message\",\n    'service_code' : \"direct\",\n    'phone': \"+49751234567\",\n    'delivery_at': 1573724611,\n    'is_unicode': True,\n    'callback_data' => '123456',\n    'voice_lang' => 'DE'\n}\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        print(\"Error: Wrong response code on create sms\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - sms resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 402:\n        print(\"Error:402 There are not enough funds on your account!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/sms/ops/batch_cancel": {
            "post": {
                "operationId": "sms_ops_cancel",
                "tags": [
                    "sms"
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.sms-batch-cancel-response"
                                }
                            }
                        },
                        "description": "Count of the canceled SMS"
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Zatrzymywanie odroczonych i jeszcze niewys\u0142anych wiadomo\u015bci SMS",
                "description": "Za pomoc\u0105 tego API mo\u017cesz usun\u0105\u0107 wiadomo\u015bci SMS, kt\u00f3re nie zosta\u0142y jeszcze wys\u0142ane, lub przerwa\u0107 proces wysy\u0142ania. W przypadku zaplanowanych wiadomo\u015bci SMS czas transmisji musi przypada\u0107 w przysz\u0142o\u015bci. Je\u015bli SMS nie jest zaplanowany, przekazanie do operatora sieci kom\u00f3rkowej mo\u017ce potrwa\u0107 kilka sekund, co w wyj\u0105tkowych przypadkach mo\u017ce pozwoli\u0107 na zatrzymanie transmisji.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/order.common.created_at"
                    },
                    {
                        "$ref": "#/components/parameters/order.messages.gateway_sent_at"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.is_sent.boolean"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.is_unicode.boolean"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.uuid.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.uuid.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.iso2.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.iso2.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.dlr_code.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.dlr_code.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.status_code.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.status_code.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.gateway_sent_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.gateway_sent_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.delivery_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.delivery_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.created_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.created_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.chars_count.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.chars_count.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.parts_count.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.parts_count.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.bulk.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.bulk.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.source.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.source.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.text.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.phone.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.sender_id.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.ip.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.key_id.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.key_id.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.callback_data.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.callback_data.array"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "curl -X POST https://api.lox24.eu/sms/ops/batch_cancel?uuid=20f39273-0566-11ea-a637-96000028b339  \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string text = \"Test\";\n\n            var query = \"text=\" + text + \"&uuid[]=ab6b6ceb-903a-11ea-aa81-96000028b339&uuid[]=7c7a6661-902e-11ea-aa81-96000028b339\";\n            string url = \"https://api.lox24.eu/sms/ops/batch_cancel?\" + query;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"POST\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    if(resp.StatusCode == HttpStatusCode.OK) {\n                        Console.WriteLine(\"Success: SMS was canceled!\");\n                    } else {\n                        Console.WriteLine(\"Error: SMS wasn't canceled canceled!\");\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/sms/ops/batch_cancel?uuid=20f39273-0566-11ea-a637-96000028b339\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class SmsOpsCancelSmsCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n        var text = \"\";\n        var query = \"text=\" + text + \"&uuid[]=ab6b6ceb-903a-11ea-aa81-96000028b339&uuid[]=7c7a6661-902e-11ea-aa81-96000028b339\";\n        var url = \"https://api.lox24.eu/sms/ops/batch_cancel?\" + query;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(\"\"))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"Success: SMS was canceled!\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: SMS wasn't canceled!\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n\n                System.out.println(\"Error: \" + httpResponse.statusCode());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"uuid[]=44657141-9830-11ea-aa81-96000028b339&uuid[]=5dd2ba0e-9830-11ea-aa81-96000028b339&_order[created_at]=desc\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/sms/ops/batch_cancel?' + query,\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log(\"Success: code = 200 - Count of the canceled SMS\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/sms/ops/batch_cancel';\n\n$filters = [\n    //'text' => 'Test',\n    'uuid' => [\n        '8481900d-86ce-11ea-aa81-96000028b339',\n        'd5ceb189-86cd-11ea-aa81-96000028b339',\n    ],\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\necho $uri;\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\ntext = \"Test\"\n\nquery = f\"text={text}&uuid[]=ab6b6ceb-903a-11ea-aa81-96000028b339&uuid[]=7c7a6661-902e-11ea-aa81-96000028b339\"\n\nurl = f\"https://api.lox24.eu/sms/ops/batch_cancel?{query}\"\n\n\nheaders = {\n    'Accept': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, timeout=100)\n    if res.status_code != 200: # Ok\n        print(\"Error: SMS wasn't canceled\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - SMS was canceled')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/sms/ops/batch_delete": {
            "post": {
                "operationId": "sms_ops_delete",
                "tags": [
                    "sms"
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.sms-batch-delete-response"
                                }
                            }
                        },
                        "description": "Count of the deleted SMS"
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Masowe usuwanie wiadomo\u015bci SMS",
                "description": "Za pomoc\u0105 tego API mo\u017cesz usuwa\u0107 dowolne wiadomo\u015bci SMS",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/order.common.created_at"
                    },
                    {
                        "$ref": "#/components/parameters/order.messages.gateway_sent_at"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.is_sent.boolean"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.is_unicode.boolean"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.uuid.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.uuid.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.iso2.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.iso2.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.dlr_code.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.dlr_code.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.status_code.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.status_code.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.gateway_sent_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.gateway_sent_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.delivery_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.delivery_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.created_at.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.created_at.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.chars_count.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.chars_count.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.parts_count.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.parts_count.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.bulk.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.bulk.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.source.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.source.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.text.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.phone.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.sender_id.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.ip.partial"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.key_id.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.common.key_id.array"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.callback_data.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.messages.callback_data.array"
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/sms/ops/batch_delete?uuid=20f39273-0566-11ea-a637-96000028b339  \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string text = \"Test\";\n\n            var query = \"text=\" + text + \"&uuid[]=ab6b6ceb-903a-11ea-aa81-96000028b339&uuid[]=7c7a6661-902e-11ea-aa81-96000028b339\";\n            string url = \"https://api.lox24.eu/sms/ops/batch_delete?\" + query;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"POST\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    if(resp.StatusCode == HttpStatusCode.OK) {\n                        Console.WriteLine(\"Success: SMS was deleted!\");\n                    } else {\n                        Console.WriteLine(\"Error: SMS wasn't deleted!\");\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/sms/ops/batch_delete?uuid=20f39273-0566-11ea-a637-96000028b339\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class SmsOpsCancelSmsCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n        var text = \"\";\n        var query = \"text=\" + text + \"&uuid[]=ab6b6ceb-903a-11ea-aa81-96000028b339&uuid[]=7c7a6661-902e-11ea-aa81-96000028b339\";\n        var url = \"https://api.lox24.eu/sms/ops/batch_delete?\" + query;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(\"\"))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"Success: SMS was canceled!\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: SMS wasn't canceled!\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n\n                System.out.println(\"Error: \" + httpResponse.statusCode());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"uuid[]=44657141-9830-11ea-aa81-96000028b339&uuid[]=5dd2ba0e-9830-11ea-aa81-96000028b339&_order[created_at]=desc\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/sms/ops/batch_delete?' + query,\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log(\"Success: code = 200 - Count of the deleted SMS\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/sms/ops/batch_delete';\n\n$filters = [\n    //'text' => 'Test',\n    'uuid' => [\n        '8481900d-86ce-11ea-aa81-96000028b339',\n        'd5ceb189-86cd-11ea-aa81-96000028b339',\n    ],\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\necho $uri;\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'SMS canceled, info = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\ntext = \"Test\"\n\nquery = f\"text={text}&uuid[]=ab6b6ceb-903a-11ea-aa81-96000028b339&uuid[]=7c7a6661-902e-11ea-aa81-96000028b339\"\n\nurl = f\"https://api.lox24.eu/sms/ops/batch_delete?{query}\"\n\n\nheaders = {\n    'Accept': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\n\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, timeout=100)\n    if res.status_code != 200: # Ok\n        print(\"Error: SMS wasn't canceled\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - SMS was canceled')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/sms/{uuid}": {
            "get": {
                "operationId": "api_sms_get_item",
                "deprecated": false,
                "tags": [
                    "sms"
                ],
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/sms/20f39273-0566-11ea-a637-96000028b339 \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n\n            string url = \"https://api.lox24.eu/sms/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"sms resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/sms/981f6497-a03e-11ea-b2e9-b8ca3a65338c\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetBulksItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"343c785b-8567-11ea-aa81-96000028b339\";\n\n        var url = \"https://api.lox24.eu/sms/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '5dd2ba0e-9830-11ea-aa81-96000028b339';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/sms/' + id,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '11111111-2222-3333-4444-55555555555';\n$uri = 'https://api.lox24.eu/sms/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"SMS with id = {$id} not found!\";\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nsms_id = \"343c785b-8567-11ea-aa81-96000028b339\"\n\nurl = f'https://api.lox24.eu/sms/{sms_id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - sms resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "sms resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.sms.jsonld-sms_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.sms-sms_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera wpis SMS-a",
                "description": "Pobieranie pojedynczej encji SMS wed\u0142ug identyfikatora (`uuid`). Je\u015bli SMS nie zostanie znaleziony, odpowied\u017a b\u0119dzie mia\u0142a kod HTTP 404.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.sms.uuid"
                    }
                ]
            },
            "delete": {
                "operationId": "api_sms_delete_item",
                "deprecated": false,
                "tags": [
                    "sms"
                ],
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X DELETE https://api.lox24.eu/sms/20f39273-0566-11ea-a637-96000028b339 \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n            var id = \"851b600d-901e-11ea-aa81-96000028b339\";\n            string url = \"https://api.lox24.eu/sms/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"DELETE\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    if(resp.StatusCode == HttpStatusCode.NoContent) { //204\n                        Console.WriteLine(\"Success: sms was deleted\");\n                    } else {\n                        Console.WriteLine(\"Error: something went wrong, code({0})\", respCode);\n                        Stream respStream = resp.GetResponseStream();\n                        using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                        {\n                            string responseText = sr.ReadToEnd();\n\n                            JObject parsed = JObject.Parse(responseText);\n\n                            foreach (var pair in parsed)\n                            {\n                                Console.WriteLine(\"{0}: {1}\", pair.Key, pair.Value);\n                            }\n                        }\n                    }\n\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"DELETE\"\n\tconst URL = \"https://api.lox24.eu/sms/981f6497-a03e-11ea-b2e9-b8ca3a65338c\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tswitch res.StatusCode {\n\tcase 204:\n\t\tfmt.Println(\"Sms was deleted!\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class DeleteSmsItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n        var id = \"851b600d-901e-11ea-aa81-96000028b339\";\n        var url = \"https://api.lox24.eu/sms/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .DELETE()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"sms was delete.\");\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                JSONObject parsed = new JSONObject(httpResponse.body());\n\n                parsed.keys().forEachRemaining(jsonKey -> System.out.println(jsonKey + \":\" + parsed.get(jsonKey)));\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '20f39273-0566-11ea-a637-96000028b339';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/sms/' + id,\n    method: 'DELETE',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 204) {\n        console.log('Success: code = 204 - sms resource deleted');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '11111111-2222-3333-4444-55555555555';\n$uri = 'https://api.lox24.eu/sms/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_CUSTOMREQUEST => 'DELETE',\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\nif(204 === $code) {\n    echo \"SMS with id = {$id} was deleted!\";\n} elseif(404 === $code) {\n    echo \"SMS with id = {$id} not found!\";\n} else {\n    $data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n    echo \"SMS: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nsms_id = \"343c785b-8567-11ea-aa81-96000028b339\"\n\nurl = f'https://api.lox24.eu/sms/{sms_id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.delete(url, headers=headers, timeout=100)\n    if res.status_code != 204: # No Content\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - sms was deleted')\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ],
                "responses": {
                    "204": {
                        "$ref": "#/components/responses/204-deleted"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Usuwanie SMS-a",
                "description": "Usuwa encj\u0119 SMS wed\u0142ug identyfikatora (`uuid`). Odpowied\u017a endpointu nie zawiera tre\u015bci i ma kod HTTP 204, je\u015bli SMS zosta\u0142 usuni\u0119ty, lub 404, je\u015bli nie istnieje. Uwaga. SMS jest r\u00f3wnie\u017c usuwany z zestawienia szczeg\u00f3\u0142owego. P\u00f3\u017aniejsze reklamacje s\u0105 zatem wykluczone z powodu braku mo\u017cliwo\u015bci weryfikacji.",
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "SMS ID (`uuid`)"
                    }
                ]
            }
        },
        "/sms/clicks": {
            "get": {
                "operationId": "api_sms_clicks_get_collection",
                "tags": [
                    "click-rate"
                ],
                "responses": {
                    "200": {
                        "description": "sms_clicks collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.sms_clicks.jsonld-short_link_msg_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.sms_clicks-short_link_msg_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista wszystkich wiadomo\u015bci SMS z klikni\u0119ciami",
                "description": "Pobiera list\u0119 wiadomo\u015bci SMS zawieraj\u0105cych kr\u00f3tki link oraz liczb\u0119 klikni\u0119\u0107 w te linki.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    },
                    {
                        "name": "_order[created_at]",
                        "in": "query",
                        "description": "Sort a list by 'created_at' property",
                        "required": false,
                        "deprecated": false,
                        "allowEmptyValue": false,
                        "schema": {
                            "type": "string",
                            "default": "asc",
                            "enum": [
                                "asc",
                                "desc"
                            ]
                        },
                        "style": "form",
                        "explode": false,
                        "allowReserved": false
                    },
                    {
                        "name": "requests_count",
                        "in": "query",
                        "description": "*Exact* filter by the requests count value",
                        "required": false,
                        "deprecated": false,
                        "allowEmptyValue": false,
                        "schema": {
                            "type": "integer"
                        },
                        "style": "form",
                        "explode": false,
                        "allowReserved": false
                    },
                    {
                        "name": "requests_count[]",
                        "in": "query",
                        "description": "*Exact* and *range* filter by the requests count value",
                        "required": false,
                        "deprecated": false,
                        "allowEmptyValue": false,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "integer"
                            }
                        },
                        "style": "form",
                        "explode": true,
                        "allowReserved": false
                    },
                    {
                        "name": "created_at",
                        "in": "query",
                        "description": "*Exact* filter by SMS creating date",
                        "required": false,
                        "deprecated": false,
                        "allowEmptyValue": false,
                        "schema": {
                            "type": "integer"
                        },
                        "style": "form",
                        "explode": false,
                        "allowReserved": false
                    },
                    {
                        "name": "created_at[]",
                        "in": "query",
                        "description": "*Exact* and *range* filter by SMS creating date",
                        "required": false,
                        "deprecated": false,
                        "allowEmptyValue": false,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "integer"
                            }
                        },
                        "style": "form",
                        "explode": true,
                        "allowReserved": false
                    }
                ],
                "deprecated": false,
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/sms/clicks \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/sms/clicks?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/sms/clicks?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/sms/clicks?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"page=1\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/sms/clicks?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/sms/clicks';\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = \"https://api.lox24.eu/sms/clicks?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - items collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/sms/{uuid}/clicks": {
            "get": {
                "operationId": "api_sms_clicks_per_message_get_collection",
                "deprecated": false,
                "responses": {
                    "200": {
                        "description": "sms_clicks resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.sms_clicks.jsonld-short_link_msg_read"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.sms_clicks-short_link_msg_read"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Klikni\u0119cia w kr\u00f3tkie linki dla wiadomo\u015bci SMS",
                "description": "Zwraca liczb\u0119 klikni\u0119\u0107 w kr\u00f3tki link dla konkretnej wiadomo\u015bci SMS. Je\u015bli wiadomo\u015b\u0107 SMS nie istnieje lub nie zawiera linku, zwr\u00f3cony zostanie kod HTTP 404.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.sms.uuid"
                    }
                ],
                "tags": [
                    "click-rate"
                ],
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl https://api.lox24.eu/sms/clicks/sms_uuid_here  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            var id = \"sms_uuid_here\";\n\n            string url = \"https://api.lox24.eu/sms/clicks/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; //or application/ld+json\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"item resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/sms/clicks/sms_uuid_here\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var userId = \"1234567\";\n        var id = \"sms_uuid_here\";\n\n        var url = \"https://api.lox24.eu/sms/clicks/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode());\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = 'sms_uuid_here';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/sms/clicks/' + id,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Resource not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();\n\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = 'sms_uuid_here';\n$uri = 'https://api.lox24.eu/sms/clicks/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Item with id = $id not found!\";\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nid = \"msg_uuid\"\n\nurl = f'https://api.lox24.eu/sms/clicks/{id}'\n\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n\n\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/short_link_campaigns/{code}/short_links": {
            "get": {
                "operationId": "api_short_link_campaigns_short_links_get_item",
                "responses": {
                    "200": {
                        "description": "short_links collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.short_links.jsonld-short_link_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.short_links-short_link_read"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Lista wszystkich pojedynczych kr\u00f3tkich link\u00f3w kampanii",
                "description": "Lista wszystkich kr\u00f3tkich link\u00f3w u\u017cytych w konkretnej kampanii.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.short_link_campaigns.code"
                    }
                ],
                "tags": [
                    "links"
                ],
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/short_link_campaigns/{id}/short_links \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string campaign = \"campaign_code\";\n            string url = \"https://api.lox24.eu/short_link_campaigns/\" + campaign + \"/short_links?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/short_link_campaigns/campaign_code/short_links?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.sms_clicks;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var campaign = 'campaign_id'\n        var url = \"https://api.lox24.eu/short_link_campaigns/\" + campaign + \"/short_links?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nconst query = \"page=1\";\nconst campaign_id = 'campaign_id';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/short_link_campaigns/' + campaign_id + '/short_links?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n$campaignId = 'campaign_id';\n$uri = \"https://api.lox24.eu/short_link_campaigns/$campaignId/short_links\";\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: $token\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = $code, data = \" . var_export($data, true);\n}\n\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\ncampaign = \"short_link_id\"\nurl = \"https://api.lox24.eu/short_link_campaigns/\" + campaign + \"/short_links?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - items collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/blocked_numbers": {
            "get": {
                "operationId": "api_blocked_numbers_get_collection",
                "tags": [
                    "blocked-numbers"
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.blocked_numbers.number.exact"
                    },
                    {
                        "$ref": "#/components/parameters/filter.blocked_numbers.type.exact"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "blocked_numbers collection",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/schema.blocked_numbers.jsonld-blocked_number_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "$ref": "#/components/schemas/hydra.totalItems"
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                },
                                "examples": {
                                    "blocked_numbers_get_ld": {
                                        "$ref": "#/components/examples/blocked_numbers_get_jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/schema.blocked_numbers-blocked_number_read"
                                    }
                                },
                                "examples": {
                                    "blocked_numbers_get_json": {
                                        "$ref": "#/components/examples/blocked_numbers_get"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera kolekcj\u0119 zablokowanych numer\u00f3w telefon\u00f3w",
                "description": "Pobiera kolekcj\u0119 zablokowanych numer\u00f3w telefon\u00f3w z opcjonalnym filtrowaniem wed\u0142ug numeru lub typu",
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/blocked_numbers \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/blocked_numbers?page=1\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"blocked numbers collection response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n}",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/blocked_numbers?page=1\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.blocked_number;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetBlockedNumbersCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/blocked_numbers?page=1\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"blocked numbers collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar query = \"page=1\";\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/blocked_numbers?' + query,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - blocked numbers list response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$uri = 'https://api.lox24.eu/blocked_numbers';\n\n$filters = [\n    'page' => 1,\n];\n\n$uri .= $filters ? '?' . http_build_query($filters) : '';\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = \"https://api.lox24.eu/blocked_numbers?page=1\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - blocked numbers collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            },
            "post": {
                "operationId": "api_blocked_numbers_post",
                "tags": [
                    "blocked-numbers"
                ],
                "responses": {
                    "201": {
                        "description": "blocked_number resource created",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.blocked_numbers.jsonld-blocked_number_read"
                                },
                                "examples": {
                                    "blocked_number_post_ld": {
                                        "$ref": "#/components/examples/blocked_number_post_jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.blocked_numbers-blocked_number_read"
                                },
                                "examples": {
                                    "blocked_number_post_json": {
                                        "$ref": "#/components/examples/blocked_number_post"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "409": {
                        "$ref": "#/components/responses/409-conflict"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Tworzy zas\u00f3b zablokowanego numeru telefonu",
                "description": "Tworzy nowy zablokowany numer telefonu dla uwierzytelnionego u\u017cytkownika",
                "requestBody": {
                    "description": "The new blocked phone number resource",
                    "content": {
                        "application/ld+json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.blocked_numbers-blocked_number_write"
                            },
                            "examples": {
                                "blocked_number_req_ld": {
                                    "$ref": "#/components/examples/blocked_number_request"
                                }
                            }
                        },
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/schema.blocked_numbers-blocked_number_write"
                            },
                            "examples": {
                                "blocked_number_req_json": {
                                    "$ref": "#/components/examples/blocked_number_request"
                                }
                            }
                        }
                    },
                    "required": true
                },
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/blocked_numbers \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n      \"number\": \"+1234567890\"\n}'",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/blocked_numbers\";\n\n\n            var data = new {\n                number = \"+1234567890\"\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\"; // or application/ld+json\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"blocked number resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create blocked number\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest: // 400\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.Conflict: // 409\n                        Console.WriteLine(\"Error:409 Conflict - resource already exists\");\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n}",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/blocked_numbers\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tpayload := map[string]interface{}{\n\t\t\"number\": \"+1234567890\",\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println((string(body)))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 409:\n\t\tfmt.Println(\"Error: code = 409 - Conflict - resource already exists\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.blocked_number;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PostBlockedNumberCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/blocked_numbers\";\n\n        var json = new JSONObject();\n        json.put(\"number\", \"+1234567890\");\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"blocked number resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create blocked number\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST: // 400\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_CONFLICT: // 409\n                        System.out.println(\"Error:409 Conflict - resource already exists\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    number: '+1234567890'\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/blocked_numbers',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - blocked number resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 400) {\n        console.log(\"Error: code = 400 - Invalid input\");\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 409) {\n        console.log(\"Error: code = 409 - Conflict - resource already exists\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/blocked_numbers';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    \"number\" => \"+1234567890\",\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/blocked_numbers'\n\n\ndata = {\n    'number': '+1234567890'\n}\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    # timeout is 100 seconds, the payload is automatically converted to json format\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201: # Created\n        print(\"Error: Wrong response code on create blocked number\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - blocked number resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 409:\n        print(\"Error:409 Conflict - resource already exists\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))",
                        "label": "Python"
                    }
                ]
            }
        },
        "/blocked_numbers/{id}": {
            "get": {
                "operationId": "api_blocked_numbers_get_item",
                "tags": [
                    "blocked-numbers"
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.blocked_numbers.id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "blocked_number resource",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.blocked_numbers.jsonld-blocked_number_read"
                                },
                                "examples": {
                                    "blocked_number_get_ld": {
                                        "$ref": "#/components/examples/blocked_number_get_jsonld"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/schema.blocked_numbers-blocked_number_read"
                                },
                                "examples": {
                                    "blocked_number_get_json": {
                                        "$ref": "#/components/examples/blocked_number_get"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Pobiera zas\u00f3b zablokowanego numeru telefonu",
                "description": "Pobiera zas\u00f3b zablokowanego numeru telefonu na podstawie jego identyfikatora",
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/blocked_numbers/12344 \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string id = \"12344\";\n            string url = \"https://api.lox24.eu/blocked_numbers/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\"; // or \"application/ld+json\"\n            httpWebRequest.Method = \"GET\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    Console.WriteLine(\"Success:{0} {1}\", respCode, \"blocked number resource response\");\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Blocked number with id = {0} not found!\", id);\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n}",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/blocked_numbers/12344\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println((string(body)))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Blocked number not found!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.blocked_number;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetBlockedNumberItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"12344\";\n        var url = \"https://api.lox24.eu/blocked_numbers/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\") // or application/ld+json\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"blocked number resource response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Blocked number with id = \" + id + \" not found!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '12344';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/blocked_numbers/' + id,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log('Success: code = 200 - blocked number resource response');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Blocked number not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\n\nreq.end();",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '12344';\n$uri = 'https://api.lox24.eu/blocked_numbers/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} elseif(404 === $code) {\n    echo \"Blocked number with id = {$id} not found!\";\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nid = \"12344\"\n\nurl = f\"https://api.lox24.eu/blocked_numbers/{id}\"\n\nheaders = {\n    'Accept': 'application/json', # or application/ld+json\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - blocked number resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(f\"Error: code = 404 - Blocked number with id = {id} not found!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))",
                        "label": "Python"
                    }
                ]
            },
            "delete": {
                "operationId": "api_blocked_numbers_delete_item",
                "tags": [
                    "blocked-numbers"
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.blocked_numbers.id"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "blocked_number resource deleted"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "summary": "Usuwa zas\u00f3b zablokowanego numeru telefonu",
                "description": "Usuwa zas\u00f3b zablokowanego numeru telefonu z listy zablokowanych numer\u00f3w u\u017cytkownika",
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X DELETE https://api.lox24.eu/blocked_numbers/12344  \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class client\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\n            var id = \"12344\";\n            string url = \"https://api.lox24.eu/blocked_numbers/\" + id;\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"DELETE\";\n            //httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    int respCode = (int)resp.StatusCode;\n                    if(resp.StatusCode == HttpStatusCode.NoContent) { //204\n                        Console.WriteLine(\"Success: blocked number was deleted\");\n                    } else {\n                        Console.WriteLine(\"Error: something went wrong, code({0})\", respCode);\n                        Stream respStream = resp.GetResponseStream();\n                        using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                        {\n                            string responseText = sr.ReadToEnd();\n\n                            JObject parsed = JObject.Parse(responseText);\n\n                            foreach (var pair in parsed)\n                            {\n                                Console.WriteLine(\"{0}: {1}\", pair.Key, pair.Value);\n                            }\n                        }\n                    }\n\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized: // 401\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden: // 403\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.NotFound: // 404\n                        Console.WriteLine(\"Error:404 Blocked number with id = {0} not found!\", id);\n                        break;\n                    case HttpStatusCode.InternalServerError: // 500\n                    case HttpStatusCode.BadGateway: //502\n                    case HttpStatusCode.ServiceUnavailable: // 503\n                    case HttpStatusCode.GatewayTimeout: // 504\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n}",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"DELETE\"\n\tconst URL = \"https://api.lox24.eu/blocked_numbers/12344\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := ioutil.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 204:\n\t\tfmt.Println(\"Blocked number was deleted successfully!\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Blocked number not found!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d, response = %s\\n\", res.StatusCode, string(body))\n\t}\n}",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.blocked_number;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class DeleteBlockedNumberItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var id = \"12344\";\n        var url = \"https://api.lox24.eu/blocked_numbers/\" + id;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\")\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .DELETE()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1) // Http 1.1 clients are kept alive be default\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) { // 204\n                System.out.println(\"Success: blocked number was deleted\");\n            } else {\n                System.out.println(\"Error: something went wrong, code(\" + httpResponse.statusCode() + \")\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_UNAUTHORIZED: // 401\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN: // 403\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND: // 404\n                        System.out.println(\"Error:404 Blocked number with id = \" + id + \" not found!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR: // 500\n                    case HttpURLConnection.HTTP_BAD_GATEWAY: //502\n                    case HttpURLConnection.HTTP_UNAVAILABLE: // 503\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT: // 504\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "const host = 'api.lox24.eu';\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar id = '12344';\n\nconst https = require('https');\nconst options = {\n    hostname: host,\n    path: '/blocked_numbers/' + id,\n    method: 'DELETE',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 204) {\n        console.log('Success: code = 204 - blocked number resource deleted');\n        res.on('data', d => { process.stdout.write(d) })\n    } else if (res.statusCode == 401) {\n        console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    } else if (res.statusCode == 403) {\n        console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    } else if (res.statusCode == 404) {\n        console.log(\"Error: code = 404 - Blocked number not found\");\n    } else {\n        console.log(\"Error: code = \" + res.statusCode );\n    }\n});\n\nreq.on('error', error => {\n    console.error(error)\n});\n\nreq.end();",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$id = '12344';\n$uri = 'https://api.lox24.eu/blocked_numbers/' . $id;\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_CUSTOMREQUEST => 'DELETE',\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json', // or application/ld+json\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\nif(204 === $code) {\n    echo \"Blocked number with id = {$id} was deleted!\";\n} elseif(404 === $code) {\n    echo \"Blocked number with id = {$id} not found!\";\n} else {\n    $data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n    echo \"Blocked number: code = {$code}, data = \" . var_export($data, true);\n}\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nid = \"12344\"\n\nurl = f\"https://api.lox24.eu/blocked_numbers/{id}\"\n\nheaders = {\n    'Accept': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    # timeout is 100 seconds\n    res = requests.delete(url, headers=headers, timeout=100)\n    if res.status_code != 204: # No Content\n        print(\"Error: Wrong response code on delete blocked number\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - blocked number was deleted')\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 404:\n        print(f\"Error: code = 404 - Blocked number with id = {id} not found!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    # Only try to print JSON if response has content\n    if res.content:\n        print(json.dumps(res.json(), indent=4))",
                        "label": "Python"
                    }
                ]
            }
        },
        "/verify_codes": {
            "get": {
                "operationId": "api_verify_codes_get_collection",
                "tags": [
                    "verify-codes"
                ],
                "summary": "Pobiera kolekcj\u0119 kod\u00f3w weryfikacyjnych",
                "description": "Pobiera list\u0119 kod\u00f3w weryfikacyjnych utworzonych przez u\u017cytkownika.",
                "responses": {
                    "200": {
                        "description": "Collection of verify codes",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "member": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/verify_code_read"
                                            }
                                        },
                                        "hydra:totalItems": {
                                            "$ref": "#/components/schemas/hydra.totalItems"
                                        },
                                        "hydra:view": {
                                            "$ref": "#/components/schemas/hydra.view"
                                        },
                                        "hydra:search": {
                                            "$ref": "#/components/schemas/hydra.search"
                                        }
                                    },
                                    "required": [
                                        "member"
                                    ]
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/verify_code_read"
                                    }
                                },
                                "examples": {
                                    "collection": {
                                        "summary": "Verify code collection",
                                        "value": [
                                            {
                                                "id": "d7ad7539-fb8f-4dbb-a7f7-7c40babec969",
                                                "user_id": 12345,
                                                "phone": "+491701234567",
                                                "routing_strategy": [
                                                    {
                                                        "channel": "telegram",
                                                        "timeout_sec": 30
                                                    },
                                                    {
                                                        "channel": "voice",
                                                        "sender_id": "LOX24",
                                                        "template": "Your code is {{code}}"
                                                    },
                                                    {
                                                        "channel": "sms",
                                                        "sender_id": "LOX24",
                                                        "template": "Your code is {{code}}"
                                                    }
                                                ],
                                                "status": 10,
                                                "delivered_channel": "sms",
                                                "cost": 120,
                                                "currency": "EUR",
                                                "code": "1234",
                                                "code_length": 4,
                                                "payload": "yours payload here",
                                                "lang": "EN",
                                                "created_at": 1779903448,
                                                "updated_at": 1779903510,
                                                "history": [
                                                    {
                                                        "id": "bccaff09-59f2-11f1-a685-7c10c91d54a1",
                                                        "channel": "telegram",
                                                        "status": 20,
                                                        "processed_at": 1779903478,
                                                        "external_id": "tg_msg_001"
                                                    },
                                                    {
                                                        "id": "bccaff09-59f2-11f1-a685-7c10c91d54a2",
                                                        "channel": "voice",
                                                        "status": 20,
                                                        "processed_at": 1779903490,
                                                        "external_id": "voice_msg_002"
                                                    },
                                                    {
                                                        "id": "bccaff09-59f2-11f1-a685-7c10c91d54a3",
                                                        "channel": "sms",
                                                        "status": 10,
                                                        "processed_at": 1779903510,
                                                        "external_id": "sms_msg_003"
                                                    }
                                                ],
                                                "is_code_deleted": false
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "parameters": [
                    {
                        "$ref": "#/components/parameters/filter.common.page"
                    }
                ],
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/verify_codes \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class GetVerifyCodesCollection\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/verify_codes\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    if (resp.StatusCode == HttpStatusCode.OK) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"verify code collection response\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0}\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized:\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden:\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpStatusCode.InternalServerError:\n                    case HttpStatusCode.BadGateway:\n                    case HttpStatusCode.ServiceUnavailable:\n                    case HttpStatusCode.GatewayTimeout:\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/verify_codes\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := io.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println(string(body))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.verify_codes;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetVerifyCodesCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/verify_codes\";\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\")\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1)\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"verify code collection response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                switch (httpResponse.statusCode()) {\n                    case HttpURLConnection.HTTP_UNAUTHORIZED:\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN:\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR:\n                    case HttpURLConnection.HTTP_BAD_GATEWAY:\n                    case HttpURLConnection.HTTP_UNAVAILABLE:\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT:\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                    default:\n                        System.out.println(\"Error: wrong response code \" + httpResponse.statusCode());\n                }\n            }\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "/*\n * Get verify code collection\n */\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nconst https = require('https');\nconst options = {\n    hostname: 'api.lox24.eu',\n    path: '/verify_codes',\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log(\"Success: code = 200 - verify code collection response\");\n        res.on('data', d => { process.stdout.write(d) })\n    }\n    else if (res.statusCode == 401) console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    else if (res.statusCode == 403) console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/verify_codes';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/verify_codes'\n\nheaders = {\n    'Accept': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - verify code collection response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            },
            "post": {
                "operationId": "api_verify_codes_post_collection",
                "tags": [
                    "verify-codes"
                ],
                "summary": "Utw\u00f3rz kod weryfikacyjny",
                "description": "Inicjuje proces weryfikacji poprzez utworzenie nowego kodu weryfikacyjnego z okre\u015blon\u0105 strategi\u0105 routingu.",
                "requestBody": {
                    "description": "The verify code request payload",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/verify_code_write"
                            },
                            "examples": {
                                "multi_channel": {
                                    "$ref": "#/components/examples/example_verify_code_request"
                                },
                                "telegram": {
                                    "$ref": "#/components/examples/example_verify_code_request_telegram"
                                },
                                "voice": {
                                    "$ref": "#/components/examples/example_verify_code_request_voice"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Verify code created and delivery process started",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/verify_code_read"
                                },
                                "examples": {
                                    "multi_channel": {
                                        "$ref": "#/components/examples/example_verify_code_response"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/verify_code_read"
                                },
                                "examples": {
                                    "multi_channel": {
                                        "$ref": "#/components/examples/example_verify_code_response"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/400-bad-request"
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "402": {
                        "$ref": "#/components/responses/402-not-enough-funds"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/422-unprocessable-entity"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X POST https://api.lox24.eu/verify_codes \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \\\n  -d '{\n    \"phone\": \"+491701234567\",\n    \"code\": \"1234\",\n    \"is_code_deleted\": false,\n    \"payload\": \"yours payload here\",\n    \"lang\": \"EN\",\n    \"routing_strategy\": [\n      {\n        \"channel\": \"telegram\",\n        \"timeout_sec\": 30\n      },\n      {\n        \"channel\": \"voice\",\n        \"sender_id\": \"LOX24\",\n        \"template\": \"Your code is {{code}}\"\n      },\n      {\n        \"channel\": \"sms\",\n        \"sender_id\": \"LOX24\",\n        \"template\": \"Your code is {{code}}\"\n      }\n    ]\n  }'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using Newtonsoft.Json;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class VerifyCodesClient\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string url = \"https://api.lox24.eu/verify_codes\";\n\n            var data = new {\n                phone = \"+491701234567\",\n                code = \"1234\",\n                is_code_deleted = false,\n                payload = \"yours payload here\",\n                lang = \"EN\",\n                routing_strategy = new[] {\n                    new { channel = \"telegram\", timeout_sec = 30 },\n                    new { channel = \"voice\", sender_id = \"LOX24\", template = \"Your code is {{code}}\" },\n                    new { channel = \"sms\", sender_id = \"LOX24\", template = \"Your code is {{code}}\" }\n                }\n            };\n\n            string postdata = JsonConvert.SerializeObject(data);\n\n            Console.WriteLine(\"Post data: {0}\", postdata);\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"POST\";\n            httpWebRequest.KeepAlive = true;\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n            httpWebRequest.Credentials = CredentialCache.DefaultNetworkCredentials;\n\n            using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))\n            {\n                streamWriter.Write(postdata);\n                streamWriter.Flush();\n                streamWriter.Close();\n            }\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n\n                    if(resp.StatusCode == HttpStatusCode.Created) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"verify code resource created\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0} on create verify code\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.BadRequest:\n                        Console.WriteLine(\"Error:400 Invalid input\");\n                        break;\n                    case HttpStatusCode.Unauthorized:\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.PaymentRequired:\n                        Console.WriteLine(\"Error:402 There are not enough funds on your account!\");\n                        break;\n                    case HttpStatusCode.Forbidden:\n                        Console.WriteLine(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case (HttpStatusCode)422:\n                        Console.WriteLine(\"Error:422 Unprocessable entity\");\n                        break;\n                    case HttpStatusCode.InternalServerError:\n                    case HttpStatusCode.BadGateway:\n                    case HttpStatusCode.ServiceUnavailable:\n                    case HttpStatusCode.GatewayTimeout:\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"POST\"\n\tconst URL = \"https://api.lox24.eu/verify_codes\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\troutingStrategy := []map[string]interface{}{\n\t\t{\"channel\": \"telegram\", \"timeout_sec\": 30},\n\t\t{\"channel\": \"voice\", \"sender_id\": \"LOX24\", \"template\": \"Your code is {{code}}\"},\n\t\t{\"channel\": \"sms\", \"sender_id\": \"LOX24\", \"template\": \"Your code is {{code}}\"},\n\t}\n\n\tpayload := map[string]interface{}{\n\t\t\"phone\":           \"+491701234567\",\n\t\t\"code\":            \"1234\",\n\t\t\"is_code_deleted\": false,\n\t\t\"payload\":         \"yours payload here\",\n\t\t\"lang\":            \"EN\",\n\t\t\"routing_strategy\": routingStrategy,\n\t}\n\n\tjsonPayload, _ := json.Marshal(payload)\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, bytes.NewBuffer(jsonPayload))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := io.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 201:\n\t\tfmt.Println(string(body))\n\tcase 400:\n\t\tfmt.Println(\"Error: code = 400 - Invalid input\")\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 402:\n\t\tfmt.Println(\"Error: code = 402 - There are not enough funds on your account!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n\tcase 422:\n\t\tfmt.Println(\"Error: code = 422 - Unprocessable entity\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.verify_codes;\n\nimport org.json.JSONArray;\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class PostVerifyCodesCollection {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var url = \"https://api.lox24.eu/verify_codes\";\n\n        var routingStrategy = new JSONArray();\n        routingStrategy.put(new JSONObject().put(\"channel\", \"telegram\").put(\"timeout_sec\", 30));\n        routingStrategy.put(new JSONObject().put(\"channel\", \"voice\").put(\"sender_id\", \"LOX24\").put(\"template\", \"Your code is {{code}}\"));\n        routingStrategy.put(new JSONObject().put(\"channel\", \"sms\").put(\"sender_id\", \"LOX24\").put(\"template\", \"Your code is {{code}}\"));\n\n        var json = new JSONObject();\n        json.put(\"phone\", \"+491701234567\");\n        json.put(\"code\", \"1234\");\n        json.put(\"is_code_deleted\", false);\n        json.put(\"payload\", \"yours payload here\");\n        json.put(\"lang\", \"EN\");\n        json.put(\"routing_strategy\", routingStrategy);\n\n        var postData = json.toString();\n\n        System.out.println(\"Post data: \" + postData);\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Content-Type\", \"application/json; charset=utf-8\")\n                .setHeader(\"Accept\", \"application/json\")\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .POST(HttpRequest.BodyPublishers.ofString(postData))\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1)\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_CREATED) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"verify code resource created\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n\n            } else {\n\n                System.out.println(\"Error: wrong response code \" + httpResponse.statusCode() + \" on create verify code\");\n\n                switch (httpResponse.statusCode()) {\n\n                    case HttpURLConnection.HTTP_BAD_REQUEST:\n                        System.out.println(\"Error:400 Invalid input\");\n                        break;\n                    case HttpURLConnection.HTTP_UNAUTHORIZED:\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_PAYMENT_REQUIRED:\n                        System.out.println(\"Error:402 There are not enough funds on your account!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN:\n                        System.out.println(\"Error:403 Account isn't activated. Please wait or contact to support!\");\n                        break;\n                    case 422:\n                        System.out.println(\"Error:422 Unprocessable entity\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR:\n                    case HttpURLConnection.HTTP_BAD_GATEWAY:\n                    case HttpURLConnection.HTTP_UNAVAILABLE:\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT:\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n\n            }\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "/*\n * Post verify code\n */\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n\nvar postObj = {\n    phone: '+491701234567',\n    code: '1234',\n    is_code_deleted: false,\n    payload: 'yours payload here',\n    lang: 'EN',\n    routing_strategy: [\n        {\n            channel: 'telegram',\n            timeout_sec: 30\n        },\n        {\n            channel: 'voice',\n            sender_id: 'LOX24',\n            template: 'Your code is {{code}}'\n        },\n        {\n            channel: 'sms',\n            sender_id: 'LOX24',\n            template: 'Your code is {{code}}'\n        }\n    ]\n};\n\nvar postdata = JSON.stringify(postObj);\n\nconst https = require('https');\nconst options = {\n    hostname: 'api.lox24.eu',\n    path: '/verify_codes',\n    method: 'POST',\n    headers: {\n        'Accept': 'application/json',\n        'Content-Type': 'application/json',\n        'Content-Length': postdata.length,\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 201) {\n        console.log(\"Success: code = 201 - verify code resource created\");\n        res.on('data', d => { process.stdout.write(d) })\n    }\n    else if (res.statusCode == 400) console.log(\"Error: code = 400 - Invalid input\");\n    else if (res.statusCode == 401) console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    else if (res.statusCode == 402) console.log(\"Error: code = 402 - There are not enough funds on your account!\");\n    else if (res.statusCode == 403) console.log(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\");\n    else if (res.statusCode == 422) console.log(\"Error: code = 422 - Unprocessable entity\");\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.write(postdata);\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$uri = 'https://api.lox24.eu/verify_codes';\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$body = [\n    'phone' => '+491701234567',\n    'code' => '1234',\n    'is_code_deleted' => false,\n    'payload' => 'yours payload here',\n    'lang' => 'EN',\n    'routing_strategy' => [\n        [\n            'channel' => 'telegram',\n            'timeout_sec' => 30,\n        ],\n        [\n            'channel' => 'voice',\n            'sender_id' => 'LOX24',\n            'template' => 'Your code is {{code}}',\n        ],\n        [\n            'channel' => 'sms',\n            'sender_id' => 'LOX24',\n            'template' => 'Your code is {{code}}',\n        ],\n    ],\n];\n\nif(!$body = json_encode($body)) {\n    die('JSON encoding error!');\n}\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_POST => true,\n    CURLOPT_URL => $uri,\n    CURLOPT_POSTFIELDS => $body,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json',\n        'Content-Type: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(201 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\nurl = 'https://api.lox24.eu/verify_codes'\n\n\ndata = {\n    'phone': \"+491701234567\",\n    'code': \"1234\",\n    'is_code_deleted': False,\n    'payload': \"yours payload here\",\n    'lang': \"EN\",\n    'routing_strategy': [\n        {\n            'channel': \"telegram\",\n            'timeout_sec': 30\n        },\n        {\n            'channel': \"voice\",\n            'sender_id': \"LOX24\",\n            'template': \"Your code is {{code}}\"\n        },\n        {\n            'channel': \"sms\",\n            'sender_id': \"LOX24\",\n            'template': \"Your code is {{code}}\"\n        }\n    ]\n}\n\nheaders = {\n    'Accept': 'application/json',\n    'Content-Type': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\nprint(\"Post data : \", json.dumps(data, indent=4))\n\ntry:\n    res = requests.post(url, headers=headers, json=data, timeout=100)\n    if res.status_code != 201:\n        print(\"Error: Wrong response code on create verify code\")\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - verify code resource created')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 400:\n        print(\"Error:400 Invalid input\")\n    elif res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 402:\n        print(\"Error:402 There are not enough funds on your account!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated. Please wait or contact to support!\")\n    elif res.status_code == 422:\n        print(\"Error:422 Unprocessable entity\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        },
        "/verify_codes/{id}": {
            "get": {
                "operationId": "api_verify_codes_get_item",
                "tags": [
                    "verify-codes"
                ],
                "summary": "Pobiera wpis kodu weryfikacyjnego",
                "description": "Zwraca szczeg\u00f3\u0142y okre\u015blonego kodu weryfikacyjnego, w tym jego status i histori\u0119.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/path.verify_codes.id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Verify code details",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/verify_code_read"
                                },
                                "examples": {
                                    "multi_channel": {
                                        "$ref": "#/components/examples/example_verify_code_response"
                                    }
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/verify_code_read"
                                },
                                "examples": {
                                    "multi_channel": {
                                        "$ref": "#/components/examples/example_verify_code_response"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/401-unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/403-forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/404-not-found"
                    },
                    "429": {
                        "$ref": "#/components/responses/429-too-many-requests"
                    }
                },
                "x-codeSamples": [
                    {
                        "lang": "bash",
                        "source": "#!/usr/bin/env bash\ncurl -X GET https://api.lox24.eu/verify_codes/d7ad7539-fb8f-4dbb-a7f7-7c40babec969 \\\n  -H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'\n",
                        "label": "Bash"
                    },
                    {
                        "lang": "csharp",
                        "source": "using System;\nusing System.IO;\nusing System.Net;\nusing System.Text;\n\nnamespace Lox24.Api\n{\n    class GetVerifyCodesItem\n    {\n        static void Main()\n        {\n            string key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n            string verifyCodeId = \"d7ad7539-fb8f-4dbb-a7f7-7c40babec969\";\n            string url = $\"https://api.lox24.eu/verify_codes/{verifyCodeId}\";\n\n            var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);\n            httpWebRequest.ReadWriteTimeout = 100000;\n            httpWebRequest.ContentType = \"application/json; charset=utf-8\";\n            httpWebRequest.Accept = \"application/json\";\n            httpWebRequest.Method = \"GET\";\n            httpWebRequest.Headers.Add(\"X-LOX24-AUTH-TOKEN\", key);\n\n            try\n            {\n                using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse())\n                {\n                    if (resp.StatusCode == HttpStatusCode.OK) {\n                        Console.WriteLine(\"Success:{0} {1}\", (int)resp.StatusCode, \"verify code resource response\");\n                    } else {\n                        Console.WriteLine(\"Error: wrong response code {0}\", (int)resp.StatusCode);\n                    }\n\n                    Stream respStream = resp.GetResponseStream();\n                    using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))\n                    {\n                        string responseText = sr.ReadToEnd();\n                        Console.WriteLine(\"responseText : {0}\", responseText);\n                    }\n                }\n            }\n            catch (System.Net.WebException ex)\n            {\n                var webResponse = ex.Response as System.Net.HttpWebResponse;\n                Console.WriteLine(\"Error:{0}\", webResponse.StatusCode);\n\n                switch (webResponse.StatusCode)\n                {\n                    case HttpStatusCode.Unauthorized:\n                        Console.WriteLine(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpStatusCode.Forbidden:\n                        Console.WriteLine(\"Error:403 Account isn't activated.\");\n                        break;\n                    case HttpStatusCode.NotFound:\n                        Console.WriteLine(\"Error:404 Resource not found\");\n                        break;\n                    case HttpStatusCode.InternalServerError:\n                    case HttpStatusCode.BadGateway:\n                    case HttpStatusCode.ServiceUnavailable:\n                    case HttpStatusCode.GatewayTimeout:\n                        Console.WriteLine(\"System error! Please contact to LOX24 support!\");\n                        break;\n                }\n            }\n        }\n    }\n}\n",
                        "label": "C#"
                    },
                    {
                        "lang": "go",
                        "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tconst Method = \"GET\"\n\tconst URL = \"https://api.lox24.eu/verify_codes/d7ad7539-fb8f-4dbb-a7f7-7c40babec969\"\n\tconst Token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\n\n\tclient := &http.Client{}\n\n\treq, err := http.NewRequest(Method, URL, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\treq.Header.Add(\"X-LOX24-AUTH-TOKEN\", Token)\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer res.Body.Close()\n\n\tbody, err := io.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tswitch res.StatusCode {\n\tcase 200:\n\t\tfmt.Println(string(body))\n\tcase 401:\n\t\tfmt.Println(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n\tcase 403:\n\t\tfmt.Println(\"Error: code = 403 - Account isn't activated.\")\n\tcase 404:\n\t\tfmt.Println(\"Error: code = 404 - Resource not found\")\n\tdefault:\n\t\tfmt.Printf(\"Error: code = %d\\n\", res.StatusCode)\n\t}\n}\n",
                        "label": "Go"
                    },
                    {
                        "lang": "java",
                        "source": "package eu.lox24.doc.verify_codes;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.time.Duration;\n\npublic class GetVerifyCodesItem {\n\n    public static void main(String[] args) {\n\n        var key = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\n        var verifyCodeId = \"d7ad7539-fb8f-4dbb-a7f7-7c40babec969\";\n        var url = \"https://api.lox24.eu/verify_codes/\" + verifyCodeId;\n\n        var httpRequest = HttpRequest.newBuilder(URI.create(url))\n                .timeout(Duration.ofMillis(100000))\n                .setHeader(\"Accept\", \"application/json\")\n                .setHeader(\"X-LOX24-AUTH-TOKEN\", key)\n                .GET()\n                .build();\n\n        var client = HttpClient.newBuilder()\n                .version(HttpClient.Version.HTTP_1_1)\n                .build();\n\n        try {\n            var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n            if (httpResponse.statusCode() == HttpURLConnection.HTTP_OK) {\n                System.out.println(\"Success:\" + httpResponse.statusCode() + \" \" + \"verify code resource response\");\n                System.out.println(\"Response text : \\n\" + httpResponse.body());\n            } else {\n                switch (httpResponse.statusCode()) {\n                    case HttpURLConnection.HTTP_UNAUTHORIZED:\n                        System.out.println(\"Error:401 Client ID or API key isn't active or invalid!\");\n                        break;\n                    case HttpURLConnection.HTTP_FORBIDDEN:\n                        System.out.println(\"Error:403 Account isn't activated.\");\n                        break;\n                    case HttpURLConnection.HTTP_NOT_FOUND:\n                        System.out.println(\"Error:404 Resource not found\");\n                        break;\n                    case HttpURLConnection.HTTP_INTERNAL_ERROR:\n                    case HttpURLConnection.HTTP_BAD_GATEWAY:\n                    case HttpURLConnection.HTTP_UNAVAILABLE:\n                    case HttpURLConnection.HTTP_GATEWAY_TIMEOUT:\n                        System.out.println(\"System error! Please contact to LOX24 support!\");\n                        break;\n                    default:\n                        System.out.println(\"Error: wrong response code \" + httpResponse.statusCode());\n                }\n            }\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}\n",
                        "label": "Java"
                    },
                    {
                        "lang": "javascript",
                        "source": "/*\n * Get verify code by ID\n */\nconst token = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\";\nconst verifyCodeId = \"d7ad7539-fb8f-4dbb-a7f7-7c40babec969\";\n\nconst https = require('https');\nconst options = {\n    hostname: 'api.lox24.eu',\n    path: `/verify_codes/${verifyCodeId}`,\n    method: 'GET',\n    headers: {\n        'Accept': 'application/json',\n        'X-LOX24-AUTH-TOKEN': token\n    }\n}\n\nconst req = https.request(options, res => {\n    if (res.statusCode == 200) {\n        console.log(\"Success: code = 200 - verify code resource response\");\n        res.on('data', d => { process.stdout.write(d) })\n    }\n    else if (res.statusCode == 401) console.log(\"Error: code = 401 - Client ID or API key isn't active or invalid!\");\n    else if (res.statusCode == 403) console.log(\"Error: code = 403 - Account isn't activated.\");\n    else if (res.statusCode == 404) console.log(\"Error: code = 404 - Resource not found\");\n})\n\nreq.on('error', error => {\n    console.error(error)\n})\nreq.end();\n",
                        "label": "JavaScript"
                    },
                    {
                        "lang": "php",
                        "source": "<?php\n\n$verifyCodeId = 'd7ad7539-fb8f-4dbb-a7f7-7c40babec969';\n$uri = \"https://api.lox24.eu/verify_codes/{$verifyCodeId}\";\n\n$token = '1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx';\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL => $uri,\n    CURLOPT_HTTPHEADER => [\n        \"X-LOX24-AUTH-TOKEN: {$token}\",\n        'Accept: application/json',\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 20,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n]);\n\n$response = curl_exec($curl);\n$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);\ncurl_close($curl);\n\n$data = json_decode($response, JSON_OBJECT_AS_ARRAY);\n\nif(200 === $code) {\n    echo 'Success: response data = ' . var_export($data, true);\n} else {\n    echo \"Error: code = {$code}, data = \" . var_export($data, true);\n}\n",
                        "label": "PHP (cUrl)"
                    },
                    {
                        "lang": "python",
                        "source": "import json\nimport requests\n\n\ntoken = \"1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx\"\nverify_code_id = \"d7ad7539-fb8f-4dbb-a7f7-7c40babec969\"\n\nurl = f'https://api.lox24.eu/verify_codes/{verify_code_id}'\n\nheaders = {\n    'Accept': 'application/json',\n    'X-LOX24-AUTH-TOKEN': token,\n}\n\ntry:\n    res = requests.get(url, headers=headers, timeout=100)\n    if res.status_code != 200:\n        res.raise_for_status()\n    else:\n        print(f'Success: code = {res.status_code} - verify code resource response')\n        print(\"Response: \", json.dumps(res.json(), indent=4))\n\nexcept requests.HTTPError:\n    if res.status_code == 401:\n        print(\"Error: code = 401 - Client ID or API key isn't active or invalid!\")\n    elif res.status_code == 403:\n        print(\"Error: code = 403 - Account isn't activated.\")\n    elif res.status_code == 404:\n        print(\"Error:404 Resource not found\")\n    elif res.status_code in (500, 502, 503, 504):\n        print(\"System error! Please contact to LOX24 support!\")\n    else:\n        print(f\"Error: code {res.status_code}\")\n    print(json.dumps(res.json(), indent=4))\n",
                        "label": "Python"
                    }
                ]
            }
        }
    },
    "webhooks": {
        "webhooks.sms-delivery": {
            "post": {
                "summary": "Raport dostarczenia SMS (DLR)",
                "description": "Zdarzenie 'sms.delivery' jest wysy\u0142ane przy zmianach [`dlr_code`](/#tag/sms-delivery-report-codes-dlr). Pozwala to ustali\u0107, czy SMS zosta\u0142 pomy\u015blnie dostarczony, odrzucony lub jest w trakcie dostarczania.\n\nKa\u017cdy SMS ma kod raportu dostarczenia [Powiadomienia webhook](/#tag/notifications)",
                "tags": [
                    "sms"
                ],
                "operationId": "webhooks.sms-delivery-webhook",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "sms.delivery"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.sms-delivery-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "delivered": {
                                    "$ref": "#/components/examples/webhooks.examples.sms-delivery-event"
                                },
                                "expired": {
                                    "$ref": "#/components/examples/webhooks.examples.sms-delivery-event-expired"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.sms-delivery-dryrun": {
            "post": {
                "summary": "Raport dostarczenia SMS w trybie dryrun (DLR)",
                "description": "Zdarzenie 'sms.delivery.dryrun' jest u\u017cywane przy emulacji wysy\u0142ki SMS.\nZobacz [Symulowanie wysy\u0142ki SMS (do test\u00f3w)](/#tag/sms/operation/api_sms_post_dryrun_collection).\n\nKa\u017cdy SMS ma kod raportu dostarczenia (DLR).\n\n[Powiadomienia webhook](/#tag/notifications)",
                "tags": [
                    "sms"
                ],
                "operationId": "webhooks.sms-delivery-dryrun-webhook",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "sms.delivery.dryrun"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.sms-delivery-data"
                                            }
                                        }
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.incoming-sms-received": {
            "post": {
                "summary": "SMS przychodz\u0105cy",
                "description": "Zdarzenie 'sms.incoming' jest wysy\u0142ane w przypadku wiadomo\u015bci SMS przychodz\u0105cej lub b\u0119d\u0105cej odpowiedzi\u0105 (mobile originated - SMS-MO).\n\n[Powiadomienia webhook](/#tag/notifications)",
                "operationId": "smsIncomingWebhook",
                "tags": [
                    "incomings"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "sms.incoming"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.sms-incoming-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "reply": {
                                    "$ref": "#/components/examples/webhooks.examples.sms-incoming-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.bulk-email-parsing-fail": {
            "post": {
                "summary": "Webhook b\u0142\u0119du analizy masowej wiadomo\u015bci e-mail",
                "description": "Zdarzenie `bulk.email.parsing.fail` jest wysy\u0142ane w przypadku b\u0142\u0119du analizy wiadomo\u015bci e-mail.\n\n[Powiadomienia webhook](/#tag/notifications)",
                "operationId": "bulkEmailParsingFailWebhook",
                "tags": [
                    "bulks"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "bulk.email.parsing.fail"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.bulk-email-parsing-fail-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "invalid_number": {
                                    "$ref": "#/components/examples/webhooks.examples.bulk-email-parsing-fail-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.bulk-email-parsing-success": {
            "post": {
                "summary": "Webhook sukcesu analizy masowej wiadomo\u015bci e-mail",
                "description": "Zdarzenie `bulk.email.parsing.success` jest wysy\u0142ane po pomy\u015blnej analizie [Email to SMS Bulk](/#tag/email-to-sms)\nwiadomo\u015bci e-mail.\n\n[Powiadomienia webhook](/#tag/notifications)",
                "operationId": "bulkEmailParsingSuccessWebhook",
                "tags": [
                    "bulks"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "bulk.email.parsing.success"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.bulk-email-parsing-success-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "success": {
                                    "$ref": "#/components/examples/webhooks.examples.bulk-email-parsing-success-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.fraud-check-done": {
            "post": {
                "summary": "Fraud Check Completed",
                "description": "Triggered when a Fraud Detection request is completed",
                "operationId": "fraudCheckDoneWebhook",
                "tags": [
                    "fraud-detection"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "fraud-check.done"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.fraud-check-done-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "completed": {
                                    "$ref": "#/components/examples/webhooks.examples.fraud-check-done-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            },
            "description": "Zdarzenie `fraud-check.done` jest wysy\u0142ane po zako\u0144czeniu \u017c\u0105dania wykrywania oszustw. Szczeg\u00f3\u0142y struktury odpowiedzi znajdziesz w [Fraud Detection API](/#tag/fraud-detection/operation/api_fraud-check_post_collection).\n\n[Powiadomienia webhook](/#tag/notifications)"
        },
        "webhooks.sms-email-parsing-success": {
            "post": {
                "summary": "Sukces analizy wiadomo\u015bci e-mail SMS",
                "description": "Wyzwalane, gdy wiadomo\u015b\u0107 e-mail Email to SMS zostanie pomy\u015blnie przeanalizowana",
                "operationId": "webhooks.sms-email-parsing-success",
                "tags": [
                    "sms"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "sms.email.parsing.success"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.sms-email-parsing-success-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "success": {
                                    "$ref": "#/components/examples/webhooks.examples.sms-email-parsing-success-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.sms-email-parsing-fail": {
            "post": {
                "summary": "B\u0142\u0105d analizy wiadomo\u015bci e-mail SMS",
                "description": "Wyzwalane, gdy analiza wiadomo\u015bci e-mail Email to SMS nie powiedzie si\u0119",
                "operationId": "webhooks.sms-email-parsing-fail",
                "tags": [
                    "sms"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "sms.email.parsing.fail"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.sms-email-parsing-fail-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "fail": {
                                    "$ref": "#/components/examples/webhooks.examples.sms-email-parsing-fail-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.phone-unsubscribe": {
            "post": {
                "summary": "Webhook wypisania numeru telefonu",
                "description": "Wyzwalane, gdy numer telefonu wypisuje si\u0119 przez przes\u0142anie formularza",
                "tags": [
                    "phones"
                ],
                "operationId": "webhooks.phone-unsubscribe-webhook",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "phone.unsubscribe"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.phone-unsubscribe-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "unsubscribe": {
                                    "summary": "Zdarzenie wypisania numeru telefonu",
                                    "value": {
                                        "id": "ef58b437-1319-4b0c-961b-17214cf1cf32",
                                        "data": {
                                            "phone": "+4911113333444",
                                            "user_id": 2,
                                            "created_at": 1757849748,
                                            "campaign_code": "3KCKb5nMD",
                                            "additional_data": {
                                                "reason": {
                                                    "id": 4,
                                                    "label": "Es ist unverst\u00e4ndlich"
                                                },
                                                "additional_text": "zus\u00e4tzlicher Benutzertext mit Erkl\u00e4rung"
                                            },
                                            "short_link_code": "baaIou",
                                            "unsubscribe_request_id": 59
                                        },
                                        "name": "phone.unsubscribe",
                                        "created_at": 1757849748,
                                        "api_version": "2022-05-25",
                                        "attempt_number": 1,
                                        "attempts_total": 4
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.phone-subscribe": {
            "post": {
                "summary": "Webhook zapisu numeru telefonu",
                "description": "Wyzwalane, gdy numer telefonu zapisuje si\u0119 przez przes\u0142anie formularza",
                "tags": [
                    "phones"
                ],
                "operationId": "webhooks.phone-subscribe-webhook",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "phone.subscribe"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.phone-subscribe-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "subscribe": {
                                    "summary": "Zdarzenie zapisu numeru telefonu",
                                    "value": {
                                        "id": "ed18a290-766d-46cf-ab4e-6fa421405fbd",
                                        "data": {
                                            "phone": "+99559122567",
                                            "user_id": 21911,
                                            "created_at": 1757926648,
                                            "campaign_code": "1dkGdCC2xnBc",
                                            "additional_data": [],
                                            "short_link_code": "baaIoP",
                                            "group_id": 123
                                        },
                                        "name": "phone.subscribe",
                                        "created_at": 1757926648,
                                        "api_version": "2022-05-25",
                                        "attempt_number": 1,
                                        "attempts_total": 4
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.verify-code-success": {
            "post": {
                "summary": "Kod weryfikacyjny zako\u0144czony sukcesem",
                "description": "Zdarzenie `verify_code.success` jest wyzwalane, gdy kod weryfikacyjny zosta\u0142 pomy\u015blnie dostarczony, a odbiorca zosta\u0142 zweryfikowany.\n\n[Powiadomienia webhook](/#tag/notifications)",
                "tags": [
                    "verify-codes"
                ],
                "operationId": "webhooks.verify-code-success",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "verify_code.success"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.verify-code-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "success": {
                                    "$ref": "#/components/examples/webhooks.examples.verify-code-success-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.verify-code-failed": {
            "post": {
                "summary": "Kod weryfikacyjny nie powi\u00f3d\u0142 si\u0119",
                "description": "Zdarzenie `verify_code.failed` jest wyzwalane, gdy dostarczenie kodu weryfikacyjnego nie powiod\u0142o si\u0119 we wszystkich kana\u0142ach strategii routingu.\n\n[Powiadomienia webhook](/#tag/notifications)",
                "tags": [
                    "verify-codes"
                ],
                "operationId": "webhooks.verify-code-failed",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "verify_code.failed"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.verify-code-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "failed": {
                                    "$ref": "#/components/examples/webhooks.examples.verify-code-failed-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.verify-code-channel-updated": {
            "post": {
                "summary": "Kana\u0142 kodu weryfikacyjnego zaktualizowany",
                "description": "Zdarzenie `verify_code.channel.updated` jest wyzwalane, gdy status kodu weryfikacyjnego zmienia si\u0119 podczas przetwarzania.\n\n[Powiadomienia webhook](/#tag/notifications)",
                "tags": [
                    "verify-codes"
                ],
                "operationId": "webhooks.verify-code-channel-updated",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "verify_code.channel.updated"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.verify-code-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "updated": {
                                    "$ref": "#/components/examples/webhooks.examples.verify-code-channel-updated-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.verify-code-channel-sent": {
            "post": {
                "summary": "Kana\u0142 kodu weryfikacyjnego wys\u0142any",
                "description": "Zdarzenie `verify_code.channel.sent` jest wyzwalane, gdy kod weryfikacyjny zosta\u0142 wys\u0142any przez okre\u015blony kana\u0142.\n\n[Powiadomienia webhook](/#tag/notifications)",
                "tags": [
                    "verify-codes"
                ],
                "operationId": "webhooks.verify-code-channel-sent",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "verify_code.channel.sent"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.verify-code-channel-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "sent": {
                                    "$ref": "#/components/examples/webhooks.examples.verify-code-channel-sent-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.verify-code-channel-success": {
            "post": {
                "summary": "Kana\u0142 kodu weryfikacyjnego zako\u0144czony sukcesem",
                "description": "Zdarzenie `verify_code.channel.success` jest wyzwalane, gdy okre\u015blony kana\u0142 pomy\u015blnie przetworzy\u0142 kod weryfikacyjny.\n\n[Powiadomienia webhook](/#tag/notifications)",
                "tags": [
                    "verify-codes"
                ],
                "operationId": "webhooks.verify-code-channel-success",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "verify_code.channel.success"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.verify-code-channel-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "success": {
                                    "$ref": "#/components/examples/webhooks.examples.verify-code-channel-success-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        },
        "webhooks.verify-code-channel-failed": {
            "post": {
                "summary": "Kana\u0142 kodu weryfikacyjnego nie powi\u00f3d\u0142 si\u0119",
                "description": "Zdarzenie `verify_code.channel.failed` jest wyzwalane, gdy okre\u015blony kana\u0142 nie m\u00f3g\u0142 przetworzy\u0107 kodu weryfikacyjnego.\n\n[Powiadomienia webhook](/#tag/notifications)",
                "tags": [
                    "verify-codes"
                ],
                "operationId": "webhooks.verify-code-channel-failed",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/webhook.event"
                                    },
                                    {
                                        "properties": {
                                            "name": {
                                                "enum": [
                                                    "verify_code.channel.failed"
                                                ]
                                            },
                                            "data": {
                                                "$ref": "#/components/schemas/schema.webhooks.verify-code-channel-data"
                                            }
                                        }
                                    }
                                ]
                            },
                            "examples": {
                                "failed": {
                                    "$ref": "#/components/examples/webhooks.examples.verify-code-channel-failed-event"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/webhook-200"
                    },
                    "400": {
                        "$ref": "#/components/responses/webhook-400"
                    },
                    "401": {
                        "$ref": "#/components/responses/webhook-401"
                    },
                    "403": {
                        "$ref": "#/components/responses/webhook-403"
                    },
                    "404": {
                        "$ref": "#/components/responses/webhook-404"
                    },
                    "500": {
                        "$ref": "#/components/responses/webhook-500"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "token": {
                "type": "apiKey",
                "in": "header",
                "name": "X-LOX24-AUTH-TOKEN",
                "description": "Po zalogowaniu si\u0119 do konta w serwisie mo\u017cesz utworzy\u0107, dezaktywowa\u0107 lub usun\u0105\u0107 jeden lub wi\u0119cej kluczy API w sekcji \"Ustawienia\", w cz\u0119\u015bci \"Ustawienia API\" (wybierz klucz w wersji v2)."
            }
        },
        "parameters": {
            "filter.common.page": {
                "name": "page",
                "in": "query",
                "description": "Bie\u017c\u0105ca strona",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": true,
                "schema": {
                    "type": "integer",
                    "default": 1,
                    "minimum": 1,
                    "maximum": 1000000
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.uuid.array": {
                "name": "uuid[]",
                "in": "query",
                "description": "*Exact* filtr wed\u0142ug identyfikatora SMS-a",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.uuid.exact": {
                "name": "uuid",
                "in": "query",
                "description": "*Exact* filtr wed\u0142ug identyfikatora SMS-a",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.uuid"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "order.common.created_at": {
                "name": "_order[created_at]",
                "in": "query",
                "description": "Sortowanie wed\u0142ug znacznika czasu utworzenia encji",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/order.ordering"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "order.messages.delivery_at": {
                "name": "_order[delivery_at]",
                "in": "query",
                "description": "Sortowanie wed\u0142ug znacznika czasu przekazania wiadomo\u015bci do sieci kom\u00f3rkowej lub planowanego przekazania",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/order.ordering"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "order.common.processed_at": {
                "name": "_order[processed_at]",
                "in": "query",
                "description": "Sortowanie wed\u0142ug znacznika czasu ostatniej zmiany encji",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/order.ordering"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "order.bulks.msg_total_count": {
                "name": "_order[msg_total_count]",
                "in": "query",
                "description": "Sortowanie wed\u0142ug \u0142\u0105cznej liczby powi\u0105zanych SMS-\u00f3w",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/order.ordering"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.text.partial": {
                "name": "text",
                "in": "query",
                "description": "*Partial* filtr tekstowy SMS-\u00f3w bez rozr\u00f3\u017cniania wielko\u015bci liter wed\u0142ug tre\u015bci wiadomo\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.sms.text"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.sender_id.partial": {
                "name": "sender_id",
                "in": "query",
                "description": "*Partial* filtr tekstowy SMS-\u00f3w bez rozr\u00f3\u017cniania wielko\u015bci liter wed\u0142ug numeru lub tekstu nadawcy",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.messages.sender_id"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.bulks.status_code.exact": {
                "name": "status_code",
                "in": "query",
                "description": "*Exact* filtruj\u0105 wysy\u0142ki masowe wed\u0142ug kodu statusu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.bulks.status_code"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.bulks.status_code.array": {
                "name": "status_code[]",
                "in": "query",
                "description": "*Exact* filtruj\u0105 wysy\u0142ki masowe wed\u0142ug kod\u00f3w statusu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.bulks.status_code"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.common.created_at.exact": {
                "name": "created_at",
                "in": "query",
                "description": "*Dok\u0142adne* filtrowanie encji wed\u0142ug znacznika czasu utworzenia",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.created_at"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.common.created_at.array": {
                "name": "created_at[]",
                "in": "query",
                "description": "*Dok\u0142adne* i *zakresowe* filtrowanie encji wed\u0142ug znacznik\u00f3w czasu utworzenia",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.delivery_at.exact": {
                "name": "delivery_at",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug znacznika czasu dostarczenia",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.messages.delivery_at"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.delivery_at.array": {
                "name": "delivery_at[]",
                "in": "query",
                "description": "*Exact* i *range* filtruj\u0105 SMS-y wed\u0142ug znacznik\u00f3w czasu dostarczenia",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.messages.delivery_at"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.common.processed_at.exact": {
                "name": "processed_at",
                "in": "query",
                "description": "*Dok\u0142adne* filtrowanie encji wed\u0142ug znacznika czasu ostatniej zmiany",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.messages.processed_at"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.common.processed_at.array": {
                "name": "processed_at[]",
                "in": "query",
                "description": "*Dok\u0142adne* i *zakresowe* filtrowanie encji wed\u0142ug znacznik\u00f3w czasu ostatnich zmian",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.messages.processed_at"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.bulks.msg_total_count.exact": {
                "name": "msg_total_count",
                "in": "query",
                "description": "*Exact* filtruj\u0105 wysy\u0142ki masowe wed\u0142ug \u0142\u0105cznej liczby SMS-\u00f3w w wysy\u0142ce",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.bulks.msg_total_count"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.bulks.msg_total_count.array": {
                "name": "msg_total_count[]",
                "in": "query",
                "description": "*Exact* i *range* filtruj\u0105 wysy\u0142ki masowe wed\u0142ug \u0142\u0105cznej liczby powi\u0105zanych SMS-\u00f3w",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.bulks.msg_total_count"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.source.exact": {
                "name": "source",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug \u017ar\u00f3de\u0142",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "integer"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.source.array": {
                "name": "source[]",
                "in": "query",
                "description": "*Exact* i *range* filtruj\u0105 SMS-y wed\u0142ug \u017ar\u00f3de\u0142",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.common.key_id.exact": {
                "name": "key_id",
                "in": "query",
                "description": "*Dok\u0142adne* filtrowanie encji wed\u0142ug u\u017cytego klucza API",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.key_id"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.common.key_id.array": {
                "name": "key_id[]",
                "in": "query",
                "description": "*Dok\u0142adne* filtrowanie encji wed\u0142ug u\u017cytych kluczy API",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.common.key_id"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.is_unicode.boolean": {
                "name": "is_unicode",
                "in": "query",
                "description": "*Boolean* filtruj\u0105 SMS-y wed\u0142ug pola `is_unicode`, aby rozr\u00f3\u017cni\u0107 wiadomo\u015bci GSM i Unicode",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "boolean"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.is_dryrun.boolean": {
                "name": "is_dryrun",
                "in": "query",
                "description": "*Boolean* filtruj\u0105 wysy\u0142ki masowe wed\u0142ug pola `is_dryrun`, aby rozr\u00f3\u017cni\u0107 typ wysy\u0142ki",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "boolean"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.is_unicode.exists": {
                "name": "exists[is_unicode]",
                "in": "query",
                "description": "*Boolean* i *exists* filtruj\u0105 wysy\u0142ki masowe wed\u0142ug pola `is_unicode`, aby rozr\u00f3\u017cni\u0107 wiadomo\u015bci GSM i Unicode",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "boolean"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "path.bulks.id": {
                "name": "id",
                "in": "path",
                "description": "ID wysy\u0142ki masowej",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.uuid"
                },
                "style": "simple",
                "explode": false
            },
            "order.accounting.amount": {
                "name": "_order[amount]",
                "in": "query",
                "description": "Sortuj wed\u0142ug kwoty dokumentu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/order.ordering"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.status.exact": {
                "name": "status",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug statusu dokumentu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "integer",
                    "enum": [
                        0,
                        1,
                        2
                    ]
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.payment_type.exact": {
                "name": "paymentType",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug typu p\u0142atno\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "integer",
                    "enum": [
                        1,
                        6,
                        7,
                        8,
                        91,
                        92
                    ]
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.id.exact": {
                "name": "id",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug identyfikatora dokumentu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.accounting.id"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.id.array": {
                "name": "id[]",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug wielu identyfikator\u00f3w dokument\u00f3w",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.accounting.id"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.accounting.created_at.exact": {
                "name": "created_at",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug znacznika czasu utworzenia",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.accounting.created_at"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.created_at.array": {
                "name": "created_at[]",
                "in": "query",
                "description": "Filtr *dok\u0142adny* i *zakresowy* wed\u0142ug znacznik\u00f3w czasu utworzenia",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.accounting.created_at"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.accounting.amount.exact": {
                "name": "amount",
                "in": "query",
                "description": "Filtr *zakresowy* wed\u0142ug kwoty dokumentu (warto\u015b\u0107 rzeczywista, np. 24.63 dla 24.63 EUR)",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.accounting.amount"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.amount.array": {
                "name": "amount[]",
                "in": "query",
                "description": "Filtr *dok\u0142adny* i *zakresowy* wed\u0142ug kwot dokument\u00f3w (warto\u015bci rzeczywiste, np. 24.63 dla 24.63 EUR)",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.accounting.amount"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.accounting.paid_at.exact": {
                "name": "paid_at",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug znacznika czasu p\u0142atno\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.accounting.paid_at"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.paid_at.array": {
                "name": "paid_at[]",
                "in": "query",
                "description": "Filtr *dok\u0142adny* i *zakresowy* wed\u0142ug znacznik\u00f3w czasu p\u0142atno\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.accounting.paid_at"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.accounting.paid_at.exists": {
                "name": "exists[paid_at]",
                "in": "query",
                "description": "Filtr *istnienia* wed\u0142ug statusu p\u0142atno\u015bci: `true` = dokumenty op\u0142acone, `false` = dokumenty nieop\u0142acone",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "boolean"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "path.accounting.invoice_id": {
                "name": "id",
                "in": "path",
                "description": "Identyfikator faktury",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.accounting.id"
                },
                "style": "simple",
                "explode": false
            },
            "path.accounting.credit_note_id": {
                "name": "id",
                "in": "path",
                "description": "Identyfikator noty kredytowej",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.accounting.id"
                },
                "style": "simple",
                "explode": false
            },
            "filter.accounting.payment_status.exact": {
                "name": "status",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug statusu p\u0142atno\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "integer",
                    "enum": [
                        0,
                        10,
                        20,
                        100,
                        200,
                        300,
                        400,
                        1000
                    ]
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.payments_payment_type.exact": {
                "name": "type",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug typu metody p\u0142atno\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "integer",
                    "enum": [
                        1,
                        6,
                        7,
                        8,
                        91,
                        92
                    ]
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.payment_id.exact": {
                "name": "id",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug identyfikatora pr\u00f3by p\u0142atno\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.accounting.payment_id"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.payment_id.array": {
                "name": "id[]",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug wielu identyfikator\u00f3w pr\u00f3b p\u0142atno\u015bci",
                "required": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.accounting.payment_id"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.accounting.payment_created_at.exact": {
                "name": "created_at",
                "in": "query",
                "description": "Filtr *dok\u0142adny* wed\u0142ug znacznika czasu utworzenia",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.accounting.payment_created_at"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.accounting.payment_created_at.array": {
                "name": "created_at[]",
                "in": "query",
                "description": "Filtr *dok\u0142adny* i *zakresowy* wed\u0142ug znacznik\u00f3w czasu utworzenia",
                "required": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.accounting.payment_created_at"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "path.accounting.payment_id": {
                "name": "id",
                "in": "path",
                "description": "Identyfikator pr\u00f3by p\u0142atno\u015bci",
                "required": true,
                "schema": {
                    "$ref": "#/components/schemas/property.accounting.payment_id"
                },
                "style": "simple",
                "explode": false
            },
            "filter.fraud-check.id.exact": {
                "name": "id",
                "in": "query",
                "description": "*Exact* filtr wed\u0142ug ID \u017c\u0105dania oszustwa",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.uuid"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.fraud-check.id.array": {
                "name": "id[]",
                "in": "query",
                "description": "*Exact* filtr wed\u0142ug ID \u017c\u0105dania oszustwa",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.common.callback_data.partial": {
                "name": "callback_data",
                "in": "query",
                "description": "*Cz\u0119\u015bciowe* filtrowanie encji wed\u0142ug pola `callback_data`",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.callback_data"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.fraud-check.request_phone.phone.partial": {
                "name": "request_phone.phone",
                "in": "query",
                "description": "*Partial* filtr wed\u0142ug warto\u015bci numeru telefonu w \u017c\u0105daniu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "pattern": "^\\+?[1-9]\\d{0,14}$",
                    "minLength": 1,
                    "maxLength": 16
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.fraud-check.request_email.email.partial": {
                "name": "request_email.email",
                "in": "query",
                "description": "*Partial* filtr wed\u0142ug warto\u015bci adresu e-mail w \u017c\u0105daniu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.fraud-check.request_ip.ip.partial": {
                "name": "request_ip.ip",
                "in": "query",
                "description": "*Partial* filtr wed\u0142ug warto\u015bci adresu IP w \u017c\u0105daniu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 39
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.fraud-check.status_code.exact": {
                "name": "status_code",
                "in": "query",
                "description": "*Exact* filtruj \u017c\u0105dania oszustwa wed\u0142ug kodu statusu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.fraud-check.status_code"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.fraud-check.status_code.array": {
                "name": "status_code[]",
                "in": "query",
                "description": "*Exact* filtruj \u017c\u0105dania oszustwa wed\u0142ug kod\u00f3w statusu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.fraud-check.status_code"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "path.fraud-check.id": {
                "name": "id",
                "in": "path",
                "description": "ID \u017c\u0105dania sprawdzenia oszustwa",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.uuid"
                },
                "style": "simple",
                "explode": false
            },
            "path.groups.id": {
                "name": "id",
                "in": "path",
                "description": "ID grupy",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.group.id"
                },
                "style": "simple",
                "explode": false
            },
            "order.incomings.received_at": {
                "name": "_order[received_at]",
                "in": "query",
                "description": "Sortowanie wed\u0142ug znacznika czasu otrzymania wiadomo\u015bci przychodz\u0105cej",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/order.ordering"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.incomings.from": {
                "name": "from",
                "in": "query",
                "description": "*Partial* filtr tekstowy bez rozr\u00f3\u017cniania wielko\u015bci liter wed\u0142ug numeru telefonu nadawcy",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "pattern": "^\\+?[1-9]\\d{0,14}$",
                    "minLength": 1,
                    "maxLength": 16
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.incomings.to": {
                "name": "to",
                "in": "query",
                "description": "*Partial* filtr tekstowy bez rozr\u00f3\u017cniania wielko\u015bci liter wed\u0142ug numeru telefonu wiadomo\u015bci przychodz\u0105cej",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "pattern": "^\\+?[1-9]\\d{0,14}$",
                    "minLength": 1,
                    "maxLength": 16
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.incomings.msg_uuid": {
                "name": "msg_uuid",
                "in": "query",
                "description": "*Exact* filtr wed\u0142ug identyfikatora pocz\u0105tkowego SMS-a",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.uuid"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.incomings.msg_uuid.array": {
                "name": "msg_uuid[]",
                "in": "query",
                "description": "*Exact* filtr wed\u0142ug identyfikatora pocz\u0105tkowego SMS-a",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "path.incomings.id": {
                "name": "uuid",
                "in": "path",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.uuid"
                },
                "description": "ID wiadomo\u015bci przychodz\u0105cej"
            },
            "path.phones.id": {
                "name": "id",
                "in": "path",
                "description": "Identyfikator numeru telefonu",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.phone.id"
                },
                "style": "simple",
                "explode": false
            },
            "filter.short_link.name.partial": {
                "name": "name",
                "in": "query",
                "description": "Filtruj kr\u00f3tkie linki wed\u0142ug nazwy (dopasowanie cz\u0119\u015bciowe)",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.url.partial": {
                "name": "url",
                "in": "query",
                "description": "*Partial* filtr tekstowy wed\u0142ug docelowego URL, bez rozr\u00f3\u017cniania wielko\u015bci liter",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.type.exact": {
                "name": "type",
                "in": "query",
                "description": "*Exact* filtruj kr\u00f3tkie linki wed\u0142ug typu (dok\u0142adne dopasowanie)",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.short_link_requests.type"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.type.array": {
                "name": "type[]",
                "in": "query",
                "description": "*Range* filtruj kr\u00f3tkie linki wed\u0142ug typu (tablica warto\u015bci)",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.short_link_requests.type"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "path.short_link_campaigns.code": {
                "name": "code",
                "in": "path",
                "description": "short_link_campaigns code",
                "required": true,
                "deprecated": false,
                "schema": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 36
                },
                "style": "simple",
                "explode": false
            },
            "order.short_link_request.date": {
                "name": "_order[date]",
                "in": "query",
                "description": "Sortuj list\u0119 wed\u0142ug w\u0142a\u015bciwo\u015bci 'date'",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/order.ordering"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.ip.partial": {
                "name": "ip",
                "in": "query",
                "description": "*Partial* filtr tekstowy wed\u0142ug adresu IP, bez rozr\u00f3\u017cniania wielko\u015bci liter",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "format": "ipv4",
                    "maxLength": 15
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.user_agent.partial": {
                "name": "user_agent",
                "in": "query",
                "description": "*Partial* filtruj kr\u00f3tkie linki wed\u0142ug user agenta (dopasowanie cz\u0119\u015bciowe)",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.common.country.exact": {
                "name": "country",
                "in": "query",
                "description": "*Dok\u0142adne* filtrowanie encji wed\u0142ug kodu kraju",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.country_code"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.common.country.array": {
                "name": "country[]",
                "in": "query",
                "description": "*Dok\u0142adne* filtrowanie encji wed\u0142ug kod\u00f3w kraj\u00f3w",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.common.country_code"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.short_link_request.referer.partial": {
                "name": "referer",
                "in": "query",
                "description": "*Partial* filtr tekstowy wed\u0142ug referera, bez rozr\u00f3\u017cniania wielko\u015bci liter",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.date.exact": {
                "name": "date",
                "in": "query",
                "description": "*Exact* filtruj \u017c\u0105dania kr\u00f3tkich link\u00f3w wed\u0142ug dok\u0142adnej daty",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.short_link_requests.date"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.date.array": {
                "name": "date[]",
                "in": "query",
                "description": "*Exact* filtruj \u017c\u0105dania kr\u00f3tkich link\u00f3w wed\u0142ug daty (tablica warto\u015bci)",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.short_link_requests.date"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.short_link_request.browser.partial": {
                "name": "browser",
                "in": "query",
                "description": "*Partial* filtr tekstowy wed\u0142ug nazwy przegl\u0105darki, bez rozr\u00f3\u017cniania wielko\u015bci liter",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.os.partial": {
                "name": "os",
                "in": "query",
                "description": "*Partial* filtr tekstowy wed\u0142ug nazwy systemu operacyjnego, bez rozr\u00f3\u017cniania wielko\u015bci liter",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.os_version.partial": {
                "name": "os_version",
                "in": "query",
                "description": "*Partial* filtr tekstowy wed\u0142ug wersji systemu operacyjnego, bez rozr\u00f3\u017cniania wielko\u015bci liter",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.software_type.partial": {
                "name": "software_type",
                "in": "query",
                "description": "*Partial* filtr tekstowy wed\u0142ug typu oprogramowania, bez rozr\u00f3\u017cniania wielko\u015bci liter",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.hardware_type.partial": {
                "name": "hardware_type",
                "in": "query",
                "description": "*Partial* filtr tekstowy wed\u0142ug typu sprz\u0119tu, bez rozr\u00f3\u017cniania wielko\u015bci liter",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.date.between": {
                "name": "date[between]",
                "in": "query",
                "description": "*Range* filtruj \u017c\u0105dania kr\u00f3tkich link\u00f3w wed\u0142ug zakresu dat",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.short_link_requests.date"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.date.gt": {
                "name": "date[gt]",
                "in": "query",
                "description": "Filtruj \u017c\u0105dania kr\u00f3tkich link\u00f3w wed\u0142ug daty wi\u0119kszej ni\u017c",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.short_link_requests.date"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.date.gte": {
                "name": "date[gte]",
                "in": "query",
                "description": "Filtruj \u017c\u0105dania kr\u00f3tkich link\u00f3w wed\u0142ug daty wi\u0119kszej lub r\u00f3wnej",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.short_link_requests.date"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.date.lt": {
                "name": "date[lt]",
                "in": "query",
                "description": "Filtruj \u017c\u0105dania kr\u00f3tkich link\u00f3w wed\u0142ug daty mniejszej ni\u017c",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.short_link_requests.date"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.date.lte": {
                "name": "date[lte]",
                "in": "query",
                "description": "Filtruj \u017c\u0105dania kr\u00f3tkich link\u00f3w wed\u0142ug daty mniejszej lub r\u00f3wnej",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.short_link_requests.date"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.short_link_request.browser_version.partial": {
                "name": "browser_version",
                "in": "query",
                "description": "*Partial* filtr tekstowy wed\u0142ug wersji przegl\u0105darki, bez rozr\u00f3\u017cniania wielko\u015bci liter",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "path.short_link_requests.id": {
                "name": "id",
                "in": "path",
                "description": "ID \u017c\u0105dania kr\u00f3tkiego linku",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.short_link_requests.id"
                },
                "style": "simple",
                "explode": false
            },
            "path.short_links.shortCode": {
                "name": "shortCode",
                "in": "path",
                "required": true,
                "deprecated": false,
                "explode": false,
                "schema": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 36
                },
                "description": "Kod kr\u00f3tkiego linku"
            },
            "path.sms.uuid": {
                "name": "uuid",
                "in": "path",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.uuid"
                },
                "description": "SMS ID (`uuid`)"
            },
            "order.common.updated_at": {
                "name": "_order[updated_at]",
                "in": "query",
                "description": "Sortowanie listy wed\u0142ug w\u0142a\u015bciwo\u015bci 'updated_at'",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/order.ordering"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.common.updated_at.exact": {
                "name": "updated_at",
                "in": "query",
                "description": "*Dok\u0142adne* filtrowanie encji wed\u0142ug znacznika czasu ostatniej aktualizacji",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.updated_at"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.common.updated_at.array": {
                "name": "updated_at[]",
                "in": "query",
                "description": "*Dok\u0142adne* i *zakresowe* filtrowanie encji wed\u0142ug znacznik\u00f3w czasu ostatniej aktualizacji",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "order.messages.gateway_sent_at": {
                "name": "_order[gateway_sent_at]",
                "in": "query",
                "description": "Sortowanie wed\u0142ug znacznika czasu przekazania wiadomo\u015bci do sieci kom\u00f3rkowej",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/order.ordering"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.is_sent.boolean": {
                "name": "is_sent",
                "in": "query",
                "description": "*Boolean* filtruj\u0105 SMS-y wed\u0142ug pola `is_sent`, aby rozr\u00f3\u017cni\u0107 wiadomo\u015bci ju\u017c wys\u0142ane od jeszcze niewys\u0142anych",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "boolean"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.iso2.exact": {
                "name": "iso2",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug kraju telefonu ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.country_code"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.iso2.array": {
                "name": "iso2[]",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug kraj\u00f3w telefonu ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.common.country_code"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.dlr_code.exact": {
                "name": "dlr_code",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug statusu raportu dostarczenia",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.sms.dlr_code"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.dlr_code.array": {
                "name": "dlr_code[]",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug status\u00f3w raport\u00f3w dostarczenia",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.sms.dlr_code"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.status_code.exact": {
                "name": "status_code",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug kodu statusu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.sms.status_code"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.status_code.array": {
                "name": "status_code[]",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug kod\u00f3w statusu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.sms.status_code"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.gateway_sent_at.exact": {
                "name": "gateway_sent_at",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug znacznika czasu wys\u0142ania do bramki",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.sms.gateway_sent_at"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.gateway_sent_at.array": {
                "name": "gateway_sent_at[]",
                "in": "query",
                "description": "*Exact* i *range* filtruj\u0105 SMS-y wed\u0142ug znacznik\u00f3w czasu wys\u0142ania do bramki",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.sms.gateway_sent_at"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.chars_count.exact": {
                "name": "chars_count",
                "in": "query",
                "description": "*Range* filtruj\u0105 SMS-y wed\u0142ug liczby znak\u00f3w wiadomo\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "integer",
                    "minimum": 1
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.chars_count.array": {
                "name": "chars_count[]",
                "in": "query",
                "description": "*Exact* i *range* filtruj\u0105 SMS-y wed\u0142ug liczby znak\u00f3w wiadomo\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "type": "integer",
                        "minimum": 1
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.parts_count.exact": {
                "name": "parts_count",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug liczby cz\u0119\u015bci wiadomo\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.sms.parts_count"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.parts_count.array": {
                "name": "parts_count[]",
                "in": "query",
                "description": "*Exact* i *range* filtruj\u0105 SMS-y wed\u0142ug liczby cz\u0119\u015bci wiadomo\u015bci",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.sms.parts_count"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.bulk.exact": {
                "name": "bulk",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug wysy\u0142ki masowej",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.uuid"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.bulk.array": {
                "name": "bulk[]",
                "in": "query",
                "description": "*Exact* i *range* filtruj\u0105 SMS-y wed\u0142ug wysy\u0142ki masowej",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.messages.phone.partial": {
                "name": "phone",
                "in": "query",
                "description": "*Partial* filtr tekstowy SMS-\u00f3w wed\u0142ug numeru telefonu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "string",
                    "pattern": "^\\+?[0-9]{1,15}$",
                    "minLength": 1,
                    "maxLength": 16
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.ip.partial": {
                "name": "ip",
                "in": "query",
                "description": "*Partial* filtr tekstowy SMS-\u00f3w wed\u0142ug adresu IP, z kt\u00f3rego utworzono wiadomo\u015b\u0107",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.ip_read"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.callback_data.exact": {
                "name": "callback_data",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug w\u0142a\u015bciwo\u015bci `callback_data`",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.callback_data"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.messages.callback_data.array": {
                "name": "callback_data[]",
                "in": "query",
                "description": "*Exact* filtruj\u0105 SMS-y wed\u0142ug w\u0142a\u015bciwo\u015bci `callback_data`",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": false,
                "schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    }
                },
                "style": "form",
                "explode": true,
                "allowReserved": false
            },
            "filter.blocked_numbers.number.exact": {
                "name": "number",
                "in": "query",
                "description": "Filtrowanie wed\u0142ug dok\u0142adnego numeru telefonu",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": true,
                "schema": {
                    "$ref": "#/components/schemas/property.blocked_numbers.number"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "filter.blocked_numbers.type.exact": {
                "name": "type",
                "in": "query",
                "description": "Filtrowanie wed\u0142ug dok\u0142adnego typu zablokowanego numeru",
                "required": false,
                "deprecated": false,
                "allowEmptyValue": true,
                "schema": {
                    "$ref": "#/components/schemas/property.blocked_numbers.type"
                },
                "style": "form",
                "explode": false,
                "allowReserved": false
            },
            "path.blocked_numbers.id": {
                "name": "id",
                "in": "path",
                "description": "Identyfikator zablokowanego numeru",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.blocked_numbers.id"
                },
                "style": "simple",
                "explode": false
            },
            "path.verify_codes.id": {
                "name": "id",
                "in": "path",
                "description": "UUID \u017c\u0105dania kodu weryfikacyjnego",
                "required": true,
                "deprecated": false,
                "schema": {
                    "$ref": "#/components/schemas/property.common.uuid"
                },
                "style": "simple",
                "explode": false
            }
        },
        "schemas": {
            "property.common.uuid": {
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "type": "string",
                "description": "Unikalny identyfikator UUID encji"
            },
            "order.ordering": {
                "type": "string",
                "default": "asc",
                "enum": [
                    "asc",
                    "desc"
                ],
                "description": "Sort order direction (ascending or descending)"
            },
            "property.sms.text": {
                "type": "string",
                "description": "Tekst wiadomo\u015bci mo\u017ce mie\u0107 do 1530 znak\u00f3w. W przypadku SMS-a Unicode maksymalna liczba znak\u00f3w jest ograniczona do 670. Kodowanie wewn\u0119trzne to UTF-8."
            },
            "property.messages.sender_id": {
                "type": "string",
                "pattern": "^(\\+?[1-9]\\d{0,14}|[a-zA-Z0-9 ]{1,11})$",
                "description": "Identyfikator nadawcy wiadomo\u015bci. Mo\u017ce by\u0107 numerem (do 15 cyfr) lub tekstem (do 11 znak\u00f3w).\nW przypadku numeru u\u017cywaj przede wszystkim formatu numeru telefonu E.164. Nadawca b\u0119d\u0105cy tekstem mo\u017ce zawiera\u0107 spacje, ale nie\ninne znaki specjalne. Pami\u0119taj, \u017ce niekt\u00f3re kraje nie obs\u0142uguj\u0105 w\u0142asnych identyfikator\u00f3w nadawcy lub wymagaj\u0105 wcze\u015bniejszej rejestracji. Nasz system automatycznie pr\u00f3buje rozpozna\u0107, czy identyfikator nadawcy jest tekstem, czy numerem telefonu. Unikaj znak\u00f3w specjalnych w numerze i wprowadzaj go w taki sam spos\u00f3b, w jaki zosta\u0142by wybrany na telefonie.\n\nW przypadku wiadomo\u015bci g\u0142osowych (text2speech, text2speech_ssml): je\u015bli sender_id nie jest zgodny z formatem E.164 (np. brak wiod\u0105cego +, znaki nieb\u0119d\u0105ce cyframi), wiadomo\u015b\u0107 zostanie wys\u0142ana z domy\u015blnego numeru systemowego +493075435114. Niekt\u00f3rzy zewn\u0119trzni dostawcy us\u0142ug telefonicznych mog\u0105 nadpisa\u0107 lub nie respektowa\u0107 numeru nadawcy zdefiniowanego przez u\u017cytkownika; rzeczywisty identyfikator dzwoni\u0105cego prezentowany odbiorcy zale\u017cy od mo\u017cliwo\u015bci dostawcy.",
                "examples": [
                    "+491701234567",
                    "491701234567",
                    "MyCompany",
                    "SMS Service"
                ]
            },
            "property.bulks.status_code": {
                "type": "integer",
                "enum": [
                    0,
                    5,
                    10,
                    15,
                    20,
                    201
                ],
                "description": "Status wysy\u0142ki masowej:\n- `0` - nowa i nieprzetworzona\n- `5` - wysy\u0142ki masowe w trakcie realizacji\n- `10` - wysy\u0142ki masowe zosta\u0142y pomy\u015blnie przetworzone\n- `15` - przetwarzanie wysy\u0142ki masowej zosta\u0142o anulowane przez u\u017cytkownika\n- `20` - b\u0142\u0105d systemu\n- `201` - b\u0142\u0105d: nie znaleziono odbiorc\u00f3w"
            },
            "property.common.created_at": {
                "type": "integer",
                "minimum": 0,
                "description": "Znacznik czasu dodania encji do systemu przez u\u017cytkownika"
            },
            "property.messages.delivery_at": {
                "type": "integer",
                "minimum": 0,
                "description": "Znacznik czasu zaplanowanego dostarczenia"
            },
            "property.messages.processed_at": {
                "type": [
                    "integer",
                    "null"
                ],
                "minimum": 0,
                "description": "Znacznik czasu ostatnich zmian"
            },
            "property.bulks.msg_total_count": {
                "type": "integer",
                "minimum": 0,
                "description": "Liczba wiadomo\u015bci utworzonych przez wysy\u0142k\u0119 masow\u0105"
            },
            "property.common.key_id": {
                "type": "integer",
                "minimum": 1,
                "description": "Identyfikator klucza API"
            },
            "property._jsonld_context": {
                "readOnly": true,
                "oneOf": [
                    {
                        "type": "string"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "@vocab": {
                                "type": "string"
                            },
                            "hydra": {
                                "type": "string",
                                "enum": [
                                    "http://www.w3.org/ns/hydra/core#"
                                ]
                            }
                        },
                        "required": [
                            "@vocab",
                            "hydra"
                        ],
                        "additionalProperties": true
                    }
                ],
                "description": "Kontekst JSON-LD"
            },
            "property._jsonld_id": {
                "readOnly": true,
                "type": "string",
                "description": "Identyfikator JSON-LD"
            },
            "property._jsonld_type": {
                "readOnly": true,
                "type": "string",
                "description": "Typ JSON-LD"
            },
            "hydra.totalItems": {
                "type": "integer",
                "minimum": 0,
                "description": "Total number of items in the collection"
            },
            "property.common.ip_read": {
                "type": "string",
                "format": "ipv4",
                "description": "Adres IP hosta, kt\u00f3ry wys\u0142a\u0142 \u017c\u0105danie",
                "example": "192.168.1.1"
            },
            "property.messages.is_unicode": {
                "type": [
                    "boolean",
                    "null"
                ],
                "description": "True, je\u015bli wiadomo\u015b\u0107 zawiera znaki Unicode, w przeciwnym razie False"
            },
            "property.messages.is_dryrun": {
                "type": "boolean",
                "description": "Typ wysy\u0142ki masowej: 'dryrun' lub zwyk\u0142a"
            },
            "property.common.callback_data": {
                "maxLength": 36,
                "type": [
                    "string",
                    "null"
                ],
                "description": "Ci\u0105g znak\u00f3w, kt\u00f3ry zostanie odes\u0142any do Twojego endpointu. Mo\u017cna go wykorzysta\u0107 np. do przekazania identyfikatora wiadomo\u015bci z Twojego systemu."
            },
            "property.messages.service_code": {
                "enum": [
                    "direct",
                    "text2speech",
                    "text2speech_ssml"
                ],
                "description": "Kod us\u0142ugi lub bramki"
            },
            "property.messages.source": {
                "type": [
                    "integer",
                    "null"
                ],
                "description": "\u0179r\u00f3d\u0142o lub pochodzenie wiadomo\u015bci"
            },
            "property.messages.voice_lang": {
                "enum": [
                    "EN",
                    "DE",
                    "FR",
                    "IT",
                    "ES",
                    "PL",
                    "NL",
                    "RO",
                    "PT",
                    "CS",
                    "HU",
                    "SV",
                    "DA",
                    "FI",
                    "SK",
                    "HR",
                    "TR",
                    "RU",
                    "BG",
                    "UK",
                    null
                ],
                "type": [
                    "string",
                    "null"
                ],
                "description": "J\u0119zyk wiadomo\u015bci g\u0142osowej. Mo\u017cliwe warto\u015bci: `null` ([automatyczne wykrywanie](/info/ssml-language-detection/)) lub jedna z: EN (angielski), DE (niemiecki), FR (francuski), IT (w\u0142oski), ES (hiszpa\u0144ski), PL (polski), NL (niderlandzki), RO (rumu\u0144ski), PT (portugalski), CS (czeski), HU (w\u0119gierski), SV (szwedzki), DA (du\u0144ski), FI (fi\u0144ski), SK (s\u0142owacki), HR (chorwacki), TR (turecki), RU (rosyjski), BG (bu\u0142garski), UK (ukrai\u0144ski)."
            },
            "property.messages.is_text_deleted": {
                "type": "boolean",
                "description": "True, je\u015bli tekst wiadomo\u015bci zosta\u0142 usuni\u0119ty, w przeciwnym razie False"
            },
            "property.bulks.msg_total_cost": {
                "type": "number",
                "minimum": 0,
                "description": "Koszt wiadomo\u015bci utworzonych przez wysy\u0142k\u0119 masow\u0105"
            },
            "schema.bulks.jsonld-bulk_read_status": {
                "type": "object",
                "description": "Bulk SMS status summary (JSON-LD)",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "uuid": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "delivery_at": {
                        "$ref": "#/components/schemas/property.messages.delivery_at"
                    },
                    "sender_id": {
                        "$ref": "#/components/schemas/property.messages.sender_id"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.bulks.status_code"
                    },
                    "msg_total_count": {
                        "$ref": "#/components/schemas/property.bulks.msg_total_count"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "processed_at": {
                        "$ref": "#/components/schemas/property.messages.processed_at"
                    },
                    "ip": {
                        "$ref": "#/components/schemas/property.common.ip_read"
                    },
                    "is_unicode": {
                        "$ref": "#/components/schemas/property.messages.is_unicode"
                    },
                    "is_dryrun": {
                        "$ref": "#/components/schemas/property.messages.is_dryrun"
                    },
                    "callback_data": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    },
                    "service_code": {
                        "$ref": "#/components/schemas/property.messages.service_code"
                    },
                    "key_id": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/property.common.key_id"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "source": {
                        "$ref": "#/components/schemas/property.messages.source"
                    },
                    "voice_lang": {
                        "$ref": "#/components/schemas/property.messages.voice_lang"
                    },
                    "is_text_deleted": {
                        "$ref": "#/components/schemas/property.messages.is_text_deleted"
                    },
                    "msg_total_cost": {
                        "$ref": "#/components/schemas/property.bulks.msg_total_cost"
                    },
                    "requests": {
                        "type": "string",
                        "format": "iri-reference",
                        "description": "URL to get the list of the bulk's messages requests"
                    }
                }
            },
            "schema.bulks-bulk_read_status": {
                "type": "object",
                "description": "Bulk SMS status summary",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "uuid": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "delivery_at": {
                        "$ref": "#/components/schemas/property.messages.delivery_at"
                    },
                    "sender_id": {
                        "$ref": "#/components/schemas/property.messages.sender_id"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.bulks.status_code"
                    },
                    "msg_total_count": {
                        "$ref": "#/components/schemas/property.bulks.msg_total_count"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "processed_at": {
                        "$ref": "#/components/schemas/property.messages.processed_at"
                    },
                    "ip": {
                        "$ref": "#/components/schemas/property.common.ip_read"
                    },
                    "is_unicode": {
                        "$ref": "#/components/schemas/property.messages.is_unicode"
                    },
                    "is_dryrun": {
                        "$ref": "#/components/schemas/property.messages.is_dryrun"
                    },
                    "callback_data": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    },
                    "service_code": {
                        "$ref": "#/components/schemas/property.messages.service_code"
                    },
                    "key_id": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/property.common.key_id"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "source": {
                        "$ref": "#/components/schemas/property.messages.source"
                    },
                    "voice_lang": {
                        "$ref": "#/components/schemas/property.messages.voice_lang"
                    },
                    "is_text_deleted": {
                        "$ref": "#/components/schemas/property.messages.is_text_deleted"
                    },
                    "msg_total_cost": {
                        "$ref": "#/components/schemas/property.bulks.msg_total_cost"
                    },
                    "requests": {
                        "type": "string",
                        "format": "iri-reference",
                        "description": "URL to get the list of the bulk's messages requests"
                    }
                }
            },
            "property.bulks.text": {
                "maxLength": 1785,
                "type": "string",
                "description": "Maksymalna d\u0142ugo\u015b\u0107 tekstu to 1785 znak\u00f3w. Pami\u0119taj jednak, \u017ce ko\u0144cowy tekst wiadomo\u015bci mo\u017ce mie\u0107 do 1530 znak\u00f3w. W przypadku SMS-a Unicode maksymalna liczba znak\u00f3w jest ograniczona do 670. Kodowanie wewn\u0119trzne to UTF-8."
            },
            "property.common.phone_number": {
                "type": "string",
                "pattern": "^\\+[1-9]\\d{1,14}$",
                "minLength": 7,
                "maxLength": 16,
                "description": "Numer odbiorcy (mi\u0119dzynarodowy):\n- +491701234567 (E.164)\n- 00491701234567\n- 491701234567\n- 01701234567 (je\u015bli konto jest zarejestrowane w Niemczech) zostanie przekonwertowany na +491701234567\n\nJe\u015bli numer nie jest w formacie E.164, us\u0142uga przekonwertuje go na podstawie adresu u\u017cytkownika.\nAby unikn\u0105\u0107 problem\u00f3w z konwersj\u0105, u\u017cywaj przede wszystkim formatu E.164.",
                "example": "+14155552671"
            },
            "property.bulks.phones": {
                "type": [
                    "array",
                    "null"
                ],
                "items": {
                    "$ref": "#/components/schemas/property.common.phone_number"
                },
                "description": "Lista (mi\u0119dzynarodowych) numer\u00f3w odbiorc\u00f3w:\n- +491701234567 (E.164)\n- 00491701234567\n- 491701234567\n- 01701234567 (je\u015bli konto jest zarejestrowane w Niemczech) zostanie przekonwertowany na +491701234567\n\nJe\u015bli numer nie jest w formacie E.164, us\u0142uga przekonwertuje go na podstawie adresu u\u017cytkownika.\nAby unikn\u0105\u0107 problem\u00f3w z konwersj\u0105, u\u017cywaj przede wszystkim formatu E.164."
            },
            "property.bulks.msg_groups": {
                "type": [
                    "array",
                    "null"
                ],
                "items": {
                    "type": "integer"
                },
                "description": "Lista grup odbiorc\u00f3w"
            },
            "schema.bulks-bulk_write": {
                "type": "object",
                "description": "Bulk SMS creation request payload",
                "deprecated": false,
                "additionalProperties": false,
                "properties": {
                    "delivery_at": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/property.messages.delivery_at"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "sender_id": {
                        "$ref": "#/components/schemas/property.messages.sender_id"
                    },
                    "text": {
                        "$ref": "#/components/schemas/property.bulks.text"
                    },
                    "phones": {
                        "$ref": "#/components/schemas/property.bulks.phones"
                    },
                    "msg_groups": {
                        "$ref": "#/components/schemas/property.bulks.msg_groups"
                    },
                    "is_unicode": {
                        "$ref": "#/components/schemas/property.messages.is_unicode"
                    },
                    "service_code": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/property.messages.service_code"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "source": {
                        "$ref": "#/components/schemas/property.messages.source"
                    },
                    "voice_lang": {
                        "$ref": "#/components/schemas/property.messages.voice_lang"
                    },
                    "is_text_deleted": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/property.messages.is_text_deleted"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "sender_id",
                    "text"
                ],
                "anyOf": [
                    {
                        "required": [
                            "phones"
                        ]
                    },
                    {
                        "required": [
                            "msg_groups"
                        ]
                    }
                ]
            },
            "schema.bulks.jsonld-bulk_read": {
                "type": "object",
                "description": "Bulk SMS details (JSON-LD)",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "uuid": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "delivery_at": {
                        "$ref": "#/components/schemas/property.messages.delivery_at"
                    },
                    "sender_id": {
                        "$ref": "#/components/schemas/property.messages.sender_id"
                    },
                    "text": {
                        "$ref": "#/components/schemas/property.bulks.text"
                    },
                    "phones": {
                        "$ref": "#/components/schemas/property.bulks.phones"
                    },
                    "msg_groups": {
                        "$ref": "#/components/schemas/property.bulks.msg_groups"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.bulks.status_code"
                    },
                    "msg_total_count": {
                        "$ref": "#/components/schemas/property.bulks.msg_total_count"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "processed_at": {
                        "$ref": "#/components/schemas/property.messages.processed_at"
                    },
                    "ip": {
                        "$ref": "#/components/schemas/property.common.ip_read"
                    },
                    "is_unicode": {
                        "$ref": "#/components/schemas/property.messages.is_unicode"
                    },
                    "is_dryrun": {
                        "$ref": "#/components/schemas/property.messages.is_dryrun"
                    },
                    "service_code": {
                        "$ref": "#/components/schemas/property.messages.service_code"
                    },
                    "key_id": {
                        "$ref": "#/components/schemas/property.common.key_id"
                    },
                    "source": {
                        "$ref": "#/components/schemas/property.messages.source"
                    },
                    "voice_lang": {
                        "$ref": "#/components/schemas/property.messages.voice_lang"
                    },
                    "is_text_deleted": {
                        "$ref": "#/components/schemas/property.messages.is_text_deleted"
                    },
                    "msg_total_cost": {
                        "$ref": "#/components/schemas/property.bulks.msg_total_cost"
                    }
                }
            },
            "schema.bulks-bulk_read": {
                "type": "object",
                "description": "Bulk SMS details",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "uuid": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "delivery_at": {
                        "$ref": "#/components/schemas/property.messages.delivery_at"
                    },
                    "sender_id": {
                        "$ref": "#/components/schemas/property.messages.sender_id"
                    },
                    "text": {
                        "$ref": "#/components/schemas/property.bulks.text"
                    },
                    "phones": {
                        "$ref": "#/components/schemas/property.bulks.phones"
                    },
                    "msg_groups": {
                        "$ref": "#/components/schemas/property.bulks.msg_groups"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.bulks.status_code"
                    },
                    "msg_total_count": {
                        "$ref": "#/components/schemas/property.bulks.msg_total_count"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "processed_at": {
                        "$ref": "#/components/schemas/property.messages.processed_at"
                    },
                    "ip": {
                        "$ref": "#/components/schemas/property.common.ip_read"
                    },
                    "is_unicode": {
                        "$ref": "#/components/schemas/property.messages.is_unicode"
                    },
                    "is_dryrun": {
                        "$ref": "#/components/schemas/property.messages.is_dryrun"
                    },
                    "service_code": {
                        "$ref": "#/components/schemas/property.messages.service_code"
                    },
                    "key_id": {
                        "$ref": "#/components/schemas/property.common.key_id"
                    },
                    "source": {
                        "$ref": "#/components/schemas/property.messages.source"
                    },
                    "voice_lang": {
                        "$ref": "#/components/schemas/property.messages.voice_lang"
                    },
                    "is_text_deleted": {
                        "$ref": "#/components/schemas/property.messages.is_text_deleted"
                    },
                    "msg_total_cost": {
                        "$ref": "#/components/schemas/property.bulks.msg_total_cost"
                    }
                }
            },
            "property.user_info.id": {
                "type": "integer",
                "minimum": 1,
                "description": "Identyfikator bie\u017c\u0105cego u\u017cytkownika"
            },
            "property.common.currency": {
                "type": "string",
                "enum": [
                    "EUR",
                    "CHF"
                ],
                "default": "EUR",
                "description": "Waluta"
            },
            "property.user_info.balance_changed_at": {
                "type": "integer",
                "minimum": 0,
                "description": "Znacznik czasu zmiany salda"
            },
            "property.user_info.is_text_deleted": {
                "type": "boolean",
                "description": "Globalny parametr usuwania tre\u015bci wiadomo\u015bci po wys\u0142aniu"
            },
            "property.user_info.balance_amount": {
                "type": "number",
                "description": "Kwota salda"
            },
            "property.user_info.services": {
                "type": "array",
                "items": {
                    "type": "string",
                    "enum": [
                        "direct",
                        "economy",
                        "pro",
                        "telegram_codes",
                        "text2speech",
                        "text2speech_ssml"
                    ]
                },
                "description": "Lista dost\u0119pnych kod\u00f3w us\u0142ug"
            },
            "property.user_info.groups": {
                "type": "object",
                "additionalProperties": {
                    "type": "string",
                    "pattern": "^/groups/[0-9]+$",
                    "example": "/groups/24512"
                },
                "example": {
                    "24512": "/groups/24512",
                    "24513": "/groups/24513",
                    "24519": "/groups/24519"
                },
                "description": "Obiekt, w kt\u00f3rym kluczami s\u0105 identyfikatory grup, a warto\u015bciami odpowiadaj\u0105ce im adresy URI endpoint\u00f3w"
            },
            "schema.client.jsonld-get": {
                "type": "object",
                "description": "Info about your user's account",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "id": {
                        "$ref": "#/components/schemas/property.user_info.id"
                    },
                    "currency": {
                        "$ref": "#/components/schemas/property.common.currency"
                    },
                    "balance_changed_at": {
                        "$ref": "#/components/schemas/property.user_info.balance_changed_at"
                    },
                    "is_text_deleted": {
                        "$ref": "#/components/schemas/property.user_info.is_text_deleted"
                    },
                    "balance_amount": {
                        "$ref": "#/components/schemas/property.user_info.balance_amount"
                    },
                    "services": {
                        "$ref": "#/components/schemas/property.user_info.services"
                    },
                    "groups": {
                        "$ref": "#/components/schemas/property.user_info.groups"
                    }
                }
            },
            "schema.client-get": {
                "type": "object",
                "description": "Info about your user's account",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/property.user_info.id"
                    },
                    "currency": {
                        "$ref": "#/components/schemas/property.common.currency"
                    },
                    "balance_changed_at": {
                        "$ref": "#/components/schemas/property.user_info.balance_changed_at"
                    },
                    "is_text_deleted": {
                        "$ref": "#/components/schemas/property.user_info.is_text_deleted"
                    },
                    "balance_amount": {
                        "$ref": "#/components/schemas/property.user_info.balance_amount"
                    },
                    "services": {
                        "$ref": "#/components/schemas/property.user_info.services"
                    },
                    "groups": {
                        "$ref": "#/components/schemas/property.user_info.groups"
                    }
                }
            },
            "schema.user_pricelist": {
                "oneOf": [
                    {
                        "type": "object",
                        "description": "Single country response",
                        "properties": {
                            "country": {
                                "type": "string",
                                "description": "Kod kraju ISO-2"
                            },
                            "name": {
                                "type": "string",
                                "description": "Czytelna nazwa kraju"
                            },
                            "currency": {
                                "type": "string",
                                "enum": [
                                    "EUR",
                                    "CHF"
                                ],
                                "description": "Waluta cen"
                            },
                            "requirements": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Wymagania specyficzne dla kraju dotycz\u0105ce wysy\u0142ania SMS"
                            },
                            "rates": {
                                "type": "object",
                                "description": "Jedna cena za kod us\u0142ugi na podstawie poziomu cen",
                                "additionalProperties": {
                                    "type": "number",
                                    "description": "Price per SMS in the selected currency"
                                }
                            }
                        }
                    },
                    {
                        "type": "array",
                        "description": "All countries response",
                        "items": {
                            "type": "object",
                            "properties": {
                                "country": {
                                    "type": "string",
                                    "description": "Kod kraju ISO-2"
                                },
                                "name": {
                                    "type": "string",
                                    "description": "Czytelna nazwa kraju"
                                },
                                "currency": {
                                    "type": "string",
                                    "description": "Waluta cen"
                                },
                                "requirements": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Wymagania specyficzne dla kraju dotycz\u0105ce wysy\u0142ania SMS"
                                },
                                "rates": {
                                    "type": "object",
                                    "additionalProperties": {
                                        "type": "number"
                                    },
                                    "description": "Jedna cena za kod us\u0142ugi na podstawie poziomu cen"
                                }
                            }
                        }
                    }
                ],
                "description": "User-specific pricelist for a country",
                "properties": {
                    "country": {
                        "description": "Kod kraju ISO-2"
                    },
                    "name": {
                        "description": "Czytelna nazwa kraju"
                    },
                    "currency": {
                        "description": "Waluta cen"
                    },
                    "requirements": {
                        "description": "Wymagania specyficzne dla kraju dotycz\u0105ce wysy\u0142ania SMS"
                    },
                    "rates": {
                        "description": "Jedna cena za kod us\u0142ugi na podstawie poziomu cen"
                    }
                }
            },
            "schema.pricelist": {
                "oneOf": [
                    {
                        "type": "object",
                        "description": "Single country response",
                        "properties": {
                            "country": {
                                "type": "string",
                                "description": "ISO-2 country code"
                            },
                            "name": {
                                "type": "string",
                                "description": "Human-readable country name in the requested language"
                            },
                            "currency": {
                                "type": "string",
                                "enum": [
                                    "EUR",
                                    "CHF"
                                ],
                                "description": "Price currency"
                            },
                            "requirements": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Country-specific requirements for sending SMS"
                            },
                            "rates": {
                                "type": "object",
                                "description": "Price rates keyed by service code",
                                "additionalProperties": {
                                    "type": "array",
                                    "items": {
                                        "type": "number"
                                    },
                                    "description": "S, M, L, XL rate tiers"
                                }
                            }
                        }
                    },
                    {
                        "type": "array",
                        "description": "All countries response",
                        "items": {
                            "type": "object",
                            "properties": {
                                "country": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "currency": {
                                    "type": "string"
                                },
                                "requirements": {
                                    "type": [
                                        "object",
                                        "null"
                                    ]
                                },
                                "rates": {
                                    "type": "object",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "number"
                                        }
                                    }
                                }
                            }
                        }
                    }
                ],
                "description": "Public pricelist for a country",
                "properties": {
                    "country": {
                        "description": "Kod kraju ISO-2"
                    },
                    "name": {
                        "description": "Nazwa kraju w \u017c\u0105danym j\u0119zyku"
                    },
                    "currency": {
                        "description": "Waluta cen (EUR lub CHF)"
                    },
                    "requirements": {
                        "description": "Wymagania specyficzne dla kraju dotycz\u0105ce wysy\u0142ania SMS"
                    },
                    "rates": {
                        "description": "Stawki cen wed\u0142ug kodu us\u0142ugi"
                    }
                }
            },
            "property.accounting.id": {
                "type": "integer",
                "minimum": 1,
                "description": "Document ID"
            },
            "property.accounting.created_at": {
                "type": "integer",
                "minimum": 0,
                "description": "Creation timestamp"
            },
            "property.accounting.amount": {
                "type": "number",
                "minimum": 0,
                "description": "Document amount"
            },
            "property.accounting.paid_at": {
                "type": "integer",
                "minimum": 0,
                "description": "Payment timestamp"
            },
            "schema.invoice.jsonld-invoice_read_item": {
                "type": "object",
                "additionalProperties": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "id": {
                        "type": "string",
                        "description": "Invoice ID"
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Creation date (unix timestamp)"
                    },
                    "amount": {
                        "type": "number",
                        "description": "Invoice amount"
                    },
                    "currency": {
                        "$ref": "#/components/schemas/property.common.currency"
                    },
                    "status": {
                        "type": "integer",
                        "enum": [
                            0,
                            1,
                            2
                        ],
                        "description": "Invoice status: 0 = New (unpaid), 1 = Success (paid), 2 = Failed"
                    },
                    "payment_type": {
                        "type": "integer",
                        "enum": [
                            1,
                            6,
                            7,
                            8,
                            91,
                            92
                        ],
                        "description": "Payment method: 1 = SEPA, 6 = Bank Transfer, 7 = PayPal, 8 = Sofort, 91 = Stored Card, 92 = New Card"
                    },
                    "paid_at": {
                        "type": "integer",
                        "description": "Payment date (unix timestamp), 0 if not paid"
                    },
                    "client_name": {
                        "type": "string",
                        "description": "Client company name"
                    },
                    "client_address": {
                        "type": "string",
                        "description": "Client address"
                    },
                    "client_info": {
                        "type": "string",
                        "description": "Client info line"
                    },
                    "vat": {
                        "type": "number",
                        "description": "VAT percentage"
                    },
                    "vat_id": {
                        "type": "string",
                        "description": "VAT identification number"
                    },
                    "vat_val": {
                        "type": "number",
                        "description": "VAT value"
                    },
                    "fee": {
                        "type": "number",
                        "description": "Fee percentage"
                    },
                    "fee_val": {
                        "type": "number",
                        "description": "Fee value"
                    },
                    "net_val": {
                        "type": "number",
                        "description": "Net cost value"
                    },
                    "iso2": {
                        "type": "string",
                        "description": "ISO-2 country code"
                    },
                    "custom_text": {
                        "type": "string",
                        "description": "Custom text on the invoice"
                    },
                    "pdf": {
                        "type": "string",
                        "description": "URI to download invoice PDF"
                    },
                    "credit_note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "URI to related credit note, null if none"
                    }
                },
                "description": "Invoice details (JSON-LD)"
            },
            "hydra.view": {
                "type": "object",
                "properties": {
                    "@id": {
                        "type": "string",
                        "format": "iri-reference"
                    },
                    "@type": {
                        "type": "string"
                    },
                    "hydra:first": {
                        "type": "string",
                        "format": "iri-reference"
                    },
                    "hydra:last": {
                        "type": "string",
                        "format": "iri-reference"
                    },
                    "hydra:previous": {
                        "type": "string",
                        "format": "iri-reference"
                    },
                    "hydra:next": {
                        "type": "string",
                        "format": "iri-reference"
                    }
                },
                "example": {
                    "@id": "string",
                    "@type": "string",
                    "hydra:first": "string",
                    "hydra:last": "string",
                    "hydra:previous": "string",
                    "hydra:next": "string"
                },
                "description": "Pagination links for navigating the collection"
            },
            "hydra.search": {
                "type": "object",
                "properties": {
                    "@type": {
                        "type": "string"
                    },
                    "hydra:template": {
                        "type": "string"
                    },
                    "hydra:variableRepresentation": {
                        "type": "string"
                    },
                    "hydra:mapping": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "@type": {
                                    "type": "string"
                                },
                                "variable": {
                                    "type": "string"
                                },
                                "property": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "required": {
                                    "type": "boolean"
                                }
                            }
                        }
                    }
                },
                "description": "Search and filtering template for the collection"
            },
            "schema.invoice-invoice_read_item": {
                "type": "object",
                "additionalProperties": true,
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "Identyfikator faktury"
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Data utworzenia (znacznik czasu unix)"
                    },
                    "amount": {
                        "type": "number",
                        "description": "Kwota faktury"
                    },
                    "currency": {
                        "$ref": "#/components/schemas/property.common.currency"
                    },
                    "status": {
                        "type": "integer",
                        "enum": [
                            0,
                            1,
                            2
                        ],
                        "description": "Status faktury: 0 = Nowa (nieop\u0142acona), 1 = Sukces (op\u0142acona), 2 = Niepowodzenie"
                    },
                    "payment_type": {
                        "type": "integer",
                        "enum": [
                            1,
                            6,
                            7,
                            8,
                            91,
                            92
                        ],
                        "description": "Metoda p\u0142atno\u015bci: 1 = SEPA, 6 = Przelew bankowy, 7 = PayPal, 8 = Sofort, 91 = Zapisana karta, 92 = Nowa karta"
                    },
                    "paid_at": {
                        "type": "integer",
                        "description": "Data p\u0142atno\u015bci (znacznik czasu unix), 0 je\u015bli nieop\u0142acona"
                    },
                    "client_name": {
                        "type": "string",
                        "description": "Nazwa firmy klienta"
                    },
                    "client_address": {
                        "type": "string",
                        "description": "Adres klienta"
                    },
                    "client_info": {
                        "type": "string",
                        "description": "Wiersz informacji o kliencie"
                    },
                    "vat": {
                        "type": "number",
                        "description": "Stawka VAT"
                    },
                    "vat_id": {
                        "type": "string",
                        "description": "Numer identyfikacji VAT"
                    },
                    "vat_val": {
                        "type": "number",
                        "description": "Kwota VAT"
                    },
                    "fee": {
                        "type": "number",
                        "description": "Stawka op\u0142aty"
                    },
                    "fee_val": {
                        "type": "number",
                        "description": "Kwota op\u0142aty"
                    },
                    "net_val": {
                        "type": "number",
                        "description": "Warto\u015b\u0107 kosztu netto"
                    },
                    "iso2": {
                        "type": "string",
                        "description": "Kod kraju ISO-2"
                    },
                    "custom_text": {
                        "type": "string",
                        "description": "Tekst niestandardowy na fakturze"
                    },
                    "pdf": {
                        "type": "string",
                        "description": "URI do pobrania faktury PDF"
                    },
                    "credit_note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "URI powi\u0105zanej noty kredytowej, null je\u015bli brak"
                    }
                },
                "description": "Invoice details"
            },
            "schema.credit_note.jsonld-credit_note_read_item": {
                "type": "object",
                "additionalProperties": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "id": {
                        "type": "string",
                        "description": "Credit Note ID"
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Creation date (unix timestamp)"
                    },
                    "amount": {
                        "type": "number",
                        "description": "Credit note amount"
                    },
                    "currency": {
                        "$ref": "#/components/schemas/property.common.currency"
                    },
                    "status": {
                        "type": "integer",
                        "enum": [
                            0,
                            1,
                            2
                        ],
                        "description": "Credit note status: 0 = New, 1 = Success, 2 = Failed"
                    },
                    "payment_type": {
                        "type": "integer",
                        "enum": [
                            1,
                            6,
                            7,
                            8,
                            91,
                            92
                        ],
                        "description": "Payment method: 1 = SEPA, 6 = Bank Transfer, 7 = PayPal, 8 = Sofort, 91 = Stored Card, 92 = New Card"
                    },
                    "paid_at": {
                        "type": "integer",
                        "description": "Payment date (unix timestamp), 0 if not paid"
                    },
                    "client_name": {
                        "type": "string",
                        "description": "Client company name"
                    },
                    "client_address": {
                        "type": "string",
                        "description": "Client address"
                    },
                    "client_info": {
                        "type": "string",
                        "description": "Client info line"
                    },
                    "vat": {
                        "type": "number",
                        "description": "VAT percentage"
                    },
                    "vat_id": {
                        "type": "string",
                        "description": "VAT identification number"
                    },
                    "vat_val": {
                        "type": "number",
                        "description": "VAT value"
                    },
                    "fee": {
                        "type": "number",
                        "description": "Fee percentage"
                    },
                    "fee_val": {
                        "type": "number",
                        "description": "Fee value"
                    },
                    "net_val": {
                        "type": "number",
                        "description": "Net cost value"
                    },
                    "iso2": {
                        "type": "string",
                        "description": "ISO-2 country code"
                    },
                    "custom_text": {
                        "type": "string",
                        "description": "Custom text on the credit note"
                    },
                    "pdf": {
                        "type": "string",
                        "description": "URI to download credit note PDF"
                    },
                    "invoice": {
                        "type": "string",
                        "description": "URI to the related invoice"
                    }
                },
                "description": "Credit note details (JSON-LD)"
            },
            "schema.credit_note-credit_note_read_item": {
                "type": "object",
                "additionalProperties": true,
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "Identyfikator noty kredytowej"
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Data utworzenia (znacznik czasu unix)"
                    },
                    "amount": {
                        "type": "number",
                        "description": "Kwota noty kredytowej"
                    },
                    "currency": {
                        "$ref": "#/components/schemas/property.common.currency"
                    },
                    "status": {
                        "type": "integer",
                        "enum": [
                            0,
                            1,
                            2
                        ],
                        "description": "Status noty kredytowej: 0 = Nowa, 1 = Sukces, 2 = Niepowodzenie"
                    },
                    "payment_type": {
                        "type": "integer",
                        "enum": [
                            1,
                            6,
                            7,
                            8,
                            91,
                            92
                        ],
                        "description": "Metoda p\u0142atno\u015bci: 1 = SEPA, 6 = Przelew bankowy, 7 = PayPal, 8 = Sofort, 91 = Zapisana karta, 92 = Nowa karta"
                    },
                    "paid_at": {
                        "type": "integer",
                        "description": "Data p\u0142atno\u015bci (znacznik czasu unix), 0 je\u015bli nieop\u0142acona"
                    },
                    "client_name": {
                        "type": "string",
                        "description": "Nazwa firmy klienta"
                    },
                    "client_address": {
                        "type": "string",
                        "description": "Adres klienta"
                    },
                    "client_info": {
                        "type": "string",
                        "description": "Wiersz informacji o kliencie"
                    },
                    "vat": {
                        "type": "number",
                        "description": "Stawka VAT"
                    },
                    "vat_id": {
                        "type": "string",
                        "description": "Numer identyfikacji VAT"
                    },
                    "vat_val": {
                        "type": "number",
                        "description": "Kwota VAT"
                    },
                    "fee": {
                        "type": "number",
                        "description": "Stawka op\u0142aty"
                    },
                    "fee_val": {
                        "type": "number",
                        "description": "Kwota op\u0142aty"
                    },
                    "net_val": {
                        "type": "number",
                        "description": "Warto\u015b\u0107 kosztu netto"
                    },
                    "iso2": {
                        "type": "string",
                        "description": "Kod kraju ISO-2"
                    },
                    "custom_text": {
                        "type": "string",
                        "description": "Tekst niestandardowy na nocie kredytowej"
                    },
                    "pdf": {
                        "type": "string",
                        "description": "URI do pobrania noty kredytowej PDF"
                    },
                    "invoice": {
                        "type": "string",
                        "description": "URI powi\u0105zanej faktury"
                    }
                },
                "description": "Credit note details"
            },
            "property.accounting.payment_id": {
                "type": "integer",
                "minimum": 1,
                "description": "Payment attempt ID"
            },
            "property.accounting.payment_created_at": {
                "type": "integer",
                "minimum": 0,
                "description": "Payment creation timestamp"
            },
            "schema.payment.jsonld-payment_read": {
                "type": "object",
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "id": {
                        "type": "integer",
                        "description": "Payment Attempt ID"
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Creation date (unix timestamp)"
                    },
                    "completed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Completion date (unix timestamp), null if not completed"
                    },
                    "status": {
                        "type": "integer",
                        "enum": [
                            0,
                            10,
                            20,
                            100,
                            200,
                            300,
                            400,
                            1000
                        ],
                        "description": "Payment status: 0 = New, 10 = In Progress (before request), 20 = In Progress (after request), 100 = Done, 200 = Canceled by user, 300 = Canceled by timeout, 400 = Canceled by admin, 1000 = Error"
                    },
                    "amount": {
                        "type": "number",
                        "description": "Total payment amount"
                    },
                    "net_val": {
                        "type": "number",
                        "description": "Net cost value"
                    },
                    "vat_val": {
                        "type": "number",
                        "description": "VAT value"
                    },
                    "fee_val": {
                        "type": "number",
                        "description": "Fee value"
                    },
                    "currency": {
                        "$ref": "#/components/schemas/property.common.currency"
                    },
                    "type": {
                        "type": "integer",
                        "enum": [
                            1,
                            6,
                            7,
                            8,
                            91,
                            92
                        ],
                        "description": "Payment method: 1 = SEPA, 6 = Bank Transfer, 7 = PayPal, 8 = Sofort, 91 = Stored Card, 92 = New Card"
                    },
                    "invoice": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "URI to related invoice, null if not yet created"
                    },
                    "error": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Error message if payment failed, null otherwise"
                    }
                },
                "description": "Payment attempt details (JSON-LD)"
            },
            "schema.payment-payment_read": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "description": "Identyfikator pr\u00f3by p\u0142atno\u015bci"
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Data utworzenia (znacznik czasu unix)"
                    },
                    "completed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Data zako\u0144czenia (znacznik czasu unix), null je\u015bli niezako\u0144czona"
                    },
                    "status": {
                        "type": "integer",
                        "enum": [
                            0,
                            10,
                            20,
                            100,
                            200,
                            300,
                            400,
                            1000
                        ],
                        "description": "Status p\u0142atno\u015bci: 0 = Nowa, 10 = W toku (przed \u017c\u0105daniem), 20 = W toku (po \u017c\u0105daniu), 100 = Zako\u0144czona, 200 = Anulowana przez u\u017cytkownika, 300 = Anulowana przez przekroczenie limitu czasu, 400 = Anulowana przez administratora, 1000 = B\u0142\u0105d"
                    },
                    "amount": {
                        "type": "number",
                        "description": "\u0141\u0105czna kwota p\u0142atno\u015bci"
                    },
                    "net_val": {
                        "type": "number",
                        "description": "Warto\u015b\u0107 kosztu netto"
                    },
                    "vat_val": {
                        "type": "number",
                        "description": "Kwota VAT"
                    },
                    "fee_val": {
                        "type": "number",
                        "description": "Kwota op\u0142aty"
                    },
                    "currency": {
                        "$ref": "#/components/schemas/property.common.currency"
                    },
                    "type": {
                        "type": "integer",
                        "enum": [
                            1,
                            6,
                            7,
                            8,
                            91,
                            92
                        ],
                        "description": "Metoda p\u0142atno\u015bci: 1 = SEPA, 6 = Przelew bankowy, 7 = PayPal, 8 = Sofort, 91 = Zapisana karta, 92 = Nowa karta"
                    },
                    "invoice": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "URI powi\u0105zanej faktury, null je\u015bli jeszcze nie utworzono"
                    },
                    "error": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Komunikat b\u0142\u0119du, je\u015bli p\u0142atno\u015b\u0107 nie powiod\u0142a si\u0119, w przeciwnym razie null"
                    },
                    "paid_with_id": {
                        "description": "Identyfikator u\u017cytej metody p\u0142atno\u015bci (identyfikator zapisanej karty lub mandatu SEPA), null je\u015bli nie dotyczy"
                    }
                },
                "description": "Payment attempt details"
            },
            "schema.payment_request": {
                "type": "object",
                "properties": {
                    "net_val": {
                        "type": "number",
                        "description": "Kwota netto p\u0142atno\u015bci (warto\u015b\u0107 rzeczywista, np. 50.00 dla 50.00 EUR). \u0141\u0105czna kwota wraz z op\u0142atami i VAT jest obliczana automatycznie."
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "sepa",
                            "stored_card"
                        ],
                        "description": "Typ p\u0142atno\u015bci: \"sepa\" = polecenie zap\u0142aty SEPA, \"stored_card\" = zapisana karta kredytowa/debetowa"
                    },
                    "method_id": {
                        "type": "integer",
                        "description": "Identyfikator metody p\u0142atno\u015bci z GET /payment_methods (identyfikator zapisanej karty lub mandatu SEPA)"
                    }
                },
                "required": [
                    "net_val",
                    "type",
                    "method_id"
                ],
                "description": "Payment creation request payload"
            },
            "schema.payment_methods": {
                "type": "object",
                "properties": {
                    "sepa_mandate": {
                        "description": "Mandat polecenia zap\u0142aty SEPA, je\u015bli u\u017cytkownik go posiada",
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "integer",
                                "description": "Identyfikator mandatu SEPA"
                            },
                            "iban_masked": {
                                "type": "string",
                                "description": "Zamaskowany IBAN"
                            },
                            "last4": {
                                "type": "string",
                                "description": "Ostatnie 4 cyfry IBAN"
                            },
                            "bank": {
                                "type": "string",
                                "description": "Nazwa banku"
                            },
                            "bic": {
                                "type": "string",
                                "description": "Kod BIC/SWIFT"
                            },
                            "account_holder": {
                                "type": "string",
                                "description": "Nazwa posiadacza rachunku"
                            },
                            "street": {
                                "type": "string",
                                "description": "Adres ulicy"
                            },
                            "postcode": {
                                "type": "integer",
                                "description": "Kod pocztowy"
                            },
                            "city": {
                                "type": "string",
                                "description": "Miasto"
                            },
                            "created_at": {
                                "type": "integer",
                                "description": "Data utworzenia (znacznik czasu unix)"
                            }
                        }
                    },
                    "stored_cards": {
                        "description": "Zapisane karty kredytowe/debetowe",
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "integer",
                                    "description": "Identyfikator karty"
                                },
                                "last4": {
                                    "type": "string",
                                    "description": "Ostatnie 4 cyfry karty"
                                },
                                "exp_month": {
                                    "type": "integer",
                                    "description": "Miesi\u0105c wa\u017cno\u015bci"
                                },
                                "exp_year": {
                                    "type": "integer",
                                    "description": "Rok wa\u017cno\u015bci"
                                },
                                "brand": {
                                    "type": "string",
                                    "description": "Marka karty (np. visa, mastercard)"
                                },
                                "country": {
                                    "type": "string",
                                    "description": "Kod kraju wydania"
                                },
                                "created_at": {
                                    "type": "integer",
                                    "description": "Data utworzenia (znacznik czasu unix)"
                                }
                            }
                        }
                    }
                },
                "description": "Available payment methods"
            },
            "property.fraud-check.status_code": {
                "type": "integer",
                "enum": [
                    0,
                    5,
                    10,
                    20,
                    21,
                    1000
                ],
                "description": "Kody statusu przetwarzania \u017c\u0105dania:\n- 0 - nowe \u017c\u0105danie, jeszcze nieprzetworzone\n- 5 - przetwarzanie \u017c\u0105dania w toku\n- 10 - przetwarzanie \u017c\u0105dania zako\u0144czone pomy\u015blnie\n- 20 - przetwarzanie \u017c\u0105dania zako\u0144czone b\u0142\u0119dem: niewystarczaj\u0105ca liczba kredyt\u00f3w\n- 21 - przetwarzanie \u017c\u0105dania zako\u0144czone b\u0142\u0119dem: nieprawid\u0142owe dane\n- 1000 - przetwarzanie \u017c\u0105dania zako\u0144czone b\u0142\u0119dem: nieoczekiwany b\u0142\u0105d"
            },
            "property.fraud-check.risk_score": {
                "type": "number",
                "minimum": 0,
                "maximum": 100,
                "description": "Ocena ryzyka oszustwa od 0 (dobrze) do 100 (\u017ale)"
            },
            "property.fraud-check.service_code": {
                "type": "string",
                "enum": [
                    "economy",
                    "pro",
                    "direct"
                ],
                "description": "Kod us\u0142ugi okre\u015bla typ wykonywanego zapytania o oszustwo. Economy zawiera tylko warto\u015b\u0107 ryzyka, natomiast Pro i Direct zawieraj\u0105 wi\u0119cej szczeg\u00f3\u0142\u00f3w dotycz\u0105cych wynik\u00f3w, dzi\u0119ki czemu mo\u017cesz podj\u0105\u0107 w\u0142asn\u0105 decyzj\u0119. Zapytania Direct s\u0105 r\u00f3wnie\u017c przetwarzane priorytetowo. (zobacz [/me](/info/user/))"
            },
            "property.common.updated_at": {
                "readOnly": true,
                "type": "integer",
                "minimum": 0,
                "description": "Znacznik czasu zmiany encji"
            },
            "property.fraud-check-phone.is_possible": {
                "type": "boolean",
                "description": "Czy numer telefonu jest mo\u017cliwy"
            },
            "property.fraud-check-phone.is_valid": {
                "type": "boolean",
                "description": "Czy numer telefonu jest prawid\u0142owy"
            },
            "property.common.country_code": {
                "type": "string",
                "pattern": "^[A-Z]{2}$",
                "minLength": 2,
                "maxLength": 2,
                "description": "Kod kraju",
                "examples": [
                    "US",
                    "CA",
                    "GB",
                    "DE",
                    "FR"
                ]
            },
            "property.fraud-check-phone.number_type": {
                "type": "string",
                "description": "Typ numeru telefonu"
            },
            "schema.fraud-check-phone.jsonld-fraud_request_read": {
                "type": "object",
                "description": "Fraud check request phone number",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.fraud-check.status_code"
                    },
                    "phone": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    },
                    "is_possible": {
                        "$ref": "#/components/schemas/property.fraud-check-phone.is_possible"
                    },
                    "is_valid": {
                        "$ref": "#/components/schemas/property.fraud-check-phone.is_valid"
                    },
                    "region": {
                        "$ref": "#/components/schemas/property.common.country_code"
                    },
                    "number_type": {
                        "$ref": "#/components/schemas/property.fraud-check-phone.number_type"
                    }
                },
                "required": [
                    "phone"
                ]
            },
            "property.fraud-check-email.email": {
                "format": "email",
                "minLength": 6,
                "maxLength": 500,
                "externalDocs": {
                    "url": "https://schema.org/email"
                },
                "type": "string",
                "description": "Adres e-mail przes\u0142any do sprawdzenia"
            },
            "property.fraud-check-email.is_possible": {
                "type": "boolean",
                "description": "Czy ten adres e-mail jest mo\u017cliwy"
            },
            "property.fraud-check-email.is_anonymous": {
                "type": "boolean",
                "description": "Czy us\u0142uga s\u0142u\u017cy do anonimizacji nadawcy wiadomo\u015bci e-mail"
            },
            "schema.fraud-check-email.jsonld-fraud_request_read": {
                "type": "object",
                "description": "Fraud check request email",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.fraud-check.status_code"
                    },
                    "email": {
                        "$ref": "#/components/schemas/property.fraud-check-email.email"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    },
                    "is_possible": {
                        "$ref": "#/components/schemas/property.fraud-check-email.is_possible"
                    },
                    "is_anonymous": {
                        "$ref": "#/components/schemas/property.fraud-check-email.is_anonymous"
                    }
                },
                "required": [
                    "email"
                ]
            },
            "property.fraud-check.ip": {
                "type": "string",
                "minLength": 7,
                "maxLength": 39,
                "description": "Adres IP (IP v4/v6)"
            },
            "property.fraud-check-ip.state": {
                "type": "string",
                "description": "Region lub prowincja adresu IP"
            },
            "property.fraud-check-ip.city": {
                "type": "string",
                "description": "Nazwa miasta adresu IP"
            },
            "property.fraud-check-ip.postcode": {
                "type": "string",
                "description": "Kod pocztowy adresu IP"
            },
            "property.fraud-check-ip.geolocation": {
                "type": "array",
                "items": {
                    "type": "number"
                },
                "description": "Szeroko\u015b\u0107 i d\u0142ugo\u015b\u0107 geograficzna adresu IP (tablica)"
            },
            "property.fraud-check-ip.isp_name": {
                "type": "string",
                "description": "Nazwa dostawcy us\u0142ug internetowych (ISP)"
            },
            "property.fraud-check-ip.isp_risk_score": {
                "type": "number",
                "minimum": 0,
                "maximum": 100,
                "description": "Ocena ryzyka dla ISP"
            },
            "property.fraud-check-ip.proxy_type": {
                "type": "string",
                "enum": [
                    "VPN",
                    "TOR",
                    "DCH",
                    "PUB",
                    "WEB",
                    "SES"
                ],
                "description": "Je\u015bli host jest proxy:\n- VPN - Anonimizuj\u0105ce us\u0142ugi VPN. Us\u0142ugi te oferuj\u0105 u\u017cytkownikom publicznie dost\u0119pny VPN w celu ukrycia ich adresu IP.\n- TOR - W\u0119z\u0142y wyj\u015bciowe Tor. Tor Project to otwarta sie\u0107 u\u017cywana przez osoby chc\u0105ce zachowa\u0107 anonimowo\u015b\u0107.\n- DCH - Dostawca hostingu, centrum danych lub sie\u0107 dostarczania tre\u015bci. Poniewa\u017c dostawcy hostingu i centra danych mog\u0105 s\u0142u\u017cy\u0107 do zapewniania anonimowo\u015bci, baza Anonymous IP oznacza powi\u0105zane z nimi adresy IP.\n- PUB - Publiczne proxy. S\u0105 to us\u0142ugi, kt\u00f3re wykonuj\u0105 \u017c\u0105dania po\u0142\u0105czenia w imieniu u\u017cytkownika. Oprogramowanie serwera proxy mo\u017ce zosta\u0107 skonfigurowane przez administratora do nas\u0142uchiwania na okre\u015blonym porcie. R\u00f3\u017cni\u0105 si\u0119 od VPN tym, \u017ce proxy zwykle maj\u0105 ograniczone funkcje w por\u00f3wnaniu z VPN.\n- WEB - Proxy internetowe. S\u0105 to us\u0142ugi internetowe, kt\u00f3re wykonuj\u0105 \u017c\u0105dania internetowe w imieniu u\u017cytkownika. R\u00f3\u017cni\u0105 si\u0119 od VPN lub publicznych proxy tym, \u017ce s\u0105 prostymi proxy opartymi na sieci web, a nie dzia\u0142aj\u0105 na poziomie adresu IP i innych port\u00f3w.\n- SES - Roboty wyszukiwarek. S\u0105 to us\u0142ugi, kt\u00f3re wykonuj\u0105 indeksowanie lub pobieranie zawarto\u015bci witryny, takie jak robot wyszukiwarki lub silnik bot\u00f3w."
            },
            "property.fraud-check-ip.connection_type": {
                "type": [
                    "string",
                    "null"
                ],
                "enum": [
                    "dialup",
                    "isdn",
                    "cable",
                    "dsl",
                    "fttx",
                    "wireless",
                    null
                ],
                "description": "Warto\u015bci\u0105 mo\u017ce by\u0107 jedna z: \"dialup\", \"isdn\", \"cable\", \"dsl\", \"fttx\", \"wireless\" lub null"
            },
            "property.fraud-check-ip.is_ok": {
                "type": "boolean",
                "description": "Czy \u017c\u0105danie zosta\u0142o obs\u0142u\u017cone poprawnie?"
            },
            "schema.fraud-check-ip.jsonld-fraud_request_read": {
                "type": "object",
                "description": "Fraud check request IP address",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.fraud-check.status_code"
                    },
                    "ip": {
                        "$ref": "#/components/schemas/property.fraud-check.ip"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    },
                    "iso2": {
                        "$ref": "#/components/schemas/property.common.country_code"
                    },
                    "state": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.state"
                    },
                    "city": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.city"
                    },
                    "postcode": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.postcode"
                    },
                    "geolocation": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.geolocation"
                    },
                    "isp_name": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.isp_name"
                    },
                    "isp_risk_score": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.isp_risk_score"
                    },
                    "proxy_type": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.proxy_type"
                    },
                    "connection_type": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.connection_type"
                    },
                    "is_ok": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.is_ok"
                    }
                },
                "required": [
                    "ip"
                ]
            },
            "property.common.price": {
                "type": "number",
                "minimum": 0,
                "description": "Cena"
            },
            "schema.fraud-check.jsonld-fraud_request_read": {
                "type": "object",
                "description": "Fraud check request",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "id": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.fraud-check.status_code"
                    },
                    "risk_score": {
                        "$ref": "#/components/schemas/property.fraud-check.risk_score"
                    },
                    "service_code": {
                        "$ref": "#/components/schemas/property.fraud-check.service_code"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    },
                    "callback_data": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/property.common.callback_data"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "request_phone": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/schema.fraud-check-phone.jsonld-fraud_request_read"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "request_email": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/schema.fraud-check-email.jsonld-fraud_request_read"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "request_ip": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/schema.fraud-check-ip.jsonld-fraud_request_read"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "price": {
                        "$ref": "#/components/schemas/property.common.price"
                    }
                },
                "required": [
                    "service_code"
                ]
            },
            "schema.fraud-check-phone-fraud_request_read": {
                "type": "object",
                "description": "Fraud check request phone number",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "status_code": {
                        "$ref": "#/components/schemas/property.fraud-check.status_code"
                    },
                    "phone": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    },
                    "is_possible": {
                        "$ref": "#/components/schemas/property.fraud-check-phone.is_possible"
                    },
                    "is_valid": {
                        "$ref": "#/components/schemas/property.fraud-check-phone.is_valid"
                    },
                    "region": {
                        "$ref": "#/components/schemas/property.common.country_code"
                    },
                    "number_type": {
                        "$ref": "#/components/schemas/property.fraud-check-phone.number_type"
                    }
                },
                "required": [
                    "phone"
                ]
            },
            "schema.fraud-check-email-fraud_request_read": {
                "type": "object",
                "description": "Fraud check request email",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "status_code": {
                        "$ref": "#/components/schemas/property.fraud-check.status_code"
                    },
                    "email": {
                        "$ref": "#/components/schemas/property.fraud-check-email.email"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    },
                    "is_possible": {
                        "$ref": "#/components/schemas/property.fraud-check-email.is_possible"
                    },
                    "is_anonymous": {
                        "$ref": "#/components/schemas/property.fraud-check-email.is_anonymous"
                    }
                },
                "required": [
                    "email"
                ]
            },
            "schema.fraud-check-ip-fraud_request_read": {
                "type": "object",
                "description": "Fraud check request IP address",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "status_code": {
                        "$ref": "#/components/schemas/property.fraud-check.status_code"
                    },
                    "ip": {
                        "$ref": "#/components/schemas/property.fraud-check.ip"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    },
                    "iso2": {
                        "$ref": "#/components/schemas/property.common.country_code"
                    },
                    "state": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.state"
                    },
                    "city": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.city"
                    },
                    "postcode": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.postcode"
                    },
                    "geolocation": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.geolocation"
                    },
                    "isp_name": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.isp_name"
                    },
                    "isp_risk_score": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.isp_risk_score"
                    },
                    "proxy_type": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.proxy_type"
                    },
                    "connection_type": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.connection_type"
                    },
                    "is_ok": {
                        "$ref": "#/components/schemas/property.fraud-check-ip.is_ok"
                    }
                },
                "required": [
                    "ip"
                ]
            },
            "schema.fraud-check-fraud_request_read": {
                "type": "object",
                "description": "Fraud check request",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.fraud-check.status_code"
                    },
                    "risk_score": {
                        "$ref": "#/components/schemas/property.fraud-check.risk_score"
                    },
                    "service_code": {
                        "$ref": "#/components/schemas/property.fraud-check.service_code"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    },
                    "callback_data": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/property.common.callback_data"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "request_phone": {
                        "description": "ORM\\Column(name=\"email\", type=\"text\", length=50, nullable=false)",
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/schema.fraud-check-phone-fraud_request_read"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "request_email": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/schema.fraud-check-email-fraud_request_read"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "request_ip": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/schema.fraud-check-ip-fraud_request_read"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "price": {
                        "$ref": "#/components/schemas/property.common.price"
                    }
                },
                "required": [
                    "service_code"
                ]
            },
            "property.fraud-check.email": {
                "type": "string",
                "minLength": 6,
                "maxLength": 500,
                "description": "Adres e-mail"
            },
            "schema.fraud-check-fraud_request_write": {
                "type": "object",
                "description": "Fraud check request",
                "deprecated": false,
                "required": [
                    "service_code"
                ],
                "properties": {
                    "service_code": {
                        "$ref": "#/components/schemas/property.fraud-check.service_code"
                    },
                    "callback_data": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/property.common.callback_data"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "phone": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/property.common.phone_number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "email": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/property.fraud-check.email"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "ip": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/property.fraud-check.ip"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                }
            },
            "property.group.id": {
                "type": "integer",
                "minimum": 1,
                "description": "ID grupy"
            },
            "property.group.name": {
                "minLength": 1,
                "maxLength": 50,
                "type": "string",
                "description": "Nazwa grupy"
            },
            "property.group.description": {
                "maxLength": 255,
                "type": [
                    "string",
                    "null"
                ],
                "description": "Opis grupy"
            },
            "property.group.column_name": {
                "maxLength": 50,
                "type": [
                    "string",
                    "null"
                ],
                "description": "Nazwa kolumny"
            },
            "property.group.count_items": {
                "type": "integer",
                "minimum": 0,
                "description": "Liczba element\u00f3w w grupie",
                "readOnly": true
            },
            "property.group.deleted_at": {
                "type": [
                    "string",
                    "null"
                ],
                "format": "date-time",
                "description": "Data i godzina usuni\u0119cia grupy"
            },
            "schema.groups.jsonld-group_read": {
                "type": "object",
                "description": "Phone's group",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "id": {
                        "$ref": "#/components/schemas/property.group.id"
                    },
                    "name": {
                        "$ref": "#/components/schemas/property.group.name"
                    },
                    "description": {
                        "$ref": "#/components/schemas/property.group.description"
                    },
                    "name_a": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_b": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_c": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_d": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_e": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "count_items": {
                        "$ref": "#/components/schemas/property.group.count_items"
                    },
                    "deleted_at": {
                        "$ref": "#/components/schemas/property.group.deleted_at"
                    }
                },
                "required": [
                    "name"
                ]
            },
            "schema.groups-group_read": {
                "type": "object",
                "description": "Phone's group",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/property.group.id"
                    },
                    "name": {
                        "$ref": "#/components/schemas/property.group.name"
                    },
                    "description": {
                        "$ref": "#/components/schemas/property.group.description"
                    },
                    "name_a": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_b": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_c": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_d": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_e": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "count_items": {
                        "$ref": "#/components/schemas/property.group.count_items"
                    },
                    "deleted_at": {
                        "$ref": "#/components/schemas/property.group.deleted_at"
                    }
                },
                "required": [
                    "name"
                ]
            },
            "property.phone.phone": {
                "maxLength": 30,
                "type": "string",
                "description": "Numer telefonu"
            },
            "property.phone.column": {
                "maxLength": 1530,
                "type": [
                    "string",
                    "null"
                ],
                "description": "Dane kolumny numeru telefonu"
            },
            "schema.phones-write": {
                "type": "object",
                "description": "Phones list by group",
                "deprecated": false,
                "required": [
                    "phone"
                ],
                "properties": {
                    "phone": {
                        "$ref": "#/components/schemas/property.phone.phone"
                    },
                    "a": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "b": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "c": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "d": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "e": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "callback_data": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    }
                }
            },
            "schema.groups-write": {
                "type": "object",
                "description": "Phone's group",
                "deprecated": false,
                "required": [
                    "name"
                ],
                "properties": {
                    "name": {
                        "$ref": "#/components/schemas/property.group.name"
                    },
                    "description": {
                        "$ref": "#/components/schemas/property.group.description"
                    },
                    "name_a": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_b": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_c": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_d": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "name_e": {
                        "$ref": "#/components/schemas/property.group.column_name"
                    },
                    "phones": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/schema.phones-write"
                        }
                    }
                }
            },
            "property.phone.id": {
                "type": "integer",
                "minimum": 1,
                "description": "ID numeru telefonu"
            },
            "property.phone.subscribed_at": {
                "type": [
                    "integer",
                    "null"
                ],
                "description": "Znacznik czasu zapisu u\u017cytkownika przez [link](/api/operations/post_subscribe/)"
            },
            "property.phone.unsubscribed_at": {
                "type": [
                    "integer",
                    "null"
                ],
                "description": "Znacznik czasu wypisania u\u017cytkownika przez [link](/api/operations/post_unsubscribe/)"
            },
            "property.phone.unsubscribe_reason": {
                "type": [
                    "integer",
                    "null"
                ],
                "description": "Powody wypisania:\n- 1 - Nigdy si\u0119 nie zapisa\u0142em\n- 2 - Zbyt wiele wiadomo\u015bci\n- 3 - Nie jestem zainteresowany\n- 4 - Tre\u015b\u0107 jest niezrozumia\u0142a\n- 5 - Nie lubi\u0119 Twojej firmy\n- 6 - Inny pow\u00f3d"
            },
            "schema.phones.jsonld-phone_read": {
                "type": "object",
                "description": "Phones list by group",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "id": {
                        "$ref": "#/components/schemas/property.phone.id"
                    },
                    "phone": {
                        "$ref": "#/components/schemas/property.phone.phone"
                    },
                    "a": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "b": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "c": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "d": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "e": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "callback_data": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    },
                    "subscribed_at": {
                        "$ref": "#/components/schemas/property.phone.subscribed_at"
                    },
                    "unsubscribed_at": {
                        "$ref": "#/components/schemas/property.phone.unsubscribed_at"
                    },
                    "unsubscribe_reason": {
                        "$ref": "#/components/schemas/property.phone.unsubscribe_reason"
                    }
                },
                "required": [
                    "phone"
                ]
            },
            "schema.phones-phone_read": {
                "type": "object",
                "description": "Phones list by group",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/property.phone.id"
                    },
                    "phone": {
                        "$ref": "#/components/schemas/property.phone.phone"
                    },
                    "a": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "b": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "c": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "d": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "e": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "callback_data": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    },
                    "subscribed_at": {
                        "$ref": "#/components/schemas/property.phone.subscribed_at"
                    },
                    "unsubscribed_at": {
                        "$ref": "#/components/schemas/property.phone.unsubscribed_at"
                    },
                    "unsubscribe_reason": {
                        "$ref": "#/components/schemas/property.phone.unsubscribe_reason"
                    }
                },
                "required": [
                    "phone"
                ]
            },
            "schema.phones-phone_write": {
                "type": "object",
                "description": "Phones list by group",
                "deprecated": false,
                "required": [
                    "phone"
                ],
                "properties": {
                    "phone": {
                        "$ref": "#/components/schemas/property.phone.phone"
                    },
                    "a": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "b": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "c": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "d": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "e": {
                        "$ref": "#/components/schemas/property.phone.column"
                    },
                    "callback_data": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    }
                }
            },
            "schema.phones-batch-write": {
                "type": "array",
                "items": {
                    "$ref": "#/components/schemas/schema.phones-phone_write"
                },
                "description": "Batch phone creation request payload"
            },
            "property.batch.status": {
                "readOnly": true,
                "type": "integer",
                "description": "Kod statusu HTTP odpowiedzi"
            },
            "schema.response.jsonld-bad-request": {
                "type": "object",
                "readOnly": true,
                "properties": {
                    "@context": {
                        "type": "string",
                        "readOnly": true
                    },
                    "@type": {
                        "type": "string",
                        "readOnly": true
                    },
                    "hydra:title": {
                        "type": "string",
                        "readOnly": true
                    },
                    "hydra:description": {
                        "type": "string",
                        "readOnly": true
                    }
                },
                "description": "Bad request error response (JSON-LD)"
            },
            "schema.phones.jsonld-batch-item": {
                "type": "object",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/property.batch.status"
                    },
                    "body": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/schema.phones.jsonld-phone_read"
                            },
                            {
                                "$ref": "#/components/schemas/schema.response.jsonld-bad-request"
                            }
                        ]
                    }
                },
                "description": "Batch operation result item (JSON-LD)"
            },
            "schema.phones.jsonld-batch-read": {
                "type": "object",
                "readOnly": true,
                "properties": {
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "hydra:totalItems": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "member": {
                        "$ref": "#/components/schemas/schema.phones.jsonld-batch-item"
                    }
                },
                "description": "Batch operation results (JSON-LD)"
            },
            "schema.response-bad-request": {
                "type": "object",
                "readOnly": true,
                "properties": {
                    "type": {
                        "type": "string",
                        "readOnly": true
                    },
                    "title": {
                        "type": "string",
                        "readOnly": true
                    },
                    "detail": {
                        "type": "string",
                        "readOnly": true
                    }
                },
                "description": "Bad request error response"
            },
            "schema.phones-batch-item": {
                "type": "object",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/property.batch.status"
                    },
                    "body": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/schema.phones-phone_read"
                            },
                            {
                                "$ref": "#/components/schemas/schema.response-bad-request"
                            }
                        ]
                    }
                },
                "description": "Batch operation result item"
            },
            "schema.phones-batch-read": {
                "type": "array",
                "readOnly": true,
                "items": {
                    "$ref": "#/components/schemas/schema.phones-batch-item"
                },
                "description": "Batch operation results"
            },
            "property.incomings.received_at": {
                "type": "integer",
                "description": "Znacznik czasu otrzymania SMS-a przez us\u0142ug\u0119"
            },
            "property.incomings.text": {
                "type": [
                    "string",
                    "null"
                ],
                "description": "Tre\u015b\u0107 SMS-a"
            },
            "property.incomings.msg_uuid": {
                "type": [
                    "string",
                    "null"
                ],
                "description": "ID SMS-a, na kt\u00f3ry nast\u0105pi\u0142a odpowied\u017a"
            },
            "schema.incomings.jsonld-incoming_read": {
                "type": "object",
                "description": "Incoming SMS",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "uuid": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "to": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "from": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "received_at": {
                        "$ref": "#/components/schemas/property.incomings.received_at"
                    },
                    "text": {
                        "$ref": "#/components/schemas/property.incomings.text"
                    },
                    "msg_uuid": {
                        "$ref": "#/components/schemas/property.incomings.msg_uuid"
                    }
                }
            },
            "schema.incomings-incoming_read": {
                "type": "object",
                "description": "Incoming SMS",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "uuid": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "to": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "from": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "received_at": {
                        "$ref": "#/components/schemas/property.incomings.received_at"
                    },
                    "text": {
                        "$ref": "#/components/schemas/property.incomings.text"
                    },
                    "msg_uuid": {
                        "$ref": "#/components/schemas/property.incomings.msg_uuid"
                    }
                }
            },
            "property.short_link_requests.type": {
                "type": "integer",
                "enum": [
                    0,
                    1
                ],
                "description": "Typ \u017c\u0105dania kr\u00f3tkiego linku"
            },
            "property.short_link_campaigns.type": {
                "enum": [
                    1,
                    2
                ],
                "type": "integer",
                "description": "Typ kampanii kr\u00f3tkich link\u00f3w"
            },
            "property.short_link_campaigns.id": {
                "type": [
                    "string",
                    "null"
                ],
                "description": "Unikalny identyfikator kampanii kr\u00f3tkich link\u00f3w"
            },
            "property.short_link_campaigns.name": {
                "maxLength": 100,
                "minLength": 1,
                "type": "string",
                "description": "Nazwa kampanii kr\u00f3tkich link\u00f3w"
            },
            "property.short_link_campaigns.url": {
                "minLength": 1,
                "type": "string",
                "description": "URL kampanii kr\u00f3tkich link\u00f3w"
            },
            "property.short_link_campaigns.group_id": {
                "type": [
                    "integer",
                    "null"
                ],
                "minimum": 1,
                "description": "ID grupy kampanii kr\u00f3tkich link\u00f3w"
            },
            "schema.short_link_campaigns.jsonld-short_link_campaign_read": {
                "type": "object",
                "description": "Short link campaigns",
                "readOnly": true,
                "deprecated": false,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "type": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.type"
                    },
                    "id": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.id"
                    },
                    "name": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.name"
                    },
                    "url": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.url"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "group_id": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.group_id"
                    }
                }
            },
            "schema.short_link_campaigns-short_link_campaign_read": {
                "type": "object",
                "description": "Short link campaigns",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "type": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.type"
                    },
                    "id": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.id"
                    },
                    "name": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.name"
                    },
                    "url": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.url"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "group_id": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.group_id"
                    }
                }
            },
            "schema.short_link_campaigns-short_link_campaign_write": {
                "type": "object",
                "description": "Short link campaigns",
                "deprecated": false,
                "required": [
                    "type",
                    "name",
                    "url"
                ],
                "properties": {
                    "type": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.type"
                    },
                    "name": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.name"
                    },
                    "url": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.url"
                    },
                    "group_id": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.group_id"
                    }
                }
            },
            "schema.short_link_campaigns-short_link_campaign_subscribe_write": {
                "type": "object",
                "description": "Short link campaigns",
                "deprecated": false,
                "required": [
                    "name",
                    "group_id"
                ],
                "properties": {
                    "name": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.name"
                    },
                    "group_id": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.group_id"
                    }
                }
            },
            "schema.short_link_campaigns.jsonld-short_link_campaign_subscribe_read": {
                "type": "object",
                "description": "Short link campaigns",
                "readOnly": true,
                "deprecated": false,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "type": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.type"
                    },
                    "id": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.id"
                    },
                    "name": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.name"
                    },
                    "url": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.url"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "group_id": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.group_id"
                    }
                }
            },
            "schema.short_link_campaigns-short_link_campaign_subscribe_read": {
                "type": "object",
                "description": "Short link campaigns",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "type": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.type"
                    },
                    "id": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.id"
                    },
                    "name": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.name"
                    },
                    "url": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.url"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "group_id": {
                        "$ref": "#/components/schemas/property.short_link_campaigns.group_id"
                    }
                }
            },
            "property.short_link_requests.date": {
                "type": "integer",
                "minimum": 0,
                "description": "Data \u017c\u0105dania kr\u00f3tkiego linku"
            },
            "property.short_link_requests.id": {
                "type": "integer",
                "minimum": 0,
                "description": "Unikalny identyfikator \u017c\u0105dania kr\u00f3tkiego linku"
            },
            "property.short_link_requests.ip": {
                "type": [
                    "string",
                    "null"
                ],
                "format": "ipv4",
                "example": "192.168.1.1",
                "maxLength": 15,
                "description": "Adres IP \u017c\u0105dania kr\u00f3tkiego linku"
            },
            "property.short_link_requests.user_agent": {
                "type": [
                    "string",
                    "null"
                ],
                "description": "User agent \u017c\u0105dania kr\u00f3tkiego linku"
            },
            "property.short_link_requests.url": {
                "type": "string",
                "description": "URL \u017c\u0105dania kr\u00f3tkiego linku"
            },
            "property.short_link_requests.referer": {
                "type": [
                    "string",
                    "null"
                ],
                "description": "Referer \u017c\u0105dania kr\u00f3tkiego linku"
            },
            "property.short_link_requests.short_link": {
                "type": [
                    "string",
                    "null"
                ],
                "format": "iri-reference",
                "example": "https://example.com/",
                "description": "Kr\u00f3tki link powi\u0105zany z \u017c\u0105daniem"
            },
            "property.short_link_requests.browser": {
                "type": [
                    "string",
                    "null"
                ],
                "description": "Przegl\u0105darka u\u017cyta w \u017c\u0105daniu kr\u00f3tkiego linku"
            },
            "property.short_link_requests.browser_version": {
                "type": [
                    "string",
                    "null"
                ],
                "maxLength": 255,
                "description": "Wersja przegl\u0105darki u\u017cyta w \u017c\u0105daniu kr\u00f3tkiego linku"
            },
            "property.short_link_requests.os": {
                "type": [
                    "string",
                    "null"
                ],
                "maxLength": 255,
                "description": "System operacyjny u\u017cyty w \u017c\u0105daniu kr\u00f3tkiego linku"
            },
            "property.short_link_requests.os_version": {
                "type": [
                    "string",
                    "null"
                ],
                "maxLength": 255,
                "description": "Wersja systemu operacyjnego u\u017cyta w \u017c\u0105daniu kr\u00f3tkiego linku"
            },
            "property.short_link_requests.software_type": {
                "type": [
                    "string",
                    "null"
                ],
                "maxLength": 255,
                "description": "Typ oprogramowania u\u017cyty w \u017c\u0105daniu kr\u00f3tkiego linku"
            },
            "property.short_link_requests.hardware_type": {
                "type": [
                    "string",
                    "null"
                ],
                "maxLength": 255,
                "description": "Typ sprz\u0119tu u\u017cyty w \u017c\u0105daniu kr\u00f3tkiego linku"
            },
            "schema.short_link_requests.jsonld-short_link_request_read": {
                "type": "object",
                "description": "Short link campaigns",
                "readOnly": true,
                "deprecated": false,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "id": {
                        "$ref": "#/components/schemas/property.short_link_requests.id"
                    },
                    "ip": {
                        "$ref": "#/components/schemas/property.short_link_requests.ip"
                    },
                    "user_agent": {
                        "$ref": "#/components/schemas/property.short_link_requests.user_agent"
                    },
                    "url": {
                        "$ref": "#/components/schemas/property.short_link_requests.url"
                    },
                    "date": {
                        "$ref": "#/components/schemas/property.short_link_requests.date"
                    },
                    "country": {
                        "$ref": "#/components/schemas/property.common.country_code"
                    },
                    "referer": {
                        "$ref": "#/components/schemas/property.short_link_requests.referer"
                    },
                    "short_link": {
                        "$ref": "#/components/schemas/property.short_link_requests.short_link"
                    },
                    "type": {
                        "$ref": "#/components/schemas/property.short_link_requests.type"
                    },
                    "browser": {
                        "$ref": "#/components/schemas/property.short_link_requests.browser"
                    },
                    "browser_version": {
                        "$ref": "#/components/schemas/property.short_link_requests.browser_version"
                    },
                    "os": {
                        "$ref": "#/components/schemas/property.short_link_requests.os"
                    },
                    "os_version": {
                        "$ref": "#/components/schemas/property.short_link_requests.os_version"
                    },
                    "software_type": {
                        "$ref": "#/components/schemas/property.short_link_requests.software_type"
                    },
                    "hardware_type": {
                        "$ref": "#/components/schemas/property.short_link_requests.hardware_type"
                    }
                }
            },
            "schema.short_link_requests-short_link_request_read": {
                "type": "object",
                "description": "Short link campaigns",
                "readOnly": true,
                "deprecated": false,
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/property.short_link_requests.id"
                    },
                    "ip": {
                        "$ref": "#/components/schemas/property.short_link_requests.ip"
                    },
                    "user_agent": {
                        "$ref": "#/components/schemas/property.short_link_requests.user_agent"
                    },
                    "url": {
                        "$ref": "#/components/schemas/property.short_link_requests.url"
                    },
                    "date": {
                        "$ref": "#/components/schemas/property.short_link_requests.date"
                    },
                    "country": {
                        "$ref": "#/components/schemas/property.common.country_code"
                    },
                    "referer": {
                        "$ref": "#/components/schemas/property.short_link_requests.referer"
                    },
                    "short_link": {
                        "$ref": "#/components/schemas/property.short_link_requests.short_link"
                    },
                    "type": {
                        "$ref": "#/components/schemas/property.short_link_requests.type"
                    },
                    "browser": {
                        "$ref": "#/components/schemas/property.short_link_requests.browser"
                    },
                    "browser_version": {
                        "$ref": "#/components/schemas/property.short_link_requests.browser_version"
                    },
                    "os": {
                        "$ref": "#/components/schemas/property.short_link_requests.os"
                    },
                    "os_version": {
                        "$ref": "#/components/schemas/property.short_link_requests.os_version"
                    },
                    "software_type": {
                        "$ref": "#/components/schemas/property.short_link_requests.software_type"
                    },
                    "hardware_type": {
                        "$ref": "#/components/schemas/property.short_link_requests.hardware_type"
                    }
                }
            },
            "property.short_links.short_code": {
                "type": [
                    "string",
                    "null"
                ],
                "description": "Kr\u00f3tki kod linku"
            },
            "property.short_links.url": {
                "type": [
                    "string",
                    "null"
                ],
                "description": "URL kr\u00f3tkiego linku"
            },
            "property.short_links.campaign": {
                "type": [
                    "string",
                    "null"
                ],
                "format": "iri-reference",
                "example": "https://example.com/",
                "description": "Kampania powi\u0105zana z kr\u00f3tkim linkiem"
            },
            "property.short_links.requests": {
                "type": "string",
                "description": "\u017b\u0105dania powi\u0105zane z kr\u00f3tkim linkiem"
            },
            "schema.short_links.jsonld-short_link_read": {
                "type": "object",
                "description": "Short links",
                "readOnly": true,
                "deprecated": false,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "short_code": {
                        "$ref": "#/components/schemas/property.short_links.short_code"
                    },
                    "url": {
                        "$ref": "#/components/schemas/property.short_links.url"
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    },
                    "campaign": {
                        "$ref": "#/components/schemas/property.short_links.campaign"
                    },
                    "requests": {
                        "$ref": "#/components/schemas/property.short_links.requests"
                    }
                }
            },
            "schema.short_links-short_link_read": {
                "type": "object",
                "description": "Short links",
                "readOnly": true,
                "deprecated": false,
                "properties": {
                    "short_code": {
                        "$ref": "#/components/schemas/property.short_links.short_code"
                    },
                    "url": {
                        "$ref": "#/components/schemas/property.short_links.url"
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/property.common.updated_at"
                    },
                    "campaign": {
                        "$ref": "#/components/schemas/property.short_links.campaign"
                    },
                    "requests": {
                        "$ref": "#/components/schemas/property.short_links.requests"
                    }
                }
            },
            "property.sms.dlr_code": {
                "type": "integer",
                "description": "[Status dostarczenia SMS-a](/info/sms-delivery-report-codes-dlr/) z bramki",
                "enum": [
                    0,
                    1,
                    2,
                    4,
                    8,
                    16
                ],
                "example": 1,
                "x-enum-descriptions": {
                    "0": "NONE: No delivery report available",
                    "1": "DELIVERY_OK: Message successfully delivered",
                    "2": "DELIVERY_QUEUE: Message scheduled for later delivery",
                    "4": "DELIVERY_SUBMIT_ACK: Message is enroute",
                    "8": "DELIVERY_EXPIRED: Message expired (e.g., phone turned off)",
                    "16": "DELIVERY_REJECTED: Message rejected (blocked number or invalid)"
                }
            },
            "property.sms.status_code": {
                "type": "integer",
                "minimum": 0,
                "enum": [
                    0,
                    100,
                    208,
                    400,
                    410,
                    2000,
                    3000,
                    5000,
                    6000
                ],
                "description": "Status SMS-a. Wi\u0119cej informacji: [kody statusu SMS](/info/sms-status-codes/)"
            },
            "property.sms.gateway_sent_at": {
                "type": "integer",
                "description": "Znacznik czasu wys\u0142ania wiadomo\u015bci do operatora sieci kom\u00f3rkowej"
            },
            "property.sms.parts_count": {
                "type": "integer",
                "minimum": 1,
                "description": "Liczba cz\u0119\u015bci SMS-a (wiadomo\u015bci \u0142\u0105czonych)"
            },
            "property.sms.chars_count": {
                "type": [
                    "integer",
                    "null"
                ],
                "description": "Liczba znak\u00f3w w tre\u015bci wiadomo\u015bci"
            },
            "property.sms.bulk_id": {
                "type": [
                    "null",
                    "string"
                ],
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "description": "ID wysy\u0142ki masowej"
            },
            "property.sms.is_sent": {
                "type": "boolean",
                "description": "True - SMS zosta\u0142 wys\u0142any, False - SMS nie zosta\u0142 jeszcze wys\u0142any"
            },
            "property.sms.requests": {
                "type": [
                    "string",
                    "null"
                ],
                "description": "[Link](/api/operations/get_sms_requests/) do wszystkich \u017c\u0105da\u0144 wed\u0142ug listy SMS"
            },
            "property.sms.clicks": {
                "type": [
                    "string",
                    "null"
                ],
                "description": "[Link](/api/operations/api_sms_clicks_per_message_get_collection/) do liczby \u017c\u0105da\u0144 wed\u0142ug kr\u00f3tkiego linku"
            },
            "property.sms.attempts_count_max": {
                "type": [
                    "integer",
                    "null"
                ],
                "description": "Maksymalna liczba pr\u00f3b dostarczenia dla us\u0142ug g\u0142osowych (`text2speech`, `text2speech_ssml`). Dozwolone warto\u015bci: `null`, `1`, `2` lub `3` dla us\u0142ug `text2speech`/`text2speech_ssml`; dla pozosta\u0142ych us\u0142ug musi by\u0107 r\u00f3wna null.",
                "example": null,
                "enum": [
                    null,
                    1,
                    2,
                    3
                ]
            },
            "schema.sms.jsonld-sms_read": {
                "type": "object",
                "description": "SMS",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "text": {
                        "$ref": "#/components/schemas/property.sms.text"
                    },
                    "sender_id": {
                        "$ref": "#/components/schemas/property.messages.sender_id"
                    },
                    "phone": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "delivery_at": {
                        "$ref": "#/components/schemas/property.messages.delivery_at"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.sms.status_code"
                    },
                    "gateway_sent_at": {
                        "$ref": "#/components/schemas/property.sms.gateway_sent_at"
                    },
                    "source": {
                        "$ref": "#/components/schemas/property.messages.source"
                    },
                    "dlr_code": {
                        "$ref": "#/components/schemas/property.sms.dlr_code"
                    },
                    "ip": {
                        "$ref": "#/components/schemas/property.common.ip_read"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "is_unicode": {
                        "$ref": "#/components/schemas/property.messages.is_unicode"
                    },
                    "uuid": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "iso2": {
                        "$ref": "#/components/schemas/property.common.country_code"
                    },
                    "voice_lang": {
                        "$ref": "#/components/schemas/property.messages.voice_lang"
                    },
                    "parts_count": {
                        "$ref": "#/components/schemas/property.sms.parts_count"
                    },
                    "chars_count": {
                        "$ref": "#/components/schemas/property.sms.chars_count"
                    },
                    "callback_data": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    },
                    "bulk_id": {
                        "$ref": "#/components/schemas/property.sms.bulk_id"
                    },
                    "key_id": {
                        "$ref": "#/components/schemas/property.common.key_id"
                    },
                    "service_code": {
                        "$ref": "#/components/schemas/property.messages.service_code"
                    },
                    "is_text_deleted": {
                        "$ref": "#/components/schemas/property.messages.is_text_deleted"
                    },
                    "price": {
                        "$ref": "#/components/schemas/property.common.price"
                    },
                    "is_sent": {
                        "$ref": "#/components/schemas/property.sms.is_sent"
                    },
                    "requests": {
                        "$ref": "#/components/schemas/property.sms.requests"
                    },
                    "clicks": {
                        "$ref": "#/components/schemas/property.sms.clicks"
                    },
                    "attempts_count_max": {
                        "$ref": "#/components/schemas/property.sms.attempts_count_max"
                    }
                }
            },
            "schema.sms-sms_read": {
                "type": "object",
                "description": "SMS",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "text": {
                        "$ref": "#/components/schemas/property.sms.text"
                    },
                    "sender_id": {
                        "$ref": "#/components/schemas/property.messages.sender_id"
                    },
                    "phone": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "delivery_at": {
                        "$ref": "#/components/schemas/property.messages.delivery_at"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.sms.status_code"
                    },
                    "gateway_sent_at": {
                        "$ref": "#/components/schemas/property.sms.gateway_sent_at"
                    },
                    "source": {
                        "$ref": "#/components/schemas/property.messages.source"
                    },
                    "dlr_code": {
                        "$ref": "#/components/schemas/property.sms.dlr_code"
                    },
                    "ip": {
                        "$ref": "#/components/schemas/property.common.ip_read"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "is_unicode": {
                        "$ref": "#/components/schemas/property.messages.is_unicode"
                    },
                    "uuid": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "iso2": {
                        "$ref": "#/components/schemas/property.common.country_code"
                    },
                    "voice_lang": {
                        "$ref": "#/components/schemas/property.messages.voice_lang"
                    },
                    "parts_count": {
                        "$ref": "#/components/schemas/property.sms.parts_count"
                    },
                    "chars_count": {
                        "$ref": "#/components/schemas/property.sms.chars_count"
                    },
                    "callback_data": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    },
                    "bulk_id": {
                        "$ref": "#/components/schemas/property.sms.bulk_id"
                    },
                    "key_id": {
                        "$ref": "#/components/schemas/property.common.key_id"
                    },
                    "service_code": {
                        "$ref": "#/components/schemas/property.messages.service_code"
                    },
                    "is_text_deleted": {
                        "$ref": "#/components/schemas/property.messages.is_text_deleted"
                    },
                    "price": {
                        "$ref": "#/components/schemas/property.common.price"
                    },
                    "is_sent": {
                        "$ref": "#/components/schemas/property.sms.is_sent"
                    },
                    "requests": {
                        "$ref": "#/components/schemas/property.sms.requests"
                    },
                    "clicks": {
                        "$ref": "#/components/schemas/property.sms.clicks"
                    },
                    "attempts_count_max": {
                        "$ref": "#/components/schemas/property.sms.attempts_count_max"
                    }
                }
            },
            "schema.sms-write": {
                "type": "object",
                "description": "SMS",
                "deprecated": false,
                "required": [
                    "sender_id",
                    "text",
                    "phone"
                ],
                "if": {
                    "properties": {
                        "service_code": {
                            "enum": [
                                "text2speech",
                                "text2speech_ssml"
                            ]
                        }
                    },
                    "required": [
                        "service_code"
                    ]
                },
                "then": {
                    "unevaluatedProperties": true
                },
                "else": {
                    "properties": {
                        "attempts_count_max": {
                            "enum": [
                                null
                            ]
                        }
                    },
                    "unevaluatedProperties": true
                },
                "properties": {
                    "text": {
                        "$ref": "#/components/schemas/property.sms.text",
                        "minLength": 1
                    },
                    "sender_id": {
                        "$ref": "#/components/schemas/property.messages.sender_id"
                    },
                    "phone": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "delivery_at": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/property.messages.delivery_at"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "source": {
                        "$ref": "#/components/schemas/property.messages.source"
                    },
                    "is_unicode": {
                        "$ref": "#/components/schemas/property.messages.is_unicode"
                    },
                    "voice_lang": {
                        "$ref": "#/components/schemas/property.messages.voice_lang"
                    },
                    "callback_data": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    },
                    "service_code": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/property.messages.service_code"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "is_text_deleted": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/property.messages.is_text_deleted"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "attempts_count_max": {
                        "$ref": "#/components/schemas/property.sms.attempts_count_max"
                    }
                }
            },
            "property.sms.deleted_sms_count_cancel": {
                "description": "Count of the SMS which was canceled",
                "type": "integer",
                "minimum": 0
            },
            "schema.sms-batch-cancel-response": {
                "type": "object",
                "readOnly": true,
                "properties": {
                    "deleted_sms_count": {
                        "$ref": "#/components/schemas/property.sms.deleted_sms_count_cancel"
                    }
                },
                "description": "Batch cancel operation response"
            },
            "property.sms.deleted_sms_count_delete": {
                "description": "Count of the SMS which was deleted",
                "type": "integer",
                "minimum": 0
            },
            "schema.sms-batch-delete-response": {
                "type": "object",
                "readOnly": true,
                "properties": {
                    "deleted_sms_count": {
                        "$ref": "#/components/schemas/property.sms.deleted_sms_count_delete"
                    }
                },
                "description": "Batch delete operation response"
            },
            "property.sms_clicks.requests_count": {
                "type": "integer",
                "description": "Liczba \u017c\u0105da\u0144 dla klikni\u0119\u0107 w SMS"
            },
            "schema.sms_clicks.jsonld-short_link_msg_read": {
                "type": "object",
                "description": "Clicks by sms",
                "readOnly": true,
                "deprecated": false,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "uuid": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "requests_count": {
                        "$ref": "#/components/schemas/property.sms_clicks.requests_count"
                    }
                }
            },
            "schema.sms_clicks-short_link_msg_read": {
                "type": "object",
                "description": "Clicks by sms",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "uuid": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "requests_count": {
                        "$ref": "#/components/schemas/property.sms_clicks.requests_count"
                    }
                }
            },
            "property.blocked_numbers.number": {
                "type": "string",
                "description": "Numer telefonu w formacie mi\u0119dzynarodowym",
                "pattern": "^\\+[0-9]{4,20}$",
                "example": "+1234567890"
            },
            "property.blocked_numbers.type": {
                "type": "integer",
                "enum": [
                    1,
                    2
                ],
                "description": "Typ zablokowanego numeru:\n- `1` - zablokowany przez klienta\n- `2` - wyrejestrowany przez u\u017cytkownika"
            },
            "property.blocked_numbers.id": {
                "type": "integer",
                "minimum": 1,
                "description": "Unikalny identyfikator"
            },
            "schema.blocked_numbers.jsonld-blocked_number_read": {
                "type": "object",
                "description": "Blocked phone number - JSON-LD read representation",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "@id": {
                        "$ref": "#/components/schemas/property._jsonld_id"
                    },
                    "@type": {
                        "$ref": "#/components/schemas/property._jsonld_type"
                    },
                    "@context": {
                        "$ref": "#/components/schemas/property._jsonld_context"
                    },
                    "id": {
                        "$ref": "#/components/schemas/property.blocked_numbers.id"
                    },
                    "number": {
                        "$ref": "#/components/schemas/property.blocked_numbers.number"
                    },
                    "type": {
                        "$ref": "#/components/schemas/property.blocked_numbers.type"
                    },
                    "added_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Data i godzina dodania numeru do listy zablokowanych (ISO 8601)",
                        "readOnly": true,
                        "example": "2025-08-22T08:06:56+00:00"
                    }
                },
                "required": [
                    "id",
                    "number",
                    "type",
                    "added_at"
                ]
            },
            "schema.blocked_numbers-blocked_number_read": {
                "type": "object",
                "description": "Blocked phone number - read representation",
                "deprecated": false,
                "readOnly": true,
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/property.blocked_numbers.id"
                    },
                    "number": {
                        "$ref": "#/components/schemas/property.blocked_numbers.number"
                    },
                    "type": {
                        "$ref": "#/components/schemas/property.blocked_numbers.type"
                    },
                    "added_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Data i godzina dodania numeru do listy zablokowanych (ISO 8601)",
                        "readOnly": true,
                        "example": "2025-08-22T08:06:56+00:00"
                    }
                },
                "required": [
                    "id",
                    "number",
                    "type",
                    "added_at"
                ]
            },
            "schema.blocked_numbers-blocked_number_write": {
                "type": "object",
                "description": "Blocked phone number - write representation",
                "deprecated": false,
                "writeOnly": true,
                "properties": {
                    "number": {
                        "$ref": "#/components/schemas/property.blocked_numbers.number"
                    }
                },
                "required": [
                    "number"
                ]
            },
            "routing_step_telegram": {
                "type": "object",
                "description": "Krok routingu Telegram. Dostarcza kod weryfikacyjny przez wiadomo\u015b\u0107 bota Telegram.",
                "required": [
                    "channel"
                ],
                "properties": {
                    "channel": {
                        "type": "string",
                        "description": "Kana\u0142 dostarczania: Telegram.",
                        "enum": [
                            "telegram"
                        ]
                    },
                    "timeout_sec": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Czas w sekundach oczekiwania na odpowied\u017a od Telegrama przed przej\u015bciem do kolejnego kroku. Je\u015bli nie zostanie ustawiony, u\u017cywana jest warto\u015b\u0107 domy\u015blna systemu.",
                        "minimum": 30,
                        "maximum": 3600,
                        "default": 30,
                        "example": 30
                    }
                }
            },
            "routing_step_voice": {
                "type": "object",
                "description": "Krok routingu g\u0142osowego. Dostarcza kod weryfikacyjny przez automatyczne po\u0142\u0105czenie g\u0142osowe.",
                "required": [
                    "channel",
                    "sender_id"
                ],
                "properties": {
                    "channel": {
                        "type": "string",
                        "description": "Kana\u0142 dostarczania: po\u0142\u0105czenie g\u0142osowe.",
                        "enum": [
                            "voice"
                        ]
                    },
                    "sender_id": {
                        "type": "string",
                        "description": "Numer telefonu nadawcy w formacie E.164. Je\u015bli sender_id nie jest zgodny z formatem E.164 (np. brak wiod\u0105cego +, znaki nieb\u0119d\u0105ce cyframi), po\u0142\u0105czenie zostanie wykonane z domy\u015blnego numeru systemowego +493075435114. Niekt\u00f3rzy zewn\u0119trzni dostawcy us\u0142ug telefonicznych mog\u0105 nadpisa\u0107 numer nadawcy zdefiniowany przez u\u017cytkownika.",
                        "minLength": 1,
                        "example": "+493075435114"
                    },
                    "template": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Niestandardowy szablon wiadomo\u015bci. Tekst jest automatycznie opakowywany w znaczniki SSML `<speak>`. U\u017cyj `{{code}}` jako miejsca na kod weryfikacyjny. Je\u015bli nie zostanie podany, u\u017cywany jest domy\u015blny przet\u0142umaczony szablon na podstawie pola `lang`.",
                        "maxLength": 70,
                        "example": "Your code is {{code}}"
                    }
                }
            },
            "routing_step_sms": {
                "type": "object",
                "description": "Krok routingu SMS. Dostarcza kod weryfikacyjny przez SMS.",
                "required": [
                    "channel",
                    "sender_id"
                ],
                "properties": {
                    "channel": {
                        "type": "string",
                        "description": "Kana\u0142 dostarczania: SMS.",
                        "enum": [
                            "sms"
                        ]
                    },
                    "sender_id": {
                        "type": "string",
                        "description": "Numer telefonu lub identyfikator alfanumeryczny nadawcy wy\u015bwietlany na urz\u0105dzeniu odbiorcy. Weryfikowany wzgl\u0119dem dozwolonych identyfikator\u00f3w nadawcy na koncie.",
                        "minLength": 1,
                        "example": "LOX24"
                    },
                    "template": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Niestandardowy szablon wiadomo\u015bci. U\u017cyj `{{code}}` jako miejsca na kod weryfikacyjny. Je\u015bli nie zostanie podany, u\u017cywany jest domy\u015blny przet\u0142umaczony szablon na podstawie pola `lang`.",
                        "maxLength": 70,
                        "example": "Your code is {{code}}"
                    }
                }
            },
            "verify_code_read": {
                "type": "object",
                "description": "Odpowied\u017a odczytu kodu weryfikacyjnego. Zawiera pe\u0142ne szczeg\u00f3\u0142y \u017c\u0105dania kodu weryfikacyjnego, w tym aktualny status, histori\u0119 dostarczenia i informacje o kosztach.",
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "Unikalny identyfikator (UUID) \u017c\u0105dania kodu weryfikacyjnego.",
                        "readOnly": true,
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                    },
                    "user_id": {
                        "type": "integer",
                        "description": "ID u\u017cytkownika, kt\u00f3ry utworzy\u0142 \u017c\u0105danie kodu weryfikacyjnego.",
                        "readOnly": true,
                        "example": 12345
                    },
                    "phone": {
                        "type": "string",
                        "description": "Numer telefonu odbiorcy w formacie mi\u0119dzynarodowym.",
                        "example": "+491701234567"
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Warto\u015b\u0107 kodu weryfikacyjnego. Je\u015bli ustawiono `is_code_deleted` i zadanie zosta\u0142o uko\u0144czone, kod b\u0119dzie nieobecny.",
                        "example": "1234"
                    },
                    "code_length": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "D\u0142ugo\u015b\u0107 kodu weryfikacyjnego.",
                        "example": 4
                    },
                    "lang": {
                        "type": "string",
                        "description": "J\u0119zyk u\u017cyty w szablonie wiadomo\u015bci.",
                        "enum": [
                            "EN",
                            "DE",
                            "FR",
                            "IT",
                            "ES",
                            "PL",
                            "NL",
                            "RO",
                            "PT",
                            "CS",
                            "HU",
                            "SV",
                            "DA",
                            "FI",
                            "SK",
                            "HR",
                            "TR",
                            "RU",
                            "BG",
                            "UK"
                        ],
                        "example": "DE"
                    },
                    "routing_strategy": {
                        "type": "array",
                        "description": "Uporz\u0105dkowana lista kana\u0142\u00f3w dostarczania skonfigurowanych dla tego \u017c\u0105dania.",
                        "items": {
                            "discriminator": {
                                "propertyName": "channel"
                            },
                            "oneOf": [
                                {
                                    "$ref": "#/components/schemas/routing_step_telegram"
                                },
                                {
                                    "$ref": "#/components/schemas/routing_step_voice"
                                },
                                {
                                    "$ref": "#/components/schemas/routing_step_sms"
                                }
                            ]
                        }
                    },
                    "status": {
                        "type": "integer",
                        "description": "Aktualny status kodu weryfikacyjnego: 0 = nowy, 5 = w trakcie realizacji, 10 = sukces, 20 = niepowodzenie, 100 = b\u0142\u0105d.",
                        "readOnly": true,
                        "enum": [
                            0,
                            5,
                            10,
                            20,
                            100
                        ]
                    },
                    "delivered_channel": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Kana\u0142, kt\u00f3ry pomy\u015blnie dostarczy\u0142 kod weryfikacyjny. Null, je\u015bli kod nie zosta\u0142 jeszcze dostarczony lub je\u015bli dostarczenie si\u0119 nie powiod\u0142o.",
                        "readOnly": true,
                        "enum": [
                            "telegram",
                            "voice",
                            "sms",
                            null
                        ]
                    },
                    "cost": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "\u0141\u0105czny koszt \u017c\u0105dania weryfikacji w centach euro. Null do momentu zako\u0144czenia przetwarzania.",
                        "readOnly": true,
                        "example": 5
                    },
                    "currency": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Kod waluty kosztu.",
                        "readOnly": true,
                        "example": "EUR"
                    },
                    "payload": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Niestandardowe dane payload z pierwotnego \u017c\u0105dania."
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Znacznik czasu Unix momentu utworzenia kodu weryfikacyjnego.",
                        "readOnly": true,
                        "example": 1735689600
                    },
                    "updated_at": {
                        "type": "integer",
                        "description": "Znacznik czasu Unix ostatniej aktualizacji.",
                        "readOnly": true,
                        "example": 1735689660
                    },
                    "history": {
                        "type": "array",
                        "description": "Historia przetwarzania dla ka\u017cdej pr\u00f3by kana\u0142u. Jeden wpis na krok routingu.",
                        "readOnly": true,
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string",
                                    "description": "UUID wpisu historii."
                                },
                                "channel": {
                                    "type": "string",
                                    "description": "Typ kana\u0142u dla tej pr\u00f3by.",
                                    "enum": [
                                        "telegram",
                                        "voice",
                                        "sms"
                                    ]
                                },
                                "status": {
                                    "type": "integer",
                                    "description": "Status tej pr\u00f3by kana\u0142u: 0 = nowy, 5 = w trakcie realizacji, 10 = sukces, 20 = niepowodzenie, 100 = b\u0142\u0105d."
                                },
                                "processed_at": {
                                    "type": "integer",
                                    "description": "Znacznik czasu Unix momentu przetworzenia tego kroku."
                                },
                                "external_id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Identyfikator wiadomo\u015bci u dostawcy zewn\u0119trznego."
                                }
                            }
                        }
                    },
                    "is_code_deleted": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Informacja, czy kod weryfikacyjny zosta\u0142 usuni\u0119ty z magazynu po wys\u0142aniu go do odbiorcy."
                    }
                }
            },
            "verify_code_write": {
                "type": "object",
                "description": "Payload zapisu kodu weryfikacyjnego. Tworzy nowe \u017c\u0105danie kodu weryfikacyjnego z wieloetapow\u0105 strategi\u0105 routingu.",
                "required": [
                    "phone",
                    "routing_strategy"
                ],
                "properties": {
                    "phone": {
                        "type": "string",
                        "description": "Numer telefonu odbiorcy w formacie mi\u0119dzynarodowym (np. +491701234567).",
                        "minLength": 5,
                        "maxLength": 30,
                        "example": "+491701234567"
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Niestandardowy kod weryfikacyjny. Je\u015bli nie zostanie podany, losowy kod numeryczny jest generowany automatycznie na podstawie `code_length`.",
                        "minLength": 4,
                        "maxLength": 8,
                        "example": "1234"
                    },
                    "code_length": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "D\u0142ugo\u015b\u0107 automatycznie generowanego kodu weryfikacyjnego. U\u017cywana tylko wtedy, gdy `code` nie zosta\u0142 podany. Domy\u015blnie: 4.",
                        "minimum": 4,
                        "maximum": 8,
                        "default": 4,
                        "example": 6
                    },
                    "lang": {
                        "type": "string",
                        "description": "J\u0119zyk domy\u015blnego szablonu wiadomo\u015bci. Okre\u015bla j\u0119zyk automatycznie generowanego tekstu SMS/Voice, gdy nie podano niestandardowego szablonu `template`. Nie dotyczy kana\u0142u `telegram`: Telegram zawsze wysy\u0142a wiadomo\u015b\u0107 systemow\u0105 w j\u0119zyku aplikacji Telegram u\u017cytkownika.",
                        "default": "DE",
                        "enum": [
                            "EN",
                            "DE",
                            "FR",
                            "IT",
                            "ES",
                            "PL",
                            "NL",
                            "RO",
                            "PT",
                            "CS",
                            "HU",
                            "SV",
                            "DA",
                            "FI",
                            "SK",
                            "HR",
                            "TR",
                            "RU",
                            "BG",
                            "UK"
                        ],
                        "example": "EN"
                    },
                    "payload": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Niestandardowe dane, kt\u00f3re zostan\u0105 zapisane razem z kodem weryfikacyjnym i zwr\u00f3cone w zdarzeniach webhook. Przydatne do korelowania \u017c\u0105da\u0144 weryfikacji z systemami wewn\u0119trznymi.",
                        "maxLength": 128,
                        "example": "session_abc123"
                    },
                    "is_code_deleted": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Je\u015bli true, kod weryfikacyjny zostanie usuni\u0119ty z magazynu po wys\u0142aniu go do odbiorcy. Domy\u015blnie: false.",
                        "default": false
                    },
                    "routing_strategy": {
                        "type": "array",
                        "description": "Uporz\u0105dkowana lista kana\u0142\u00f3w dostarczania. Ka\u017cdy krok okre\u015bla kana\u0142, kt\u00f3ry ma zosta\u0107 u\u017cyty. Je\u015bli kana\u0142 zawiedzie lub przekroczy limit czasu, podejmowana jest pr\u00f3ba kolejnego kroku. Wymagany jest co najmniej jeden krok. Kana\u0142 `sms` mo\u017ce by\u0107 tylko ostatnim krokiem. Zduplikowane kana\u0142y s\u0105 niedozwolone.",
                        "minItems": 1,
                        "items": {
                            "discriminator": {
                                "propertyName": "channel"
                            },
                            "oneOf": [
                                {
                                    "$ref": "#/components/schemas/routing_step_telegram"
                                },
                                {
                                    "$ref": "#/components/schemas/routing_step_voice"
                                },
                                {
                                    "$ref": "#/components/schemas/routing_step_sms"
                                }
                            ]
                        }
                    }
                }
            },
            "property.common.api_version": {
                "type": "string",
                "description": "Wersja struktury danych webhooka powiadomie\u0144",
                "example": "2022-05-25"
            },
            "property.common.event_name": {
                "type": "string",
                "description": "Nazwa zdarzenia webhooka"
            },
            "property.common.attempt_total": {
                "type": "integer",
                "description": "\u0141\u0105czna liczba pr\u00f3b dostarczenia webhooka powiadomienia",
                "minimum": 1,
                "maximum": 4,
                "example": 4
            },
            "property.common.attempt_number": {
                "type": "integer",
                "description": "Numer bie\u017c\u0105cej pr\u00f3by powiadomienia przez webhook",
                "minimum": 1,
                "example": 1
            },
            "webhook.event": {
                "type": "object",
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "api_version": {
                        "$ref": "#/components/schemas/property.common.api_version"
                    },
                    "name": {
                        "$ref": "#/components/schemas/property.common.event_name"
                    },
                    "created_at": {
                        "$ref": "#/components/schemas/property.common.created_at"
                    },
                    "attempt_total": {
                        "$ref": "#/components/schemas/property.common.attempt_total"
                    },
                    "attempt_number": {
                        "$ref": "#/components/schemas/property.common.attempt_number"
                    },
                    "notification_task_id": {
                        "type": "string",
                        "format": "uuid",
                        "description": "Notification task identifier (request identifier)",
                        "example": "3378de83-de66-4de8-9d29-2b10d41bb641"
                    }
                },
                "description": "Base webhook event envelope with metadata"
            },
            "schema.webhooks.sms-delivery-data": {
                "type": "object",
                "description": "Data for sms.delivery and sms.delivery.dryrun events",
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "key_id": {
                        "$ref": "#/components/schemas/property.common.key_id"
                    },
                    "dlr_code": {
                        "$ref": "#/components/schemas/property.sms.dlr_code"
                    },
                    "status_code": {
                        "$ref": "#/components/schemas/property.sms.status_code"
                    },
                    "callback_data": {
                        "$ref": "#/components/schemas/property.common.callback_data"
                    }
                }
            },
            "schema.webhooks.sms-incoming-data": {
                "type": "object",
                "description": "Data for sms.incoming events",
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/property.common.uuid"
                    },
                    "to": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "from": {
                        "$ref": "#/components/schemas/property.common.phone_number"
                    },
                    "received_at": {
                        "$ref": "#/components/schemas/property.incomings.received_at"
                    },
                    "text": {
                        "$ref": "#/components/schemas/property.incomings.text"
                    },
                    "msg_uuid": {
                        "$ref": "#/components/schemas/property.incomings.msg_uuid"
                    }
                }
            },
            "schema.email2bulk": {
                "type": "object",
                "description": "Email object for bulk email events",
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "Email identifier"
                    },
                    "from": {
                        "type": "string",
                        "format": "email",
                        "description": "Sender email address"
                    },
                    "to": {
                        "type": "string",
                        "format": "email",
                        "description": "Destination email address"
                    },
                    "subject": {
                        "type": "string",
                        "description": "Email subject line"
                    },
                    "body": {
                        "type": "string",
                        "description": "Email body content"
                    }
                }
            },
            "schema.webhooks.bulk-email-parsing-fail-data": {
                "type": "object",
                "description": "Data for bulk.email.parsing.fail events",
                "properties": {
                    "field": {
                        "type": "string",
                        "description": "Field related to the error",
                        "example": "recipient"
                    },
                    "description": {
                        "type": "string",
                        "description": "Error description",
                        "example": "Invalid phone number format"
                    },
                    "email": {
                        "$ref": "#/components/schemas/schema.email2bulk"
                    }
                }
            },
            "schema.webhooks.bulk-email-parsing-success-data": {
                "type": "object",
                "description": "Data for bulk.email.parsing.success events",
                "properties": {
                    "bulk": {
                        "type": "object",
                        "description": "SMS Bulk response object",
                        "properties": {
                            "id": {
                                "$ref": "#/components/schemas/property.common.uuid"
                            },
                            "status": {
                                "$ref": "#/components/schemas/property.bulks.status_code"
                            },
                            "created_at": {
                                "$ref": "#/components/schemas/property.common.created_at"
                            }
                        }
                    },
                    "email": {
                        "$ref": "#/components/schemas/schema.email2bulk"
                    }
                }
            },
            "schema.webhooks.fraud-check-done-data": {
                "type": "object",
                "description": "Data for fraud-check.done events",
                "additionalProperties": true
            },
            "schema.webhooks.sms-email-parsing-success-data": {
                "type": "object",
                "description": "Data for sms.email.parsing.success events",
                "properties": {
                    "sms": {
                        "type": "array",
                        "description": "Array of SMS data from parsed email",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "$ref": "#/components/schemas/property.common.uuid"
                                },
                                "to": {
                                    "$ref": "#/components/schemas/property.common.phone_number"
                                },
                                "text": {
                                    "$ref": "#/components/schemas/property.sms.text"
                                }
                            }
                        }
                    },
                    "email": {
                        "$ref": "#/components/schemas/schema.email2bulk"
                    }
                }
            },
            "schema.webhooks.sms-email-parsing-fail-data": {
                "type": "object",
                "description": "Data for sms.email.parsing.fail events",
                "properties": {
                    "field": {
                        "type": "string",
                        "description": "Field related to the error",
                        "example": "recipient"
                    },
                    "description": {
                        "type": "string",
                        "description": "Error description",
                        "example": "Invalid phone number format"
                    },
                    "email": {
                        "$ref": "#/components/schemas/schema.email2bulk"
                    }
                }
            },
            "schema.webhooks.phone-unsubscribe-data": {
                "type": "object",
                "properties": {
                    "phone": {
                        "type": "string",
                        "description": "Numer telefonu, kt\u00f3ry zosta\u0142 wypisany",
                        "example": "+436766304011"
                    },
                    "user_id": {
                        "type": "integer",
                        "description": "ID u\u017cytkownika powi\u0105zanego z numerem telefonu",
                        "example": 2
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Unix timestamp when the unsubscribe occurred",
                        "example": 1757849748
                    },
                    "campaign_code": {
                        "type": "string",
                        "description": "Kod kampanii powi\u0105zany z wypisaniem",
                        "example": "3KCKb5nMD"
                    },
                    "additional_data": {
                        "type": "object",
                        "properties": {
                            "reason": {
                                "type": "object",
                                "properties": {
                                    "id": {
                                        "type": "integer",
                                        "enum": [
                                            1,
                                            2,
                                            3,
                                            4,
                                            5,
                                            6
                                        ],
                                        "description": "ID powodu wypisania. Mo\u017cliwe warto\u015bci:\n- 1: Nigdy si\u0119 nie zapisa\u0142em\n- 2: Zbyt wiele wiadomo\u015bci\n- 3: Nie jestem zainteresowany\n- 4: Tre\u015b\u0107 jest niezrozumia\u0142a\n- 5: Nie lubi\u0119 Twojej firmy\n- 6: Inny pow\u00f3d",
                                        "example": 4
                                    },
                                    "label": {
                                        "type": "string",
                                        "description": "Czytelny dla cz\u0142owieka pow\u00f3d wypisania",
                                        "example": "Content is incomprehensible"
                                    }
                                },
                                "required": [
                                    "id",
                                    "label"
                                ]
                            },
                            "additional_text": {
                                "type": "string",
                                "description": "Dodatkowy tekst podany przez u\u017cytkownika",
                                "example": "Additional text from user input"
                            }
                        },
                        "required": [
                            "reason",
                            "additional_text"
                        ]
                    },
                    "short_link_code": {
                        "type": "string",
                        "description": "Kod kr\u00f3tkiego linku powi\u0105zany z wypisaniem",
                        "example": "baaIou"
                    },
                    "unsubscribe_request_id": {
                        "type": "integer",
                        "description": "ID \u017c\u0105dania wypisania",
                        "example": 59
                    },
                    "group_id": {
                        "type": "integer",
                        "description": "ID grupy powi\u0105zanej z wypisaniem numeru telefonu",
                        "example": 123
                    },
                    "timestamp": {
                        "description": "Znacznik czasu Unix, w kt\u00f3rym nast\u0105pi\u0142o wypisanie"
                    }
                },
                "required": [
                    "phone",
                    "user_id",
                    "created_at",
                    "campaign_code",
                    "additional_data",
                    "short_link_code",
                    "unsubscribe_request_id"
                ],
                "description": "Phone unsubscribe webhook data payload"
            },
            "schema.webhooks.phone-subscribe-data": {
                "type": "object",
                "properties": {
                    "phone": {
                        "type": "string",
                        "description": "Numer telefonu, kt\u00f3ry zosta\u0142 zapisany",
                        "example": "+99559122567"
                    },
                    "user_id": {
                        "type": "integer",
                        "description": "ID u\u017cytkownika powi\u0105zanego z numerem telefonu",
                        "example": 21911
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Unix timestamp when the subscribe occurred",
                        "example": 1757926648
                    },
                    "campaign_code": {
                        "type": "string",
                        "description": "Kod kampanii powi\u0105zany z zapisem",
                        "example": "1dkGdCC2xnBc"
                    },
                    "additional_data": {
                        "type": "array",
                        "description": "Dodatkowe dane zwi\u0105zane ze zdarzeniem zapisu",
                        "items": {
                            "type": "object"
                        },
                        "example": []
                    },
                    "short_link_code": {
                        "type": "string",
                        "description": "Kod kr\u00f3tkiego linku powi\u0105zany z zapisem",
                        "example": "baaIoP"
                    },
                    "group_id": {
                        "type": "integer",
                        "description": "ID grupy powi\u0105zanej z zapisem numeru telefonu",
                        "example": 123
                    },
                    "timestamp": {
                        "description": "Znacznik czasu Unix, w kt\u00f3rym nast\u0105pi\u0142 zapis"
                    }
                },
                "required": [
                    "phone",
                    "user_id",
                    "created_at",
                    "campaign_code",
                    "additional_data",
                    "short_link_code",
                    "group_id"
                ],
                "description": "Phone subscribe webhook data payload"
            },
            "schema.webhooks.verify-code-data": {
                "type": "object",
                "description": "Data for verify_code.success, verify_code.failed and verify_code.channel.updated events",
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "Verify code ID (UUID)",
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                    },
                    "user_id": {
                        "type": "integer",
                        "description": "User ID",
                        "example": 12345
                    },
                    "phone": {
                        "type": "string",
                        "description": "Phone number",
                        "example": "+4915112345678"
                    },
                    "routing_strategy": {
                        "type": "array",
                        "description": "Routing strategy configuration",
                        "items": {
                            "type": "object",
                            "properties": {
                                "channel": {
                                    "type": "string",
                                    "enum": [
                                        "telegram",
                                        "sms"
                                    ]
                                },
                                "timeout_sec": {
                                    "type": "integer",
                                    "description": "Timeout in seconds. Only applicable for the telegram channel."
                                },
                                "sender_id": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "status": {
                        "type": "integer",
                        "description": "Verify code status"
                    },
                    "delivered_channel": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Channel that delivered the code"
                    },
                    "cost": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Cost in cents"
                    },
                    "currency": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Currency code"
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Verification code"
                    },
                    "code_length": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Code length"
                    },
                    "payload": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Custom payload"
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "integer",
                        "description": "Last update timestamp"
                    },
                    "history": {
                        "type": "array",
                        "description": "Processing history",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "channel": {
                                    "type": "string"
                                },
                                "status": {
                                    "type": "integer"
                                },
                                "processed_at": {
                                    "type": "integer"
                                },
                                "external_id": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "is_code_deleted": {
                        "type": "boolean",
                        "description": "Whether the verification code has been deleted from storage after being sent."
                    }
                }
            },
            "schema.webhooks.verify-code-channel-data": {
                "type": "object",
                "description": "Data for verify_code.channel.sent, verify_code.channel.success and verify_code.channel.failed events",
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "Verify code ID (UUID)",
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                    },
                    "user_id": {
                        "type": "integer",
                        "description": "User ID",
                        "example": 12345
                    },
                    "phone": {
                        "type": "string",
                        "description": "Phone number",
                        "example": "+4915112345678"
                    },
                    "routing_strategy": {
                        "type": "array",
                        "description": "Routing strategy configuration",
                        "items": {
                            "type": "object",
                            "properties": {
                                "channel": {
                                    "type": "string",
                                    "enum": [
                                        "telegram",
                                        "sms"
                                    ]
                                },
                                "timeout_sec": {
                                    "type": "integer",
                                    "description": "Timeout in seconds. Only applicable for the telegram channel."
                                },
                                "sender_id": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "status": {
                        "type": "integer",
                        "description": "Verify code status"
                    },
                    "delivered_channel": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Channel that delivered the code"
                    },
                    "cost": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Cost in cents"
                    },
                    "currency": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Currency code"
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Verification code"
                    },
                    "code_length": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Code length"
                    },
                    "payload": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Custom payload"
                    },
                    "created_at": {
                        "type": "integer",
                        "description": "Creation timestamp"
                    },
                    "updated_at": {
                        "type": "integer",
                        "description": "Last update timestamp"
                    },
                    "history": {
                        "type": "array",
                        "description": "Processing history",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "channel": {
                                    "type": "string"
                                },
                                "status": {
                                    "type": "integer"
                                },
                                "processed_at": {
                                    "type": "integer"
                                },
                                "external_id": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "is_code_deleted": {
                        "type": "boolean",
                        "description": "Whether the verification code has been deleted from storage after being sent."
                    },
                    "channel": {
                        "type": "object",
                        "description": "Channel-specific processing details",
                        "properties": {
                            "id": {
                                "type": "string",
                                "description": "History entry ID"
                            },
                            "channel": {
                                "type": "string",
                                "description": "Channel type",
                                "enum": [
                                    "telegram",
                                    "sms"
                                ]
                            },
                            "status": {
                                "type": "integer",
                                "description": "Channel processing status"
                            },
                            "processed_at": {
                                "type": "integer",
                                "description": "Processing timestamp"
                            },
                            "external_id": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "External provider ID"
                            },
                            "error": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Error message if failed"
                            },
                            "cost": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Cost for this channel in cents"
                            }
                        }
                    }
                }
            }
        },
        "examples": {
            "example_bulks_response_get_jsonld": {
                "summary": "Bulks list (JSON-LD)",
                "description": "Example response for GET /bulks with Accept: application/ld+json",
                "value": {
                    "@context": "/contexts/Bulk",
                    "@id": "/bulks",
                    "@type": "Collection",
                    "totalItems": 2,
                    "member": [
                        {
                            "@id": "/bulks/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                            "@type": "Bulk",
                            "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                            "delivery_at": 0,
                            "sender_id": "testbulk",
                            "status_code": 10,
                            "msg_total_count": 1000,
                            "created_at": 1755868416,
                            "processed_at": 1755868500,
                            "ip": "10.1.1.1",
                            "is_unicode": false,
                            "is_dryrun": false,
                            "callback_data": null,
                            "service_code": "direct",
                            "key_id": 8291,
                            "source": 0,
                            "voice_lang": null,
                            "is_text_deleted": false,
                            "msg_total_cost": 56,
                            "requests": "/bulks/a1b2c3d4-e5f6-7890-abcd-ef1234567890/requests"
                        },
                        {
                            "@id": "/bulks/b2c3d4e5-f6a7-8901-bcde-f12345678901",
                            "@type": "Bulk",
                            "uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
                            "delivery_at": 1755954816,
                            "sender_id": "testbulk",
                            "status_code": 5,
                            "msg_total_count": 50,
                            "created_at": 1755868500,
                            "processed_at": 1755868600,
                            "ip": "10.1.1.1",
                            "is_unicode": null,
                            "is_dryrun": false,
                            "callback_data": null,
                            "service_code": "direct",
                            "key_id": null,
                            "source": 0,
                            "voice_lang": null,
                            "is_text_deleted": false,
                            "msg_total_cost": 3.5,
                            "requests": "/bulks/b2c3d4e5-f6a7-8901-bcde-f12345678901/requests"
                        }
                    ],
                    "search": {
                        "@type": "IriTemplate",
                        "template": "/bulks{?page,uuid,uuid[],_order[created_at],_order[delivery_at],_order[processed_at],_order[msg_total_count],text,sender_id,status_code,status_code[],created_at,created_at[],delivery_at,delivery_at[],processed_at,processed_at[],msg_total_count,msg_total_count[],source,source[],key_id,key_id[],is_unicode,is_dryrun,exists[is_unicode]}",
                        "variableRepresentation": "BasicRepresentation",
                        "mapping": []
                    }
                }
            },
            "example_bulks_response_get": {
                "summary": "Bulks list",
                "description": "Example response for GET /bulks with Accept: application/json",
                "value": [
                    {
                        "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "delivery_at": 0,
                        "sender_id": "testbulk",
                        "status_code": 10,
                        "msg_total_count": 1000,
                        "created_at": 1755868416,
                        "processed_at": 1755868500,
                        "ip": "10.1.1.1",
                        "is_unicode": false,
                        "is_dryrun": false,
                        "callback_data": null,
                        "service_code": "direct",
                        "key_id": 8291,
                        "source": 0,
                        "voice_lang": null,
                        "is_text_deleted": false,
                        "msg_total_cost": 56,
                        "requests": "/bulks/a1b2c3d4-e5f6-7890-abcd-ef1234567890/requests"
                    },
                    {
                        "uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
                        "delivery_at": 1755954816,
                        "sender_id": "testbulk",
                        "status_code": 5,
                        "msg_total_count": 50,
                        "created_at": 1755868500,
                        "processed_at": 1755868600,
                        "ip": "10.1.1.1",
                        "is_unicode": null,
                        "is_dryrun": false,
                        "callback_data": null,
                        "service_code": "direct",
                        "key_id": null,
                        "source": 0,
                        "voice_lang": null,
                        "is_text_deleted": false,
                        "msg_total_cost": 3.5,
                        "requests": "/bulks/b2c3d4e5-f6a7-8901-bcde-f12345678901/requests"
                    }
                ]
            },
            "example_bulks_request": {
                "summary": "Create bulk with static text and phones",
                "description": "Example of creating a bulk with static text to multiple phone numbers",
                "value": {
                    "sender_id": "testbulk",
                    "text": "Hello! This is a test bulk message.",
                    "phones": [
                        "+49751234567",
                        "+49751234568",
                        "+49751234569"
                    ],
                    "service_code": "direct"
                }
            },
            "example_bulks_response_post_jsonld": {
                "summary": "Bulk created (JSON-LD)",
                "description": "Example response for POST /bulks with Accept: application/ld+json",
                "value": {
                    "@context": "/contexts/Bulk",
                    "@id": "/bulks/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                    "@type": "Bulk",
                    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                    "delivery_at": 0,
                    "sender_id": "testbulk",
                    "text": "Hello! This is a test bulk message.",
                    "phones": [
                        "+49751234567",
                        "+49751234568",
                        "+49751234569"
                    ],
                    "msg_groups": [
                        7116,
                        7117
                    ],
                    "status_code": 10,
                    "msg_total_count": 1000,
                    "created_at": 1755868416,
                    "processed_at": 1755868500,
                    "ip": "10.1.1.1",
                    "is_unicode": false,
                    "is_dryrun": false,
                    "service_code": "direct",
                    "key_id": 8291,
                    "source": 0,
                    "voice_lang": null,
                    "is_text_deleted": false,
                    "msg_total_cost": 56
                }
            },
            "example_bulks_response_post": {
                "summary": "Bulk created",
                "description": "Example response for POST /bulks with Accept: application/json",
                "value": {
                    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                    "delivery_at": 0,
                    "sender_id": "testbulk",
                    "text": "Hello! This is a test bulk message.",
                    "phones": [
                        "+49751234567",
                        "+49751234568",
                        "+49751234569"
                    ],
                    "msg_groups": [
                        7116,
                        7117
                    ],
                    "status_code": 10,
                    "msg_total_count": 1000,
                    "created_at": 1755868416,
                    "processed_at": 1755868500,
                    "ip": "10.1.1.1",
                    "is_unicode": false,
                    "is_dryrun": false,
                    "service_code": "direct",
                    "key_id": 8291,
                    "source": 0,
                    "voice_lang": null,
                    "is_text_deleted": false,
                    "msg_total_cost": 56
                }
            },
            "user_pricelist": {
                "summary": "User price list for Germany in EUR",
                "description": "Example response for /me/pricelist/de?currency=eur with authentication. Shows single prices per service based on user's price level.",
                "value": {
                    "country": "DE",
                    "name": "Germany",
                    "currency": "EUR",
                    "requirements": null,
                    "rates": {
                        "pro": 0.06,
                        "economy": 0.044,
                        "direct": 0.062,
                        "text2speech": 0.032
                    }
                }
            },
            "pricelist": {
                "summary": "Price list for Italy in CHF",
                "description": "Example response for /pricelist/it?currency=chf",
                "value": {
                    "country": "IT",
                    "name": "Italy",
                    "currency": "CHF",
                    "requirements": "Text Sender-ID needs to be registered. Only for companies with VAT and PEC in ITALY. Numeric sender-ID possible.",
                    "rates": {
                        "pro": [
                            0.06,
                            0.05,
                            0.049,
                            0.048
                        ],
                        "economy": [
                            0.05,
                            0.044,
                            0.043,
                            0.042
                        ],
                        "direct": [
                            0.072,
                            0.062,
                            0.061,
                            0.06
                        ],
                        "text2speech": [
                            0.038,
                            0.032,
                            0.031,
                            0.03
                        ]
                    }
                }
            },
            "invoices.jsonld": {
                "summary": "Invoice list example (JSON-LD)",
                "description": "Example response for GET /invoices with Accept: application/ld+json",
                "value": {
                    "@context": "/contexts/Invoice",
                    "@id": "/invoices",
                    "@type": "Collection",
                    "totalItems": 1,
                    "member": [
                        {
                            "@id": "/invoices/44969",
                            "@type": "Invoice",
                            "id": "44969",
                            "created_at": 1626123015,
                            "amount": 24.63,
                            "currency": "EUR",
                            "status": 1,
                            "payment_type": 7,
                            "paid_at": 1626123015,
                            "client_name": "Example Customer Ltd.",
                            "client_address": "Main Street 42\n12345 Example City",
                            "client_info": "John Doe",
                            "vat": 19,
                            "vat_id": "DE123456789",
                            "vat_val": 3.93,
                            "fee": 3.5,
                            "fee_val": 0.72,
                            "net_val": 19.98,
                            "iso2": "DE",
                            "custom_text": "PO-2024-001",
                            "pdf": "/invoices/44969/pdf",
                            "credit_note": null
                        }
                    ],
                    "view": {
                        "@id": "/invoices?page=1",
                        "@type": "PartialCollectionView"
                    },
                    "search": {
                        "@type": "IriTemplate",
                        "template": "/invoices{?_order[created_at],_order[amount],status,status[],payment_type,payment_type[],id,id[],createdAt[between],createdAt[gt],createdAt[gte],createdAt[lt],createdAt[lte],amount[between],amount[gt],amount[gte],amount[lt],amount[lte],paidAt[between],paidAt[gt],paidAt[gte],paidAt[lt],paidAt[lte]}",
                        "variableRepresentation": "BasicRepresentation",
                        "mapping": [
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "_order[created_at]",
                                "property": "created_at",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "_order[amount]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "status",
                                "property": "status",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "status[]",
                                "property": "status",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "payment_type",
                                "property": "payment_type",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "payment_type[]",
                                "property": "payment_type",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "id",
                                "property": "id",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "id[]",
                                "property": "id",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "createdAt[between]",
                                "property": "createdAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "createdAt[gt]",
                                "property": "createdAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "createdAt[gte]",
                                "property": "createdAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "createdAt[lt]",
                                "property": "createdAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "createdAt[lte]",
                                "property": "createdAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "amount[between]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "amount[gt]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "amount[gte]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "amount[lt]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "amount[lte]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "paidAt[between]",
                                "property": "paidAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "paidAt[gt]",
                                "property": "paidAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "paidAt[gte]",
                                "property": "paidAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "paidAt[lt]",
                                "property": "paidAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "paidAt[lte]",
                                "property": "paidAt",
                                "required": false
                            }
                        ]
                    }
                }
            },
            "invoices": {
                "summary": "Invoice list example (JSON)",
                "description": "Example response for GET /invoices with Accept: application/json",
                "value": [
                    {
                        "id": "44969",
                        "created_at": 1626123015,
                        "amount": 24.63,
                        "currency": "EUR",
                        "status": 1,
                        "payment_type": 7,
                        "paid_at": 1626123015,
                        "client_name": "Example Customer Ltd.",
                        "client_address": "Main Street 42\n12345 Example City",
                        "client_info": "John Doe",
                        "vat": 19,
                        "vat_id": "DE123456789",
                        "vat_val": 3.93,
                        "fee": 3.5,
                        "fee_val": 0.72,
                        "net_val": 19.98,
                        "iso2": "DE",
                        "custom_text": "PO-2024-001",
                        "pdf": "/invoices/44969/pdf",
                        "credit_note": null
                    }
                ]
            },
            "invoice.jsonld": {
                "summary": "Invoice detail example (JSON-LD)",
                "description": "Example response for GET /invoices/{id} with Accept: application/ld+json",
                "value": {
                    "@context": "/contexts/Invoice",
                    "@id": "/invoices/44969",
                    "@type": "Invoice",
                    "id": "44969",
                    "created_at": 1626123015,
                    "amount": 24.63,
                    "currency": "EUR",
                    "status": 1,
                    "payment_type": 7,
                    "paid_at": 1626123015,
                    "client_name": "Example Customer Ltd.",
                    "client_address": "Main Street 42\n12345 Example City",
                    "client_info": "John Doe",
                    "vat": 19,
                    "vat_id": "DE123456789",
                    "vat_val": 3.93,
                    "fee": 3.5,
                    "fee_val": 0.72,
                    "net_val": 19.98,
                    "iso2": "DE",
                    "custom_text": "PO-2024-001",
                    "pdf": "/invoices/44969/pdf",
                    "credit_note": "/credit_notes/240"
                }
            },
            "invoice": {
                "summary": "Invoice detail example",
                "description": "Example response for GET /invoices/{id}",
                "value": {
                    "id": "44969",
                    "created_at": 1626123015,
                    "amount": 24.63,
                    "currency": "EUR",
                    "status": 1,
                    "payment_type": 7,
                    "paid_at": 1626123015,
                    "client_name": "Example Customer Ltd.",
                    "client_address": "Main Street 42\n12345 Example City",
                    "client_info": "John Doe",
                    "vat": 19,
                    "vat_id": "DE123456789",
                    "vat_val": 3.93,
                    "fee": 3.5,
                    "fee_val": 0.72,
                    "net_val": 19.98,
                    "iso2": "DE",
                    "custom_text": "PO-2024-001",
                    "pdf": "/invoices/44969/pdf",
                    "credit_note": "/credit_notes/240"
                }
            },
            "credit_notes.jsonld": {
                "summary": "Credit note list example (JSON-LD)",
                "description": "Example response for GET /credit_notes with Accept: application/ld+json",
                "value": {
                    "@context": "/contexts/CreditNote",
                    "@id": "/credit_notes",
                    "@type": "Collection",
                    "totalItems": 1,
                    "member": [
                        {
                            "@id": "/credit_notes/240",
                            "@type": "CreditNote",
                            "id": "240",
                            "created_at": 1770140830,
                            "amount": 0.01,
                            "currency": "EUR",
                            "status": 1,
                            "payment_type": 6,
                            "paid_at": 0,
                            "client_name": "Example Customer Ltd.",
                            "client_address": "Main Street 42\n12345 Example City",
                            "client_info": "John Doe",
                            "type": 0,
                            "vat": 19,
                            "vat_id": "DE123456789",
                            "vat_val": 0,
                            "fee": 0,
                            "fee_val": 0,
                            "net_val": 0.01,
                            "iso2": "DE",
                            "custom_text": "CN-2024-001",
                            "pdf": "/credit_notes/240/pdf",
                            "invoice": "/invoices/79484"
                        }
                    ],
                    "view": {
                        "@id": "/credit_notes?page=1",
                        "@type": "PartialCollectionView"
                    },
                    "search": {
                        "@type": "IriTemplate",
                        "template": "/credit_notes{?_order[created_at],_order[amount],status,status[],payment_type,payment_type[],id,id[],createdAt[between],createdAt[gt],createdAt[gte],createdAt[lt],createdAt[lte],amount[between],amount[gt],amount[gte],amount[lt],amount[lte],paidAt[between],paidAt[gt],paidAt[gte],paidAt[lt],paidAt[lte]}",
                        "variableRepresentation": "BasicRepresentation",
                        "mapping": [
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "_order[created_at]",
                                "property": "created_at",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "_order[amount]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "status",
                                "property": "status",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "status[]",
                                "property": "status",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "payment_type",
                                "property": "payment_type",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "payment_type[]",
                                "property": "payment_type",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "id",
                                "property": "id",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "id[]",
                                "property": "id",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "createdAt[between]",
                                "property": "createdAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "createdAt[gt]",
                                "property": "createdAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "createdAt[gte]",
                                "property": "createdAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "createdAt[lt]",
                                "property": "createdAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "createdAt[lte]",
                                "property": "createdAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "amount[between]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "amount[gt]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "amount[gte]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "amount[lt]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "amount[lte]",
                                "property": "amount",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "paidAt[between]",
                                "property": "paidAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "paidAt[gt]",
                                "property": "paidAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "paidAt[gte]",
                                "property": "paidAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "paidAt[lt]",
                                "property": "paidAt",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "paidAt[lte]",
                                "property": "paidAt",
                                "required": false
                            }
                        ]
                    }
                }
            },
            "credit_notes": {
                "summary": "Credit note list example (JSON)",
                "description": "Example response for GET /credit_notes with Accept: application/json",
                "value": [
                    {
                        "id": "240",
                        "created_at": 1770140830,
                        "amount": 0.01,
                        "currency": "EUR",
                        "status": 1,
                        "payment_type": 6,
                        "paid_at": 0,
                        "client_name": "Example Customer Ltd.",
                        "client_address": "Main Street 42\n12345 Example City",
                        "client_info": "John Doe",
                        "vat": 19,
                        "vat_id": "DE123456789",
                        "vat_val": 0,
                        "fee": 0,
                        "fee_val": 0,
                        "net_val": 0.01,
                        "iso2": "DE",
                        "custom_text": "CN-2024-001",
                        "pdf": "/credit_notes/240/pdf",
                        "invoice": "/invoices/79484"
                    }
                ]
            },
            "credit_note.jsonld": {
                "summary": "Credit note detail example (JSON-LD)",
                "description": "Example response for GET /credit_notes/{id} with Accept: application/ld+json",
                "value": {
                    "@context": "/contexts/CreditNote",
                    "@id": "/credit_notes/240",
                    "@type": "CreditNote",
                    "id": "240",
                    "created_at": 1770140830,
                    "amount": 0.01,
                    "currency": "EUR",
                    "status": 1,
                    "payment_type": 6,
                    "paid_at": 0,
                    "client_name": "Example Customer Ltd.",
                    "client_address": "Main Street 42\n12345 Example City",
                    "client_info": "John Doe",
                    "vat": 19,
                    "vat_id": "DE123456789",
                    "vat_val": 0,
                    "fee": 0,
                    "fee_val": 0,
                    "net_val": 0.01,
                    "iso2": "DE",
                    "custom_text": "CN-2024-001",
                    "pdf": "/credit_notes/240/pdf",
                    "invoice": "/invoices/79484"
                }
            },
            "credit_note": {
                "summary": "Credit note detail example",
                "description": "Example response for GET /credit_notes/{id}",
                "value": {
                    "id": "240",
                    "created_at": 1770140830,
                    "amount": 0.01,
                    "currency": "EUR",
                    "status": 1,
                    "payment_type": 6,
                    "paid_at": 0,
                    "client_name": "Example Customer Ltd.",
                    "client_address": "Main Street 42\n12345 Example City",
                    "client_info": "John Doe",
                    "vat": 19,
                    "vat_id": "DE123456789",
                    "vat_val": 0,
                    "fee": 0,
                    "fee_val": 0,
                    "net_val": 0.01,
                    "iso2": "DE",
                    "custom_text": "CN-2024-001",
                    "pdf": "/credit_notes/240/pdf",
                    "invoice": "/invoices/79484"
                }
            },
            "payments.jsonld": {
                "summary": "Payment list (JSON-LD)",
                "description": "Example response for GET /payments with Accept: application/ld+json",
                "value": {
                    "@context": "/contexts/PaymentAttempt",
                    "@id": "/payments",
                    "@type": "Collection",
                    "totalItems": 2,
                    "member": [
                        {
                            "@id": "/payments/123",
                            "@type": "PaymentAttempt",
                            "id": 123,
                            "created_at": 1750152600,
                            "completed_at": null,
                            "status": 20,
                            "amount": 121.38,
                            "net_val": 100,
                            "vat_val": 19.38,
                            "fee_val": 2,
                            "currency": "EUR",
                            "type": 7,
                            "invoice": null,
                            "error": null
                        },
                        {
                            "@id": "/payments/120",
                            "@type": "PaymentAttempt",
                            "id": 120,
                            "created_at": 1750066200,
                            "completed_at": 1750066200,
                            "status": 100,
                            "amount": 100,
                            "net_val": 100,
                            "vat_val": 0,
                            "fee_val": 0,
                            "currency": "EUR",
                            "type": 6,
                            "invoice": "/invoices/456",
                            "error": null
                        }
                    ],
                    "view": {
                        "@id": "/payments?page=1",
                        "@type": "PartialCollectionView"
                    },
                    "search": {
                        "@type": "IriTemplate",
                        "template": "/payments{?page,_order[created_at],status,type,id,id[],created_at,created_at[]}",
                        "variableRepresentation": "BasicRepresentation",
                        "mapping": [
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "page",
                                "property": "page",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "_order[created_at]",
                                "property": "created_at",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "status",
                                "property": "status",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "type",
                                "property": "type",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "id",
                                "property": "id",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "id[]",
                                "property": "id",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "created_at",
                                "property": "created_at",
                                "required": false
                            },
                            {
                                "@type": "IriTemplateMapping",
                                "variable": "created_at[]",
                                "property": "created_at",
                                "required": false
                            }
                        ]
                    }
                }
            },
            "payments": {
                "summary": "Payment list",
                "description": "Example response for GET /payments with Accept: application/json",
                "value": [
                    {
                        "id": 123,
                        "created_at": 1750152600,
                        "completed_at": null,
                        "status": 20,
                        "amount": 121.38,
                        "net_val": 100,
                        "vat_val": 19.38,
                        "fee_val": 2,
                        "currency": "EUR",
                        "type": 7,
                        "invoice": null,
                        "error": null
                    },
                    {
                        "id": 120,
                        "created_at": 1750066200,
                        "completed_at": 1750066200,
                        "status": 100,
                        "amount": 100,
                        "net_val": 100,
                        "vat_val": 0,
                        "fee_val": 0,
                        "currency": "EUR",
                        "type": 6,
                        "invoice": "/invoices/456",
                        "error": null
                    }
                ]
            },
            "payment_stored_card": {
                "summary": "Stored card payment",
                "description": "Example request for creating a payment with a previously saved credit/debit card",
                "value": {
                    "net_val": 100,
                    "type": "stored_card",
                    "method_id": 94
                }
            },
            "payment_sepa": {
                "summary": "SEPA direct debit payment",
                "description": "Example request for creating a payment via SEPA direct debit using an existing mandate",
                "value": {
                    "net_val": 50,
                    "type": "sepa",
                    "method_id": 747
                }
            },
            "payment_created_bank_transfer": {
                "summary": "Bank transfer payment created",
                "description": "Example response for a bank transfer payment (no redirect, invoice created immediately)",
                "value": {
                    "id": 120,
                    "created_at": 1750066200,
                    "completed_at": 1750066200,
                    "status": 100,
                    "amount": 100,
                    "net_val": 100,
                    "vat_val": 0,
                    "fee_val": 0,
                    "currency": "EUR",
                    "type": 6,
                    "invoice": "/invoices/456",
                    "error": null
                }
            },
            "payment.jsonld": {
                "summary": "Payment attempt detail (JSON-LD)",
                "description": "Example response for GET /payments/{id} with Accept: application/ld+json",
                "value": {
                    "@id": "/payments/123",
                    "@type": "PaymentAttempt",
                    "id": 123,
                    "created_at": 1750152600,
                    "completed_at": null,
                    "status": 20,
                    "amount": 121.38,
                    "net_val": 100,
                    "vat_val": 19.38,
                    "fee_val": 2,
                    "currency": "EUR",
                    "type": 7,
                    "invoice": null,
                    "error": null
                }
            },
            "payment": {
                "summary": "Payment attempt detail",
                "description": "Example response for GET /payments/{id} (payment with redirect URL)",
                "value": {
                    "id": 123,
                    "created_at": 1750152600,
                    "completed_at": null,
                    "status": 20,
                    "amount": 121.38,
                    "net_val": 100,
                    "vat_val": 19.38,
                    "fee_val": 2,
                    "currency": "EUR",
                    "type": 7,
                    "invoice": null,
                    "error": null
                }
            },
            "payment_methods": {
                "summary": "Payment methods example",
                "description": "Example response for GET /payment_methods",
                "value": {
                    "sepa_mandate": {
                        "id": 747,
                        "iban_masked": "DExxxxxxxxxxxxxxxx0 00",
                        "last4": "3000",
                        "bank": "",
                        "bic": "37040044",
                        "account_holder": "",
                        "street": "",
                        "postcode": 0,
                        "city": "",
                        "created_at": 1775504768
                    },
                    "stored_cards": [
                        {
                            "id": 94,
                            "last4": "4242",
                            "exp_month": 12,
                            "exp_year": 2034,
                            "brand": "visa",
                            "country": "US",
                            "created_at": 1781775977
                        }
                    ]
                }
            },
            "example_sms_request_minimal": {
                "summary": "Podstawowa wiadomo\u015b\u0107 SMS",
                "description": "Przyk\u0142ad prostej wiadomo\u015bci SMS zawieraj\u0105cej tylko wymagane pola",
                "value": {
                    "text": "Cze\u015b\u0107! To jest testowa wiadomo\u015b\u0107 SMS.",
                    "sender_id": "+491701234567",
                    "phone": "+14155552671"
                }
            },
            "example_sms_request_text2speech": {
                "summary": "Wiadomo\u015b\u0107 g\u0142osowa z tekstem zwyk\u0142ym",
                "description": "Przyk\u0142ad wiadomo\u015bci g\u0142osowej text-to-speech z tre\u015bci\u0105 w postaci zwyk\u0142ego tekstu",
                "value": {
                    "text": "Cze\u015b\u0107, ta wiadomo\u015b\u0107 zostanie przekonwertowana na mow\u0119 i dostarczona jako po\u0142\u0105czenie g\u0142osowe.",
                    "sender_id": "+491701234567",
                    "phone": "+14155552671",
                    "service_code": "text2speech",
                    "voice_lang": "EN"
                }
            },
            "example_sms_request_text2speech_ssml": {
                "summary": "Wiadomo\u015b\u0107 g\u0142osowa z SSML",
                "description": "Przyk\u0142ad text-to-speech ze znacznikami SSML dla ulepszonej syntezy mowy",
                "value": {
                    "text": "<speak>Tw\u00f3j kod weryfikacyjny to <say-as interpret-as=\"characters\">A1B2C3</say-as>.<break time=\"1s\"/>Wprowad\u017a go teraz.</speak>",
                    "sender_id": "+491701234567",
                    "phone": "+14155552671",
                    "service_code": "text2speech",
                    "voice_lang": "EN"
                }
            },
            "example_sms_request_text2speech_single_call": {
                "summary": "Wiadomo\u015b\u0107 g\u0142osowa z pojedynczym po\u0142\u0105czeniem (bez ponownych pr\u00f3b)",
                "description": "Przyk\u0142ad wiadomo\u015bci g\u0142osowej text-to-speech ze zwyk\u0142\u0105 tre\u015bci\u0105 tekstow\u0105 i pojedyncz\u0105 pr\u00f3b\u0105 dostarczenia bez ponownych pr\u00f3b",
                "value": {
                    "text": "Cze\u015b\u0107, ta wiadomo\u015b\u0107 zostanie przekonwertowana na mow\u0119 i dostarczona jako po\u0142\u0105czenie g\u0142osowe.",
                    "sender_id": "+491701234567",
                    "phone": "+14155552671",
                    "service_code": "text2speech",
                    "voice_lang": "PL",
                    "attempts_count_max": 1
                }
            },
            "example_sms_request_unicode": {
                "summary": "Wiadomo\u015b\u0107 SMS w formacie Unicode",
                "description": "Przyk\u0142ad SMS-a ze znakami Unicode (emoji, znaki specjalne, pisma nie\u0142aci\u0144skie)",
                "value": {
                    "text": "\\ud83c\\udf89 Witamy! \u00a1Bienvenidos! \\u6b22\\u8fce\\u5149\\u4e34! \\u0645\\u0631\\u062d\\u0628\\u0627 \\u0628\\u0643\\u0645!",
                    "sender_id": "+491701234567",
                    "phone": "+14155552671",
                    "is_unicode": true
                }
            },
            "example_sms_request_translit": {
                "summary": "Wiadomo\u015b\u0107 poddana transliteracji",
                "description": "Przyk\u0142ad wiadomo\u015bci z transliteracj\u0105 znak\u00f3w spoza GSM do czystego SMS-a GSM (patrz przyk\u0142ad odpowiedzi)",
                "value": {
                    "text": "Nie wszystkie znaki specjalne s\u0105 zawarte w zestawie znak\u00f3w GSM, np. tylko prawid\u0142owy apostrof: samoch\u00f3d Anny dzia\u0142a, ale nie dom Maxa. Niekt\u00f3re akcenty dzia\u0142aj\u0105: Andr\u00e9, ale nie wszystkie: H\u00e1ns. Zwyk\u0142e \u0142\u0105czniki - dzia\u0142aj\u0105, ale d\u0142u\u017csze ju\u017c nie: \u2013",
                    "sender_id": "Test",
                    "phone": "+14155552671",
                    "is_unicode": false
                }
            },
            "example_sms_request_delete_text": {
                "summary": "Wiadomo\u015b\u0107 z usuni\u0119ciem tekstu",
                "description": "Przyk\u0142ad SMS-a, w kt\u00f3rym tekst wiadomo\u015bci zostanie usuni\u0119ty po dostarczeniu ze wzgl\u0119d\u00f3w bezpiecze\u0144stwa i prywatno\u015bci",
                "value": {
                    "text": "Tw\u00f3j kod weryfikacyjny to: 123456. Ta wiadomo\u015b\u0107 zostanie usuni\u0119ta po dostarczeniu.",
                    "sender_id": "+491701234567",
                    "phone": "+14155552671",
                    "is_text_deleted": true
                }
            },
            "example_sms_request_callback": {
                "summary": "SMS z danymi callback",
                "description": "Przyk\u0142ad SMS-a z danymi callback do powiadomie\u0144 o statusie dostarczenia i niestandardowego \u015bledzenia",
                "value": {
                    "text": "Twoje zam\u00f3wienie #12345 zosta\u0142o wys\u0142ane i jest w drodze!",
                    "sender_id": "+491701234567",
                    "phone": "+14155552671",
                    "callback_data": "order_12345_shipping_notification"
                }
            },
            "example_sms_response_basic_sms_jsonld": {
                "summary": "Basic sms Message response",
                "description": "API response for a successfully request with minimum parameters",
                "value": {
                    "@context": "/contexts/sms",
                    "@id": "/sms/11111111-2222-3333-4444-555555555555",
                    "@type": "sms",
                    "text": "Hello! This is a test SMS message.",
                    "sender_id": "+19388888025",
                    "phone": "+14155552671",
                    "delivery_at": 0,
                    "status_code": 0,
                    "gateway_sent_at": 0,
                    "source": 0,
                    "dlr_code": 0,
                    "ip": "10.1.1.1",
                    "created_at": 1755868416,
                    "is_unicode": false,
                    "uuid": "11111111-2222-3333-4444-555555555555",
                    "iso2": "US",
                    "voice_lang": null,
                    "parts_count": 1,
                    "chars_count": 34,
                    "callback_data": null,
                    "bulk_id": null,
                    "key_id": 8291,
                    "service_code": "direct",
                    "is_text_deleted": false,
                    "price": 0.056,
                    "is_sent": false,
                    "requests": "/sms/11111111-2222-3333-4444-555555555555/requests",
                    "clicks": "/sms/11111111-2222-3333-4444-555555555555/clicks"
                }
            },
            "example_sms_response_translit_jsonld": {
                "summary": "Transliterated message response",
                "description": "API response for a successfully sent transliterated SMS message",
                "value": {
                    "@context": "/contexts/sms",
                    "@id": "/sms/11111111-2222-3333-4444-555555555555",
                    "@type": "sms",
                    "text": "Nicht alle Sonderzeichen sind im GSM Zeichensatz enthalten, z.B. nur das richtige Apostroph: Anna's Auto geht, aber nicht Max's Haus. Akzente gehen teilweise: Andr\u00e9, jedoch nicht alle: Hans. Normale Bindestriche - gehen, nicht allerdings l\u00e4ngere: -",
                    "sender_id": "Test",
                    "phone": "+491701234567",
                    "delivery_at": 0,
                    "status_code": 100,
                    "gateway_sent_at": 1755780931,
                    "source": 0,
                    "dlr_code": 16,
                    "ip": "1.1.1.1",
                    "created_at": 1755780931,
                    "is_unicode": false,
                    "uuid": "11111111-2222-3333-4444-555555555555",
                    "iso2": "DE",
                    "voice_lang": "DE",
                    "parts_count": 2,
                    "chars_count": 248,
                    "callback_data": null,
                    "bulk_id": null,
                    "key_id": 200100,
                    "service_code": "direct",
                    "is_text_deleted": false,
                    "price": 0.13,
                    "is_sent": true,
                    "requests": "/sms/11111111-2222-3333-4444-555555555555/requests",
                    "clicks": "/sms/11111111-2222-3333-4444-555555555555/clicks"
                }
            },
            "example_sms_response_delete_text_jsonld": {
                "summary": "Message with text deletion response",
                "description": "API response for a successfully sent SMS with text deletion enabled",
                "value": {
                    "@context": "/contexts/sms",
                    "@id": "/sms/11111111-2222-3333-4444-555555555555",
                    "@type": "sms",
                    "text": "",
                    "sender_id": "USSender",
                    "phone": "+14155552671",
                    "delivery_at": 0,
                    "status_code": 100,
                    "gateway_sent_at": 1755783151,
                    "source": 0,
                    "dlr_code": 0,
                    "ip": "10.1.1.1",
                    "created_at": 1755783151,
                    "is_unicode": false,
                    "uuid": "11111111-2222-3333-4444-555555555555",
                    "iso2": "US",
                    "voice_lang": null,
                    "parts_count": 1,
                    "chars_count": 79,
                    "callback_data": null,
                    "bulk_id": null,
                    "key_id": 8207,
                    "service_code": "direct",
                    "is_text_deleted": true,
                    "price": 0.07,
                    "is_sent": true,
                    "requests": "/sms/11111111-2222-3333-4444-555555555555/requests",
                    "clicks": "/sms/11111111-2222-3333-4444-555555555555/clicks"
                }
            },
            "example_sms_response_basic_sms": {
                "summary": "Basic sms Message response",
                "description": "API response for a successfully request with minimum parameters",
                "value": {
                    "text": "Hello! This is a test SMS message.",
                    "sender_id": "+19388888025",
                    "phone": "+14155552671",
                    "delivery_at": 0,
                    "status_code": 0,
                    "gateway_sent_at": 0,
                    "source": 0,
                    "dlr_code": 0,
                    "ip": "10.1.1.1",
                    "created_at": 1755868416,
                    "is_unicode": false,
                    "uuid": "11111111-2222-3333-4444-555555555555",
                    "iso2": "US",
                    "voice_lang": null,
                    "parts_count": 1,
                    "chars_count": 34,
                    "callback_data": null,
                    "bulk_id": null,
                    "key_id": 8291,
                    "service_code": "direct",
                    "is_text_deleted": false,
                    "price": 0.056,
                    "is_sent": false,
                    "requests": "/sms/11111111-2222-3333-4444-555555555555/requests",
                    "clicks": "/sms/11111111-2222-3333-4444-555555555555/clicks"
                }
            },
            "example_sms_response_translit": {
                "summary": "Odpowied\u017a dla wiadomo\u015bci poddanej transliteracji",
                "description": "Odpowied\u017a API dla pomy\u015blnie wys\u0142anej wiadomo\u015bci SMS poddanej transliteracji",
                "value": {
                    "text": "Nicht alle Sonderzeichen sind im GSM Zeichensatz enthalten, z.B. nur das richtige Apostroph: Anna's Auto geht, aber nicht Max's Haus. Akzente gehen teilweise: Andr\u00e9, jedoch nicht alle: Hans. Normale Bindestriche - gehen, nicht allerdings l\u00e4ngere: -",
                    "sender_id": "Test",
                    "phone": "+491701234567",
                    "delivery_at": 0,
                    "status_code": 100,
                    "gateway_sent_at": 1755780931,
                    "source": 0,
                    "dlr_code": 16,
                    "ip": "1.1.1.1",
                    "created_at": 1755780931,
                    "is_unicode": false,
                    "uuid": "11111111-2222-3333-4444-555555555555",
                    "iso2": "DE",
                    "voice_lang": "DE",
                    "parts_count": 2,
                    "chars_count": 248,
                    "callback_data": null,
                    "bulk_id": null,
                    "key_id": 200100,
                    "service_code": "direct",
                    "is_text_deleted": false,
                    "price": 0.13,
                    "is_sent": true,
                    "requests": "/sms/11111111-2222-3333-4444-555555555555/requests",
                    "clicks": "/sms/11111111-2222-3333-4444-555555555555/clicks"
                }
            },
            "example_sms_response_delete_text": {
                "summary": "Odpowied\u017a dla wiadomo\u015bci z usuni\u0119ciem tekstu",
                "description": "Odpowied\u017a API dla pomy\u015blnie wys\u0142anego SMS-a z w\u0142\u0105czonym usuwaniem tekstu",
                "value": {
                    "text": "",
                    "sender_id": "USSender",
                    "phone": "+14155552671",
                    "delivery_at": 0,
                    "status_code": 100,
                    "gateway_sent_at": 1755783151,
                    "source": 0,
                    "dlr_code": 0,
                    "ip": "10.1.1.1",
                    "created_at": 1755783151,
                    "is_unicode": false,
                    "uuid": "11111111-2222-3333-4444-555555555555",
                    "iso2": "US",
                    "voice_lang": null,
                    "parts_count": 1,
                    "chars_count": 79,
                    "callback_data": null,
                    "bulk_id": null,
                    "key_id": 8207,
                    "service_code": "direct",
                    "is_text_deleted": true,
                    "price": 0.07,
                    "is_sent": true,
                    "requests": "/sms/11111111-2222-3333-4444-555555555555/requests",
                    "clicks": "/sms/11111111-2222-3333-4444-555555555555/clicks"
                }
            },
            "blocked_numbers_get_jsonld": {
                "summary": "Blocked numbers list (JSON-LD)",
                "description": "Example response for GET /blocked_numbers with Accept: application/ld+json",
                "value": {
                    "member": [
                        {
                            "@id": "/blocked_numbers/1",
                            "@type": "BlockedNumber",
                            "id": 1,
                            "number": "+491701234567",
                            "type": 1,
                            "added_at": "2025-08-22T08:06:56+00:00"
                        }
                    ],
                    "hydra:totalItems": 1,
                    "hydra:view": {
                        "@id": "/blocked_numbers?page=1",
                        "@type": "hydra:PartialCollectionView",
                        "hydra:first": "/blocked_numbers?page=1",
                        "hydra:last": "/blocked_numbers?page=1"
                    },
                    "hydra:search": {
                        "@type": "hydra:IriTemplate",
                        "hydra:template": "/blocked_numbers{?number,type}",
                        "hydra:variableRepresentation": "BasicRepresentation",
                        "hydra:mapping": []
                    }
                }
            },
            "blocked_numbers_get": {
                "summary": "Blocked numbers list",
                "description": "Example response for GET /blocked_numbers with Accept: application/json",
                "value": [
                    {
                        "id": 1,
                        "number": "+491701234567",
                        "type": 1,
                        "added_at": "2025-08-22T08:06:56+00:00"
                    }
                ]
            },
            "blocked_number_request": {
                "summary": "Block a phone number",
                "description": "Example request to block a phone number",
                "value": {
                    "number": "+491701234567"
                }
            },
            "blocked_number_post_jsonld": {
                "summary": "Blocked number created (JSON-LD)",
                "description": "Example response for POST /blocked_numbers with Accept: application/ld+json",
                "value": {
                    "@context": "/contexts/BlockedNumber",
                    "@id": "/blocked_numbers/1",
                    "@type": "BlockedNumber",
                    "id": 1,
                    "number": "+491701234567",
                    "type": 1,
                    "added_at": "2025-08-22T08:06:56+00:00"
                }
            },
            "blocked_number_post": {
                "summary": "Blocked number created",
                "description": "Example response for POST /blocked_numbers with Accept: application/json",
                "value": {
                    "id": 1,
                    "number": "+491701234567",
                    "type": 1,
                    "added_at": "2025-08-22T08:06:56+00:00"
                }
            },
            "blocked_number_get_jsonld": {
                "summary": "Blocked number (JSON-LD)",
                "description": "Example response for GET /blocked_numbers/{id} with Accept: application/ld+json",
                "value": {
                    "@context": "/contexts/BlockedNumber",
                    "@id": "/blocked_numbers/1",
                    "@type": "BlockedNumber",
                    "id": 1,
                    "number": "+491701234567",
                    "type": 1,
                    "added_at": "2025-08-22T08:06:56+00:00"
                }
            },
            "blocked_number_get": {
                "summary": "Blocked number",
                "description": "Example response for GET /blocked_numbers/{id} with Accept: application/json",
                "value": {
                    "id": 1,
                    "number": "+491701234567",
                    "type": 1,
                    "added_at": "2025-08-22T08:06:56+00:00"
                }
            },
            "example_verify_code_request": {
                "summary": "Verify code with multi-channel routing",
                "description": "Create a verification code with a 3-step routing strategy: Telegram, Voice, and SMS.",
                "value": {
                    "phone": "+491701234567",
                    "code": "1234",
                    "is_code_deleted": false,
                    "payload": "yours payload here",
                    "lang": "EN",
                    "routing_strategy": [
                        {
                            "channel": "telegram",
                            "timeout_sec": 30
                        },
                        {
                            "channel": "voice",
                            "sender_id": "LOX24",
                            "template": "Your code is {{code}}"
                        },
                        {
                            "channel": "sms",
                            "sender_id": "LOX24",
                            "template": "Your code is {{code}}"
                        }
                    ]
                }
            },
            "example_verify_code_request_telegram": {
                "summary": "Verify code via Telegram",
                "description": "Send a verification code through a Telegram bot. The code will be delivered as a Telegram message to the user's chat.",
                "value": {
                    "phone": "+491701234567",
                    "lang": "EN",
                    "routing_strategy": [
                        {
                            "channel": "telegram",
                            "timeout_sec": 60
                        }
                    ]
                }
            },
            "example_verify_code_request_voice": {
                "summary": "Verify code via Voice call",
                "description": "Deliver a verification code through an automated voice call. The code is read aloud to the recipient using a text-to-speech template.",
                "value": {
                    "phone": "+491701234567",
                    "code_length": 6,
                    "lang": "EN",
                    "routing_strategy": [
                        {
                            "channel": "voice",
                            "sender_id": "LOX24",
                            "template": "Your verification code is {{code}}"
                        }
                    ]
                }
            },
            "example_verify_code_response": {
                "summary": "Verify code response with multi-channel routing",
                "description": "Successful response after creating a verification code with a 3-step routing strategy. Telegram and voice channels failed, SMS succeeded.",
                "value": {
                    "id": "d7ad7539-fb8f-4dbb-a7f7-7c40babec969",
                    "user_id": 12345,
                    "phone": "+491701234567",
                    "routing_strategy": [
                        {
                            "channel": "telegram",
                            "timeout_sec": 30
                        },
                        {
                            "channel": "voice",
                            "sender_id": "LOX24",
                            "template": "Your code is {{code}}"
                        },
                        {
                            "channel": "sms",
                            "sender_id": "LOX24",
                            "template": "Your code is {{code}}"
                        }
                    ],
                    "status": 10,
                    "delivered_channel": "sms",
                    "cost": 120,
                    "currency": "EUR",
                    "code": "1234",
                    "code_length": 4,
                    "payload": "yours payload here",
                    "lang": "EN",
                    "created_at": 1779903448,
                    "updated_at": 1779903510,
                    "history": [
                        {
                            "id": "bccaff09-59f2-11f1-a685-7c10c91d54a1",
                            "channel": "telegram",
                            "status": 20,
                            "processed_at": 1779903478,
                            "external_id": "tg_msg_001"
                        },
                        {
                            "id": "bccaff09-59f2-11f1-a685-7c10c91d54a2",
                            "channel": "voice",
                            "status": 20,
                            "processed_at": 1779903490,
                            "external_id": "voice_msg_002"
                        },
                        {
                            "id": "bccaff09-59f2-11f1-a685-7c10c91d54a3",
                            "channel": "sms",
                            "status": 10,
                            "processed_at": 1779903510,
                            "external_id": "sms_msg_003"
                        }
                    ],
                    "is_code_deleted": false
                }
            },
            "webhooks.examples.sms-delivery-event": {
                "summary": "Zdarzenie dostarczenia SMS",
                "description": "Zdarzenie wysy\u0142ane, gdy zmienia si\u0119 status dostarczenia SMS-a",
                "value": {
                    "id": "a3cd6e19-8af2-498d-ad07-c7840f1b4ac8",
                    "api_version": "2022-05-25",
                    "name": "sms.delivery",
                    "created_at": 1653378603,
                    "attempt_total": 4,
                    "attempt_number": 1,
                    "data": {
                        "id": "d6c12ac4-cc7d-11ec-b6da-525400bbb7dc",
                        "key_id": 8207,
                        "dlr_code": 1,
                        "status_code": 100,
                        "callback_data": "some data from user's request here"
                    },
                    "notification_task_id": "3378de83-de66-4de8-9d29-2b10d41bb641"
                }
            },
            "webhooks.examples.sms-delivery-event-expired": {
                "summary": "Zdarzenie wyga\u015bni\u0119cia dostarczenia SMS",
                "description": "Zdarzenie wysy\u0142ane, gdy dostarczenie SMS-a wygasa",
                "value": {
                    "id": "a3cd6e19-8af2-498d-ad07-c7840f1b4ac8",
                    "api_version": "2022-05-25",
                    "name": "sms.delivery",
                    "created_at": 1653378603,
                    "attempt_total": 4,
                    "attempt_number": 1,
                    "data": {
                        "id": "d6c12ac4-cc7d-11ec-b6da-525400bbb7dc",
                        "key_id": 8207,
                        "dlr_code": 8,
                        "status_code": 100,
                        "callback_data": "order-12345"
                    },
                    "notification_task_id": "3378de83-de66-4de8-9d29-2b10d41bb641"
                }
            },
            "webhooks.examples.sms-incoming-event": {
                "summary": "Zdarzenie wiadomo\u015bci SMS przychodz\u0105cej",
                "description": "Zdarzenie wysy\u0142ane po odebraniu wiadomo\u015bci SMS przychodz\u0105cej",
                "value": {
                    "id": "d6ff9b42-1da5-711f-df20-f0173a4e7df1",
                    "api_version": "2022-05-25",
                    "name": "sms.incoming",
                    "created_at": 1653378703,
                    "attempt_total": 1,
                    "attempt_number": 1,
                    "data": {
                        "id": "e7d23bd5-dd8e-22fd-c7eb-636511ccc8ed",
                        "to": "+1234567890",
                        "from": "+490987654321",
                        "text": "Hello, this is a reply message",
                        "received_at": 1653378703,
                        "msg_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                    },
                    "notification_task_id": "4489ef94-ef77-5ef9-ae2a-3c21e52cc752"
                }
            },
            "webhooks.examples.bulk-email-parsing-fail-event": {
                "summary": "Zdarzenie b\u0142\u0119du analizy masowej wiadomo\u015bci e-mail",
                "description": "Zdarzenie wysy\u0142ane, gdy analiza masowej wiadomo\u015bci e-mail nie powiedzie si\u0119",
                "value": {
                    "id": "d6ff9b42-1da5-711f-df20-f0173a4e7df1",
                    "api_version": "2022-05-25",
                    "name": "bulk.email.parsing.fail",
                    "created_at": 1653378903,
                    "attempt_total": 1,
                    "attempt_number": 1,
                    "data": {
                        "field": "to",
                        "description": "Invalid phone number format",
                        "email": {
                            "id": "email-124",
                            "from": "sender@example.com",
                            "to": "bulk@your-domain.com",
                            "subject": "SMS Bulk Request",
                            "body": "Invalid message content"
                        }
                    },
                    "notification_task_id": "6601ab16-ca99-7fe1-cf4c-5e43f74ee974"
                }
            },
            "webhooks.examples.bulk-email-parsing-success-event": {
                "summary": "Zdarzenie sukcesu analizy masowej wiadomo\u015bci e-mail",
                "description": "Zdarzenie wysy\u0142ane, gdy masowa wiadomo\u015b\u0107 e-mail zostanie pomy\u015blnie przeanalizowana",
                "value": {
                    "id": "d6ff9b42-1da5-711f-df20-f0173a4e7df1",
                    "api_version": "2022-05-25",
                    "name": "bulk.email.parsing.success",
                    "created_at": 1653378803,
                    "attempt_total": 1,
                    "attempt_number": 1,
                    "data": {
                        "bulk": {
                            "id": "f8a34ce6-ee9f-33ae-d8fc-747622ddd9fe",
                            "status": 10,
                            "created_at": 1653378803
                        },
                        "email": {
                            "id": "email-123",
                            "from": "sender@example.com",
                            "to": "bulk@your-domain.com",
                            "subject": "SMS Bulk Request",
                            "body": "Message content here"
                        }
                    },
                    "notification_task_id": "5590fa05-fb88-6fc0-bf3b-4d32f63dd863"
                }
            },
            "webhooks.examples.fraud-check-done-event": {
                "summary": "Zdarzenie zako\u0144czenia sprawdzenia oszustwa",
                "description": "Zdarzenie wysy\u0142ane po zako\u0144czeniu sprawdzenia wykrywania oszustw",
                "value": {
                    "id": "a7bc0d53-2ab6-822c-df31-a1284b5f8ea2",
                    "api_version": "2022-05-25",
                    "name": "fraud-check.done",
                    "created_at": 1653379003,
                    "attempt_total": 1,
                    "attempt_number": 1,
                    "data": {
                        "check_id": "fraud-check-123",
                        "result": "clean",
                        "confidence_score": 0.95
                    },
                    "notification_task_id": "7712ab27-cd00-8ef2-da5d-6f54f85ff085"
                }
            },
            "webhooks.examples.sms-email-parsing-success-event": {
                "summary": "SMS Email Parsing Success Event",
                "description": "Event sent when email to SMS parsing is successful",
                "value": {
                    "id": "d6ff9b42-1da5-711f-df20-f0173a4e7df1",
                    "api_version": "2022-05-25",
                    "name": "sms.email.parsing.success",
                    "created_at": 1653378803,
                    "attempt_total": 1,
                    "attempt_number": 1,
                    "data": {
                        "sms": [
                            {
                                "uuid": "f8a34ce6-ee9f-33ae-d8fc-747622ddd9fe",
                                "to": "+4915123456789",
                                "text": "Hello, this is your SMS message content parsed from email."
                            }
                        ],
                        "email": {
                            "id": "email-456",
                            "from": "sender@example.com",
                            "to": "sms@your-domain.com",
                            "subject": "SMS Request",
                            "body": "Send SMS to +4915123456789: Hello, this is your SMS message content parsed from email."
                        }
                    },
                    "notification_task_id": "5590fa05-fb88-6fc0-bf3b-4d32f63dd863"
                }
            },
            "webhooks.examples.sms-email-parsing-fail-event": {
                "summary": "SMS Email Parsing Fail Event",
                "description": "Event sent when email to SMS parsing fails",
                "value": {
                    "id": "a3cd6e19-8af2-498d-ad07-c7840f1b4ac8",
                    "api_version": "2022-05-25",
                    "name": "sms.email.parsing.fail",
                    "created_at": 1653378603,
                    "attempt_total": 1,
                    "attempt_number": 1,
                    "data": {
                        "field": "recipient",
                        "description": "Invalid phone number format",
                        "email": {
                            "id": "email-789",
                            "from": "sender@example.com",
                            "to": "sms@your-domain.com",
                            "subject": "SMS Request",
                            "body": "Send SMS to invalid-phone: Test message"
                        }
                    },
                    "notification_task_id": "3378de83-de66-4de8-9d29-2b10d41bb641"
                }
            },
            "webhooks.examples.verify-code-success-event": {
                "summary": "Verify Code Success Event",
                "description": "Event sent when the verification code was successfully delivered and verified",
                "value": {
                    "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
                    "api_version": "2022-05-25",
                    "name": "verify_code.success",
                    "created_at": 1735689600,
                    "attempt_total": 3,
                    "attempt_number": 1,
                    "data": {
                        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "user_id": 12345,
                        "phone": "+4915112345678",
                        "routing_strategy": [
                            {
                                "channel": "telegram",
                                "timeout_sec": 30,
                                "sender_id": "LOX24"
                            },
                            {
                                "channel": "sms",
                                "timeout_sec": 60,
                                "sender_id": "LOX24"
                            }
                        ],
                        "status": 10,
                        "delivered_channel": "telegram",
                        "cost": 5,
                        "currency": "EUR",
                        "code": "1234",
                        "code_length": 4,
                        "payload": "session_abc123",
                        "created_at": 1735689540,
                        "updated_at": 1735689600,
                        "history": [
                            {
                                "id": "a1b2c3d4-d5e6-7890-abcd-ef1234567890",
                                "channel": "telegram",
                                "status": 10,
                                "processed_at": 1735689570,
                                "external_id": "tg_msg_001"
                            }
                        ],
                        "is_code_deleted": false
                    },
                    "notification_task_id": "3378de83-de66-4de8-9d29-2b10d41bb641"
                }
            },
            "webhooks.examples.verify-code-failed-event": {
                "summary": "Verify Code Failed Event",
                "description": "Event sent when the verification code delivery failed across all channels",
                "value": {
                    "id": "c93a1f2e-4b5d-4c6a-8e7f-9d0a1b2c3d4e",
                    "api_version": "2022-05-25",
                    "name": "verify_code.failed",
                    "created_at": 1735689720,
                    "attempt_total": 3,
                    "attempt_number": 1,
                    "data": {
                        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "user_id": 12345,
                        "phone": "+4915112345678",
                        "routing_strategy": [
                            {
                                "channel": "telegram",
                                "timeout_sec": 30,
                                "sender_id": "LOX24"
                            },
                            {
                                "channel": "sms",
                                "timeout_sec": 60,
                                "sender_id": "LOX24"
                            }
                        ],
                        "status": 20,
                        "delivered_channel": null,
                        "cost": 5,
                        "currency": "EUR",
                        "code": "5678",
                        "code_length": 4,
                        "payload": null,
                        "created_at": 1735689540,
                        "updated_at": 1735689720,
                        "history": [
                            {
                                "id": "a1b2c3d4-d5e6-7890-abcd-ef1234567890",
                                "channel": "telegram",
                                "status": 20,
                                "processed_at": 1735689570,
                                "external_id": "tg_msg_002"
                            },
                            {
                                "id": "b5a6c7d8-e9f0-1234-abcd-ef5678901234",
                                "channel": "sms",
                                "status": 20,
                                "processed_at": 1735689660,
                                "external_id": "sms_msg_003"
                            }
                        ],
                        "is_code_deleted": false
                    },
                    "notification_task_id": "44a9ef94-ef77-5ef9-0e3a-3c21d52cc752"
                }
            },
            "webhooks.examples.verify-code-channel-updated-event": {
                "summary": "Verify Code Channel Updated Event",
                "description": "Event sent when the verification code task status changes during processing",
                "value": {
                    "id": "a7b8c9d0-1e2f-4a3b-4c5d-6e7f8a9b0c1d",
                    "api_version": "2022-05-25",
                    "name": "verify_code.channel.updated",
                    "created_at": 1735689650,
                    "attempt_total": 3,
                    "attempt_number": 1,
                    "data": {
                        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "user_id": 12345,
                        "phone": "+4915112345678",
                        "routing_strategy": [
                            {
                                "channel": "telegram",
                                "timeout_sec": 30,
                                "sender_id": "LOX24"
                            },
                            {
                                "channel": "sms",
                                "timeout_sec": 60,
                                "sender_id": "LOX24"
                            }
                        ],
                        "status": 5,
                        "delivered_channel": null,
                        "cost": 10,
                        "currency": "EUR",
                        "code": "1234",
                        "code_length": 4,
                        "payload": "session_abc123",
                        "created_at": 1735689540,
                        "updated_at": 1735689650,
                        "history": [
                            {
                                "id": "a1b2c3d4-d5e6-7890-abcd-ef1234567890",
                                "channel": "telegram",
                                "status": 20,
                                "processed_at": 1735689575,
                                "external_id": "tg_msg_001"
                            },
                            {
                                "id": "b5a6c7d8-e9f0-1234-abcd-ef5678901234",
                                "channel": "sms",
                                "status": 5,
                                "processed_at": 1735689640,
                                "external_id": "sms_msg_002"
                            }
                        ],
                        "is_code_deleted": false
                    },
                    "notification_task_id": "88edf307-fd11-4fd1-0a7e-7b65f96ff086"
                }
            },
            "webhooks.examples.verify-code-channel-sent-event": {
                "summary": "Verify Code Channel Sent Event",
                "description": "Event sent when the verification code was dispatched through a specific channel",
                "value": {
                    "id": "d04b2f3e-5c6d-4d7b-9f8a-0e1b2c3d4e5f",
                    "api_version": "2022-05-25",
                    "name": "verify_code.channel.sent",
                    "created_at": 1735689555,
                    "attempt_total": 3,
                    "attempt_number": 1,
                    "data": {
                        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "user_id": 12345,
                        "phone": "+4915112345678",
                        "routing_strategy": [
                            {
                                "channel": "telegram",
                                "timeout_sec": 30,
                                "sender_id": "LOX24"
                            },
                            {
                                "channel": "sms",
                                "timeout_sec": 60,
                                "sender_id": "LOX24"
                            }
                        ],
                        "status": 5,
                        "delivered_channel": null,
                        "cost": 5,
                        "currency": "EUR",
                        "code": "1234",
                        "code_length": 4,
                        "payload": "session_abc123",
                        "created_at": 1735689540,
                        "updated_at": 1735689555,
                        "history": [
                            {
                                "id": "a1b2c3d4-d5e6-7890-abcd-ef1234567890",
                                "channel": "telegram",
                                "status": 10,
                                "processed_at": 1735689555,
                                "external_id": "tg_msg_001"
                            }
                        ],
                        "is_code_deleted": false,
                        "channel": {
                            "id": "a1b2c3d4-d5e6-7890-abcd-ef1234567890",
                            "channel": "telegram",
                            "status": 10,
                            "processed_at": 1735689555,
                            "external_id": "tg_msg_001",
                            "error": null,
                            "cost": 5
                        }
                    },
                    "notification_task_id": "55baf095-fa88-6fa9-1f4b-4d32e63dd863"
                }
            },
            "webhooks.examples.verify-code-channel-success-event": {
                "summary": "Verify Code Channel Success Event",
                "description": "Event sent when a specific channel has confirmed successful delivery of the verification code",
                "value": {
                    "id": "b3e4f5a6-7c8d-4e9f-0a1b-2c3d4e5f6a7b",
                    "api_version": "2022-05-25",
                    "name": "verify_code.channel.success",
                    "created_at": 1735689575,
                    "attempt_total": 3,
                    "attempt_number": 1,
                    "data": {
                        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "user_id": 12345,
                        "phone": "+4915112345678",
                        "routing_strategy": [
                            {
                                "channel": "telegram",
                                "timeout_sec": 30,
                                "sender_id": "LOX24"
                            },
                            {
                                "channel": "sms",
                                "timeout_sec": 60,
                                "sender_id": "LOX24"
                            }
                        ],
                        "status": 10,
                        "delivered_channel": "telegram",
                        "cost": 5,
                        "currency": "EUR",
                        "code": "1234",
                        "code_length": 4,
                        "payload": "session_abc123",
                        "created_at": 1735689540,
                        "updated_at": 1735689575,
                        "history": [
                            {
                                "id": "a1b2c3d4-d5e6-7890-abcd-ef1234567890",
                                "channel": "telegram",
                                "status": 10,
                                "processed_at": 1735689570,
                                "external_id": "tg_msg_001"
                            }
                        ],
                        "is_code_deleted": false,
                        "channel": {
                            "id": "a1b2c3d4-d5e6-7890-abcd-ef1234567890",
                            "channel": "telegram",
                            "status": 10,
                            "processed_at": 1735689570,
                            "external_id": "tg_msg_001",
                            "error": null,
                            "cost": 5
                        }
                    },
                    "notification_task_id": "66cbf195-fb99-4fb9-8a5c-5e43f74ee864"
                }
            },
            "webhooks.examples.verify-code-channel-failed-event": {
                "summary": "Verify Code Channel Failed Event",
                "description": "Event sent when a specific channel has failed to deliver the verification code",
                "value": {
                    "id": "e5f6a7b8-9c0d-4e1f-2a3b-4c5d6e7f8a9b",
                    "api_version": "2022-05-25",
                    "name": "verify_code.channel.failed",
                    "created_at": 1735689630,
                    "attempt_total": 3,
                    "attempt_number": 1,
                    "data": {
                        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "user_id": 12345,
                        "phone": "+4915112345678",
                        "routing_strategy": [
                            {
                                "channel": "telegram",
                                "timeout_sec": 30,
                                "sender_id": "LOX24"
                            },
                            {
                                "channel": "sms",
                                "timeout_sec": 60,
                                "sender_id": "LOX24"
                            }
                        ],
                        "status": 5,
                        "delivered_channel": null,
                        "cost": 5,
                        "currency": "EUR",
                        "code": "1234",
                        "code_length": 4,
                        "payload": "session_abc123",
                        "created_at": 1735689540,
                        "updated_at": 1735689630,
                        "history": [
                            {
                                "id": "a1b2c3d4-d5e6-7890-abcd-ef1234567890",
                                "channel": "telegram",
                                "status": 20,
                                "processed_at": 1735689575,
                                "external_id": "tg_msg_001"
                            }
                        ],
                        "is_code_deleted": false,
                        "channel": {
                            "id": "a1b2c3d4-d5e6-7890-abcd-ef1234567890",
                            "channel": "telegram",
                            "status": 20,
                            "processed_at": 1735689575,
                            "external_id": "tg_msg_001",
                            "error": "Delivery timeout: no confirmation received within 30 seconds",
                            "cost": 5
                        }
                    },
                    "notification_task_id": "77dcf296-fc00-4fc0-9b6d-6f54e85ff975"
                }
            }
        },
        "responses": {
            "400-bad-request": {
                "description": "Nieprawid\u0142owe dane wej\u015bciowe"
            },
            "401-unauthorized": {
                "description": "Identyfikator klienta lub klucz API nie jest aktywny albo jest nieprawid\u0142owy!"
            },
            "403-forbidden": {
                "description": "Konto nie jest aktywowane. Poczekaj lub skontaktuj si\u0119 z pomoc\u0105 techniczn\u0105!"
            },
            "429-too-many-requests": {
                "description": "Adres IP zosta\u0142 tymczasowo zablokowany, poniewa\u017c w kr\u00f3tkim czasie wys\u0142ano z niego wiele \u017c\u0105da\u0144 z nieprawid\u0142owymi danymi uwierzytelniaj\u0105cymi. Poczekaj i spr\u00f3buj ponownie p\u00f3\u017aniej."
            },
            "422-unprocessable-entity": {
                "description": "\u017b\u0105danie by\u0142o poprawnie sformu\u0142owane, ale nie mo\u017cna go zrealizowa\u0107 z powodu b\u0142\u0119d\u00f3w semantycznych"
            },
            "404-not-found": {
                "description": "Nie znaleziono zasobu"
            },
            "204-deleted": {
                "description": "Encja zosta\u0142a usuni\u0119ta"
            },
            "402-not-enough-funds": {
                "description": "Na Twoim koncie brakuje wystarczaj\u0105cych \u015brodk\u00f3w!"
            },
            "409-conflict": {
                "description": "Conflict - Entity already exists"
            },
            "webhook-200": {
                "description": "Webhook odebrany"
            },
            "webhook-400": {
                "description": "Nieprawid\u0142owa struktura tre\u015bci \u017c\u0105dania webhooka"
            },
            "webhook-401": {
                "description": "\u017b\u0105danie webhooka nieautoryzowane"
            },
            "webhook-403": {
                "description": "Dost\u0119p do webhooka zabroniony"
            },
            "webhook-404": {
                "description": "Dost\u0119p do webhooka zabroniony"
            },
            "webhook-500": {
                "description": "B\u0142\u0105d serwera"
            }
        }
    },
    "x-doc-version": "2.28 (2026-10-30)",
    "x-tagGroups": [
        {
            "name": "user-info",
            "x-displayName": "Informacje o u\u017cytkowniku",
            "tags": [
                "user"
            ]
        },
        {
            "name": "accounting",
            "x-displayName": "Ksi\u0119gowo\u015b\u0107",
            "tags": [
                "pricelist",
                "invoices",
                "credit_notes",
                "payments"
            ]
        },
        {
            "name": "messages",
            "x-displayName": "Wiadomo\u015bci",
            "tags": [
                "sms",
                "bulks",
                "incomings",
                "blocked-numbers"
            ]
        },
        {
            "name": "phone-groups",
            "x-displayName": "Numery telefon\u00f3w i grupy",
            "tags": [
                "groups",
                "phones"
            ]
        },
        {
            "name": "shortlinks",
            "x-displayName": "Kr\u00f3tkie linki",
            "tags": [
                "send-link",
                "campaigns",
                "links",
                "requests",
                "click-rate"
            ]
        },
        {
            "name": "fraud-checks",
            "x-displayName": "Sprawdzanie oszustw",
            "tags": [
                "fraud-detection"
            ]
        },
        {
            "name": "verify-codes",
            "x-displayName": "Kody weryfikacyjne",
            "tags": [
                "verify-codes"
            ]
        },
        {
            "name": "misc",
            "x-displayName": "R\u00f3\u017cne",
            "tags": [
                "collection-filters",
                "sms-status-codes",
                "sms-delivery-report-codes-dlr",
                "encoding-and-number-of-characters",
                "inbound-and-reply-sms",
                "kannel",
                "ssml-language-detection",
                "email-to-sms",
                "notifications",
                "release-notes"
            ]
        }
    ]
}