[beta] Gets campaigns.
Gets campaigns. Optionally filter to specific campaign ids; returns 404 Not Found when none of the requested ids resolve to a campaign.
<b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
To use this endpoint, select Read Campaigns under the Work Orders category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
Request
- Base URLhttps://api.samsara.com
- AuthHTTP bearer
Query parameters
Comma-separated list of campaign IDs to filter by. Up to 100 ids. Returns all campaigns, paginated, when omitted. Returns 404 Not Found when none of the requested ids resolve to a campaign; ids that do not resolve (e.g. deleted) are otherwise omitted from the response.
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
Response
OK response.
Example response
{
"data": [
{
"campaignNumber": "26S38",
"campaignType": "safetyRecall",
"createdAtTime": "2026-01-20T15:04:05Z",
"createdSource": "api",
"description": "Replace rear brake hose per OEM bulletin.",
"endTime": "2026-08-01T00:00:00Z",
"id": "2d0e5e9b-4b2a-4e4e-9b8e-6c3f8a7d1e2f",
"isWarranty": true,
"name": "Rear brake hose recall",
"recallMetadata": {
"nhtsaRecallNumber": "24V-123",
"oemNotificationTime": "2026-01-15T00:00:00Z",
"oemRecallNumber": "26S38",
"ownerNotificationTime": "2026-02-01T00:00:00Z",
"partsAvailableTime": "2026-03-01T00:00:00Z",
"recallSource": "recallMasters",
"remedyAvailableTime": "2026-03-01T00:00:00Z",
"supersededByRecallNumber": "26S40"
},
"startTime": "2026-02-01T00:00:00Z",
"status": {
"id": "f6e83fa8-c1fb-5d15-8832-693161b9c6e7",
"name": "Draft",
"state": "draft"
},
"updatedAtTime": "2026-01-21T09:30:00Z",
"workOrderPriority": "High",
"workOrderTemplateId": "5523a39f-42ef-4820-83d0-dfe73dbe7853"
}
],
"pagination": {
"endCursor": "MjkY",
"hasNextPage": true
}
}Changes
No recorded changes to this operation across all 1 revision of this API.