Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts.
Use this to understand usage patterns, identify high-demand zones, and plan fleet distribution.
Failure Modes:
401: Token is missing or invalid
403: Insufficient permissions
404: no_data_binding when the provider or location is not enabled for your company, or no data for that location and period
An API key, sent as Authorization: Bearer <key>. Create one in the SWITCH Copilot under Settings → API keys (needs the API keys permission in your company), or with POST /auth/api-keys. The key is shown once, at creation.
Path Parameters
provider
string
required
Identifier of the mobility provider whose data you analyse, e.g. acme-bikes. It must be the provider of a data source enabled for your company's free-floating trip-history analytics; any other value is refused with 404 no_data_binding (kind: source). Your SWITCH contact tells you the provider identifiers and locations enabled for your company.
Query Parameters
geolabel
string
required
Location to analyse, e.g. milan: one of the locations (or their geolabels) that your company's trip-history analytics are enabled for with this provider. Any other value is refused (404 no_data_binding, or 403 for providers whose trips are stored per location).
Minimum string length: 1
Examples:
"milan"
"turin"
start_date
string<date-time>
required
Start of the analysis period, an ISO 8601 date-time, e.g. 2026-10-01T00:00:00Z.
Example:
"2026-10-01T00:00:00Z"
end_date
string<date-time>
required
End of the analysis period, an ISO 8601 date-time, e.g. 2026-10-31T23:59:59Z.
Example:
"2026-10-31T23:59:59Z"
start_hour
integer | null
Keep only trips starting at or after this hour of the day (0-23, in the data source's time zone, UTC unless configured otherwise).
Required range: 0 <= x <= 23
Example:
7
end_hour
integer | null
Keep only trips ending at or before this hour of the day (0-23, same time zone as start_hour). Alone, it applies to the trip start hour.
Required range: 0 <= x <= 23
Example:
10
Response
Trip history retrieved. Returns spatial distribution, temporal patterns, trip counts, and usage statistics.
Comprehensive trip history analysis response containing spatial,
temporal, and usage pattern insights for free-floating vehicle systems.
trip_locations
TripLocationCount · object[]
required
Spatial distribution of trips aggregated by rounded coordinates. Each location represents a cluster of nearby trip origins/destinations.
Trip volume by calendar period over the analysis range. The date is the bucket label for each period.
Show child attributes
Example:
[ { "date": "2023-01-15", "trip_count": 1456 } ]
total_trips
integer
required
Completed rides in the selected data set
Required range: x >= 0
date_bucket
enum<string>
required
Calendar period represented by each date-distribution point
Available options:
day,
week,
fortnight,
month,
quarter
feasibility
string
required
Analysis execution status indicating success or error state
Examples:
"success"
"error"
"partial"
message
string
required
Human-readable message describing analysis results or errors
Examples:
"Analysis completed successfully. Found 1,234 locations with trip data."
"Error during trip history analysis: Invalid date range provided."
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SWITCH","description":"SWITCH API reference and guides: forecasts, fleet operations, routing, analytics, and Myles in your AI assistant.","colors":{"primary":"#131110","light":"#FAFAF4","dark":"#131110"},"logo":{"light":"https://mintcdn.com/switchsrl-stage/q2Qy6e_N_m85PgIF/logo/switch-wordmark-ink.svg?fit=max\u0026auto=format\u0026n=q2Qy6e_N_m85PgIF\u0026q=85\u0026s=83a9625c685d993be0e8a51c68c0aee6","dark":"https://mintcdn.com/switchsrl-stage/q2Qy6e_N_m85PgIF/logo/switch-wordmark-white.png?fit=max\u0026auto=format\u0026n=q2Qy6e_N_m85PgIF\u0026q=85\u0026s=cb194173a9e2bccf4640045f35a2a87f","href":"https://getswitch.io"},"favicon":"https://mintcdn.com/switchsrl-stage/q2Qy6e_N_m85PgIF/favicon.png?fit=max\u0026auto=format\u0026n=q2Qy6e_N_m85PgIF\u0026q=85\u0026s=594ed1f74ed3ae7cef44edc0e0f34df4","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript","go"],"prefill":true}},"background":{"color":{"light":"#FFFFFF","dark":"#131110"}},"navbar":{"primary":{"type":"button","label":"Open SWITCH","href":"https://copilot.getswitch.io"}},"footer":{"socials":{"website":"https://getswitch.io","linkedin":"https://www.linkedin.com/company/14072408"}},"fonts":{"family":"Roboto"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"switchsrl-stage","hasAudioNarration":false,"actualSubdomain":"switchsrl-stage","customDomains":[],"gitSource":{"type":"github","owner":"switch-street-witcher","repo":"switch-api","deployBranch":"stage","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b0d7bf4d778254279acca0f"},"entitlements":{},"buildId":"6b0d7c46d778254279acd4e8","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":101},{"language":"default","tag":"Fleet Management","count":23},{"language":"default","tag":"Integrations","count":16},{"language":"default","tag":"Station Based Analytics","count":13},{"language":"default","tag":"Routing Sessions","count":11},{"language":"default","tag":"Routing Operations","count":8},{"language":"default","tag":"API Keys","count":5},{"language":"default","tag":"Forecast","count":4},{"language":"default","tag":"Live","count":4},{"language":"default","tag":"Operations","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api-reference/free-float-analytics/get-free-float-trip-history","slug":"/api-reference/free-float-analytics/get-free-float-trip-history","pageMetadata":{"title":"Get Free-Float Trip History","description":"Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts.\n\nUse this to understand usage patterns, identify high-demand zones, and plan fleet distribution.\n\n**Failure Modes:**\n- **401**: Token is missing or invalid\n- **403**: Insufficient permissions\n- **404**: `no_data_binding` when the provider or location is not enabled for your company, or no data for that location and period\n- **422**: Invalid filter parameters\n- **500**: Internal server error\n\n**Required Auth Scopes:**\n- `copilot:analytics`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/free-float/{provider}/trip_history","href":"/api-reference/free-float-analytics/get-free-float-trip-history","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Use this to understand usage patterns, identify high-demand zones, and plan fleet distribution.\"\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Failure Modes:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"401\"\n }), \": Token is missing or invalid\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"403\"\n }), \": Insufficient permissions\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"404\"\n }), \": \", _jsx(_components.code, {\n children: \"no_data_binding\"\n }), \" when the provider or location is not enabled for your company, or no data for that location and period\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"422\"\n }), \": Invalid filter parameters\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"500\"\n }), \": Internal server error\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Required Auth Scopes:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"copilot:analytics\"\n })\n }), \"\\n\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Free-Float Trip History","description":"Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts.\n\nUse this to understand usage patterns, identify high-demand zones, and plan fleet distribution.\n\n**Failure Modes:**\n- **401**: Token is missing or invalid\n- **403**: Insufficient permissions\n- **404**: `no_data_binding` when the provider or location is not enabled for your company, or no data for that location and period\n- **422**: Invalid filter parameters\n- **500**: Internal server error\n\n**Required Auth Scopes:**\n- `copilot:analytics`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/free-float/{provider}/trip_history","href":"/api-reference/free-float-analytics/get-free-float-trip-history","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Free Float Analytics"],"summary":"Get Free-Float Trip History","description":"Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts.\n\nUse this to understand usage patterns, identify high-demand zones, and plan fleet distribution.\n\n**Failure Modes:**\n- **401**: Token is missing or invalid\n- **403**: Insufficient permissions\n- **404**: `no_data_binding` when the provider or location is not enabled for your company, or no data for that location and period\n- **422**: Invalid filter parameters\n- **500**: Internal server error\n\n**Required Auth Scopes:**\n- `copilot:analytics`","operationId":"get_free_float_trip_history","security":["000828ec-1f9e-4127-8ca1-730f203361c2","857e9f7d-8264-497e-8de4-f1c8b4cbdb06"],"parameters":["337e1f3f-5d8d-4772-84d8-d71458155fdc","416e309c-76fb-4212-a46f-cf6f9e8425da","b9902e36-abe5-4365-aee4-883ea0186aae","d0d099c7-3235-4205-8664-bd9c30935c98","d632ca47-80c4-477d-9e1c-c9c1aa9cb850","774c498a-eb65-49bf-8e6a-b27dd189957d"],"responses":{"200":"9686287b-cd8d-4d72-a3f3-4a8820abdb97","401":"b3f2669d-b1db-4192-99ac-a85ed8dbb1e4","403":"6a188903-7311-4ea7-a62f-cb05732b17b3","422":"3ab3bd9a-ce8e-4f7e-9a65-d97d63464f0f","500":"ee0bdd09-a167-4b95-9e4a-ac630acfcb45"},"method":"get","type":"path","servers":["3e069aac-8807-4f2b-8fbd-901b66759f89"],"path":"/copilot/free-float/{provider}/trip_history","baseUrlOptions":["https://stage-api.getswitch.io"],"title":"Get Free-Float Trip History","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[]},"dependencies":{"parameters":{"337e1f3f-5d8d-4772-84d8-d71458155fdc":{"name":"provider","in":"path","required":true,"schema":{"type":"string","description":"Identifier of the mobility provider whose data you analyse, e.g. `acme-bikes`. It must be the provider of a data source enabled for your company's free-floating trip-history analytics; any other value is refused with 404 `no_data_binding` (`kind: source`). Your SWITCH contact tells you the provider identifiers and locations enabled for your company.","title":"Provider","isRequired":true,"uniqueKey":"","typeLabel":"string"},"description":"Identifier of the mobility provider whose data you analyse, e.g. `acme-bikes`. It must be the provider of a data source enabled for your company's free-floating trip-history analytics; any other value is refused with 404 `no_data_binding` (`kind: source`). Your SWITCH contact tells you the provider identifiers and locations enabled for your company."},"416e309c-76fb-4212-a46f-cf6f9e8425da":{"name":"geolabel","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Location to analyse, e.g. `milan`: one of the locations (or their geolabels) that your company's trip-history analytics are enabled for with this provider. Any other value is refused (404 `no_data_binding`, or 403 for providers whose trips are stored per location).","examples":["milan","turin"],"title":"Geolabel","isRequired":true,"uniqueKey":"","typeLabel":"string"},"description":"Location to analyse, e.g. `milan`: one of the locations (or their geolabels) that your company's trip-history analytics are enabled for with this provider. Any other value is refused (404 `no_data_binding`, or 403 for providers whose trips are stored per location)."},"b9902e36-abe5-4365-aee4-883ea0186aae":{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start of the analysis period, an ISO 8601 date-time, e.g. `2026-10-01T00:00:00Z`.","examples":["2026-10-01T00:00:00Z"],"title":"Start Date","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cdate-time>"},"description":"Start of the analysis period, an ISO 8601 date-time, e.g. `2026-10-01T00:00:00Z`."},"d0d099c7-3235-4205-8664-bd9c30935c98":{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"End of the analysis period, an ISO 8601 date-time, e.g. `2026-10-31T23:59:59Z`.","examples":["2026-10-31T23:59:59Z"],"title":"End Date","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cdate-time>"},"description":"End of the analysis period, an ISO 8601 date-time, e.g. `2026-10-31T23:59:59Z`."},"d632ca47-80c4-477d-9e1c-c9c1aa9cb850":{"name":"start_hour","in":"query","required":false,"schema":{"oneOf":[{"type":"integer","maximum":23,"minimum":0,"description":"Keep only trips starting at or after this hour of the day (0-23, in the data source's time zone, UTC unless configured otherwise).","examples":[7],"title":"Start Hour","uniqueKey":"oneOf.0","typeLabel":"integer"},{"type":"null","maximum":23,"minimum":0,"description":"Keep only trips starting at or after this hour of the day (0-23, in the data source's time zone, UTC unless configured otherwise).","examples":[7],"title":"Start Hour","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"integer | null"},"description":"Keep only trips starting at or after this hour of the day (0-23, in the data source's time zone, UTC unless configured otherwise)."},"774c498a-eb65-49bf-8e6a-b27dd189957d":{"name":"end_hour","in":"query","required":false,"schema":{"oneOf":[{"type":"integer","maximum":23,"minimum":0,"description":"Keep only trips ending at or before this hour of the day (0-23, same time zone as `start_hour`). Alone, it applies to the trip start hour.","examples":[10],"title":"End Hour","uniqueKey":"oneOf.0","typeLabel":"integer"},{"type":"null","maximum":23,"minimum":0,"description":"Keep only trips ending at or before this hour of the day (0-23, same time zone as `start_hour`). Alone, it applies to the trip start hour.","examples":[10],"title":"End Hour","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"integer | null"},"description":"Keep only trips ending at or before this hour of the day (0-23, same time zone as `start_hour`). Alone, it applies to the trip start hour."}},"responses":{"9686287b-cd8d-4d72-a3f3-4a8820abdb97":{"description":"Trip history retrieved. Returns spatial distribution, temporal patterns, trip counts, and usage statistics.","content":{"application/json":{"schema":{"properties":{"trip_locations":{"items":{"properties":{"latitude":{"type":"number","maximum":90,"minimum":-90,"title":"Latitude","description":"Latitude coordinate rounded to 4 decimal places for aggregation","examples":[45.4642,41.9028,52.3676],"isRequired":true,"uniqueKey":"trip_locations.items.[INDEX].latitude","typeLabel":"number"},"longitude":{"type":"number","maximum":180,"minimum":-180,"title":"Longitude","description":"Longitude coordinate rounded to 4 decimal places for aggregation","examples":[9.19,12.4964,4.9041],"isRequired":true,"uniqueKey":"trip_locations.items.[INDEX].longitude","typeLabel":"number"},"start_count":{"type":"integer","minimum":0,"title":"Start Count","description":"Number of trips starting at this location","examples":[15,42,128],"isRequired":true,"uniqueKey":"trip_locations.items.[INDEX].start_count","typeLabel":"integer"},"end_count":{"type":"integer","minimum":0,"title":"End Count","description":"Number of trips ending at this location","examples":[18,39,135],"isRequired":true,"uniqueKey":"trip_locations.items.[INDEX].end_count","typeLabel":"integer"},"total_count":{"type":"integer","minimum":0,"title":"Total Count","description":"Combined trip-start and trip-end events at this location","examples":[33,81,263],"isRequired":true,"uniqueKey":"trip_locations.items.[INDEX].total_count","typeLabel":"integer"}},"type":"object","required":["latitude","longitude","start_count","end_count","total_count"],"title":"TripLocationCount","description":"Trip count data for a specific geographic location coordinate.\nAggregates trip starts and ends at rounded coordinate precision.","uniqueKey":"trip_locations.items.[INDEX]","typeLabel":"TripLocationCount · object"},"type":"array","title":"Trip Locations","description":"Spatial distribution of trips aggregated by rounded coordinates. Each location represents a cluster of nearby trip origins/destinations.","examples":[[{"end_count":18,"latitude":45.4642,"longitude":9.19,"start_count":15,"total_count":33}]],"isRequired":true,"uniqueKey":"trip_locations","typeLabel":"TripLocationCount · object[]"},"hourly_distribution":{"items":{"properties":{"hour":{"type":"integer","maximum":23,"minimum":0,"title":"Hour","description":"Hour of the day in 24-hour format","examples":[0,9,18,23],"isRequired":true,"uniqueKey":"hourly_distribution.items.[INDEX].hour","typeLabel":"integer"},"start_count":{"type":"integer","minimum":0,"title":"Start Count","description":"Number of trips starting during this hour","examples":[45,156,89],"isRequired":true,"uniqueKey":"hourly_distribution.items.[INDEX].start_count","typeLabel":"integer"},"end_count":{"type":"integer","minimum":0,"title":"End Count","description":"Number of trips ending during this hour","examples":[42,163,92],"isRequired":true,"uniqueKey":"hourly_distribution.items.[INDEX].end_count","typeLabel":"integer"},"total_count":{"type":"integer","minimum":0,"title":"Total Count","description":"Combined trip-start and trip-end events during this hour","examples":[87,319,181],"isRequired":true,"uniqueKey":"hourly_distribution.items.[INDEX].total_count","typeLabel":"integer"}},"type":"object","required":["hour","start_count","end_count","total_count"],"title":"HourlyDistribution","description":"Trip count distribution aggregated by hour of the day.\nUseful for identifying peak usage patterns and demand forecasting.","uniqueKey":"hourly_distribution.items.[INDEX]","typeLabel":"HourlyDistribution · object"},"type":"array","title":"Hourly Distribution","description":"Temporal distribution showing trip patterns by hour of day. Useful for identifying peak usage periods and demand planning.","examples":[[{"end_count":142,"hour":9,"start_count":156,"total_count":298}]],"isRequired":true,"uniqueKey":"hourly_distribution","typeLabel":"HourlyDistribution · object[]"},"date_distribution":{"items":{"properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","title":"Date","description":"Date in ISO 8601 YYYY-MM-DD format","examples":["2023-01-15","2023-12-31","2024-06-15"],"isRequired":true,"uniqueKey":"date_distribution.items.[INDEX].date","typeLabel":"string"},"trip_count":{"type":"integer","minimum":0,"title":"Trip Count","description":"Total trips in the calendar period labelled by this date","examples":[234,1456,892],"isRequired":true,"uniqueKey":"date_distribution.items.[INDEX].trip_count","typeLabel":"integer"}},"type":"object","required":["date","trip_count"],"title":"DateDistribution","description":"Trip count distribution by calendar period for temporal analysis.\nShows trip volume trends over time.","uniqueKey":"date_distribution.items.[INDEX]","typeLabel":"DateDistribution · object"},"type":"array","title":"Date Distribution","description":"Trip volume by calendar period over the analysis range. The date is the bucket label for each period.","examples":[[{"date":"2023-01-15","trip_count":1456}]],"isRequired":true,"uniqueKey":"date_distribution","typeLabel":"DateDistribution · object[]"},"total_trips":{"type":"integer","minimum":0,"title":"Total Trips","description":"Completed rides in the selected data set","isRequired":true,"uniqueKey":"total_trips","typeLabel":"integer"},"date_bucket":{"type":"string","enum":["day","week","fortnight","month","quarter"],"title":"Date Bucket","description":"Calendar period represented by each date-distribution point","isRequired":true,"uniqueKey":"date_bucket","typeLabel":"enum\u003cstring>"},"feasibility":{"type":"string","title":"Feasibility","description":"Analysis execution status indicating success or error state","examples":["success","error","partial"],"isRequired":true,"uniqueKey":"feasibility","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable message describing analysis results or errors","examples":["Analysis completed successfully. Found 1,234 locations with trip data.","Error during trip history analysis: Invalid date range provided."],"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"type":"object","required":["trip_locations","hourly_distribution","date_distribution","total_trips","date_bucket","feasibility","message"],"title":"TripHistoryResponse","description":"Comprehensive trip history analysis response containing spatial,\ntemporal, and usage pattern insights for free-floating vehicle systems.","examples":[{"date_bucket":"day","date_distribution":[{"date":"2026-10-01","trip_count":1462},{"date":"2026-10-02","trip_count":1518}],"feasibility":"success","hourly_distribution":[{"end_count":1655,"hour":8,"start_count":1820,"total_count":3475},{"end_count":2190,"hour":18,"start_count":2104,"total_count":4294}],"message":"Analysis completed successfully. Found 2318 locations with trip data.","total_trips":45230,"trip_locations":[{"end_count":388,"latitude":45.4859,"longitude":9.2045,"start_count":412,"total_count":800},{"end_count":371,"latitude":45.4642,"longitude":9.19,"start_count":356,"total_count":727}]}],"uniqueKey":"","typeLabel":"TripHistoryResponse · object"},"examples":{"Example":{"title":"Example","value":{"date_bucket":"day","date_distribution":[{"date":"2026-10-01","trip_count":1462},{"date":"2026-10-02","trip_count":1518}],"feasibility":"success","hourly_distribution":[{"end_count":1655,"hour":8,"start_count":1820,"total_count":3475},{"end_count":2190,"hour":18,"start_count":2104,"total_count":4294}],"message":"Analysis completed successfully. Found 2318 locations with trip data.","total_trips":45230,"trip_locations":[{"end_count":388,"latitude":45.4859,"longitude":9.2045,"start_count":412,"total_count":800},{"end_count":371,"latitude":45.4642,"longitude":9.19,"start_count":356,"total_count":727}]}}},"exampleType":"generated"}},"exampleType":"generated"},"b3f2669d-b1db-4192-99ac-a85ed8dbb1e4":{"description":"Unauthorized. Token is missing or invalid.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"6a188903-7311-4ea7-a62f-cb05732b17b3":{"description":"Forbidden. Insufficient permissions.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"3ab3bd9a-ce8e-4f7e-9a65-d97d63464f0f":{"description":"Unprocessable Entity. Validation failed.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"ee0bdd09-a167-4b95-9e4a-ac630acfcb45":{"description":"Internal Server Error.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"000828ec-1f9e-4127-8ca1-730f203361c2":{"HTTPBearer":{"type":"http","scheme":"bearer","description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","scopes":[],"schemeName":"HTTPBearer"}},"857e9f7d-8264-497e-8de4-f1c8b4cbdb06":{"HTTPBearer":{"type":"http","scheme":"bearer","description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","scopes":[],"schemeName":"HTTPBearer"}}},"servers":{"3e069aac-8807-4f2b-8fbd-901b66759f89":{"url":"https://stage-api.getswitch.io","description":"Stage"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","scopes":[],"schemeName":"HTTPBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","scopes":[],"schemeName":"HTTPBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"switchsrl-stage","siteName":"SWITCH","title":"Get Free-Float Trip History - SWITCH","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T13:38:23.910Z","originalFileLocation":"api-reference/free-float-analytics/get-free-float-trip-history.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts. Use this to understand usage patterns, identify high-demand zones, and plan fleet distribution. Failure Modes: - 401: Token is missing or invalid - 403: Insufficient permissions - 404: no_data_binding when the provider or location is not enabled for your company, or no data for that location and period - 422: Invalid filter parameters - 500: Internal server error Required Auth Scopes: - copilot:analytics\">\u003cmeta data-mint-head name=\"application-name\" content=\"SWITCH\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/switchsrl-stage/JTXLLi80I0McEXEm/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/switchsrl-stage/JTXLLi80I0McEXEm/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/switchsrl-stage/JTXLLi80I0McEXEm/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/switchsrl-stage/JTXLLi80I0McEXEm/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/switchsrl-stage/JTXLLi80I0McEXEm/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/switchsrl-stage/JTXLLi80I0McEXEm/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/switchsrl-stage/JTXLLi80I0McEXEm/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/switchsrl-stage/JTXLLi80I0McEXEm/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/switchsrl-stage/JTXLLi80I0McEXEm/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Free-Float Trip History - SWITCH\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts. Use this to understand usage patterns, identify high-demand zones, and plan fleet distribution. Failure Modes: - 401: Token is missing or invalid - 403: Insufficient permissions - 404: no_data_binding when the provider or location is not enabled for your company, or no data for that location and period - 422: Invalid filter parameters - 500: Internal server error Required Auth Scopes: - copilot:analytics\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SWITCH\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://switchsrl-stage.mintlify.app/api-reference/free-float-analytics/get-free-float-trip-history\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://switchsrl-stage.mintlify.site/_mintlify/api/og/v2?division=Free+Float+Analytics\u0026amp;title=Get+Free-Float+Trip+History\u0026amp;description=Retrieve+completed+trip+history+data+for+a+free-floating+vehicle+provider.+Returns+spatial+start%2Fend+events%2C+hourly+start%2Fend+events%2C+completed+trip+totals%2C+and\u0026amp;theme=18a078e79863f23e2770fc78\u0026amp;signature=272cd4e4f6b313ee63c9a39fca3d32b01ff67189ee3f9d9b35abb44d6ba56d0a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get Free-Float Trip History - SWITCH\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts. Use this to understand usage patterns, identify high-demand zones, and plan fleet distribution. Failure Modes: - 401: Token is missing or invalid - 403: Insufficient permissions - 404: no_data_binding when the provider or location is not enabled for your company, or no data for that location and period - 422: Invalid filter parameters - 500: Internal server error Required Auth Scopes: - copilot:analytics\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://switchsrl-stage.mintlify.site/_mintlify/api/og/v2?division=Free+Float+Analytics\u0026amp;title=Get+Free-Float+Trip+History\u0026amp;description=Retrieve+completed+trip+history+data+for+a+free-floating+vehicle+provider.+Returns+spatial+start%2Fend+events%2C+hourly+start%2Fend+events%2C+completed+trip+totals%2C+and\u0026amp;theme=18a078e79863f23e2770fc78\u0026amp;signature=272cd4e4f6b313ee63c9a39fca3d32b01ff67189ee3f9d9b35abb44d6ba56d0a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/switchsrl-stage/JTXLLi80I0McEXEm/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SWITCH\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#131110\">\u003clink data-mint-head rel=\"canonical\" href=\"https://switchsrl-stage.mintlify.app/api-reference/free-float-analytics/get-free-float-trip-history\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/free-float-analytics/get-free-float-trip-history.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://switchsrl-stage.mintlify.app/#organization\",\"name\":\"SWITCH\",\"url\":\"https://switchsrl-stage.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/switchsrl-stage/q2Qy6e_N_m85PgIF/logo/switch-wordmark-ink.svg?fit=max\u0026auto=format\u0026n=q2Qy6e_N_m85PgIF\u0026q=85\u0026s=83a9625c685d993be0e8a51c68c0aee6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://switchsrl-stage.mintlify.app#website\",\"name\":\"SWITCH\",\"url\":\"https://switchsrl-stage.mintlify.app\",\"publisher\":{\"@id\":\"https://switchsrl-stage.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://switchsrl-stage.mintlify.app/api-reference/free-float-analytics/get-free-float-trip-history#webpage\",\"url\":\"https://switchsrl-stage.mintlify.app/api-reference/free-float-analytics/get-free-float-trip-history\",\"name\":\"Get Free-Float Trip History\",\"description\":\"Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts. Use this to understand usage patterns, identify high-demand zones, and plan fleet distribution. Failure Modes: - 401: Token is missing or invalid - 403: Insufficient permissions - 404: no_data_binding when the provider or location is not enabled for your company, or no data for that location and period - 422: Invalid filter parameters - 500: Internal server error Required Auth Scopes: - copilot:analytics\",\"dateModified\":\"2026-11-30T13:38:23.910Z\",\"isPartOf\":{\"@id\":\"https://switchsrl-stage.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://switchsrl-stage.mintlify.app/api-reference/free-float-analytics/get-free-float-trip-history#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://switchsrl-stage.mintlify.app/api-reference/free-float-analytics/get-free-float-trip-history#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SWITCH\",\"item\":\"https://switchsrl-stage.mintlify.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Free-Float Trip History\",\"item\":\"https://switchsrl-stage.mintlify.app/api-reference/free-float-analytics/get-free-float-trip-history\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://switchsrl-stage.mintlify.app/api-reference/free-float-analytics/get-free-float-trip-history#apireference\",\"headline\":\"Get Free-Float Trip History\",\"name\":\"Get Free-Float Trip History\",\"description\":\"Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts. Use this to understand usage patterns, identify high-demand zones, and plan fleet distribution. Failure Modes: - 401: Token is missing or invalid - 403: Insufficient permissions - 404: no_data_binding when the provider or location is not enabled for your company, or no data for that location and period - 422: Invalid filter parameters - 500: Internal server error Required Auth Scopes: - copilot:analytics\",\"url\":\"https://switchsrl-stage.mintlify.app/api-reference/free-float-analytics/get-free-float-trip-history\",\"mainEntityOfPage\":{\"@id\":\"https://switchsrl-stage.mintlify.app/api-reference/free-float-analytics/get-free-float-trip-history#webpage\"},\"dateModified\":\"2026-11-30T13:38:23.910Z\",\"publisher\":{\"@id\":\"https://switchsrl-stage.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://switchsrl-stage.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SWITCH\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SWITCH\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/free-float-analytics/get-free-float-trip-history.md","siteName":"SWITCH","nav":{"global":null,"tabs":[{"tab":"API Reference","groups":[{"group":"Get started","pages":[{"title":"Introduction","href":""}]},{"group":"API Keys","pages":[{"title":"List API Keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /auth/api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create API Key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /auth/api-keys","href":"/api-reference/api-keys/create-api-key"},{"title":"Get API Key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /auth/api-keys/{uuid}","href":"/api-reference/api-keys/get-api-key"},{"title":"Delete API Key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /auth/api-keys/{uuid}","href":"/api-reference/api-keys/delete-api-key"},{"title":"Get Current User Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /auth/me","href":"/api-reference/api-keys/get-current-user-profile"}]},{"group":"Grids","pages":[{"title":"Download Grid File For Single Data Scenario","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /grids/stream","href":"/api-reference/grids/download-grid-file-for-single-data-scenario"},{"title":"Download Grid File For Specific Data Scenario","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /grids/stream/{data_scenario_id}","href":"/api-reference/grids/download-grid-file-for-specific-data-scenario"}]},{"group":"Forecast","pages":[{"title":"Get Forecasted Demand","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /forecast","href":"/api-reference/forecast/get-forecasted-demand"},{"title":"Get Forecasted Demand as GeoJSON","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /forecast/geojson","href":"/api-reference/forecast/get-forecasted-demand-as-geojson"},{"title":"Get Forecasted Demand by Type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /forecast/{forecast_type}","href":"/api-reference/forecast/get-forecasted-demand-by-type"},{"title":"Get Forecasted Demand by Type as GeoJSON","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /forecast/{forecast_type}/geojson","href":"/api-reference/forecast/get-forecasted-demand-by-type-as-geojson"}]},{"group":"Operations","pages":[{"title":"Get Imbalance Snapshot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/imbalance","href":"/api-reference/operations/get-imbalance-snapshot"},{"title":"Get Imbalance Snapshot as GeoJSON","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/imbalance/geojson","href":"/api-reference/operations/get-imbalance-snapshot-as-geojson"},{"title":"Get Rebalancing Suggestions","deprecated":true,"version":null,"openapi":"/api-reference/openapi.json post /operations/rebalance","href":"/api-reference/operations/get-rebalancing-suggestions"},{"title":"Generate Operations Based on Strategies","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/suggest","href":"/api-reference/operations/generate-operations-based-on-strategies"}]},{"group":"Routing","pages":[{"title":"Solve Routing Optimization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routing","href":"/api-reference/routing/solve-routing-optimization"},{"title":"Solve Multi-Fleet Routing (Two-Phase Greedy)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routing/multi-fleet","href":"/api-reference/routing/solve-multi-fleet-routing-two-phase-greedy"}]},{"group":"Routing Sessions","pages":[{"title":"List Sessions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/sessions","href":"/api-reference/routing-sessions/list-sessions"},{"title":"Dispatch Session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/sessions","href":"/api-reference/routing-sessions/dispatch-session"},{"title":"Get Session Detail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/sessions/{slug}","href":"/api-reference/routing-sessions/get-session-detail"},{"title":"Update Session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/sessions/{slug}","href":"/api-reference/routing-sessions/update-session"},{"title":"Delete Session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/sessions/{slug}","href":"/api-reference/routing-sessions/delete-session"},{"title":"List Routes in Session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/sessions/{slug}/routes","href":"/api-reference/routing-sessions/list-routes-in-session"},{"title":"List Routes (Cross-Session)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/routes","href":"/api-reference/routing-sessions/list-routes-cross-session"},{"title":"Get Route Detail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/routes/{route_id}","href":"/api-reference/routing-sessions/get-route-detail"},{"title":"Update Route","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/routes/{route_id}","href":"/api-reference/routing-sessions/update-route"},{"title":"Assign Drivers to Route","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/drivers","href":"/api-reference/routing-sessions/assign-drivers-to-route"},{"title":"Remove Driver from Route","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/routes/{route_id}/drivers/{user_id}","href":"/api-reference/routing-sessions/remove-driver-from-route"}]},{"group":"Routing Operations","pages":[{"title":"List Operations in Route","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/routes/{route_id}/operations","href":"/api-reference/routing-operations/list-operations-in-route"},{"title":"Complete Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/operations/{op_id}/complete","href":"/api-reference/routing-operations/complete-operation"},{"title":"Undo Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/operations/{op_id}/undo","href":"/api-reference/routing-operations/undo-operation"},{"title":"Cancel Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/operations/{op_id}/cancel","href":"/api-reference/routing-operations/cancel-operation"},{"title":"Restore Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/operations/{op_id}/restore","href":"/api-reference/routing-operations/restore-operation"},{"title":"Generate Reroute Preview","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/reroute/generate","href":"/api-reference/routing-operations/generate-reroute-preview"},{"title":"Optimize Reroute","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/reroute/optimize","href":"/api-reference/routing-operations/optimize-reroute"},{"title":"Apply Rerouted Operations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/reroute/apply","href":"/api-reference/routing-operations/apply-rerouted-operations"}]},{"group":"Fleet Management","pages":[{"title":"List Cargo Vehicles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/cargo-vehicles","href":"/api-reference/fleet-management/list-cargo-vehicles"},{"title":"Create Cargo Vehicle","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/cargo-vehicles","href":"/api-reference/fleet-management/create-cargo-vehicle"},{"title":"Get Cargo Vehicle by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/cargo-vehicles/{vehicle_id}","href":"/api-reference/fleet-management/get-cargo-vehicle-by-id"},{"title":"Update Cargo Vehicle","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/cargo-vehicles/{vehicle_id}","href":"/api-reference/fleet-management/update-cargo-vehicle"},{"title":"Delete Cargo Vehicle","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/cargo-vehicles/{vehicle_id}","href":"/api-reference/fleet-management/delete-cargo-vehicle"},{"title":"List Depots","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/depots","href":"/api-reference/fleet-management/list-depots"},{"title":"Create Depot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/depots","href":"/api-reference/fleet-management/create-depot"},{"title":"Get Depot by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/depots/{depot_id}","href":"/api-reference/fleet-management/get-depot-by-id"},{"title":"Update Depot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/depots/{depot_id}","href":"/api-reference/fleet-management/update-depot"},{"title":"Delete Depot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/depots/{depot_id}","href":"/api-reference/fleet-management/delete-depot"},{"title":"Synchronize Company Stations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/stations/sync","href":"/api-reference/fleet-management/synchronize-company-stations"},{"title":"List Stations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/stations","href":"/api-reference/fleet-management/list-stations"},{"title":"Create Station","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/stations","href":"/api-reference/fleet-management/create-station"},{"title":"Get Station by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/stations/{station_id}","href":"/api-reference/fleet-management/get-station-by-id"},{"title":"Update Station","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/stations/{station_id}","href":"/api-reference/fleet-management/update-station"},{"title":"Delete Station","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/stations/{station_id}","href":"/api-reference/fleet-management/delete-station"},{"title":"List Drivers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/drivers","href":"/api-reference/fleet-management/list-drivers"},{"title":"Create Driver","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/drivers","href":"/api-reference/fleet-management/create-driver"},{"title":"Get Driver by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/drivers/{driver_id}","href":"/api-reference/fleet-management/get-driver-by-id"},{"title":"Update Driver","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/drivers/{driver_id}","href":"/api-reference/fleet-management/update-driver"},{"title":"Delete Driver","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/drivers/{driver_id}","href":"/api-reference/fleet-management/delete-driver"},{"title":"Get Fleet Settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/fleet-settings","href":"/api-reference/fleet-management/get-fleet-settings"},{"title":"Update Fleet Settings","description":"Set whether your company runs a station-based (docked) or a free-floating fleet.\n\n**Failure Modes:**\n- **401**: Token is missing or invalid\n- **403**: Insufficient permissions to change your company settings\n- **409**: Your company settings changed at the same time; retry\n- **422**: Invalid request body\n\n**Required Auth Scopes:**\n- `copilot:optimize`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /operations/fleet-settings","href":"/api-reference/fleet-management/update-fleet-settings"}]},{"group":"Free Float Analytics","pages":[{"title":"Get Free-Float Trip History","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/free-float/{provider}/trip_history","href":"/api-reference/free-float-analytics/get-free-float-trip-history"}]},{"group":"Live","pages":[{"title":"Get Live Fleet Status","description":"Every vehicle of your fleet in one location right now, read live from your connected fleet platform: position, type and model, battery level, status and when it was last seen and last moved. The totals count the vehicles, those whose status is `available` or `ready`, and those with and without a valid position.\n\n**Failure Modes:**\n- **401**: Token is missing or invalid\n- **403**: Insufficient permissions, or the location is not configured for live fleet\n- **404**: `no_data_binding`: no live fleet is configured for your company\n- **422**: `location` is missing or empty\n- **502**: The fleet platform did not answer\n\n**Required Auth Scopes:**\n- `copilot:live`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/live/fleet-status","href":"/api-reference/live/get-live-fleet-status"},{"title":"List Live Deliveries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/live/deliveries","href":"/api-reference/live/list-live-deliveries"},{"title":"Get Live Transit Status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/live/transit/status","href":"/api-reference/live/get-live-transit-status"},{"title":"Get Live Transit Line","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/live/transit/lines/{route_id}","href":"/api-reference/live/get-live-transit-line"}]},{"group":"Station Based Analytics","pages":[{"title":"Get Station Summary Metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/summary_metrics","href":"/api-reference/station-based-analytics/get-station-summary-metrics"},{"title":"Get Vehicle Shortage Mapping","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/vehicle_shortage_mapping","href":"/api-reference/station-based-analytics/get-vehicle-shortage-mapping"},{"title":"Get Commuting Station Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/commuting_stations","href":"/api-reference/station-based-analytics/get-commuting-station-analysis"},{"title":"Get Missed Demand Estimation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/missed_demand","href":"/api-reference/station-based-analytics/get-missed-demand-estimation"},{"title":"Get Station Refill Time Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/refill_times","href":"/api-reference/station-based-analytics/get-station-refill-time-analysis"},{"title":"Get Competitor Opportunity Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/competitor_opportunities","href":"/api-reference/station-based-analytics/get-competitor-opportunity-analysis"},{"title":"Get Deployment Window Optimization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/deployment_windows","href":"/api-reference/station-based-analytics/get-deployment-window-optimization"},{"title":"Get Station Trip Volume Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/trip_volume","href":"/api-reference/station-based-analytics/get-station-trip-volume-analysis"},{"title":"Get Demand Growth Trends","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/growth_trends","href":"/api-reference/station-based-analytics/get-demand-growth-trends"},{"title":"Get Calendar Event Impact Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/calendar_events","href":"/api-reference/station-based-analytics/get-calendar-event-impact-analysis"},{"title":"Get Station Capacity Alerts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/capacity_alerts","href":"/api-reference/station-based-analytics/get-station-capacity-alerts"},{"title":"Get E-Bike Usage Pattern Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/ebike_patterns","href":"/api-reference/station-based-analytics/get-e-bike-usage-pattern-analysis"},{"title":"Get After-Hours Demand Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/after_hours_demand","href":"/api-reference/station-based-analytics/get-after-hours-demand-analysis"}]},{"group":"Zone Based Analytics","pages":[{"title":"Get Zone Trip Volume","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/zone-based/{provider}/trip_volume","href":"/api-reference/zone-based-analytics/get-zone-trip-volume"},{"title":"Get Commuting Zone Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/zone-based/{provider}/commuting_zones","href":"/api-reference/zone-based-analytics/get-commuting-zone-analysis"},{"title":"Get Zone Shortage Mapping","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/zone-based/{provider}/shortage_mapping","href":"/api-reference/zone-based-analytics/get-zone-shortage-mapping"},{"title":"Get Zone Growth Trends","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/zone-based/{provider}/growth_trends","href":"/api-reference/zone-based-analytics/get-zone-growth-trends"}]},{"group":"Transit Analytics","pages":[{"title":"Get Transit Punctuality","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/analytics/transit/punctuality","href":"/api-reference/transit-analytics/get-transit-punctuality"},{"title":"Get Transit Line Details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/analytics/transit/lines/{route_id}","href":"/api-reference/transit-analytics/get-transit-line-details"},{"title":"Get Transit Service Delivery","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/analytics/transit/service-delivery","href":"/api-reference/transit-analytics/get-transit-service-delivery"}]},{"group":"Integrations","pages":[{"title":"List Fleet Vehicles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/vehicles","href":"/api-reference/integrations/list-fleet-vehicles"},{"title":"Get Fleet Vehicle","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/vehicles/{vehicle_id}","href":"/api-reference/integrations/get-fleet-vehicle"},{"title":"List Fleet Stations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/stations","href":"/api-reference/integrations/list-fleet-stations"},{"title":"List Fleet Tasks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/tasks","href":"/api-reference/integrations/list-fleet-tasks"},{"title":"List Vehicle Statuses","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/statuses","href":"/api-reference/integrations/list-vehicle-statuses"},{"title":"List Allowed Actions by Vehicle Type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/actions/allowed","href":"/api-reference/integrations/list-allowed-actions-by-vehicle-type"},{"title":"List Vehicle Actions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/actions/{vehicle_id}","href":"/api-reference/integrations/list-vehicle-actions"},{"title":"List Remote Operations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/remote-operations","href":"/api-reference/integrations/list-remote-operations"},{"title":"List Custom Vehicle States","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/custom-states","href":"/api-reference/integrations/list-custom-vehicle-states"},{"title":"Set Vehicle Status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/statuses/{vehicle_id}/set","href":"/api-reference/integrations/set-vehicle-status"},{"title":"Trigger Vehicle Action","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/actions/{vehicle_id}/trigger","href":"/api-reference/integrations/trigger-vehicle-action"},{"title":"Complete Remote Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/remote-operations/{operation_id}/complete","href":"/api-reference/integrations/complete-remote-operation"},{"title":"Reopen Remote Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/remote-operations/{operation_id}/undo","href":"/api-reference/integrations/reopen-remote-operation"},{"title":"Delete Remote Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /integrations/remote-operations/{operation_id}","href":"/api-reference/integrations/delete-remote-operation"},{"title":"Set Vehicle Custom State","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/custom-states/{vehicle_id}/set","href":"/api-reference/integrations/set-vehicle-custom-state"},{"title":"Get Integration Availability","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/availability","href":"/api-reference/integrations/get-integration-availability"}]}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/myles-mcp"}]}]},"basePath":"","title":"Get Free-Float Trip History - SWITCH","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}