{"openapi":"3.1.0","info":{"title":"v2","version":"3"},"servers":[{"url":"https://{youraccountname}.api-us1.com/api/2","variables":{"youraccountname":{"default":"youraccountname"}}}],"components":{"securitySchemes":{}},"security":[{}],"paths":{"/template/share":{"get":{"summary":"Create Shareable Campaign Template Link","description":"Create a shareable link to a campaign template","operationId":"create-shareable-campaign-template-link","parameters":[{"name":"api_key","in":"query","description":"ActiveCampaign Account API Key","schema":{"type":"string"}},{"name":"id","in":"query","description":"The id of the campaign template to be shared","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Success":{"value":"{\n \"url\": \"http://tplshare.com/gXKi4s2$\",\n \"success\": 1,\n \"message\": \"Template shared successfully\",\n \"result_code\": 1,\n \"result_message\": \"Template shared successfully\",\n \"result_output\": \"json\"\n}"},"Invalid Template ID":{"value":"{\n \"success\": 0,\n \"message\": \"Invalid template\",\n \"result_code\": 0,\n \"result_message\": \"Invalid template\",\n \"result_output\": \"json\"\n}"}},"schema":{"oneOf":[{"title":"Success","type":"object","properties":{"url":{"type":"string","example":"http://tplshare.com/gXKi4s2$"},"success":{"type":"integer","example":1,"default":0},"message":{"type":"string","example":"Template shared successfully"},"result_code":{"type":"integer","example":1,"default":0},"result_message":{"type":"string","example":"Template shared successfully"},"result_output":{"type":"string","example":"json"}}},{"title":"Invalid Template ID","type":"object","properties":{"success":{"type":"integer","example":0,"default":0},"message":{"type":"string","example":"Invalid template"},"result_code":{"type":"integer","example":0,"default":0},"result_message":{"type":"string","example":"Invalid template"},"result_output":{"type":"string","example":"json"}}}]}}}}},"deprecated":false}}},"x-readme":{"headers":[],"explorer-enabled":false,"proxy-enabled":false},"x-readme-fauxas":true}