---
title: "Add connected site"
method: POST
path: "/3.0/connected-sites"
tags: ["connected-sites"]
---

# Add connected site

`POST /3.0/connected-sites`

## Request

- Base URL: `https://api.mailchimp.com`
- URL: `https://api.mailchimp.com/3.0/connected-sites`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://login.mailchimp.com/oauth2/authorize`
    - Token URL: `https://login.mailchimp.com/oauth2/token`
- TypeScript: <https://skmtc.dev/mailchimp/apis/mailchimp-api/docs/3.0/connected-sites/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new Mailchimp connected site.

## Request body

- object: Information about a specific connected site.
  - `domain` string, required: The connected site domain.
  - `foreign_id` string, required: The unique identifier for the site.

## Response `200`

- object: Information about a specific connected site.
  - `_links` object[]: A list of link types and descriptions for the API schema documents.
    - `href` string: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
    - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD': The HTTP method that should be used when accessing the URL defined in 'href'.
    - `rel` string: As with an HTML 'rel' attribute, this describes the type of link.
    - `schema` string: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
    - `targetSchema` string: For GETs, this is a URL representing the schema that the response should conform to.
  - `created_at` string, date-time: The date and time the connected site was created in ISO 8601 format.
  - `domain` string: The connected site domain.
  - `foreign_id` string: The unique identifier for the site.
  - `platform` string: The platform of the connected site.
  - `site_script` object: The script used to connect your site with Mailchimp.
    - `fragment` string: A pre-built script that you can copy-and-paste into your site to integrate it with Mailchimp.
    - `url` string: The URL used for any integrations that offer built-in support for connected sites.
  - `store_id` string: The unique identifier for the ecommerce store that's associated with the connected site (if any). The store_id for a specific connected site can't change.
  - `updated_at` string, date-time: The date and time the connected site was last updated in ISO 8601 format.

## Other responses

- `default`: An error generated by the Mailchimp API.

---

[API](https://skmtc.dev/mailchimp/apis/mailchimp-api.md) - [All operations](https://skmtc.dev/mailchimp/apis/mailchimp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mailchimp/apis/mailchimp-api/revisions/53bf4b156855?raw)
