Returns a profile's daily Mapbox map views over a period, with their sum. The profile's Mapbox token is looked up server-side; token ids are never returned.
start and end are each a date (YYYY-MM-DD, read as midnight UTC) or a date-time with a zone (2026-10-01T00:00:00Z, 2026-10-01T00:00:00.000+02:00). Both are passed to Mapbox in UTC.
Authorization
Internal API clients only, and SERVER users only, whatever the server's ZWS mode.
Query parameters
-
id of the profile
-
start of the period, ISO-8601 date or date-time
-
end of the period, ISO-8601 date or date-time; not before
start
Responses
-
OK
-
Bad Request -
profile_idis missing or not a positive integer,startorendis missing or not an ISO-8601 date or date-time, orstartis afterend. -
Unauthorized - missing or invalid bearer token.
-
Forbidden - the client is not internal, or the user is not a SERVER user.
-
Not Found - the profile has no Mapbox token on this server.
-
Conflict - Mapbox is not enabled on this server.
-
Bad Gateway - Mapbox could not be reached, answered with an error (its HTTP status is in
error_message), or returned an unexpected response. -
Service Unavailable - the Mapbox user or key is not configured on this server.
curl \
--request GET 'https://api.iformbuilder.com/exzact/api/v81/[servername]/mapbox/mapviews?profile_id=123456&start=2026-10-01&end=2026-10-31' \
--header "Authorization: Bearer {access_token}"
{
"profile_id": 123456,
"dates": [
"2026-10-01T00:00:00.000Z",
"2026-10-02T00:00:00.000Z",
"2026-10-03T00:00:00.000Z"
],
"mapviews": [
3,
0,
12
],
"total": 15
}