---
updatedAt: 2026-11-10T17:49:36.000Z
agentTools:
  projectIndex: https://developers.activecampaign.com/llms.txt
---

# List all secondary contacts

Lists links between contacts and deals, 20 per page by default and up to 100 per page (limit). By default only secondary contacts are listed: a link for the deal's primary contact, and a link whose deal no longer exists, are left out. Send include_primary_contact=1 to also list primary contacts, with each deal's primary contact first. Narrow the list with filters[deal] and filters[contact], which match exactly. The order of the other links is not guaranteed. lastContactDate and lastContactType are added when the contact has had a qualifying activity. Only one link per contact on the page carries them; the contact's other links leave them out. Needs the deals permission. For one contact's links use GET /contacts/{id}/contactDeals; for one deal's links use GET /deals/{id}/contactDeals.

To retrieve all secondary contacts, the user should have permission to manage deals.

```json GET /contactDeals (Example RESPONSE)
{
    "contactDeals": [
        {
            "deal": "2",
            "contact": "1",
            "cdate": "2019-02-25T08:16:56-06:00",
            "links": {
                "deal": "/api/3/contactDeals/1/deal",
                "contact": "/api/3/contactDeals/1/contact"
            },
            "id": "1"
        }
    ],
    "meta": {
        "total": "1"
    }
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "v3",
    "version": "3"
  },
  "servers": [
    {
      "url": "https://{youraccountname}.api-us1.com/api/3",
      "variables": {
        "youraccountname": {
          "default": "youraccountname"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Api-Token",
        "in": "header",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/contactDeals": {
      "get": {
        "summary": "List all secondary contacts",
        "description": "Lists links between contacts and deals, 20 per page by default and up to 100 per page (limit). By default only secondary contacts are listed: a link for the deal's primary contact, and a link whose deal no longer exists, are left out. Send include_primary_contact=1 to also list primary contacts, with each deal's primary contact first. Narrow the list with filters[deal] and filters[contact], which match exactly. The order of the other links is not guaranteed. lastContactDate and lastContactType are added when the contact has had a qualifying activity. Only one link per contact on the page carries them; the contact's other links leave them out. Needs the deals permission. For one contact's links use GET /contacts/{id}/contactDeals; for one deal's links use GET /deals/{id}/contactDeals.",
        "operationId": "list-all-secondary-contacts",
        "parameters": [
          {
            "name": "filters[deal]",
            "in": "query",
            "description": "Only links to this deal id.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "filters[contact]",
            "in": "query",
            "description": "Only links for this contact id.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "include_primary_contact",
            "in": "query",
            "description": "Send 1 to also list each deal's primary contact, sorted first. Without it, primary contacts are left out.",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of links per page. Default 20, maximum 100.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Number of links to skip before the page starts. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "description": "Comma-separated link ids to fetch. Overrides limit; offset still applies.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of links.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "contactDeals": {
                      "description": "The links on this page.",
                      "type": "array",
                      "items": {
                        "properties": {
                          "deal": {
                            "description": "Id of the deal.",
                            "type": "string",
                            "example": "2"
                          },
                          "contact": {
                            "description": "Id of the contact linked to the deal.",
                            "type": "string",
                            "example": "1"
                          },
                          "role": {
                            "description": "Id of the contact's deal role on this deal, from GET /dealRoles. Null when none is set.",
                            "type": [
                              "string",
                              "null"
                            ],
                            "example": null
                          },
                          "cdate": {
                            "description": "When the contact was linked to the deal, in ISO 8601. Null when not recorded.",
                            "type": [
                              "string",
                              "null"
                            ],
                            "example": "2019-02-25T08:16:56-06:00"
                          },
                          "created_timestamp": {
                            "description": "When the link row was created, as YYYY-MM-DD HH:MM:SS in US Central time (America/Chicago).",
                            "type": "string",
                            "example": "2019-02-25 08:16:56"
                          },
                          "updated_timestamp": {
                            "description": "When the link row last changed, as YYYY-MM-DD HH:MM:SS in US Central time (America/Chicago).",
                            "type": "string",
                            "example": "2019-02-25 08:16:56"
                          },
                          "created_by": {
                            "description": "Id of the user recorded as creating the link. Usually null.",
                            "type": [
                              "string",
                              "null"
                            ],
                            "example": null
                          },
                          "updated_by": {
                            "description": "Id of the user recorded as last changing the link. Usually null.",
                            "type": [
                              "string",
                              "null"
                            ],
                            "example": null
                          },
                          "links": {
                            "description": "URLs of the link's related reads.",
                            "properties": {
                              "deal": {
                                "description": "URL that returns the deal, GET /contactDeals/{id}/deal.",
                                "type": "string",
                                "example": "https://:account.api-us1.com/api/3/contactDeals/1/deal"
                              },
                              "contact": {
                                "description": "URL that returns the contact, GET /contactDeals/{id}/contact.",
                                "type": "string",
                                "example": "https://:account.api-us1.com/api/3/contactDeals/1/contact"
                              },
                              "role": {
                                "description": "URL that returns the contact's deal role, GET /contactDeals/{id}/role.",
                                "type": "string",
                                "example": "https://:account.api-us1.com/api/3/contactDeals/1/role"
                              }
                            },
                            "type": "object"
                          },
                          "id": {
                            "description": "Id of the link. This is not the contact id or the deal id.",
                            "type": "string",
                            "example": "1"
                          },
                          "lastContactDate": {
                            "description": "When the contact last had a qualifying activity: a one-to-one or campaign email, an automation start or finish, a forward, a reply, a text sent or received, an automation goal, a deal task, or an email in the contact's email activity. Absent when the contact has had none. Only one link per contact on the page carries it; the contact's other links leave it out.",
                            "type": [
                              "string",
                              "null"
                            ],
                            "example": "2026-09-30T11:02:41-05:00"
                          },
                          "lastContactType": {
                            "description": "Kind of that last activity, in the API user's language: Email, Text, or the deal task's type name. Task when the task no longer exists, and null when the task has no type. Absent when lastContactDate is absent.",
                            "type": [
                              "string",
                              "null"
                            ],
                            "example": "Email"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "meta": {
                      "description": "Paging information.",
                      "properties": {
                        "total": {
                          "description": "Number of matching links, ignoring limit and offset, as a string.",
                          "type": "string",
                          "example": "1"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "Result": {
                    "summary": "A successful response",
                    "value": "{\n    \"contactDeals\": [\n        {\n            \"deal\": \"2\",\n            \"contact\": \"1\",\n            \"cdate\": \"2019-02-25T08:16:56-06:00\",\n            \"links\": {\n                \"deal\": \"https://:account.api-us1.com/api/3/contactDeals/1/deal\",\n                \"contact\": \"https://:account.api-us1.com/api/3/contactDeals/1/contact\"\n            },\n            \"id\": \"1\"\n        }\n    ],\n    \"meta\": {\n        \"total\": \"1\"\n    }\n}"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API user does not have the deals permission.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "errors": {
                      "description": "One entry describing the refusal.",
                      "type": "array",
                      "items": {
                        "properties": {
                          "status": {
                            "description": "HTTP status code, always 403.",
                            "type": "integer",
                            "example": 403
                          },
                          "title": {
                            "description": "\"Forbidden\" in English; the title follows the API user's language.",
                            "type": "string",
                            "example": "Forbidden"
                          },
                          "detail": {
                            "description": "Says that the deals permission is needed.",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "Result": {
                    "summary": "The user may not do this",
                    "value": "{\n    \"errors\": [\n        {\n            \"status\": 403,\n            \"title\": \"Forbidden\",\n            \"detail\": \"Permissions for Deals is required to retrieve a deal contact\"\n        }\n    ]\n}"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```