Retrieve all hubs (planners) in the organization. This endpoint supports pagination and filtering based on hub IDs and update times.
Rate limit: 10 requests/sec (learn more about rate limits here).
To use this endpoint, select Read Routes under the Driver Workflow category when creating or editing an API token. Learn More.
Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
curl --request GET \
--url https://api.samsara.com/hubs \
--header 'Authorization: Bearer <token>'{
"data": [
{
"createdAt": "2024-01-15T10:30:00Z",
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "West Coast Distribution Center",
"timeZone": "America/Los_Angeles",
"updatedAt": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"hasNextPage": false,
"endCursor": "YXJyYXljb25uZWN0aW9uOjEwMA=="
}
}Documentation Index
Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A comma-separated list of hub IDs for filtering results.
Returns hubs updated after the specified time in UTC
Returns hubs updated before the specified time in UTC
If specified, should be the endCursor 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.
Maximum number of objects to return. Default and maximum is 100
x <= 100curl --request GET \
--url https://api.samsara.com/hubs \
--header 'Authorization: Bearer <token>'{
"data": [
{
"createdAt": "2024-01-15T10:30:00Z",
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "West Coast Distribution Center",
"timeZone": "America/Los_Angeles",
"updatedAt": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"hasNextPage": false,
"endCursor": "YXJyYXljb25uZWN0aW9uOjEwMA=="
}
}