Three lines

Uber

Developers

[API] Get Quota

Privileged and Confidential This endpoint design has been confidentially shared with you. It is still under development and is subject to change without notice. Please do not share this document or API endpoint details with anyone who is not authorized to have access. For more information read about scopes.

The Get Quota API returns Uber’s demand forecast for a fleet: the trips expected in each zone, for each 30-minute slot. Fleets use it to decide their own staffing.

Use case

This API returns the demand forecast for the fleet’s own zones, for each 30-minute slot. A fleet can build its rosters against the forecast instead of estimating demand itself, reducing both undersupply during peaks and idle time during quiet periods.

Support for Hierarchical Data

The API returns quota for the supplier named in supplier_uuid. The application’s account must have the supplier.quota.read permission on that supplier’s organization, granted in the Admin Portal; otherwise the request returns 403.

Supported supplier types

Fleets

Scopes

vehicle_suppliers.quota.read

Resource

/v1/quota-management/quota

HTTP Method

GET

Authorization

Client Credentials

Example Request
curl -X GET "https://api.uber.com/v1/quota-management/quota?supplier_uuid=<ENCRYPTED_SUPPLIER_UUID>&city_id=1234&forecast_type=FORECAST_TYPE_ONE_WEEK_AHEAD&page_size=1000" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Request Query Parameters
Name Type Description
supplier_uuid string Encrypted UUID of the supplier organization to return quota for. Use the id from Get Organizations. The encrypted value is different for each application. The API rejects a raw UUID. Required.
city_id int32 City to return quota for. Must be a positive integer. Required.
forecast_type string Which forecast run to return. See Forecast Types. Required.
page_size int32 Maximum number of records on one page. Optional. The default is 1000. The maximum is 5000, and the API reduces a larger value to 5000. You can change it between pages.
page_token string Token for the next page. Optional. Do not send it for the first page. For the next page, send paginationResult.nextPageToken from the previous response. Send the same supplier_uuid, city_id and forecast_type. The token is valid for 24 hours. See Pagination.

Forecast Types

Each type is a separate forecast run with its own model and schedule, not a slice of one timeline. The value names the lead time: how far in advance the forecast is produced. How much time it covers differs per type. The most recent run of the requested type is always returned; there is no way to request an older run, and past days are not served.

forecast_type Produced Covers
FORECAST_TYPE_ONE_WEEK_AHEAD One week in advance Approximately six weeks.
FORECAST_TYPE_TWO_DAY_AHEAD Two days in advance A single operating day.
FORECAST_TYPE_THREE_HOUR_AHEAD Three hours in advance A single 30-minute slot.

Response size varies accordingly: a FORECAST_TYPE_THREE_HOUR_AHEAD response carries one record per zone, while a FORECAST_TYPE_ONE_WEEK_AHEAD response carries every slot across the covered weeks.


Example Response
Status-code: 200
{
    "quotas": [
        {
            "cityId": 1234,
            "cityName": "Madrid",
            "zoneUuid": {
                "value": "6f3a1c58-1f2e-4c7b-9a54-2d1e8b0c7a91"
            },
            "zoneName": "MADRID_CENTRO",
            "supplierUuid": {
                "value": "<ENCRYPTED_SUPPLIER_UUID>"
            },
            "supplierName": "Example Fleet SL",
            "slotStart": "2026-09-01T11:00:00Z",
            "timezone": "Europe/Madrid",
            "dayPeriod": "DAY_PERIOD_LUNCH",
            "trips": 31.0,
            "producedAt": "1788249600000"
        },
        {
            "cityId": 1234,
            "cityName": "Madrid",
            "zoneUuid": {
                "value": "6f3a1c58-1f2e-4c7b-9a54-2d1e8b0c7a91"
            },
            "zoneName": "MADRID_CENTRO",
            "supplierUuid": {
                "value": "<ENCRYPTED_SUPPLIER_UUID>"
            },
            "supplierName": "Example Fleet SL",
            "slotStart": "2026-09-01T11:30:00Z",
            "timezone": "Europe/Madrid",
            "dayPeriod": "DAY_PERIOD_LUNCH",
            "trips": 27.0,
            "producedAt": "1788249600000"
        }
    ],
    "run": {
        "producedAt": "1788249600000",
        "isLatest": true,
        "totalSize": 39360
    },
    "paginationResult": {
        "nextPageToken": "djE.eyJ..."
    }
}
Response Body Parameters

Response field names are camelCase; request query parameters are snake_case.

