Skip to main content
Version: 0.1

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 PATCH with 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 by Accept-Language) and data. 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-Key header, so a retried request replays the first answer.
  • Anonymous endpoints and costly calls are rate limited (429).

Authentication​

CredentialHow it is sentAccepted by
Web session (JWT access token, refresh token)Authorization: Bearer; ?access_token= for the SignalR hubEverything except /mcp
Personal access token sea_...Authorization: BearerThe REST API and /mcp, for one organization; read only tokens are capped to Viewer
CI token sci_...Authorization: BearerPackage upload endpoints of its apps
Upload token sut_... (15 minutes, from POST oidc/exchange)Authorization: BearerPackage upload endpoints of its one app
Webhook signatureHMAC headersThe 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.

PermissionDefault roles
ViewAll
EditContent, ReleaseTest, ReplyReviewsEditor, Admin, Owner
ReleaseProduction, SubmitForReview, ManageConnections, ManageWebhooks, ManageMembersAdmin, Owner
ManageOrganizationOwner

Platform permissions (UserManagement.*, RoleManagement.*, FeatureFlagManagement.*, RuleCatalogManagement.*, SystemManagement.*, ...) belong to the instance admin and platform roles.

Areas​

AreaRoutes (under /api/v1.0/)Permission
Accountaccount/login, login/google, login/refresh, register, email/verify, password/forgot, password/reset, account/detail, sessions, notificationsAnonymous (rate limited) or the signed in user
Organizations and membersorganizations/mine, organization, members, member/role, invitation, roles, audit-logs, organizations/ai-settingsView; members ManageMembers; organization changes ManageOrganization
Store connectionsstoreconnections, connection, connection/verify, connection/keyList View; changes ManageConnections
Apps and readinessapps, apps/app, apps/sync, apps/readiness, apps/compliance, compliance, rules/*Reads View; changes EditContent
Change plansplans, plans/plan, plans/approve, plans/reject, plans/discardRead View; approve with the plan's own permission and, for submissions and production, the typed confirmation
Store contentlistings, screenshots, previews, categories, age-rating, pricing, review-info, builds, releasesReads View; plans EditContent; test releases ReleaseTest; production ReleaseProduction; releases/submit-for-review SubmitForReview
Moneysubscriptions/*, iap/*, purchasesettings/*Reads View; plans EditContent
TestFlighttestflight/*Reads View; changes and beta review ReleaseTest
Microsoft Store, winget, Chrome Web Store, Firefox Add-onsms/*, winget/*, chrome/*, firefox/*Reads View; plans EditContent; submission SubmitForReview with the typed confirmation
EAS buildseas/*Reads View; token ManageConnections; builds and submits ReleaseTest
Package registriesregistries/*Reads View; changes EditContent; credentials ManageConnections; approvals ReleaseProduction
ASO, experiments, store metrics, impactaso-keywords/*, aso-experiments/*, store-metrics/*, aso-impact/*Reads View; changes EditContent
Dashboard and revenuedashboard/*Reads View; sources ManageConnections; currency ManageOrganization
Reviews and rejectionsreviews/*, rejections/*Reads View; replies ReplyReviews; rejection cases EditContent
AIreviews/reply-draft/generate, listings/suggest, categories/suggest, pre-reviews/*See AI Features
Studiomockups/*Reads View; templates and exports EditContent
Filesassets/upload, assets/asset/complete, assets/asset/download-urlUpload EditContent, download View; bytes go to S3 through presigned URLs
Store jobsstorejobs, storejobs/job, storejobs/job/cancel, storejobs/boardRead View; cancel EditContent; live on /hubs/activity
Package intakeapps/{appId}/artifacts, artifacts/*, oidc/exchangeUpload with a PAT ReleaseTest or a CI/upload token; settings ManageConnections
Personal access tokenstokens, tokens/token, tokens/currentCreated and revoked from a web session only
Webhookswebhooks, webhooks/endpoint, subscription(s), deliveries, eventsManageWebhooks
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
Systemsystem/public-settings, system/setup, system/feature-flags, system/status, system/settingsPublic settings and setup anonymous; status and settings for the instance admin
Healthhealthcheck, 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.