REST API
A short map of the storeasy REST surface. The full reference, with every request and response shape, is the API's OpenAPI document: /api/docs/v1.0/docs.json, browsable at /api/documentation. Both are served only when MILVA_ENV is exactly dev (a local run). The calls the client tools rely on are pinned in tools/CONTRACT.md.
Conventions
- Base path
/api/v1.0/, lower case (/api/v1.0/storejobs/job). Through the web container every call goes to the app's own origin. - Lists are
PATCHwith a filter, sort and paging body (PATCH /api/v1.0/apps); single records are read with query parameters (GET /api/v1.0/apps/app?AppId=3). - Every answer is the same envelope:
isSuccess,statusCode,messages(localized byAccept-Language) anddata. Errors carry a stable message key (EmailNotVerified,DeliveryTargetNotAllowed, ...). - Organization scoped requests carry
organizationId; a personal access token, CI token or upload token replaces it with the token's own organization. - Creating calls that queue store work accept an
Idempotency-Keyheader, so a retried request replays the first answer. - Anonymous endpoints and costly calls are rate limited (429).
Authentication
| Credential | How it is sent | Accepted by |
|---|---|---|
| Web session (JWT access token, refresh token) | Authorization: Bearer; ?access_token= for the SignalR hub | Everything except /mcp |
Personal access token sea_... | Authorization: Bearer | The REST API and /mcp, for one organization; read only tokens are capped to Viewer |
CI token sci_... | Authorization: Bearer | Package upload endpoints of its apps |
Upload token sut_... (15 minutes, from POST oidc/exchange) | Authorization: Bearer | Package upload endpoints of its one app |
| Webhook signature | HMAC headers | The anonymous receivers under /api/webhooks/... |
Deny by default: every endpoint needs an authenticated caller unless it is marked anonymous.
Permissions
Organization permissions decide store and team work. The check runs per request from the current membership, the same for the web app, REST and MCP.
| Permission | Default roles |
|---|---|
View | All |
EditContent, ReleaseTest, ReplyReviews | Editor, Admin, Owner |
ReleaseProduction, SubmitForReview, ManageConnections, ManageWebhooks, ManageMembers | Admin, Owner |
ManageOrganization | Owner |
Platform permissions (UserManagement.*, RoleManagement.*, FeatureFlagManagement.*, RuleCatalogManagement.*, SystemManagement.*, ...) belong to the instance admin and platform roles.
Areas
| Area | Routes (under /api/v1.0/) | Permission |
|---|---|---|
| Account | account/login, login/google, login/refresh, register, email/verify, password/forgot, password/reset, account/detail, sessions, notifications | Anonymous (rate limited) or the signed in user |
| Organizations and members | organizations/mine, organization, members, member/role, invitation, roles, audit-logs, organizations/ai-settings | View; members ManageMembers; organization changes ManageOrganization |
| Store connections | storeconnections, connection, connection/verify, connection/key | List View; changes ManageConnections |
| Apps and readiness | apps, apps/app, apps/sync, apps/readiness, apps/compliance, compliance, rules/* | Reads View; changes EditContent |
| Change plans | plans, plans/plan, plans/approve, plans/reject, plans/discard | Read View; approve with the plan's own permission and, for submissions and production, the typed confirmation |
| Store content | listings, screenshots, previews, categories, age-rating, pricing, review-info, builds, releases | Reads View; plans EditContent; test releases ReleaseTest; production ReleaseProduction; releases/submit-for-review SubmitForReview |
| Money | subscriptions/*, iap/*, purchasesettings/* | Reads View; plans EditContent |
| TestFlight | testflight/* | Reads View; changes and beta review ReleaseTest |
| Microsoft Store, winget, Chrome Web Store, Firefox Add-ons | ms/*, winget/*, chrome/*, firefox/* | Reads View; plans EditContent; submission SubmitForReview with the typed confirmation |
| EAS builds | eas/* | Reads View; token ManageConnections; builds and submits ReleaseTest |
| Package registries | registries/* | Reads View; changes EditContent; credentials ManageConnections; approvals ReleaseProduction |
| ASO, experiments, store metrics, impact | aso-keywords/*, aso-experiments/*, store-metrics/*, aso-impact/* | Reads View; changes EditContent |
| Dashboard and revenue | dashboard/* | Reads View; sources ManageConnections; currency ManageOrganization |
| Reviews and rejections | reviews/*, rejections/* | Reads View; replies ReplyReviews; rejection cases EditContent |
| AI | reviews/reply-draft/generate, listings/suggest, categories/suggest, pre-reviews/* | See AI Features |
| Studio | mockups/* | Reads View; templates and exports EditContent |
| Files | assets/upload, assets/asset/complete, assets/asset/download-url | Upload EditContent, download View; bytes go to S3 through presigned URLs |
| Store jobs | storejobs, storejobs/job, storejobs/job/cancel, storejobs/board | Read View; cancel EditContent; live on /hubs/activity |
| Package intake | apps/{appId}/artifacts, artifacts/*, oidc/exchange | Upload with a PAT ReleaseTest or a CI/upload token; settings ManageConnections |
| Personal access tokens | tokens, tokens/token, tokens/current | Created and revoked from a web session only |
| Webhooks | webhooks, webhooks/endpoint, subscription(s), deliveries, events | ManageWebhooks |
| Webhook receivers | /api/webhooks/apple/{id}, /api/webhooks/signed/{id}, /api/webhooks/google/{id}, /api/webhooks/eas/{id}, /api/webhooks/artifacts/{id} | Anonymous, signed, rate and size limited |
| System | system/public-settings, system/setup, system/feature-flags, system/status, system/settings | Public settings and setup anonymous; status and settings for the instance admin |
| Health | healthcheck, healthcheck/ready (also /health/live, /health/ready) | Anonymous |
Outgoing webhook events
Outgoing webhooks are signed like the signed receiver (X-Storeasy-Signature over <timestamp>.<body>) and send: rejection.opened, rejection.closed, version.state_changed, review.received, review.replied, testflight.build.expiring, compliance.deadline, connection.secret_expiring, webhook.test.
MCP
/mcp is not REST: it is the remote MCP server, with 234 tools that send the same requests as the endpoints above. See MCP.