api-routes

Implement Expo Router API routes with TypeScript endpoints and EAS Hosting deployment.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/Selfdb-io/StreamX --skill api-routes-selfdb-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-routes
Source: https://github.com/Selfdb-io/StreamX/tree/main/.agentone/skills/expo-app-design/skills/api-routes
Command: npx skills add https://github.com/Selfdb-io/StreamX --skill api-routes-selfdb-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes the approach to building Expo Router API routes with EAS hosting, helping developers create robust server endpoints within their Expo apps.

Core Features & Use Cases

  • API Route Patterns: Demonstrates how to structure +api.ts endpoints, dynamic routes, and method exports.
  • Hosting & Deployment: Guides deployment via EAS Hosting and Cloudflare Workers considerations.
  • Security & Validation: Emphasizes environment variables, secret handling, and request validation.

Quick Start

Use the api-routes skill to scaffold a new +api.ts endpoint that returns a greeting at /api/hello.

Frequently Asked Questions about api-routes

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

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

To create API routes in Expo Router, you structure server-side endpoints using +api.ts files, exporting HTTP methods like GET or POST to handle requests and return responses. This approach lets you build robust server endpoints within your Expo app.

Can I deploy Expo Router API routes to EAS Hosting?

Yes, you can deploy Expo Router API routes directly to EAS Hosting. The deployment process involves configuring your Expo project and environment variables to ensure your serverless endpoints are securely hosted and accessible.

How does Expo Router handle dynamic API routes?

Expo Router handles dynamic API routes by using file-based routing conventions similar to its page routing. You create files with bracket notation to capture URL parameters, allowing your TypeScript endpoint definitions to process dynamic request data.

What is the best way to secure environment variables in Expo API routes?

The best way to secure environment variables in Expo API routes is through proper secret handling and request validation. EAS Hosting allows you to manage environment variables securely, ensuring sensitive data is not exposed to the client.

Does Expo Router API routes support third-party webhooks integration?

Yes, Expo Router API routes support third-party webhooks integration. By defining specific HTTP method exports in your +api.ts files, you can receive, validate, and process incoming webhook payloads from external services.