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

# Get Contact By Event ID

Returns the contact that a tracking-log entry belongs to. eventId must be the id of a tracking log entry, as returned by GET /contacts/{id}/trackingLogs or GET /trackingLogs. It is not a contact id and not an event-tracking event name. Passing a contact id returns 404 (No Result found for TrackingLog) when no entry has that id, or the contact of an unrelated entry when one does, so a 200 does not mean the id spaces are interchangeable. To fetch a contact by contact id, use GET /contacts/{id} (get-contact) instead. To list the tracking events of a known contact, use GET /contacts/{id}/trackingLogs.

```json GET /eventTracking (Example RESPONSE)
{
  "eventTracking" {
    "enabled": true
  }
}
```

# 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": {
    "/trackingLogs/{eventId}/contact": {
      "get": {
        "summary": "Get Contact By Event ID",
        "description": "Returns the contact that a tracking-log entry belongs to. eventId must be the id of a tracking log entry, as returned by GET /contacts/{id}/trackingLogs or GET /trackingLogs. It is not a contact id and not an event-tracking event name. Passing a contact id returns 404 (No Result found for TrackingLog) when no entry has that id, or the contact of an unrelated entry when one does, so a 200 does not mean the id spaces are interchangeable. To fetch a contact by contact id, use GET /contacts/{id} (get-contact) instead. To list the tracking events of a known contact, use GET /contacts/{id}/trackingLogs.",
        "operationId": "get-contact-by-event-id",
        "parameters": [
          {
            "name": "eventId",
            "in": "path",
            "description": "The id of a tracking log entry: the id field returned by GET /contacts/{id}/trackingLogs or GET /trackingLogs. Not a contact id and not an event name; to look up a contact by its id use GET /contacts/{id} instead.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"contact\": {\n        \"cdate\": \"2022-09-22T12:36:33-05:00\",\n        \"email\": \"jd@example.com\",\n        \"phone\": \"555-555-5555\",\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"orgid\": \"0\",\n        \"orgname\": \"\",\n        \"segmentio_id\": \"\",\n        \"bounced_hard\": \"0\",\n        \"bounced_soft\": \"0\",\n        \"bounced_date\": \"0000-00-00\",\n        \"ip\": \"0\",\n        \"ua\": \"\",\n        \"hash\": \"ef73fe360240b8bf171744f7f341524f\",\n        \"socialdata_lastcheck\": \"0000-00-00 00:00:00\",\n        \"email_local\": \"\",\n        \"email_domain\": \"example.com\",\n        \"sentcnt\": \"0\",\n        \"rating_tstamp\": \"0000-00-00\",\n        \"gravatar\": \"0\",\n        \"deleted\": \"0\",\n        \"anonymized\": \"0\",\n        \"adate\": \"2022-09-27T14:57:35-05:00\",\n        \"udate\": \"2022-09-22T12:36:33-05:00\",\n        \"edate\": \"2022-09-27T13:36:04-05:00\",\n        \"deleted_at\": \"0000-00-00 00:00:00\",\n        \"created_utc_timestamp\": \"2022-09-22 12:36:33\",\n        \"updated_utc_timestamp\": \"2022-09-27 13:36:04\",\n        \"created_timestamp\": \"2022-09-22 12:36:33\",\n        \"updated_timestamp\": \"2022-09-27 13:36:04\",\n        \"created_by\": \"0\",\n        \"updated_by\": \"0\",\n        \"email_empty\": false,\n        \"mpp_tracking\": \"0\",\n        \"links\": {\n            \"bounceLogs\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/bounceLogs\",\n            \"contactAutomations\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/contactAutomations?limit=1000&orders%5Blastdate%5D=DESC\",\n            \"contactData\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/contactData\",\n            \"contactGoals\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/contactGoals\",\n            \"contactLists\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/contactLists\",\n            \"contactLogs\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/contactLogs\",\n            \"contactTags\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/contactTags\",\n            \"contactDeals\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/contactDeals\",\n            \"deals\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/deals\",\n            \"fieldValues\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/fieldValues\",\n            \"geoIps\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/geoIps\",\n            \"notes\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/notes\",\n            \"organization\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/organization\",\n            \"plusAppend\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/plusAppend\",\n            \"trackingLogs\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/trackingLogs\",\n            \"scoreValues\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/scoreValues\",\n            \"accountContacts\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/accountContacts\",\n            \"automationEntryCounts\": \"https://yourAccountName.api-us1.com/api/3/contacts/112/automationEntryCounts\"\n        },\n        \"id\": \"112\",\n        \"organization\": null\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "contact": {
                      "type": "object",
                      "properties": {
                        "cdate": {
                          "type": "string",
                          "example": "2022-09-22T12:36:33-05:00"
                        },
                        "email": {
                          "type": "string",
                          "example": "jd@example.com"
                        },
                        "phone": {
                          "type": "string",
                          "example": "555-555-5555"
                        },
                        "firstName": {
                          "type": "string",
                          "example": "John"
                        },
                        "lastName": {
                          "type": "string",
                          "example": "Doe"
                        },
                        "orgid": {
                          "type": "string",
                          "example": "0"
                        },
                        "orgname": {
                          "type": "string",
                          "example": ""
                        },
                        "segmentio_id": {
                          "type": "string",
                          "example": ""
                        },
                        "bounced_hard": {
                          "type": "string",
                          "example": "0"
                        },
                        "bounced_soft": {
                          "type": "string",
                          "example": "0"
                        },
                        "bounced_date": {
                          "type": "string",
                          "example": "0000-00-00"
                        },
                        "ip": {
                          "type": "string",
                          "example": "0"
                        },
                        "ua": {
                          "type": "string",
                          "example": ""
                        },
                        "hash": {
                          "type": "string",
                          "example": "ef73fe360240b8bf171744f7f341524f"
                        },
                        "socialdata_lastcheck": {
                          "type": "string",
                          "example": "0000-00-00 00:00:00"
                        },
                        "email_local": {
                          "type": "string",
                          "example": ""
                        },
                        "email_domain": {
                          "type": "string",
                          "example": "example.com"
                        },
                        "sentcnt": {
                          "type": "string",
                          "example": "0"
                        },
                        "rating_tstamp": {
                          "type": "string",
                          "example": "0000-00-00"
                        },
                        "gravatar": {
                          "type": "string",
                          "example": "0"
                        },
                        "deleted": {
                          "type": "string",
                          "example": "0"
                        },
                        "anonymized": {
                          "type": "string",
                          "example": "0"
                        },
                        "adate": {
                          "type": "string",
                          "example": "2022-09-27T14:57:35-05:00"
                        },
                        "udate": {
                          "type": "string",
                          "example": "2022-09-22T12:36:33-05:00"
                        },
                        "edate": {
                          "type": "string",
                          "example": "2022-09-27T13:36:04-05:00"
                        },
                        "deleted_at": {
                          "type": "string",
                          "example": "0000-00-00 00:00:00"
                        },
                        "created_utc_timestamp": {
                          "type": "string",
                          "example": "2022-09-22 12:36:33"
                        },
                        "updated_utc_timestamp": {
                          "type": "string",
                          "example": "2022-09-27 13:36:04"
                        },
                        "created_timestamp": {
                          "type": "string",
                          "example": "2022-09-22 12:36:33"
                        },
                        "updated_timestamp": {
                          "type": "string",
                          "example": "2022-09-27 13:36:04"
                        },
                        "created_by": {
                          "type": "string",
                          "example": "0"
                        },
                        "updated_by": {
                          "type": "string",
                          "example": "0"
                        },
                        "email_empty": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "mpp_tracking": {
                          "type": "string",
                          "example": "0"
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "bounceLogs": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/bounceLogs"
                            },
                            "contactAutomations": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/contactAutomations?limit=1000&orders%5Blastdate%5D=DESC"
                            },
                            "contactData": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/contactData"
                            },
                            "contactGoals": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/contactGoals"
                            },
                            "contactLists": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/contactLists"
                            },
                            "contactLogs": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/contactLogs"
                            },
                            "contactTags": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/contactTags"
                            },
                            "contactDeals": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/contactDeals"
                            },
                            "deals": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/deals"
                            },
                            "fieldValues": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/fieldValues"
                            },
                            "geoIps": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/geoIps"
                            },
                            "notes": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/notes"
                            },
                            "organization": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/organization"
                            },
                            "plusAppend": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/plusAppend"
                            },
                            "trackingLogs": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/trackingLogs"
                            },
                            "scoreValues": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/scoreValues"
                            },
                            "accountContacts": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/accountContacts"
                            },
                            "automationEntryCounts": {
                              "type": "string",
                              "example": "https://yourAccountName.api-us1.com/api/3/contacts/112/automationEntryCounts"
                            }
                          }
                        },
                        "id": {
                          "type": "string",
                          "example": "112"
                        },
                        "organization": {}
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"No Result found for TrackingLog with id 999\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "No Result found for TrackingLog with id 999"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```