Report Status
POST/v1/incidents/status¶ Use Case
The Report Status endpoint returns the current state of an incident that your application sent with Report Incident.
It shows whether Uber shows the incident to drivers, how many drivers confirmed or rejected it, and when it expired. You can check only the reports that your application sent.
See the Traffic & Incidents introduction for base URLs and developer guides.
¶ Authorization
OAuth 2.0 Bearer token with the maps.partner.incidents scope. See Authentication.
¶ Request Parameters
All request fields are required.
| Name | Type | Description |
|---|---|---|
report_id |
string | The report_id from the Report Incident response. |
¶ Required Headers
| Name | Value |
|---|---|
Authorization |
Bearer <ACCESS_TOKEN> with the maps.partner.incidents scope |
Content-Type |
application/json |
Accept: application/json is optional.
¶ Example Request
$api_url is api.uber.com in production, or test-api.uber.com if Uber has provisioned sandbox access for your application.
curl -X POST \
-H "authorization: Bearer $UBER_TOKEN" \
-H 'content-type: application/json' \
https://$api_url/v1/incidents/status -d \
'{
"report_id": "44b0ba31-6c1e-3d7a-9b52-0f6f2a1c9e10"
}'
¶ Response body parameters
| Name | Type | Description |
|---|---|---|
report_id |
string | UUID of the report. |
status |
PartnerIncidentStatus | Current state of the report. |
incident_type |
IncidentType | Kind of incident, as reported. |
metadata |
IncidentMetadata | Optional. Driver votes. |
expired_at |
string | Optional. UTC expiration time. |
Status-code: 200 OK
Illustrative response; the UUID and vote counts are example data:
{
"report_id": "44b0ba31-6c1e-3d7a-9b52-0f6f2a1c9e10",
"status": "PARTNER_INCIDENT_STATUS_ACTIVE",
"incident_type": "INCIDENT_TYPE_ACCIDENT",
"metadata": {
"ugc_report": {"upvotes": 3, "downvotes": 0}
}
}
¶ Notes on the response
- A report usually becomes
ACTIVEa few seconds after you send it. expired_atis set only whenstatusisEXPIRED.EXPIREDis terminal. Check each report at most once a minute, and stop when its status isEXPIRED.
¶ PartnerIncidentStatus Options
| Name | Description |
|---|---|
PARTNER_INCIDENT_STATUS_ACCEPTED |
Received and processing. |
PARTNER_INCIDENT_STATUS_ACTIVE |
Shown to drivers. |
PARTNER_INCIDENT_STATUS_EXPIRED |
No longer shown to drivers. |
¶ IncidentMetadata Parameters
| Name | Type | Description |
|---|---|---|
ugc_report |
object | Optional. Driver votes on the incident. |
ugc_report.upvotes |
uint32 | Optional. Number of drivers who confirmed it. |
ugc_report.downvotes |
uint32 | Optional. Number of drivers who said it is gone. |
metadatais omitted when no driver has voted. Do not read a missing count as an observed zero.INCIDENT_TYPE_ROADWORKScan includeugc_reportwhen drivers confirm or reject construction on the road. Vote counts follow the same rules as other incident types.
¶ Errors
See Errors for HTTP status codes and how to handle them, and Rate Limits for quotas.