{
"info": {
"name": "Katie Kodes Marketing Cloud",
"description": "Credit to Anthony Dotson and the team at https://github.com/salesforce-marketingcloud/postman",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "1. LOGIN - API v2",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"client_id\":\"YOUR_CLIENT_ID\",\n \"client_secret\":\"YOUR_CLIENT_SECRET\",\n \"grant_type\":\"client_credentials\"\n}"
},
"url": {
"raw": "https://YOUR_SUBDOMAIN.auth.marketingcloudapis.com/v2/token",
"protocol": "https",
"host": [
"YOUR_SUBDOMAIN",
"auth",
"marketingcloudapis",
"com"
],
"path": [
"v2",
"token"
]
}
},
"response": [
{
"name": "1. LOGIN - API v2 - example response",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"client_id\":\"YOUR_CLIENT_ID\",\n \"client_secret\":\"YOUR_CLIENT_SECRET\",\n \"grant_type\":\"client_credentials\"\n}"
},
"url": {
"raw": "https://YOUR_SUBDOMAIN.auth.marketingcloudapis.com/v2/token",
"protocol": "https",
"host": [
"YOUR_SUBDOMAIN",
"auth",
"marketingcloudapis",
"com"
],
"path": [
"v2",
"token"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "x-mashery-message-id",
"value": "blahblah"
},
{
"key": "x-mashery-responder",
"value": "blahblah"
},
{
"key": "strict-transport-security",
"value": "max-age=15552000; preload"
},
{
"key": "Content-Security-Policy",
"value": "upgrade-insecure-requests"
},
{
"key": "x-xss-protection",
"value": "1; mode=block"
},
{
"key": "x-frame-options",
"value": "DENY"
},
{
"key": "x-content-type-options",
"value": "nosniff"
},
{
"key": "cache-control",
"value": "no-cache, must-revalidate, max-age=0, no-store, private"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "Content-Length",
"value": "1243"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Date",
"value": "Fri, 06 Dec 2019 19:13:01 GMT"
},
{
"key": "Connection",
"value": "keep-alive"
}
],
"cookie": [],
"body": "{\n \"access_token\": \"YOUR_AUTH_KEY\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 1079,\n \"scope\": \"offline documents_and_images_read saved_content_read automations_read journeys_read email_read push_read sms_read social_read web_read audiences_read list_and_subscribers_read data_extensions_read file_locations_read tracking_events_read calendar_read campaign_read accounts_read users_read webhooks_read approvals_read tags_read workflows_read ott_chat_messaging_read ott_channels_read marketing_cloud_connect_read event_notification_callback_read event_notification_subscription_read\",\n \"soap_instance_url\": \"https://YOUR_SUBDOMAIN.soap.marketingcloudapis.com/\",\n \"rest_instance_url\": \"https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com/\"\n}"
}
]
},
{
"name": "2. FIRST SOAP CALL - Query All Data Extensions with V2 authentication key",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "text/xml"
}
],
"body": {
"mode": "raw",
"raw": "\n\n \n Retrieve\n urn:uuid:7e0cca04-57bd-4481-864c-6ea8039d2ea0\n \n http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous\n \n https://YOUR_SUBDOMAIN.soap.marketingcloudapis.com/Service.asmx\n YOUR_AUTH_KEY\n \n\t\n\t \n \n DataExtension\n ObjectID\n CustomerKey\n Name\n IsSendable\n SendableSubscriberField.Name\n \n \n\t\n"
},
"url": {
"raw": "https://YOUR_SUBDOMAIN.soap.marketingcloudapis.com/Service.asmx",
"protocol": "https",
"host": [
"YOUR_SUBDOMAIN",
"soap",
"marketingcloudapis",
"com"
],
"path": [
"Service.asmx"
]
}
},
"response": [
{
"name": "2. FIRST SOAP CALL - Query All Data Extensions with V2 authentication key - example response",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "text/xml"
}
],
"body": {
"mode": "raw",
"raw": "\n\n \n Retrieve\n urn:uuid:7e0cca04-57bd-4481-864c-6ea8039d2ea0\n \n http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous\n \n https://YOUR_SUBDOMAIN.soap.marketingcloudapis.com/Service.asmx\n YOUR_AUTH_KEY\n \n\t\n\t \n \n DataExtension\n ObjectID\n CustomerKey\n Name\n IsSendable\n SendableSubscriberField.Name\n \n \n\t\n"
},
"url": {
"raw": "https://YOUR_SUBDOMAIN.soap.marketingcloudapis.com/Service.asmx",
"protocol": "https",
"host": [
"YOUR_SUBDOMAIN",
"soap",
"marketingcloudapis",
"com"
],
"path": [
"Service.asmx"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "xml",
"header": [
{
"key": "Cache-Control",
"value": "private, max-age=0,no-store"
},
{
"key": "Pragma",
"value": "no-cache"
},
{
"key": "Content-Length",
"value": "257201"
},
{
"key": "Content-Type",
"value": "application/soap+xml; charset=utf-8"
},
{
"key": "Server",
"value": "Microsoft-IIS/7.5"
},
{
"key": "X-AspNet-Version",
"value": "4.0.30319"
},
{
"key": "X-Powered-By",
"value": "ASP.NET"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=7776000; includeSubDomains"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "Date",
"value": "Fri, 06 Dec 2019 20:15:58 GMT"
},
{
"key": "Connection",
"value": "close"
}
],
"cookie": [],
"body": "\n\n \n RetrieveResponse\n urn:uuid:HEXIDECIMAL_NONSENSE\n urn:uuid:7e0cca04-57bd-4481-864c-6ea8039d2ea0\n http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous\n \n \n 2019-12-06T20:15:59Z\n 2019-12-06T20:20:59Z\n \n \n \n \n \n OK\n HEXIDECIMAL_NONSENSE\n \n \n HEXIDECIMAL_DATA_EXTENSION_1_ID\n HEXIDECIMAL_DATA_EXTENSION_1_CUSTOMER_KEY\n Data_Extension_1_Name_You_Gave_It\n true\n \n _SubscriberKey\n \n \n \n \n HEXIDECIMAL_DATA_EXTENSION_2_ID\n HEXIDECIMAL_DATA_EXTENSION_2_CUSTOMER_KEY\n Data_Extension_2_Name_You_Gave_It\n true\n \n _SubscriberKey\n \n \n \n \n HEXIDECIMAL_DATA_EXTENSION_3_ID\n HEXIDECIMAL_DATA_EXTENSION_3_CUSTOMER_KEY\n Data_Extension_3_Name_You_Gave_It\n true\n \n _SubscriberKey\n \n \n \n \n"
}
]
}
],
"protocolProfileBehavior": {}
}