# MMT bus details

Resolve a bus trip by trip identifier from bus search results.

- Platform: [MakeMyTrip](https://docs.upscrape.com/docs/platforms/mmt)
- Capability ID: `mmt.buses.details`
- Cost: 1 credit per request
- Maximum runtime: 30 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "date": "2026-11-16",
    "destination": "Agra",
    "mode": "bus",
    "source": "Delhi",
    "trip_id": "39_MMTCC1199_MMTCC3641_16-11-2026_1000011957980069321"
  },
  "capability": "mmt.buses.details"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `date` | `string` | Yes | Travel date in YYYY-MM-DD, today or later in India time |
| `destination` | `string` | Yes | Destination bus city name or MakeMyTrip bus city code |
| `mode` | `string` | No | When provided should be 'bus' for details lookup |
| `source` | `string` | Yes | Source bus city name or MakeMyTrip bus city code |
| `trip_id` | `string` | Yes | Exact trip_key returned by bus search for this route and date |

### Example input

```json
{
  "date": "2026-11-16",
  "destination": "Agra",
  "mode": "bus",
  "source": "Delhi",
  "trip_id": "39_MMTCC1199_MMTCC3641_16-11-2026_1000011957980069321"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

No example output is available for this capability.


## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
