swagger: '2.0' info: description: The Constant Contact, Inc. V3 public API, for building integrations with Constant Contact, the leading small-business email marketing platform. version: 3.0.149 title: AppConnect V3 Account Services Contact Lists API contact: name: webservices@constantcontact.com license: name: Private url: https://www.constantcontact.com/legal/terms-of-use host: api.cc.email basePath: /v3 schemes: - https consumes: - application/json produces: - application/json tags: - name: Contact Lists description: Endpoints and methods to get, create, delete, and update one or more contact lists. paths: /contact_lists/{list_id}: get: tags: - Contact Lists summary: GET a List description: Use this method to get details about a specific contact list (`list_id`). operationId: getList produces: - application/json parameters: - name: list_id in: path description: The system generated ID that uniquely identifies a contact list. required: true type: string format: uuid x-example: cbc05bac-6a41-46fa-a063-79961763bf4b - name: include_membership_count in: query description: Returns the total number of contacts per list that meet your selection criteria. Set the `include_membership_count` to `active`, to count only active contacts, or `all` to include all contacts in the count. required: false type: string enum: - all - active x-example: all responses: '200': description: Request successful schema: $ref: '#/definitions/ContactList' '401': description: The Access Token used is invalid. '403': description: Forbidden request. You lack the necessary scopes, you lack the necessary user privileges, or the application is deactivated. '404': description: The requested resource was not found. '500': description: There was a problem with our internal service. '503': description: Our internal service is temporarily unavailable. security: - oauth2_implicit: - contact_data - oauth2_access_code: - contact_data x-authorization-privileges: - contacts:lists:read put: tags: - Contact Lists summary: PUT (update) a List description: Updates an existing contact list resource, specified by `list_id` operationId: putList consumes: - application/json produces: - application/json parameters: - name: list_id in: path description: Unique ID of the contact list to update required: true type: string format: uuid x-example: cbc05bac-6a41-46fa-a063-79961763bf4b - in: body name: JSON PUT body description: JSON payload containing updates to the specified contact list required: true schema: $ref: '#/definitions/ListInput' responses: '200': description: Request successful schema: $ref: '#/definitions/ContactListPutPost' '400': description: Bad request. Either the JSON was malformed or there was a data validation error. '401': description: The Access Token used is invalid. '403': description: Forbidden request. You lack the necessary scopes, you lack the necessary user privileges, or the application is deactivated. '404': description: The requested resource was not found. '500': description: There was a problem with our internal service. '503': description: Our internal service is temporarily unavailable. security: - oauth2_implicit: - contact_data - oauth2_access_code: - contact_data x-authorization-privileges: - contacts:lists:write x-ctctmcp-allow: true x-sdk-methodName: updateList delete: tags: - Contact Lists summary: DELETE a List description: Deletes the specified contact list and its membership. DELETE List requests are processed asynchronously, and you can track the status of the request by making a GET call to the URI shown in the `_links` property in the response. operationId: deleteListActivity consumes: - application/json produces: - application/json parameters: - name: list_id in: path description: Unique ID of the list to delete required: true type: string format: uuid x-example: cbc05bac-6a41-46fa-a063-79961763bf4b responses: '202': description: Accepted headers: Location: type: string description: URL to retrieve the delete activity status schema: $ref: '#/definitions/ActivityDeleteListResponse' '401': description: The Access Token used is invalid. '403': description: Forbidden request. You lack the necessary scopes, you lack the necessary user privileges, or the application is deactivated. '404': description: The requested resource was not found. '415': description: Unsupported Media Type. '500': description: There was a problem with our internal service. '503': description: Our internal service is temporarily unavailable. security: - oauth2_implicit: - contact_data - oauth2_access_code: - contact_data x-authorization-privileges: - contacts:lists:write x-sdk-methodName: deleteList /contact_lists: get: tags: - Contact Lists summary: GET Lists Collection description: 'Use this method to return details about all contact lists for the account.
This method does not currently support filtering results using the contact list update date.
Use this endpoint to migrate your locally stored V2 contact list data to the new V3 format. Developers are expected to use this endpoint sparingly. This endpoint is NOT intended for regular or repeated use. Constant Contact will eventually deprecate and remove this endpoint.
list_id and V2 API sequence_id properties. Response is sorted ascending by sequence_id.
items:
$ref: '#/definitions/ListXref'
maxItems: 500
PagingLinks:
type: object
properties:
next:
$ref: '#/definitions/Link'
ContactListPutPost:
type: object
required:
- list_id
- name
properties:
list_id:
type: string
format: uuid
example: 06526938-56dd-11e9-932a-fa163ea075fa
description: Unique ID for the contact list
readOnly: true
name:
type: string
example: Multiple purchases
description: The name given to the contact list
description:
type: string
example: List of repeat customers.
description: Text describing the list.
favorite:
type: boolean
description: Identifies whether or not the account has favorited the contact list.
default: false
created_at:
type: string
format: date-time
example: '2016-01-23T13:48:44.108Z'
description: System generated date and time that the resource was created, in ISO-8601 format.
readOnly: true
updated_at:
type: string
format: date-time
example: '2016-03-03T10:56:29-05:00'
description: Date and time that the list was last updated, in ISO-8601 format. System generated.
readOnly: true
deleted_at:
type: string
format: date-time
example: '2016-03-03T10:56:29-05:00'
description: If the list was deleted, this property shows the date and time it was deleted, in ISO-8601 format. System generated.
readOnly: true
ListXref:
type: object
properties:
sequence_id:
type: string
example: '0016633325'
description: The V2 API list unique identifier
list_id:
type: string
format: uuid
example: 71600990-908b-11e6-907f-1200166bff25
description: The V3 API list unique identifier
description: The cross-referenced pair of V3 API list_id and V2 API sequence_id for a list. Response is sorted ascending by sequence_id.
ContactListArray:
type: object
properties:
lists:
type: array
items:
$ref: '#/definitions/ContactList'
lists_count:
type: integer
example: 249
description: The total number of contact lists.
_links:
$ref: '#/definitions/PagingLinks'
ListInput:
type: object
required:
- name
properties:
name:
type: string
example: Multiple purchases
description: The name given to the contact list
maxLength: 255
favorite:
type: boolean
example: true
description: Identifies whether or not the account has favorited the contact list.
default: false
description:
type: string
example: List of repeat customers
description: Text describing the list.
ContactList:
type: object
required:
- list_id
- name
properties:
list_id:
type: string
format: uuid
example: 06526938-56dd-11e9-932a-fa163ea075fa
description: Unique ID for the contact list
readOnly: true
name:
type: string
example: Multiple purchases
description: The name given to the contact list
description:
type: string
example: List of repeat customers.
description: Text describing the list.
favorite:
type: boolean
description: Identifies whether or not the account has favorited the contact list.
default: false
created_at:
type: string
format: date-time
example: '2016-01-23T13:48:44.108Z'
description: System generated date and time that the resource was created, in ISO-8601 format.
readOnly: true
updated_at:
type: string
format: date-time
example: '2016-03-03T10:56:29-05:00'
description: Date and time that the list was last updated, in ISO-8601 format. System generated.
readOnly: true
deleted_at:
type: string
format: date-time
example: '2016-03-03T10:56:29-05:00'
description: If the list was deleted, this property shows the date and time it was deleted, in ISO-8601 format. System generated.
readOnly: true
membership_count:
type: integer
example: 327
description: The total number of contacts that are members in a list. Does not apply to segment type lists.
readOnly: true
Link:
type: object
properties:
href:
type: string
example: /v3/activities/04fe9a97-a579-43c5-bb1a-58ed29bf0a6a
ActivityDeleteListResponse:
type: object
properties:
activity_id:
type: string
format: uuid
description: Unique ID for the delete list batch job.
state:
type: string
example: initialized
description: "The state of the request:\n