📄 expo/eas/hosting/api-routes

File: api-routes.md | Updated: 11/15/2025

Source: https://docs.expo.dev/eas/hosting/api-routes

Hide navigation

Search

Ctrl K

Home Guides EAS Reference Learn

Archive Expo Snack Discord and Forums Newsletter

API Routes

Edit page

Copy page

Learn how to inspect requests from API routes on the EAS Hosting dashboard.

Edit page

Copy page


This page is for EAS Hosting specific details about API routes. For general documentation about the topic, see the API routes documentation under Expo Router.

Crashes, logs, and requests that occur in API routes can be inspected on the EAS Hosting dashboard.

Crashes

A crash is any uncaught error that is thrown while a request was handled, which prevented a response from being returned, for example, throw new Error("An error!"). Crashes may be viewed on the Hosting crashes page.

Crashes are grouped. If similar crashes are detected, you will see just one line item for them. The crash details will show the stack trace and metadata for the first and last known occurrence of the crash.

EAS dashboard showing a list of crashes

Logs

All logs from API routes and server functions (console.log, console.info, console.error, and so on) are recorded on the deployment level logs page. Go to Hosting deployments

select a deployment > Logs.

EAS dashboard showing a list of logs

Requests

Requests can be viewed on the project level at Hosting requests and deployment level Hosting Deployments

select a deployment > Requests.

This will show a list of requests against your service, with metadata (status, browser, region, duration, and more) per request. These include all requests to the service, including requests to API routes.

EAS dashboard showing a list of requests

Looking up a request by ID

All response headers include a Cf-Ray header that looks like 8ffb63895cf6779b-LHR. The first part of this is the request ID and you may look up the request on the EAS dashboard via this ID using the filters in Hosting > Requests .

This request ID is also displayed on any service-level error pages.

Sampling

If a deployment receives a high amount of traffic, data that EAS Hosting records will be downsampled . This means as your deployments receive more requests, fewer data points will be recorded, and you may not see individual requests, logs, and crashes be listed one by one. However, statistical counts, such as number of requests or crashes, will be estimated to still reflect all requests proportionally.