connected-sites
Get connected site
Get information about a specific connected site.
get/3.0/connected-sites/{connected_site_id}
Request
- Base URLhttps://api.mailchimp.com
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://login.mailchimp.com/oauth2/authorizeToken URLhttps://login.mailchimp.com/oauth2/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
connected_site_idstring required
The unique identifier for the site.
Query parameters
fieldsstring[]
A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
exclude_fieldsstring[]
A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
Response
Example response
{
"created_at": "2015-07-15T19:28:00+00:00",
"domain": "example.myshopify.com",
"foreign_id": "a180c384d7db88b if created in-app, MC001 if created via API",
"platform": "shopify, magento, bigcommerce, woocommerce",
"site_script": {
"fragment": "<script id=\"mcjs\">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,\"script\",\"https://chimpstatic.com/mcjs-connected/js/users/{user-hash}/{site-hash}.js\");</script>",
"url": "https://chimpstatic.com/mcjs-connected/js/users/{user-hash}/{site-hash}.js"
},
"store_id": "MC001",
"updated_at": "2015-07-15T19:35:00+00:00"
}Changes
No recorded changes to this operation across all 1 revision of this API.