Can't get Campaign sequences


I using the REST API to get my campaigns and then create/assign a contact to a specific sequence.

My issue is that I can get my campaigns but I get no sequence from them. My test campaign has an “email confirm sequence” and I’m using this endpoint to retrieve all the campaigns

This is the response body I’m getting

  "campaigns": [
      "error_message": null,
      "date_created": "2018-03-14T09:43:05.000+0000",
      "name": "Test Campaign",
      "active_contact_count": 0,
      "completed_contact_count": 0,
      "published_status": true,
      "id": 2,
      "published_time_zone": "Europe/London",
      "time_zone": "Europe/London",
      "published_date": "2018-03-26T22:41:26.000+0000"
  "count": 1,
  "next": "",
  "previous": ""

What am I missing here?

Thanks very much for the help!

Are you using the sequences keyword in your optional_properties parameter?

@John_Borelli nope. I’m just issuing a get to with the access token as header.

But I found the problems:

1 - wasn’t using the optional_properties in the request
2 - the sequence was in “draft” status.

After modifying both, I can get the sequences.

Would you please point me to the url where I can find more info about the optional_properties?

Thanks very much for the help!

I just realised that I need to retrieve a specific campaign in order to get its sequences… is that correct?

curl “” → returns no sequence

curl “**/2**?access_token=xxxx&optional_properties=sequences” → returns the sequences

Yes, that’s correct. The list information is general (mostly date/time information) and with the id from that you can get more specifics (like sequence information). The campaign url you are using has the optional_properties documented there but the only option at this time is ‘sequences’ (REST is still being developed so possibly more will be added as that continues).

1 Like

@John_Borelli Thanks very much for the help!

1 Like