{"openapi":"3.0.0","info":{"title":"Public API Gateway","version":"1.0.0"},"servers":[{"url":"\/v1\/"}],"paths":{"\/contacts":{"get":{"tags":["Contacts\/ContactController"],"summary":"Return full list of contacts","operationId":"30d88cc0a7a9f606cbfd53ac26ca44fd","parameters":[{"name":"filter","in":"query","required":false,"schema":{"properties":{"filter":{"properties":{"creation_date":{"properties":{"gte":{},"lt":{}},"type":"object"}},"type":"object"}},"type":"object"}}],"responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]}},"\/omni\/rooms":{"get":{"tags":["Omni Rooms"],"summary":"Return full list of rooms","operationId":"339cc4253c2f40ec4f815db755867a33","parameters":[{"name":"filter","in":"query","required":false,"schema":{"properties":{"filter":{"properties":{"creation_date":{"properties":{"gte":{},"lt":{}},"type":"object"}},"type":"object"}},"type":"object"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","example":"1"}}],"responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]}},"\/omni\/rooms\/{roomId}\/messages":{"get":{"tags":["Omni Rooms"],"summary":"Return full list of rooms","operationId":"ea45e8fe71b617261a5c5510c6a1583c","parameters":[{"name":"roomId","in":"path","description":"ID of room to get messages","required":true,"schema":{"type":"string","format":"uuid","example":1}}],"responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]}},"\/rcs\/messages":{"post":{"tags":["Rcs\/MessageController"],"summary":"Process and store messages to send later","operationId":"f4830757a80411e44a6e5753a46674fe","requestBody":{"$ref":"#\/components\/requestBodies\/RcsRequest"},"responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]}},"\/sms\/messages":{"get":{"tags":["Sms\/MessageController"],"summary":"Return full list of messages","operationId":"addPet","responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]},"post":{"tags":["Sms\/MessageController"],"summary":"Process and store messages to send later","operationId":"4922c03803392c6ad04483aedc1aff46","requestBody":{"$ref":"#\/components\/requestBodies\/SmsRequest"},"responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]}},"\/whatsapp\/messages":{"get":{"tags":["Whatsapp Message"],"summary":"Return full list of messages","operationId":"6d9e1774610a214f7ff7935f591829b4","parameters":[{"name":"filter","in":"query","required":false,"schema":{"properties":{"filter":{"properties":{"creation_date":{"properties":{"gte":{},"lt":{}},"type":"object"}},"type":"object"}},"type":"object"}},{"name":"page","in":"query","description":"current page","required":false}],"responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]},"post":{"tags":["Whatsapp Message"],"summary":"Create new template","operationId":"9649d40257ac2f092784cffc5164ba70","requestBody":{"content":{"application\/json":{"schema":{"properties":{"messages":{"type":"array","items":{"$ref":"#\/components\/schemas\/Message"}}},"type":"object"}}}},"responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]}},"\/whatsapp\/templates":{"get":{"tags":["Template"],"summary":"Return full list of templates","operationId":"adcc4bb4c3e99199ccf5215ad7b456e4","parameters":[{"name":"page","in":"query","description":"current page","required":false}],"responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]},"post":{"tags":["Template"],"summary":"Create new template","operationId":"3252c98a7952bb03ba67637aaf1a2ece","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Template"}}}},"responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]}},"\/whatsapp\/templates\/{templateId}":{"delete":{"tags":["Template"],"summary":"Delete template","operationId":"1f6bfbbe6260d92561ca4f2f5fc746f3","parameters":[{"name":"templateId","in":"path","description":"ID of template to delete","required":true,"schema":{"type":"integer","format":"int64","example":1}}],"responses":{"405":{"description":"Invalid input"}},"security":[{"basicAuth":[]}]}}},"components":{"schemas":{"OmniMessage":{"title":"Message model","description":"Message model","properties":{"from":{"type":"string","format":"string"},"ext_id":{"type":"string","format":"string"},"to":{"type":"string","format":"string"},"body":{"type":"string","format":"string"},"template_id":{"type":"string","format":"string"},"params":{"type":"array","format":"array","items":{}}},"type":"object"},"RcsMessage":{"title":"Message model","description":"Message model","required":["name","photoUrls"],"properties":{"to":{"type":"string","example":"5511999999999"},"type":{"type":"string","example":"text|media|card|carousel"},"body":{"properties":{"text":{"type":"object","example":"hello world"},"media":{"properties":{"url":{"type":"object","example":"http:\/\/teste.com"}},"type":"object"},"card":{"properties":{"title":{"type":"object","example":"Title"},"text":{"type":"object","example":"Hello World"},"media":{"properties":{"url":{"type":"object","example":"http:\/\/teste.com"}},"type":"object"},"buttons":{"type":"array","items":{"properties":{"type":{"type":"object","example":"reply|dial|location|event|url"},"text":{"type":"object","example":"text"},"phone_number":{"type":"object","example":"5511999999999"},"address":{"type":"object","example":"Av. S\u00e3o Jo\u00e3o, 473 - Loja 03 - Centro, Peru\u00edbe - SP, 11750-000"},"url":{"type":"object","example":"https:\/\/laravel.com\/"}},"type":"object"}}},"type":"object"},"carousel":{"properties":{"cards":{"type":"array","items":{"properties":{"title":{"type":"object","example":"Title"},"text":{"type":"object","example":"Hello World"},"media":{"properties":{"url":{"type":"object","example":"http:\/\/teste.com"}},"type":"object"},"buttons":{"type":"array","items":{"properties":{"type":{"type":"object","example":"reply|dial|location|event|url"},"text":{"type":"object","example":"text"},"phone_number":{"type":"object","example":"5511999999999"},"address":{"type":"object","example":"Av. S\u00e3o Jo\u00e3o, 473 - Loja 03 - Centro, Peru\u00edbe - SP, 11750-000"},"start_time":{"type":"object","example":"2023-11-27T00:00:00-03:00"},"end_time":{"type":"object","example":"2023-11-27T23:59:59-03:00"},"title":{"type":"object","example":"tesste"},"url":{"type":"object","example":"https:\/\/laravel.com\/"}},"type":"object"}}},"type":"object"}}},"type":"object"}},"type":"object"},"webhook":{"properties":{"url":{"type":"object","example":"http:\/\/teste.com"},"headers":{"properties":{"Authorization":{"type":"object","example":"Basic NTI4Njc2OTgtYWM3Yi0"}},"type":"object"}},"type":"object"}},"type":"object"},"SmsMessage":{"title":"Message model","description":"Message model","required":["name","photoUrls"],"properties":{"from":{"type":"string","example":"Default"},"to":{"type":"string","example":"5511999999999"},"type":{"type":"string","example":"template|text"},"body":{"properties":{"template":{"properties":{"id":{"type":"string","example":"5183640a-4776-11ee-be56-0242ac120002"},"fields":{"properties":{"first_name":{"type":"string","example":"Jo\u00e3o"},"email":{"type":"string","example":"joao@teste.com"}},"type":"object"}},"type":"object"},"text":{"type":"string","example":"teste"}},"type":"object"},"tags":{"properties":{"campaign_name":{"type":"string","example":"teste"}},"type":"object"},"status_callback":{"type":"string","example":"https:\/\/localhost"},"message_callback":{"type":"string","example":"https:\/\/localhost"}},"type":"object"},"Message":{"title":"Message model","description":"Message model","properties":{"from":{"type":"string","format":"string"},"ext_id":{"type":"string","format":"string"},"to":{"type":"string","format":"string"},"body":{"type":"string","format":"string"},"template_id":{"type":"string","format":"string"},"callback_url":{"type":"string","format":"string"},"params":{"type":"array","format":"array","items":{}}},"type":"object"},"Template":{"title":"Template model","description":"Template model","properties":{"name":{"type":"string","format":"string"},"header":{"properties":{"content":{"format":"string"},"type":{"format":"string"},"param":{"format":"string"}},"type":"object","format":"object"},"body":{"format":"string"},"type":{"type":"string","format":"string","default":"TRANSACTIONAL"},"params":{"type":"array","format":"array","items":{}}},"type":"object"}},"requestBodies":{"RcsRequest":{"description":"Pet object that needs to be added to the store","required":true,"content":{"application\/json":{"schema":{"properties":{"agent_id":{"example":"29af08dd-1c1e-46e8-b19d-29ba400fed40"},"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/RcsMessage"}}},"type":"object"}}}},"SmsRequest":{"description":"Pet object that needs to be added to the store","required":true,"content":{"application\/json":{"schema":{"properties":{"messages":{"type":"array","items":{"$ref":"#\/components\/schemas\/SmsMessage"}}},"type":"object"}}}}},"securitySchemes":{"basicAuth":{"type":"http","description":"A short description for security scheme","name":"authorization","scheme":"basic","in":"header"}}}}