{ "info" : { "name" : "medallia-api", "schema" : "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description" : { "content" : "API for Medallia Surveys system" }, "version" : "0.0.1" }, "item" : [ { "name" : "access_token_wrappers", "item" : [ { "request" : { "url" : { "raw" : "{{BASE_URL}}/accessToken", "host" : [ "{{BASE_URL}}" ], "path" : [ "accessToken" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "This API is used to retrieve the temporary access token that allows your app to access all other APIs" }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } } ] }, "name" : "POST /accessToken", "description" : { "content" : "This API is used to retrieve the temporary access token that allows your app to access all other APIs" }, "event" : [ { "listen" : "test", "script" : { "exec" : [ "pm.test(\"POST requests should return 2xx\", function () {", " pm.response.to.be.success;", "});" ], "type" : "text/javascript" } } ], "response" : [ { "name" : "Example 200 - access_token_wrapper", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/accessToken", "host" : [ "{{BASE_URL}}" ], "path" : [ "accessToken" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "This API is used to retrieve the temporary access token that allows your app to access all other APIs" }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } } ] }, "body" : "{\n \"accessToken\" : \"63df3d0c9cf1\"\n}", "code" : 200 }, { "name" : "Example 401 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/accessToken", "host" : [ "{{BASE_URL}}" ], "path" : [ "accessToken" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "This API is used to retrieve the temporary access token that allows your app to access all other APIs" }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } } ] }, "code" : 401 }, { "name" : "Example 500 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/accessToken", "host" : [ "{{BASE_URL}}" ], "path" : [ "accessToken" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "This API is used to retrieve the temporary access token that allows your app to access all other APIs" }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } } ] }, "code" : 500 } ], "type" : "item" } ], "type" : "folder" }, { "name" : "configurations", "item" : [ { "request" : { "url" : { "raw" : "{{BASE_URL}}/configuration", "host" : [ "{{BASE_URL}}" ], "path" : [ "configuration" ], "query" : [ ], "variable" : [ ] }, "method" : "GET", "description" : { "content" : "This API returns the full configuration as defined in the Medallia Digital command center. It returns the list of surveys, their content and business logic as well as targeting and segmentation rules." }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } } ] }, "name" : "GET /configuration", "description" : { "content" : "This API returns the full configuration as defined in the Medallia Digital command center. It returns the list of surveys, their content and business logic as well as targeting and segmentation rules." }, "event" : [ { "listen" : "test", "script" : { "exec" : [ "pm.test(\"GET requests should return 2xx\", function () {", " pm.response.to.be.success;", "});" ], "type" : "text/javascript" } } ], "response" : [ { "name" : "Example 200 - configuration", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/configuration", "host" : [ "{{BASE_URL}}" ], "path" : [ "configuration" ], "query" : [ ], "variable" : [ ] }, "method" : "GET", "description" : { "content" : "This API returns the full configuration as defined in the Medallia Digital command center. It returns the list of surveys, their content and business logic as well as targeting and segmentation rules." }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } } ] }, "body" : "{\n \"propertyId\" : 1,\n \"feedbackSubmitUrl\" : \"763605863095\",\n \"forms\" : [ {\n \"formJson\" : {\n \"pages\" : [ {\n \"name\" : \"d1fbf7bba102\",\n \"index\" : 0,\n \"dynamicData\" : [ {\n \"component\" : \"label\",\n \"unique_name\" : \"054543900b06\",\n \"labelContent\" : \"b88591043b00\",\n \"num_of_lines\" : 2,\n \"id\" : 1,\n \"index\" : 1\n } ]\n } ]\n },\n \"name\" : \"0c7d00397e5c\",\n \"triggerData\" : {\n \"submitted\" : {\n \"days\" : \"00fcbec68b3c\"\n },\n \"percentageOfSessions\" : {\n \"prec\" : \"286aab636d89\"\n },\n \"numberOfAppSession\" : {\n \"number\" : \"2f20ef9891f3\",\n \"compareString\" : \"greaterThan\"\n },\n \"declined\" : {\n \"days\" : \"92ac87217824\"\n },\n \"genericRule\" : \"17c938f5a57c\",\n \"timeInForeground\" : {\n \"time\" : \"338111aa39a4\",\n \"compareString\" : \"greaterThan\"\n },\n \"mobileappVersion\" : [ \"5882d8e407df\" ],\n \"mobileosVersion\" : [ \"0bcc652492b6\" ]\n },\n \"formType\" : \"mobileInvitation\",\n \"title\" : \"a128f056a35c\",\n \"inviteData\" : {\n \"invitationText\" : \"7c6269c27de6\",\n \"laterButtonText\" : \"df87db8b0c5e\",\n \"provideButtonText\" : \"f2a1f5ae154c\",\n \"invitationHeadline\" : \"12c328340da4\",\n \"declineButtonText\" : \"adc8485b5e82\"\n },\n \"formId\" : 1\n } ]\n}", "code" : 200 }, { "name" : "Example 400 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/configuration", "host" : [ "{{BASE_URL}}" ], "path" : [ "configuration" ], "query" : [ ], "variable" : [ ] }, "method" : "GET", "description" : { "content" : "This API returns the full configuration as defined in the Medallia Digital command center. It returns the list of surveys, their content and business logic as well as targeting and segmentation rules." }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } } ] }, "code" : 400 }, { "name" : "Example 401 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/configuration", "host" : [ "{{BASE_URL}}" ], "path" : [ "configuration" ], "query" : [ ], "variable" : [ ] }, "method" : "GET", "description" : { "content" : "This API returns the full configuration as defined in the Medallia Digital command center. It returns the list of surveys, their content and business logic as well as targeting and segmentation rules." }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } } ] }, "code" : 401 }, { "name" : "Example 500 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/configuration", "host" : [ "{{BASE_URL}}" ], "path" : [ "configuration" ], "query" : [ ], "variable" : [ ] }, "method" : "GET", "description" : { "content" : "This API returns the full configuration as defined in the Medallia Digital command center. It returns the list of surveys, their content and business logic as well as targeting and segmentation rules." }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } } ] }, "code" : 500 } ], "type" : "item" } ], "type" : "folder" }, { "name" : "feedbacks", "item" : [ { "request" : { "url" : { "raw" : "{{BASE_URL}}/feedback", "host" : [ "{{BASE_URL}}" ], "path" : [ "feedback" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "This API allows the application to submit feedback collected in the app to the Medallia Digital" }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } }, { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"formId\" : 1,\n \"dynamicData\" : {\n \"customParams\" : null,\n \"pages\" : [ {\n \"components\" : [ {\n \"component\" : \"nps\",\n \"unique_name\" : \"3fcb1b1a5c96\",\n \"id\" : 1,\n \"type\" : \"nps\",\n \"value\" : 1,\n \"index\" : 1\n } ]\n } ]\n }\n}", "mode" : "raw" } }, "name" : "POST /feedback", "description" : { "content" : "This API allows the application to submit feedback collected in the app to the Medallia Digital" }, "event" : [ { "listen" : "test", "script" : { "exec" : [ "pm.test(\"POST requests should return 2xx\", function () {", " pm.response.to.be.success;", "});" ], "type" : "text/javascript" } } ], "response" : [ { "name" : "Example 200 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/feedback", "host" : [ "{{BASE_URL}}" ], "path" : [ "feedback" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "This API allows the application to submit feedback collected in the app to the Medallia Digital" }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } }, { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"formId\" : 1,\n \"dynamicData\" : {\n \"customParams\" : null,\n \"pages\" : [ {\n \"components\" : [ {\n \"component\" : \"nps\",\n \"unique_name\" : \"3fcb1b1a5c96\",\n \"id\" : 1,\n \"type\" : \"nps\",\n \"value\" : 1,\n \"index\" : 1\n } ]\n } ]\n }\n}", "mode" : "raw" } }, "code" : 200 }, { "name" : "Example 400 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/feedback", "host" : [ "{{BASE_URL}}" ], "path" : [ "feedback" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "This API allows the application to submit feedback collected in the app to the Medallia Digital" }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } }, { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"formId\" : 1,\n \"dynamicData\" : {\n \"customParams\" : null,\n \"pages\" : [ {\n \"components\" : [ {\n \"component\" : \"nps\",\n \"unique_name\" : \"3fcb1b1a5c96\",\n \"id\" : 1,\n \"type\" : \"nps\",\n \"value\" : 1,\n \"index\" : 1\n } ]\n } ]\n }\n}", "mode" : "raw" } }, "code" : 400 }, { "name" : "Example 401 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/feedback", "host" : [ "{{BASE_URL}}" ], "path" : [ "feedback" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "This API allows the application to submit feedback collected in the app to the Medallia Digital" }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } }, { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"formId\" : 1,\n \"dynamicData\" : {\n \"customParams\" : null,\n \"pages\" : [ {\n \"components\" : [ {\n \"component\" : \"nps\",\n \"unique_name\" : \"3fcb1b1a5c96\",\n \"id\" : 1,\n \"type\" : \"nps\",\n \"value\" : 1,\n \"index\" : 1\n } ]\n } ]\n }\n}", "mode" : "raw" } }, "code" : 401 }, { "name" : "Example 500 - unit", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/feedback", "host" : [ "{{BASE_URL}}" ], "path" : [ "feedback" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "This API allows the application to submit feedback collected in the app to the Medallia Digital" }, "header" : [ { "key" : "Authentication", "value" : "", "description" : { "content" : "Authentication header, it can be a request Token or an access Token" } }, { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"formId\" : 1,\n \"dynamicData\" : {\n \"customParams\" : null,\n \"pages\" : [ {\n \"components\" : [ {\n \"component\" : \"nps\",\n \"unique_name\" : \"3fcb1b1a5c96\",\n \"id\" : 1,\n \"type\" : \"nps\",\n \"value\" : 1,\n \"index\" : 1\n } ]\n } ]\n }\n}", "mode" : "raw" } }, "code" : 500 } ], "type" : "item" } ], "type" : "folder" } ], "event" : [ ], "variable" : [ { "key" : "BASE_URL", "value" : "https://api-us.kampyle.com/api/v1", "type" : "string" } ] }