GET List campaigns
Base URL: https://server-url-from-token-page.endpoint. Version: 1.2.0.
GET /api/v1/public/campaigns — List campaigns
Read-only operation
List campaign rows by platform and filter. This is direct campaign/ad inventory or detail, not an account/company media summary tool and not an all-technique reporting path. LinkedIn supports explicit dateRange with an inclusive from and exclusive to; dateRange takes precedence over duration. When both are omitted in AI/API invocation, LinkedIn defaults to LAST_3_MONTHS and other platforms default to ALL_TIME. Individual Targeting ad-library rows do not support dateRange because they are cumulative snapshots. Response metadata reports the effective provider range.
Use URL path and query parameters; no request body. Query arrays and objects are JSON-encoded where indicated. Workspace scope comes exclusively from the bearer credential. Available to read-only and read/write API credentials.
Parameters
sort(query, object, optional)JSON-encoded query value.
- Send one JSON-encoded query value
sort query schema
{ "nullable": true, "type": "object", "properties": { "key": { "type": "string" }, "order": { "type": "integer" } }, "required": [ "key", "order" ], "additionalProperties": false }key(query, string, required)See the JSON schema for this field’s contract.
order(query, integer, required)See the JSON schema for this field’s contract.
platform(query, LINKEDIN | INDIVIDUAL_TARGETING, required)query parameter
ids(query, string[], optional)JSON-encoded query value.
- Send one JSON-encoded query value
ids query schema
{ "nullable": true, "type": "array", "items": { "type": "string" } }duration(query, LAST_WINDOW | TODAY | YESTERDAY | THIS_WEEK | LAST_WEEK | THIS_MONTH | LAST_MONTH | LAST_7_DAYS | LAST_30_DAYS | LAST_3_MONTHS | ALL_TIME | null, optional)query parameter
dateRange(query, object, optional)JSON-encoded query value.
- Send one JSON-encoded query value
dateRange query schema
{ "nullable": true, "type": "object", "properties": { "from": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?(?:Z|[+-]\\d{2}:\\d{2})$" }, "to": { "nullable": true, "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?(?:Z|[+-]\\d{2}:\\d{2})$" } }, "required": [ "from" ], "additionalProperties": false }from(query, string, required)See the JSON schema for this field’s contract.
- Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3})?(?:Z|[+-]\d{2}:\d{2})$
to(query, string, optional)See the JSON schema for this field’s contract.
- Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3})?(?:Z|[+-]\d{2}:\d{2})$
status(query, (ACTIVE | PAUSED | COMPLETED | ARCHIVED | CANCELED | DRAFT | PENDING_DELETION | REMOVED)[], optional)JSON-encoded query value.
- Send one JSON-encoded query value
status query schema
{ "nullable": true, "type": "array", "items": { "type": "string", "enum": [ "ACTIVE", "PAUSED", "COMPLETED", "ARCHIVED", "CANCELED", "DRAFT", "PENDING_DELETION", "REMOVED" ] } }skip(query, integer, optional)query parameter
take(query, integer, optional)query parameter
JSON response schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{}
],
"description": "Campaign id."
},
"name": {
"type": "string",
"description": "Campaign name."
},
"status": {
"type": "string",
"enum": [
"ACTIVE",
"PAUSED",
"COMPLETED",
"ARCHIVED",
"CANCELED",
"DRAFT",
"PENDING_DELETION",
"REMOVED"
],
"description": "Campaign status."
},
"type": {
"type": "string",
"enum": [
"BRAND_AWARENESS",
"WEBSITE_VISIT",
"ENGAGEMENT",
"VIDEO_VIEW",
"LEAD_GENERATION",
"WEBSITE_CONVERSION",
"TALENT_LEAD",
"JOB_APPLICANT"
],
"description": "Provider campaign type/objective when available."
},
"mediaMetrics": {
"type": "object",
"properties": {
"impressions": {
"type": "number",
"description": "Media impressions."
},
"clicks": {
"type": "number",
"description": "Media clicks."
},
"ctr": {
"type": "number",
"description": "Click-through rate in percentage points; 2.44 means 2.44%."
},
"uniqueCtr": {
"type": "number",
"description": "Unique click-through rate in percentage points when available."
},
"reach": {
"type": "number",
"description": "Unique reach."
},
"averageDwellTime": {
"type": "number",
"description": "LinkedIn average dwell time in seconds when available."
},
"audiencePenetration": {
"type": "number",
"description": "LinkedIn campaign reach divided by target audience; 0.25 means 25%. Available only for supported campaign windows of 92 days or less."
},
"visits": {
"type": "number",
"description": "Website visit count when the media source includes visits."
},
"pageViews": {
"type": "number",
"description": "Website page-view count when available."
},
"count": {
"type": "number",
"description": "Generic source count when returned by the underlying metric source."
},
"engaged": {
"type": "number",
"description": "Engaged entity count when returned by the metric source."
},
"reached": {
"type": "number",
"description": "Reached entity count when returned by the metric source."
}
},
"additionalProperties": false,
"description": "Campaign-level media metrics aggregated for this campaign."
},
"ads": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{}
],
"description": "Ad/creative id."
},
"campaignId": {
"anyOf": [
{
"type": "string"
},
{}
],
"description": "Owning campaign id for cross-campaign inventory rows."
},
"campaignName": {
"type": "string",
"description": "Owning campaign name for cross-campaign inventory rows."
},
"name": {
"type": "string",
"description": "Ad/creative internal name."
},
"title": {
"type": "string",
"description": "Ad/creative title shown in reporting."
},
"commentary": {
"type": "string",
"description": "Ad commentary or copy when captured."
},
"status": {
"type": "string",
"enum": [
"ACTIVE",
"PAUSED",
"COMPLETED",
"ARCHIVED",
"CANCELED",
"DRAFT",
"PENDING_DELETION",
"REMOVED"
],
"description": "Ad/creative status when available."
},
"link": {
"type": "string",
"description": "Ad destination URL."
},
"thumbnailUrl": {
"type": "string",
"description": "Best available provider image or video-cover URL for list/detail presentation. LinkedIn image URNs are resolved through the Images API; signed URLs may expire."
},
"videoUrl": {
"type": "string",
"description": "Playable provider video URL, not a cover image; it may expire or be unavailable."
},
"mediaMetrics": {
"type": "object",
"properties": {
"impressions": {
"type": "number",
"description": "Media impressions."
},
"clicks": {
"type": "number",
"description": "Media clicks."
},
"ctr": {
"type": "number",
"description": "Click-through rate in percentage points; 2.44 means 2.44%."
},
"uniqueCtr": {
"type": "number",
"description": "Unique click-through rate in percentage points when available."
},
"reach": {
"type": "number",
"description": "Unique reach."
},
"averageDwellTime": {
"type": "number",
"description": "LinkedIn average dwell time in seconds when available."
},
"audiencePenetration": {
"type": "number",
"description": "LinkedIn campaign reach divided by target audience; 0.25 means 25%. Available only for supported campaign windows of 92 days or less."
},
"visits": {
"type": "number",
"description": "Website visit count when the media source includes visits."
},
"pageViews": {
"type": "number",
"description": "Website page-view count when available."
},
"count": {
"type": "number",
"description": "Generic source count when returned by the underlying metric source."
},
"engaged": {
"type": "number",
"description": "Engaged entity count when returned by the metric source."
},
"reached": {
"type": "number",
"description": "Reached entity count when returned by the metric source."
}
},
"additionalProperties": false,
"description": "Ad-level media metrics for this creative."
}
},
"required": [
"id"
],
"additionalProperties": false,
"description": "Compact ad list row. Commentary and destination link remain available for creative interpretation and follow-up."
}
}
},
"required": [
"id",
"name",
"status",
"mediaMetrics",
"ads"
],
"additionalProperties": false,
"description": "Compact campaign list row with nested ad previews. Ad previews retain names, commentary and destination links but omit timestamps."
},
"description": "Returned rows for this response page. Use metadata counts/rollups for cohort totals; do not infer full-cohort averages from this array when pagination can apply."
},
"metadata": {
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Generic total/count metadata for the current response shape. Read countSemantics when present before interpreting it; this is not a sum or average of metrics on returned rows."
},
"hasMore": {
"type": "boolean"
},
"metricTotals": {
"type": "object",
"additionalProperties": {
"type": "number"
}
},
"dateRange": {
"type": "object",
"properties": {
"from": {
"type": "string",
"format": "date-time"
},
"to": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": true
},
"totalRowsMatchingFilters": {
"type": "number",
"description": "AI report helper: total report rows matching the supplied filters before pagination."
},
"countSemantics": {
"type": "string",
"description": "Explains what metadata.count means for this response. Use it before making count claims, and do not infer metric totals or averages from paginated rows."
},
"reportType": {
"type": "string",
"enum": [
"APIFP",
"DPIFP",
"AMPS",
"SMP",
"SMPC",
"STAM",
"ALIP",
"AIPP",
"AGEOP",
"AITP",
"ITMP",
"ITMIM",
"AWP",
"DMPS",
"NTAWP",
"NTAAR"
],
"description": "AI report helper: canonical report type whose base-row policy produced metadata.count."
},
"includeZeroMetricRowsApplied": {
"type": "boolean",
"description": "AI report helper: whether the report router activated its zero-metric-row option from explicit input or zero-inclusive metric-filter inference. Read rowInclusionSemantics for the report type's actual base-row policy."
},
"rowInclusionSemantics": {
"type": "string",
"description": "AI report helper: report-specific base-row eligibility applied before supplied filters and pagination. Read this before treating metadata.count as an account or stakeholder population."
},
"metricFiltersApplied": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"operator": {
"type": "string"
},
"value": {
"type": "number"
}
},
"required": [
"path",
"operator",
"value"
],
"additionalProperties": true
},
"description": "AI report helper: metric threshold filters applied before pagination/counting."
}
},
"additionalProperties": true,
"description": "Response metadata such as counts, resolved filters, date windows, or pagination semantics. Read this before making count/total claims."
}
},
"required": [
"data",
"metadata"
],
"additionalProperties": true
}Responses
200: Operation receipt or read result. Arrays are returned under items; scalar and null results under value.
RateLimit-Policy(header, value, optional)Response header
RateLimit-Limit(header, value, optional)Response header
RateLimit-Remaining(header, value, optional)Response header
RateLimit-Reset(header, value, optional)Response header
400: Invalid operation input or record identifiers.
400 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}401: Bearer credential is missing, expired or invalid.
401 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}402: Insufficient research credits. Add credits before retrying.
402 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}403: Write access or resource permission is required.
403 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}404: Record is not available in the credential workspace.
404 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}405: Use the documented HTTP method.
405 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}409: Revision conflict or a record has dependencies. Refetch and reconcile links before retrying.
409 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}413: Request exceeds the permitted JSON body size.
413 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}429: Rate limit exceeded. Observe Retry-After.
RateLimit-Policy(header, value, optional)Response header
RateLimit-Limit(header, value, optional)Response header
RateLimit-Remaining(header, value, optional)Response header
RateLimit-Reset(header, value, optional)Response header
429 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}500: Internal server error.
500 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}503: Service temporarily unavailable. Observe Retry-After when present.
503 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}504: Execution timed out. A write may have committed; check receipts or progress before retrying.
504 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}List campaigns
curl "https://server-url-from-token-page.endpoint/api/v1/public/campaigns?platform=LINKEDIN" \
-H "Authorization: Bearer $DOE_API_TOKEN" \
-H "Accept: application/json"Response example
No response example is supplied. See the JSON response schema.