[HTTP GET] ~/contacts/{contactId}/campaignactivities/{campaignId}

Description: Get all interactions a Contact has in a given Campaign

Request Information

URI Parameters

NameDescriptionTypeAdditional information
contactId

Encrypted Contact Id

string

Required

campaignId

The campaign the Activites come from

integer

Required

Body Parameters

None

Response Information

Description

Successful Response - OK (200):

A ContactActivitySummary

Response Content : Collection of ContactInteraction

NameDescriptionTypeAdditional information
Id

The ID of the Interaction

integer

None.

Interaction

The Type of Interaction (Email, SMS, LandingPage, Event, WebForm Competition, etc...)

string

None.

Name

The Name of the Email/Sms/Webform, etc...

string

None.

Occurred

The Date the Interaction happened

date

None.

Status

The Last status of the Interaciton.

string

None.

CampaignId

The Id of the Campaign this interaction is a part of

integer

None.

CampaignName

The Name of the Campaign this interaction is a part of

string

None.


Response Codes:

  • 200 - OK
    • The specified Contact's Campaign Interactions were retrieved and returned successfully.
  • 401 - Unauthorized
    • Request has been denied as it lacks valid Authentication credentials.
  • 403 - Forbidden
    • The user does not have the relevant permissions to perform this action.
  • 404 - NotFound
    • The specified Contact or Campaign were not found.
  • 500 - InternalServerError
    • An error occurred while processing this request.

Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Interaction": "sample string 2",
    "Name": "sample string 3",
    "Occurred": "2024-05-06T00:56:50.6912981+01:00",
    "Status": "sample string 4",
    "CampaignId": 1,
    "CampaignName": "sample string 5"
  },
  {
    "Id": 1,
    "Interaction": "sample string 2",
    "Name": "sample string 3",
    "Occurred": "2024-05-06T00:56:50.6912981+01:00",
    "Status": "sample string 4",
    "CampaignId": 1,
    "CampaignName": "sample string 5"
  }
]

application/csp-report

Sample:
[{"Id":1,"Interaction":"sample string 2","Name":"sample string 3","Occurred":"2024-05-06T00:56:50.6912981+01:00","Status":"sample string 4","CampaignId":1,"CampaignName":"sample string 5"},{"Id":1,"Interaction":"sample string 2","Name":"sample string 3","Occurred":"2024-05-06T00:56:50.6912981+01:00","Status":"sample string 4","CampaignId":1,"CampaignName":"sample string 5"}]

application/xml, text/xml

Sample:
<ArrayOfContactInteraction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/W50API.Models.DTO.Contacts">
  <ContactInteraction>
    <CampaignId>1</CampaignId>
    <CampaignName>sample string 5</CampaignName>
    <Id>1</Id>
    <Interaction>sample string 2</Interaction>
    <Name>sample string 3</Name>
    <Occurred xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2024-05-05T23:56:50.6912981Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>60</d3p1:OffsetMinutes>
    </Occurred>
    <Status>sample string 4</Status>
  </ContactInteraction>
  <ContactInteraction>
    <CampaignId>1</CampaignId>
    <CampaignName>sample string 5</CampaignName>
    <Id>1</Id>
    <Interaction>sample string 2</Interaction>
    <Name>sample string 3</Name>
    <Occurred xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2024-05-05T23:56:50.6912981Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>60</d3p1:OffsetMinutes>
    </Occurred>
    <Status>sample string 4</Status>
  </ContactInteraction>
</ArrayOfContactInteraction>