Amba

Admin API

Developer-plane routes for managing projects, users, content, gamification, and every other Amba resource.

All admin routes sit under /admin and require a valid developer access token in Authorization: Bearer. Project-scoped routes are nested under /admin/projects/:projectId/* and additionally enforce project ownership — the developer must own the referenced project or the request is rejected with 403 PROJECT_FORBIDDEN.

Shape

POST /admin/projects
Authorization: Bearer <developer-access-token>
Content-Type: application/json

Successful writes return 201 with { "data": <resource> }. Reads return 200 with { "data": <payload> } or { "data": <array> }. Failures return { "error": { "code": ..., "message": ... } }.

Modules

ModulePrefixPurpose
projects/admin/projectsCreate, list, update, delete, and reprovision Amba projects; manage API keys.
users/admin/projects/:projectId/usersList and inspect end users and their engagement events.
push/admin/projects/:projectId/push/campaignsCreate push campaigns, trigger immediate sends, run a test push.
segments/admin/projects/:projectId/segmentsCRUD on rule-based user segments; kick off manual re-evaluation.
config/admin/projects/:projectId/configRemote-config keys with segment-based + percentage overrides.
content/admin/projects/:projectId/contentContent libraries, items, bulk import, and scheduled delivery.
streaks/admin/projects/:projectId/streaksStreak definitions (daily / weekly, grace window, freezes).
xp/admin/projects/:projectId/xpXP rules + per-user XP inspection.
achievements/admin/projects/:projectId/achievementsAchievement definitions.
challenges/admin/projects/:projectId/challengesTime-boxed challenges + participants.
leaderboards/admin/projects/:projectId/leaderboardsLeaderboard definitions + entries.
currencies/admin/projects/:projectId/currenciesVirtual currencies, grants, transaction history.
catalog/admin/projects/:projectId/catalogCatalog items, prices, bundles.
stores/admin/projects/:projectId/storesStores + listings.
inventory/admin/projects/:projectId/inventoryPer-user inventory reads + manual grants.
referrals/admin/projects/:projectId/referralsReferral programs + stats.
feeds/admin/projects/:projectId/feedsFeed rules + moderation.
friends/admin/projects/:projectId/friendsFriendship inspection + moderation deletes.
groups/admin/projects/:projectId/groupsGroups + members.
messaging/admin/projects/:projectId/messagingConversation + message inspection and moderation.
reviews/admin/projects/:projectId/reviewsReview moderation.
moderation/admin/projects/:projectId/moderationModeration queue, rules, user trust.
onboarding/admin/projects/:projectId/onboardingOnboarding flow definitions.
deep-links/admin/projects/:projectId/deep-linksDeep-link config + tracked links.
media/admin/projects/:projectId/mediaMedia assets + folders.
roles/admin/projects/:projectId/rolesRole definitions + assignments.
sessions/admin/projects/:projectId/sessionsSession analytics.
integrations/admin/projects/:projectId/integrationsThird-party integrations (RevenueCat, Superwall).

Common errors

CodeStatusMeaning
UNAUTHORIZED401Missing or invalid developer token.
PROJECT_FORBIDDEN403Developer does not own the referenced project.
NOT_FOUND404Resource does not exist in the tenant DB.
TENANT_NOT_PROVISIONED503Project's Neon DB is still provisioning or in a failed state.
LIST_FAILED / FETCH_FAILED / CREATE_FAILED / UPDATE_FAILED / DELETE_FAILED500Generic handler failure — the real error is logged server-side.

On this page