API Reference
Reference documentation for interacting with your RestAPI.com APIs via HTTP.
Base URL
Each API is hosted in a specific region. Use the region-specific hostname to access your API:
https://<region>.restapi.com/<api-name>
Available Regions
| Region | Prefix | Location |
|---|---|---|
| EU | eu | Amsterdam |
| Norway | no | Norway |
Example URLs
Collection endpoint:
https://eu.restapi.com/my-api/products
Item endpoint:
https://eu.restapi.com/my-api/products/f38fa478-842e-4599-8cbc-918a34b3b789
Virtual Paths (Hosted Web Apps)
If you're using RestAPI.com hosting, you can access your API through virtual paths without CORS configuration:
| Path | Description |
|---|---|
/<region>-api | Region-specific, CORS-free |
/api | Region-free, CORS-free (slight latency trade-off) |
/login | Hosted authentication page |
Example:
https://my-app.restapi.cloud/eu-api/my-api/products
Sections
- Authentication — JWT tokens, identity providers, service accounts
- HTTP Methods — GET, POST, PUT, PATCH, DELETE operations
- Nested Children — Transactional parent-child updates
- Transactions — Atomic operations via WebSocket
- Blobs — Binary file storage and retrieval
- Functions — Serverless triggers and AI variants
- Hosted Webapps — Static site hosting and virtual paths
- Real Time — WebSocket connections and live updates