Can't Access Segments through createsend api calls, PHP

Greetings,

I am using createsend-php library to try and access segments through the api.  I am trying both the `get` and `clear_rules` methods.  I am successfully making other calls (like adding emails to a list) but when I make this one I get "Invalid SegmentID or the Segment doesn't exist"

I have checked, double checked, triple checked to make sure that the segment Id in my api call matches the one in my web dashboard. 

Has anyone else had this issue? Are there more permissions required to make this call?? Is this something on my end or on createsend's end?

Phil Phil, 1 year ago

Hi,

I have checked, double checked, triple checked to make sure that the segment Id in my api call matches the one in my web dashboard.

The problem here is that you can't use the segmentIDs from the web application in the API.

You can access the segmentIDs via one of the two following API calls:

1. Get all client segments
2. Get list segments

Sign up for free.
Then send campaigns for as little as $9p/m

Create an account