How to retrieve campaign information using v1 REST API

I am trying to retrieve information about a specific campaign in a Laravel application that uses the Keap Infusionsoft v1 API, so I’m using Infusionsoft.php and related classes. How do I use the available calls to retrieve all data on a single campaign, including a list of all defined sequences? I’ve looked at the API documentation at Keap REST API, and it doesn’t help. It appears to be talking about direct GET calls to a url, not calls to infusionsoft.php functions.

Thanks for any help you can give me.

The v1 REST API is kind of limited when it comes to campaign info. You can pull things like contacts, tags, and tasks pretty easily, but getting actual campaign structure or stats isn’t really supported.

If you just need to know whether a contact is in a certain campaign or sequence, sometimes using goals or tags as markers can help track that indirectly. Not perfect, but better than nothing.

Welcome @Gabe_Kressel,

Sean question is related to Keap SDK. The REST API documentation mentions the Endpoints, but has no examples in how to use it with their SDK.

The Automation Sequences can be retrieved via this Endpoints below, but you need to get into the “campaigns” response to get all the info.

https://developer.infusionsoft.com/docs/rest/#tag/Campaign/operation/listCampaignsUsingGET

https://developer.infusionsoft.com/docs/rest/#tag/Campaign/operation/getCampaignUsingGET

As for Keap SDK, it maybe something like the following I believe.

$sdk->campaigns()->find(<ID NUMBER>);