Get campaign list

Request URL

GET   https://api.3seventy.com/api/v2.1/account/{accountId}/campaign?onlyMine={onlyMine}

Request Properties

Parameter Description Mandatory
accountId The ID of the account that the campaigns belong to. Yes
onlyMine Unset to display all items. No

Response Properties

Property Description
AccountId The account that this campaign belongs to.
CampaignType Caampaign Type
CampaignTypeId The campaign type.
ContentId Pointer to the attached content group.
IsDefault This is to set a default campaign
Name Name of the campaign
Session Set to indicate that a campaign should start a session when the user first enters it.
SessionLength Dictates the timeout period for sessions. Sessions that exceed this value in milliseconds before a response will expire.
SingleUse This Flag is for checking Single Send Campaign. default value is False.
SingleUseContentId This is set to the content Id for Single Send Campaign response.
SubscriptionId The default subscription to opt someone into on this campaign.
UserData Arbitrary user data field.


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program

private static void Main(string[] args)

const int accountId = XXXX;

var context = new T70Context();

var campaignRepo = context.Repository<Campaign>(new { AccountId = accountId });

var list = campaignRepo.GetAll();




Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet