{"schemaVersion":1,"title":"Going to production","url":"https://appgram.dev/docs/guides/going-to-production","markdownUrl":"https://appgram.dev/docs/format-md/guides/going-to-production.md","jsonUrl":"https://appgram.dev/docs/agent/pages/guides/going-to-production.json","version":"current","locale":"en","markdown":"# Going to production\n\nSeparate environments, set team access, manage credentials, and verify your deployed integration.\n\nComplete [Getting started](/guides/getting-started) in a development project first. This guide covers the choices that change when real customers, production data, and server credentials are involved.\n\n## Separate development and production\n\nUse separate AppGram projects for development and production where your plan allows. Give each a clear name, and keep its project ID, slugs, content, customer context, and webhook endpoints together. A development project still calls the real service; it does not create an isolated sandbox API or disable delivery, billing rules, or public access.\n\n| Setting | Development | Production |\n| --- | --- | --- |\n| Project context | Development project ID and matching slugs | Production project ID and matching slugs |\n| Feedback | Synthetic requests and test customer identities | Reviewed requests intended for customers |\n| Management keys, if needed | Separate key limited to development resources | Separate key limited to production resources |\n| Webhooks, if needed | Test receiver and its own secret | Deployed receiver and its own secret |\n\nKeep project context in your application's environment configuration so promoting a build selects the matching values together. Public project IDs can appear in frontend configuration. Management keys and webhook signing secrets must stay in server-side secret storage. A variable prefix such as `NEXT_PUBLIC_` or `VITE_` is not a place for a management key.\n\nIf your plan does not allow another project, check the current limits before creating one. Avoid testing notifications, submissions, or destructive actions against a customer project just to reuse its credentials.\n\n## Give teammates the access they need\n\nDashboard access, API-key permissions, and customer identity serve different purposes:\n\n| Task | Access to check |\n| --- | --- |\n| Open Projects or create a project | Project-view or project-management permission for the selected organization |\n| Read or approve feedback | Feedback-view or feedback-management permission for the selected project |\n| Open Developer tools | Developer-area access, such as `dev_logs:view` |\n| Create or revoke management keys | API-key administration capability; organization owners and administrators have this by default |\n| Use the public feedback interface | Public project context and any customer verification required by that workflow; a dashboard seat is not an API credential |\n\nInvite teammates with the role appropriate to their work. A member who can view feedback may still be unable to approve it or manage keys. Ask the organization owner or administrator to adjust access when a control is hidden or disabled. Do not share a personal dashboard login or grant broad key access to work around a missing permission.\n\n## Confirm plan and feature access\n\nCheck your organization's current subscription and usage in the dashboard, and compare the available plans on [Pricing](https://appgram.dev/pricing). Confirm that it supports the project count and features you intend to ship, including any custom-domain or origin-restriction settings you need.\n\nInstalling an SDK does not grant every dashboard capability. The public API reference describes supported operations; it does not override your resource access, permissions, or subscription. If an action is unavailable, check the organization, project, team role, and plan before changing code. Contact [AppGram support](https://appgram.dev/contact) when the dashboard does not explain the restriction.\n\n## Protect server credentials\n\nPublic feedback setup does not require a management API key. If your backend needs management operations, follow [Create a management key](/guides/api-authentication#create-a-management-key) and grant only the operation scopes it needs. Use a project-limited key when the integration serves one project, give it a recognizable environment-specific name, and choose an appropriate expiration.\n\nFollow [Rotate or revoke a key](/guides/api-authentication#rotate-or-revoke-a-key) before expiry or when ownership changes. Replace a key by creating another, updating your backend, verifying a request, and then revoking the old key. Revoke an exposed key promptly. Removing it from a repository does not invalidate copies already obtained by someone else.\n\n## Review public content and customer identity\n\nConfirm which feedback is approved for public display. Test **Require approval** with a new synthetic submission so your team knows where a hidden-but-saved request will appear. Publishing a help article, release, form, or other surface has its own workflow; a working feedback screen does not validate every module.\n\nUse your application's real sign-in and sign-out lifecycle when testing customer identity. Read [Customer identity and client credentials](/guides/client-identity), decide whether anonymous fingerprinting fits your product, and clear account-specific data when switching accounts. Customer names and emails do not replace ticket credentials or verification. Keep secrets and unnecessary personal information out of feedback and diagnostic logs.\n\n## Verify the deployed application\n\nRun these checks with the production project after deploying your application:\n\n1. Confirm the selected project ID and slugs belong to production. Render one approved request and compare it with the dashboard.\n2. Cast a test vote, refresh the dashboard, and reload the application to verify persistence. If you offer submissions, submit a synthetic request and check its moderation behavior too.\n3. Exercise loading, empty, and error states. Verify sign-out and account switching do not leave the previous customer's private content on screen.\n4. For a website or embed, test from the actual deployed origin. Check script and iframe policy, mixed-content errors, and any configured origin restrictions. A successful cURL request does not verify browser policy. Resolve origin configuration in the dashboard rather than moving a management key into the browser.\n5. If your backend uses a management key, make a documented read request against a resource that key can access. Check its HTTP status, scope, and resource identifier. Do not infer success from the public feedback request alone.\n6. If you use webhooks, trigger one relevant test event in the intended project and confirm a real, signature-verified delivery reaches your receiver. A sample-payload request does not deliver an event. Inspect **Developer tools → Logs → Webhook deliveries** and your receiver logs. See [Receive webhooks](/guides/webhooks).\n\nPin and record the SDK versions you tested, and keep your application's dependency lockfile. Test each platform you ship on its supported runtime. Use [Troubleshooting](/guides/troubleshooting) to collect a minimal reproduction, HTTP status, and request identifier for support without sharing credentials or customer data.\n\n","contentLocale":"en","isFallback":false,"authorship":{"authors":[],"contributors":[],"reviewedBy":[]}}