expo-api-routes
API routes in Expo Router for server-side logic, secrets, and third-party integrations on EAS Hosting.
What it does
- Server-side secrets — API keys, database credentials, or tokens that must never reach the client
- Database operations — Direct database queries that shouldn't be exposed
- Third-party API proxies — Hide API keys when calling external services (OpenAI, Stripe, etc.)
- Server-side validation — Validate data before database writes
- Webhook endpoints — Receive callbacks from services like Stripe or GitHub
- Rate limiting — Control access at the server level
- Heavy computation — Offload processing that would be slow on mobile
Requirements & configuration
- Use API routes when you need:
- No persistent connections — WebSockets require Durable Objects
- const token = request.headers.get("Authorization")?.replace("Bearer ", "");
- // Verify token...
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
API routes in Expo Router for server-side logic, secrets, and third-party integrations on EAS Hosting.
Source
Repository: https://github.com/expo/skills
expo-api-routes FAQ
What does the expo-api-routes skill do?
Guidelines for creating API routes in Expo Router with EAS Hosting Server-side secrets — API keys, database credentials, or tokens that must never reach the client Database operations — Direct database queries that shouldn't be exposed
What does expo-api-routes require?
Use API routes when you need: No persistent connections — WebSockets require Durable Objects const token = request.headers.get("Authorization")?.replace("Bearer ", ""); // Verify token...
How do I install expo-api-routes?
Run: npx -y skills add https://github.com/expo/skills --skill expo-api-routes --agent claude-code — the source lives at github.com/expo/skills.
Maintain expo-api-routes?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/expo-skills-expo-api-routes?ref=badge) npx agentictools info skills/expo-skills-expo-api-routes The second line is the CLI lookup for this page — handy in READMEs and docs.