Returns a single conversion action identified by its unique action key string.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/action/{actionKey}.do
Returns a single conversion action identified by its unique action key string. If the optional 'campaignId' query parameter is provided, the response will include the computed pixel key for that campaign context (derived from advertiser ID + campaign ID + action ID). Without campaignId, 'pixelKey' is omitted from the response. Returns 404 if no action matches the given key. Requires authentication.
Path Params
actionKeystringrequired
The unique action key string that identifies the action.
a1b2c3d4e5
Query Params
campaignIdinteger
Optional campaign ID. When provided, the response includes the computed pixelKey for this campaign context (advertiserID + campaignID + actionID).
2001
Responses
200
Action object with id, key, name, conversion time frames, and optionally a campaign-specific pixelKey
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/action/a1b2c3d4e5.do?campaignId=2001");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());