{ "uuid": "4500c4c3-6e32-4afe-a938-73f5805e3fd6", "lastMigration": 29, "name": "PDF Generator API", "endpointPrefix": "api/v3", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "646bb031-c1a5-48b0-bb26-3bc6787acc92", "documentation": "Get templates", "method": "get", "endpoint": "templates", "responses": [ { "uuid": "b179d8eb-c881-4090-b9b2-7b70f0551b9a", "body": "{\n \"response\": [\n {\n \"id\": 24382,\n \"modified\": \"2017-10-21 11:49:28\",\n \"name\": \"Invoice template\",\n \"owner\": true,\n \"tags\": [\n \"invoice\",\n \"orders\"\n ]\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "An array of template objects", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "5bedd5dc-02d7-485c-9b56-ea0a50324945", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6784122f-b85b-4476-bc19-40b49d3a61ac", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0a220261-27be-43ef-bd4a-7e8f1803505c", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6d573956-afb9-4d25-9842-f4c91e066b80", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "1364881b-2338-497c-853b-7987da1ae314", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "5973da59-8881-46d1-b5bf-cb830d4d2e06", "documentation": "Create template", "method": "post", "endpoint": "templates", "responses": [ { "uuid": "bf244ef5-899c-431f-a2cc-f9fa0a10842b", "body": "{\n \"response\": {\n \"dataSettings\": {\n \"filterBy\": [\n {}\n ],\n \"sortBy\": [\n {}\n ]\n },\n \"editor\": {\n \"heightMultiplier\": 2\n },\n \"id\": 24382,\n \"isDraft\": true,\n \"layout\": {\n \"emptyLabels\": {{faker 'number.int' max=99999}},\n \"format\": \"{{oneOf (array 'A4' 'letter' 'custom')}}\",\n \"height\": 29.7,\n \"margins\": {\n \"bottom\": 0.5,\n \"left\": 0.5,\n \"right\": 0.5,\n \"top\": 0.5\n },\n \"orientation\": \"{{oneOf (array 'portrait' 'landscape')}}\",\n \"repeatLayout\": {\n \"format\": \"{{oneOf (array 'A4' 'letter' 'custom')}}\",\n \"height\": 29.7,\n \"width\": 21\n },\n \"rotation\": \"{{oneOf (array '0' '90' '180' '270')}}\",\n \"unit\": \"{{oneOf (array 'cm' 'in')}}\",\n \"width\": 21\n },\n \"name\": \"Invoice template\",\n \"pages\": [\n {\n \"components\": [\n {\n \"cls\": \"{{oneOf (array 'labelComponent' 'numberComponent' 'textComponent' 'imageComponent' 'dateComponent' 'hlineComponent' 'vlineComponent' 'tableComponent' 'compositeComponent' 'barcodeComponent' 'qrcodeComponent' 'chartComponent' 'rectangleComponent' 'headerComponent' 'footerComponent' 'checkboxComponent' 'radioComponent')}}\",\n \"dataIndex\": \"line_items\",\n \"height\": 1,\n \"id\": \"component-12313\",\n \"left\": 2.5,\n \"top\": 4.2,\n \"value\": \"${price}\",\n \"width\": 3.5,\n \"zindex\": 102\n }\n ],\n \"height\": 29.7,\n \"margins\": {\n \"bottom\": 0.5,\n \"right\": 0.5\n },\n \"width\": 21\n }\n ],\n \"tags\": [\n \"invoice\",\n \"orders\"\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Template configuration as JSON object", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f42b4f0a-f1fc-4276-b538-2aa666e32443", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "dc99f314-6e82-4062-8b80-0cbdebd1951a", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b6dfa15d-c01e-4915-9210-d797175df359", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "31d36774-1833-44f1-bd3d-fcd4e26a38d8", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b22acded-a8d8-4745-8390-4af2aed5b686", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b6da178c-918e-4260-8806-eec624122857", "documentation": "Generate document (multiple templates)", "method": "post", "endpoint": "templates/output", "responses": [ { "uuid": "cb99426e-034c-421e-8272-016d03aa36aa", "body": "{\n \"meta\": {\n \"content-type\": \"application/pdf\",\n \"display_name\": \"a2bd25b8921f3dc7a440fd7f427f90a4\",\n \"encoding\": \"base64\",\n \"name\": \"a2bd25b8921f3dc7a440fd7f427f90a4.pdf\"\n },\n \"response\": \"JVBERi0xLjcKJeLjz9MKNyAwIG9iago8PCAvVHlwZSA...\"\n}", "latency": 0, "statusCode": 200, "label": "Document data", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "868ee079-9783-41ff-9343-59d80e224689", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "4c2e5ed7-33fe-4df1-90b7-b42ce60030be", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "688d81fe-929f-4c91-9e15-587b2654fec6", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d00ef951-d4fc-4557-8cbc-7157b201873a", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ecd07134-1037-45f7-ad84-e0e343aa0554", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2aa9e7bc-d902-4776-86b1-0822c90e1854", "documentation": "Delete template", "method": "delete", "endpoint": "templates/templateId", "responses": [ { "uuid": "7e8aea53-dd0c-4ecf-8272-8e156ede94eb", "body": "{\n \"response\": {\n \"success\": true\n }\n}", "latency": 0, "statusCode": 200, "label": "The request was successfully executed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3d9daf88-69b1-40a3-8fc9-c613fc3849f0", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "716247a1-e6a9-4d62-8c7c-7206c7c775ef", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "7f1aed0f-2802-4f83-8652-d6369f0c9ad4", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e411d56b-b920-40df-a52d-36069a1e4484", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e1877a3d-a1cb-40c6-b856-f9c24d70b8cd", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "f08f10d9-427f-4443-9d67-133817767ebd", "documentation": "Get template", "method": "get", "endpoint": "templates/templateId", "responses": [ { "uuid": "58055576-e3c7-4247-9d29-5ad0c5a917c4", "body": "{\n \"response\": {\n \"dataSettings\": {\n \"filterBy\": [\n {}\n ],\n \"sortBy\": [\n {}\n ]\n },\n \"editor\": {\n \"heightMultiplier\": 2\n },\n \"id\": 24382,\n \"isDraft\": true,\n \"layout\": {\n \"emptyLabels\": {{faker 'number.int' max=99999}},\n \"format\": \"{{oneOf (array 'A4' 'letter' 'custom')}}\",\n \"height\": 29.7,\n \"margins\": {\n \"bottom\": 0.5,\n \"left\": 0.5,\n \"right\": 0.5,\n \"top\": 0.5\n },\n \"orientation\": \"{{oneOf (array 'portrait' 'landscape')}}\",\n \"repeatLayout\": {\n \"format\": \"{{oneOf (array 'A4' 'letter' 'custom')}}\",\n \"height\": 29.7,\n \"width\": 21\n },\n \"rotation\": \"{{oneOf (array '0' '90' '180' '270')}}\",\n \"unit\": \"{{oneOf (array 'cm' 'in')}}\",\n \"width\": 21\n },\n \"name\": \"Invoice template\",\n \"pages\": [\n {\n \"components\": [\n {\n \"cls\": \"{{oneOf (array 'labelComponent' 'numberComponent' 'textComponent' 'imageComponent' 'dateComponent' 'hlineComponent' 'vlineComponent' 'tableComponent' 'compositeComponent' 'barcodeComponent' 'qrcodeComponent' 'chartComponent' 'rectangleComponent' 'headerComponent' 'footerComponent' 'checkboxComponent' 'radioComponent')}}\",\n \"dataIndex\": \"line_items\",\n \"height\": 1,\n \"id\": \"component-12313\",\n \"left\": 2.5,\n \"top\": 4.2,\n \"value\": \"${price}\",\n \"width\": 3.5,\n \"zindex\": 102\n }\n ],\n \"height\": 29.7,\n \"margins\": {\n \"bottom\": 0.5,\n \"right\": 0.5\n },\n \"width\": 21\n }\n ],\n \"tags\": [\n \"invoice\",\n \"orders\"\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Template configuration as JSON object", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "54eb62d4-2267-4948-af30-5233d0617743", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5c046f44-9a92-4b20-853b-77a0a96b7a9e", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e98e16e3-c4fb-4028-9baf-72779bbc492f", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3c983d4c-e261-4849-99e7-36faac6c5eb7", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ed67ce01-5d54-4344-b8ef-47929cb631f6", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "607795fe-4caf-473d-a3ac-1d6e0740a90f", "documentation": "Update template", "method": "put", "endpoint": "templates/templateId", "responses": [ { "uuid": "f72f2d53-2af0-4c00-951c-8d6b9eb767a2", "body": "{\n \"response\": {\n \"dataSettings\": {\n \"filterBy\": [\n {}\n ],\n \"sortBy\": [\n {}\n ]\n },\n \"editor\": {\n \"heightMultiplier\": 2\n },\n \"id\": 24382,\n \"isDraft\": true,\n \"layout\": {\n \"emptyLabels\": {{faker 'number.int' max=99999}},\n \"format\": \"{{oneOf (array 'A4' 'letter' 'custom')}}\",\n \"height\": 29.7,\n \"margins\": {\n \"bottom\": 0.5,\n \"left\": 0.5,\n \"right\": 0.5,\n \"top\": 0.5\n },\n \"orientation\": \"{{oneOf (array 'portrait' 'landscape')}}\",\n \"repeatLayout\": {\n \"format\": \"{{oneOf (array 'A4' 'letter' 'custom')}}\",\n \"height\": 29.7,\n \"width\": 21\n },\n \"rotation\": \"{{oneOf (array '0' '90' '180' '270')}}\",\n \"unit\": \"{{oneOf (array 'cm' 'in')}}\",\n \"width\": 21\n },\n \"name\": \"Invoice template\",\n \"pages\": [\n {\n \"components\": [\n {\n \"cls\": \"{{oneOf (array 'labelComponent' 'numberComponent' 'textComponent' 'imageComponent' 'dateComponent' 'hlineComponent' 'vlineComponent' 'tableComponent' 'compositeComponent' 'barcodeComponent' 'qrcodeComponent' 'chartComponent' 'rectangleComponent' 'headerComponent' 'footerComponent' 'checkboxComponent' 'radioComponent')}}\",\n \"dataIndex\": \"line_items\",\n \"height\": 1,\n \"id\": \"component-12313\",\n \"left\": 2.5,\n \"top\": 4.2,\n \"value\": \"${price}\",\n \"width\": 3.5,\n \"zindex\": 102\n }\n ],\n \"height\": 29.7,\n \"margins\": {\n \"bottom\": 0.5,\n \"right\": 0.5\n },\n \"width\": 21\n }\n ],\n \"tags\": [\n \"invoice\",\n \"orders\"\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Template configuration as JSON object", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c343747b-0714-42fe-8afe-7c4841c3f4f9", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3724d628-89c9-4dda-a815-d2080c56b5e1", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d9155a8d-95e4-4ca8-83d2-b5e71ae29a99", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8ab2f7e9-6b50-4b75-8ba7-64c3405defc7", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a8c2a37d-5043-434c-898e-0b9a8c8fa3cb", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "f0156497-e15d-448d-a7e4-d251a4ce23f3", "documentation": "Copy template", "method": "post", "endpoint": "templates/templateId/copy", "responses": [ { "uuid": "3e59f7dd-dfab-42f5-bf19-42d9e99c01d4", "body": "{\n \"response\": {\n \"dataSettings\": {\n \"filterBy\": [\n {}\n ],\n \"sortBy\": [\n {}\n ]\n },\n \"editor\": {\n \"heightMultiplier\": 2\n },\n \"id\": 24382,\n \"isDraft\": true,\n \"layout\": {\n \"emptyLabels\": {{faker 'number.int' max=99999}},\n \"format\": \"{{oneOf (array 'A4' 'letter' 'custom')}}\",\n \"height\": 29.7,\n \"margins\": {\n \"bottom\": 0.5,\n \"left\": 0.5,\n \"right\": 0.5,\n \"top\": 0.5\n },\n \"orientation\": \"{{oneOf (array 'portrait' 'landscape')}}\",\n \"repeatLayout\": {\n \"format\": \"{{oneOf (array 'A4' 'letter' 'custom')}}\",\n \"height\": 29.7,\n \"width\": 21\n },\n \"rotation\": \"{{oneOf (array '0' '90' '180' '270')}}\",\n \"unit\": \"{{oneOf (array 'cm' 'in')}}\",\n \"width\": 21\n },\n \"name\": \"Invoice template\",\n \"pages\": [\n {\n \"components\": [\n {\n \"cls\": \"{{oneOf (array 'labelComponent' 'numberComponent' 'textComponent' 'imageComponent' 'dateComponent' 'hlineComponent' 'vlineComponent' 'tableComponent' 'compositeComponent' 'barcodeComponent' 'qrcodeComponent' 'chartComponent' 'rectangleComponent' 'headerComponent' 'footerComponent' 'checkboxComponent' 'radioComponent')}}\",\n \"dataIndex\": \"line_items\",\n \"height\": 1,\n \"id\": \"component-12313\",\n \"left\": 2.5,\n \"top\": 4.2,\n \"value\": \"${price}\",\n \"width\": 3.5,\n \"zindex\": 102\n }\n ],\n \"height\": 29.7,\n \"margins\": {\n \"bottom\": 0.5,\n \"right\": 0.5\n },\n \"width\": 21\n }\n ],\n \"tags\": [\n \"invoice\",\n \"orders\"\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Template configuration as JSON object", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "93ce34b7-bd82-40fc-9799-f5a63b48659a", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "4369c29d-75fb-4442-a649-2b2682efe92f", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "4b8a3706-3688-4a3d-9af3-5bcc7fb511e4", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a8a22113-8659-455a-8b90-2ff461ba03e8", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8ff2ced9-c2ed-4182-8a5f-9205aa1b2373", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "33db7630-602e-4ec7-aadb-79c03739bfaf", "documentation": "Open editor", "method": "post", "endpoint": "templates/templateId/editor", "responses": [ { "uuid": "6bd1b362-1f08-42e9-913d-574e0ce157ab", "body": "{\n \"response\": \"https://us1.pdfgeneratorapi.com/editor/open/2ff98760d39456c4b2cf974fef005ecf\"\n}", "latency": 0, "statusCode": 200, "label": "Returns an URL which you can use to redirect your user to the editor or use as iframe source", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "5ac97a2b-e1c1-4a75-9de3-84d0c2f97d2b", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "eb47a87b-d187-469c-8b5e-8cad0c45ea7f", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8c6a3df1-154f-46d2-b29c-f99ad8ed011d", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "bdf887f5-9807-442e-bfd2-41452d5a93ca", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2c2d70b8-33b7-4024-b7c1-c64852049e88", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ec01baae-1cfa-440b-b544-e7c45efcbeb0", "documentation": "Generate document", "method": "post", "endpoint": "templates/templateId/output", "responses": [ { "uuid": "694ad09e-060f-4313-b37b-27190edd09c2", "body": "{\n \"meta\": {\n \"content-type\": \"application/pdf\",\n \"display_name\": \"a2bd25b8921f3dc7a440fd7f427f90a4\",\n \"encoding\": \"base64\",\n \"name\": \"a2bd25b8921f3dc7a440fd7f427f90a4.pdf\"\n },\n \"response\": \"JVBERi0xLjcKJeLjz9MKNyAwIG9iago8PCAvVHlwZSA...\"\n}", "latency": 0, "statusCode": 200, "label": "Document data", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f56ab6e9-0f3b-421c-804d-77723bbaaa2f", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8dbff4e3-e9b6-4715-8ba7-9c07b413d028", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "feedc83a-5dbe-44eb-824e-6829031cec6e", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "7417f90b-321d-4f41-a4c1-5b9b95c9ec61", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5382b69b-39b6-4a5a-b8a5-d033d3cf5f1b", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "4e7e5e09-069d-4b3d-8909-1ed2374caab1", "documentation": "Delete workspace", "method": "delete", "endpoint": "workspaces/workspaceId", "responses": [ { "uuid": "1a331714-7521-416b-914b-230a7912d6de", "body": "{\n \"response\": {\n \"success\": true\n }\n}", "latency": 0, "statusCode": 200, "label": "The request was successfully executed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "470dc7e4-f397-42be-b3be-8a4d90236833", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "fceaf842-0cc0-426d-aeee-155170ea03ee", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2e30c04e-80af-4f22-a243-8f48464061a5", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "110b593b-82c4-4975-9c6e-960f3c3ed832", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "7f1bc527-ca8d-4e25-be23-fc31f60df04e", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "a66cd971-9a2f-43b4-bd41-a34882f7ee74", "documentation": "Get workspace", "method": "get", "endpoint": "workspaces/workspaceId", "responses": [ { "uuid": "c529c17b-1011-4b4c-b59e-aad728f23363", "body": "{\n \"response\": {\n \"created_at\": \"2020-04-01 12:03:12\",\n \"id\": 1,\n \"identifier\": \"demo.example@actualreports.com\",\n \"is_master_workspace\": {{faker 'datatype.boolean'}}\n }\n}", "latency": 0, "statusCode": 200, "label": "Workspace information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f343ce10-bf17-4cb4-93d8-69a52c102002", "body": "{\n \"error\": \"{{oneOf (array 'Authentication failed: request expired' 'Authentication failed: signature or secret missing' 'Authentication failed: workspace missing' 'Authentication failed: key missing' 'Authentication failed: property 'iss' (issuer) missing in JWT' 'Authentication failed: property 'sub' (subject) missing in JWT' 'Authentication failed: property 'exp' (expiration time) missing in JWT' 'Authentication failed: invalid 'iss' (issuer)' 'Authentication failed: incorrect signature' 'Authentication failed')}}\",\n \"status\": 401\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b50d34f3-91c5-4fd5-b9ba-dff7cde6c640", "body": "{\n \"error\": \"{{oneOf (array 'Your account has exceeded the monthly document generation limit.')}}\",\n \"status\": 403\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "fb6a8172-8b2b-4a9e-b4d0-8248c3f5b484", "body": "{\n \"error\": \"{{oneOf (array 'Entity not found' 'Resource not found' 'None of the templates is available for the workspace.')}}\",\n \"status\": 404\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a443fdbf-ec4c-48da-b796-6d1aaf8c3686", "body": "{\n \"error\": \"{{oneOf (array 'Unable to parse JSON, please check formatting' 'Required parameter missing' 'Required parameter missing: template definition not defined' 'Required parameter missing: template not defined')}}\",\n \"status\": 422\n}", "latency": 0, "statusCode": 422, "label": "Unprocessable Entity", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "cd9bfd1f-dbc1-420d-932b-8de110d76455", "body": "{\n \"error\": \"Internal error\",\n \"status\": 500\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "646bb031-c1a5-48b0-bb26-3bc6787acc92" }, { "type": "route", "uuid": "5973da59-8881-46d1-b5bf-cb830d4d2e06" }, { "type": "route", "uuid": "b6da178c-918e-4260-8806-eec624122857" }, { "type": "route", "uuid": "2aa9e7bc-d902-4776-86b1-0822c90e1854" }, { "type": "route", "uuid": "f08f10d9-427f-4443-9d67-133817767ebd" }, { "type": "route", "uuid": "607795fe-4caf-473d-a3ac-1d6e0740a90f" }, { "type": "route", "uuid": "f0156497-e15d-448d-a7e4-d251a4ce23f3" }, { "type": "route", "uuid": "33db7630-602e-4ec7-aadb-79c03739bfaf" }, { "type": "route", "uuid": "ec01baae-1cfa-440b-b544-e7c45efcbeb0" }, { "type": "route", "uuid": "4e7e5e09-069d-4b3d-8909-1ed2374caab1" }, { "type": "route", "uuid": "a66cd971-9a2f-43b4-bd41-a34882f7ee74" } ] }