Name Type Description
quotas list<QuotaRecord> Forecast, one entry per zone and 30-minute slot. Contains the records of this page only
run object The forecast run that all records on this page belong to. It is the same on every page of one walk, except isLatest
run.producedAt string Epoch milliseconds at which the run was produced. An int64 serialized as a string
run.isLatest boolean false when a newer completed run exists. Always true on the first page
run.totalSize int32 Number of records in the run for this request
paginationResult.nextPageToken string Token for the next page. Always present. An empty string ("") on the last page

If the supplier has no quota for the request, quotas is empty, run.totalSize is 0, run.producedAt is 0, run.isLatest is true and nextPageToken is empty.

QuotaRecord
Name Type Description
cityId int32 City identifier
cityName string City name
zoneUuid UUID Zone identifier. Use Get Zone Region to resolve it to a name and geometry
zoneName string Zone name
supplierUuid UUID Encrypted UUID of the supplier the forecast is for. It is the same value as the supplier_uuid request parameter
supplierName string Supplier name
slotStart string Start of the 30-minute slot as an RFC 3339 timestamp in UTC, for example 2026-09-01T11:00:00Z
timezone string IANA timezone of the city, for example Europe/Madrid. Use it to convert slotStart to local time
dayPeriod string Demand period the slot falls in. See Day Periods
trips double Trips forecast for the slot in this zone
producedAt string Epoch milliseconds at which this quota version was produced. An int64 serialized as a string
UUID
Name Type Description
value string UUID in canonical string form. For supplierUuid, the encrypted value
Day Periods
dayPeriod Meaning
DAY_PERIOD_BREAKFAST Morning demand period.
DAY_PERIOD_LUNCH Midday demand peak.
DAY_PERIOD_AFTERNOON Afternoon demand period, between lunch and dinner.
DAY_PERIOD_DINNER Evening demand peak.
DAY_PERIOD_LATENIGHT Late-night demand period, after midnight local time.
DAY_PERIOD_DAWN Early-morning demand period.
DAY_PERIOD_OFFPEAK Any slot outside the periods above.
Pagination

The API returns quota in pages. The API sorts records by slotStart, then by zoneUuid.

To read all quota:

  1. Send the first request without page_token.
  2. Read paginationResult.nextPageToken from the response.
  3. Send the next request with the same supplier_uuid, city_id and forecast_type. Set page_token to the token from step 2.
  4. Repeat steps 2 and 3 until nextPageToken is empty.

A walk is complete when nextPageToken is empty and the number of records received equals run.totalSize. Do not apply a partial walk. Do not merge pages that have different run.producedAt values.

If a request fails, send it again with the last token you received. The token is valid for 24 hours.

Start again without a token in these cases:

  • A request returns 400.
  • run.isLatest is false.
  • A Quota Updated event has a higher producedAt than the run.producedAt of the pages you hold.

Slots up to about 48 hours in the past can appear in the response.

Endpoint Specific Errors
Http Status Code Code Message
400 bad_request The request parameters are invalid
400 bad_request The page token is invalid, or supplier_uuid, city_id or forecast_type differs from the request that issued it. message contains invalid page token. Start again without a token.
400 bad_request The page token is older than 24 hours, or its forecast run is no longer available. message contains page token expired. Start again without a token.
401 unauthorized Invalid OAuth 2.0 credentials.
403 permission_denied The token is valid but the required scope has not been granted, or the application has no access to the requested supplier.
429 rate_limited Number of requests exceeds allowed limit
500 internal_server_error Internal server error

When the request parameters are invalid or the application has no access to the supplier, the 400 or 403 response has this body:

Status-code: 400
{
    "details": {
        "mappedCode": "invalid-argument",
        "message": "city_id is required"
    }
}

mappedCode is invalid-argument for 400 and permission-denied for 403. Use message only for logs. Its text can change.

Note

  • All pages of one walk together are the full forecast run, never a delta.
  • A fleet can only read quota for suppliers it has been granted access to; any other supplier_uuid returns 403.
  • Each forecast_type covers a fixed window; there is no way to narrow or extend it. See Forecast Types.
  • A city_id in which the supplier has no quota returns 200 with an empty quotas list. An unknown city_id returns the same response, so this endpoint cannot be used to discover which cities exist.
  • slotStart is in UTC. Use timezone to convert it to local time and to group slots by local operating day; do not assume a fixed offset, as it changes with daylight saving time.
  • Quota for a slot may be republished after it was first published. Each republish raises a Quota Updated webhook. Compare producedAt to identify the newer version of a record.

Uber

Developers
© 2026 Uber Technologies Inc.