Urban Sharing - Provider (2.0)

Download OpenAPI specification:

The Provider API endpoints are intended to be implemented by mobility providers and consumed by regulatory agencies. Data is pulled from providers by agencies. When a municipality queries information from a mobility provider, the Provider API has a historical view of operations in a standard format. This specification contains a data standard for mobility as a service providers to define a RESTful API for municipalities to access on-demand. MDS Provider Icon

Vehicles

/vehicles

Get a list of known vehicles, with properties that do not change often.

Authorizations:
bearer

Responses

Response samples

Content type
application/json
{
  • "version": "string",
  • "links": { },
  • "last_updated": 0,
  • "ttl": 0,
  • "vehicles": [
    ]
}

/vehicles/status

Get a list of known vehicles, with specific vehicle status records that are updated frequently.

Authorizations:
bearer

Responses

Response samples

Content type
application/json
{
  • "version": "string",
  • "links": { },
  • "last_updated": 0,
  • "ttl": 0,
  • "vehicles_status": [
    ]
}

/vehicles/status/{device_id}

Get the specified vehicle, with specific vehicle status records that are updated frequently.

Authorizations:
bearer
path Parameters
device_id
required
string

Responses

Response samples

Content type
application/json
{
  • "version": "string",
  • "last_updated": 0,
  • "ttl": 0,
  • "vehicles_status": [
    ]
}

/vehicles/{device_id}

Get the specified vehicle, with properties that do not change often.

Authorizations:
bearer
path Parameters
device_id
required
string

Responses

Response samples

Content type
application/json
{
  • "version": "string",
  • "last_updated": 0,
  • "ttl": 0,
  • "vehicles": [
    ]
}

Trips

/trips

Get all trips with an end time occurring within the hour.

Authorizations:
bearer
query Parameters
end_time
required
string

Responses

Response samples

Content type
application/json
{
  • "version": "string",
  • "trips": [
    ]
}

Telemetry

/telemetry

Get all telemetry with timestamp occurring within the hour.

Authorizations:
bearer
query Parameters
telemetry_time
required
string

Responses

Response samples

Content type
application/json
{
  • "version": "string",
  • "telemetry": [
    ]
}

Events

/events/historical

Get all status changes with an event time occurring within the hour.

Authorizations:
bearer
query Parameters
event_time
required
string

Responses

Response samples

Content type
application/json
{
  • "version": "string",
  • "events": [
    ]
}

/events/recent

Get all status changes at most two weeks old.

Authorizations:
bearer
query Parameters
start_time
required
number
end_time
required
number

Responses

Response samples

Content type
application/json
{
  • "version": "string",
  • "links": { },
  • "events": [
    ]
}

Stops

/stops

Stop information should be updated on a near-realtime basis by providers who operate docked mobility devices in a given municipality.

Authorizations:
bearer

Responses

Response samples

Content type
application/json
{
  • "version": "string",
  • "last_updated": 0,
  • "ttl": 0,
  • "stops": [
    ]
}

/stops/{stop_id}

Stop information should be updated on a near-realtime basis by providers who operate docked mobility devices in a given municipality.

Authorizations:
bearer
path Parameters
stop_id
required
string

Responses

Response samples

Content type
application/json
{
  • "version": "string",
  • "last_updated": 0,
  • "ttl": 0,
  • "stops": [
    ]
}

Reports

/reports/{filename}

Reports are information that providers can send back to agencies containing aggregated data that is not contained within other MDS endpoints, like counts of special groups of riders.

Authorizations:
bearer
path Parameters
filename
required
string

Responses

Response samples

Content type
application/json
{
  • "error": "string",
  • "error_description": "string",
  • "error_details": [
    ]
}