expo-api-routes

Create Expo Router API routes with +api.ts files for EAS Hosting.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/abogoyavlensky/agents --skill expo-api-routes-abogoyavlensky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expo-api-routes
Source: https://github.com/abogoyavlensky/agents/tree/main/skills/expo-api-routes
Command: npx skills add https://github.com/abogoyavlensky/agents --skill expo-api-routes-abogoyavlensky

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guidelines for creating robust and scalable API routes in Expo Router with EAS Hosting, helping teams structure server-side logic securely and consistently.

Core Features & Use Cases

  • API routes live under app with +api.ts suffix to define endpoints and HTTP methods
  • Manage environment variables, CORS headers, error handling, and deployment to EAS Hosting
  • Supports dynamic routes, request handling, authentication middleware, and proxy patterns

Quick Start

Create a minimal Expo app, add app/api/hello+api.ts with a GET handler, and deploy to EAS Hosting.

Frequently Asked Questions about expo-api-routes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create server-side API routes in Expo Router?

Create server-side API routes in Expo Router by adding files with the +api.ts suffix under the app directory, defining HTTP method handlers like GET and POST to run in EAS Hosting environments.

Can I handle webhooks and secrets securely in EAS Hosting?

Yes, you can handle webhooks and secrets securely in EAS Hosting by using Expo Router API routes with environment variable management, authentication middleware, and explicit validation logic.

What is the standard project layout for Expo API routes?

The standard project layout for Expo API routes enforces an app/api directory structure, using dynamic routing and the +api.ts file suffix to separate server-side logic from client components.

How do I configure CORS and error handling for Expo API endpoints?

Configure CORS and error handling for Expo API endpoints by defining CORS headers and explicit error handling logic directly within your +api.ts route handlers before deploying to EAS Hosting.

Does Expo Router support data proxy patterns for server-side requests?

Yes, Expo Router supports data proxy patterns for server-side requests, allowing you to manage authentication middleware and route external data through your EAS Hosted API endpoints securely.