{"schemaVersion":1,"title":"Getting started","url":"https://appgram.dev/docs/guides/getting-started","markdownUrl":"https://appgram.dev/docs/format-md/guides/getting-started.md","jsonUrl":"https://appgram.dev/docs/agent/pages/guides/getting-started.json","version":"current","locale":"en","markdown":"# Getting started\n\nCreate an account and project, show feedback in your app, and verify your first saved vote.\n\nCreate an account, add a sample feature request, and display it in your application. Finish by casting a vote and confirming it in the dashboard. You need access to an email inbox and either a website or an application on one of the supported platforms.\n\nThe first feedback integration uses a public project ID. You do not need a management API key, a custom domain, or a webhook to complete it.\n\n## 1. Create your account\n\n1. Open [Create an account](https://app.appgram.dev/auth/register). If you already have an account, [sign in](https://app.appgram.dev/auth/login).\n2. Enter your full name, email, and a password of at least eight characters, or use an available Google or GitHub sign-in option.\n3. If AppGram asks you to confirm your email, open the confirmation message and complete that step before signing in. If it does not arrive, check spam and the email address you entered. Use the sign-in screen's confirmation controls when offered.\n\nIf a teammate invited you, open the invitation link and sign in with the invited email. Join that organization instead of creating a duplicate workspace. Ask its owner or administrator for project access if you cannot see the intended project.\n\n**Check:** you can enter the dashboard or its workspace setup flow without a sign-in or email-confirmation error.\n\n## 2. Create or select a project\n\nFor a new workspace, complete the onboarding **Setup** step with an organization name and a project name, such as `Feedback sandbox`. The organization holds your team and projects; the project selects the product whose feedback you will collect.\n\nChoose the **SaaS product** use case for this walkthrough. It provides a feedback-oriented starting setup. Continue through the Brand, Team, and Launch steps; you can leave optional branding and invitations for later. Completing onboarding does not deploy your application.\n\nIf you already belong to an organization, select it and open [Projects](https://app.appgram.dev/projects). Choose **New project**, enter the name, and select **Create project**, or select an existing test project. Project creation requires project-management permission; ask an administrator if the control is unavailable.\n\n> Use test content\n>\n> Use a separate development project and synthetic feedback for this walkthrough. Its portal data can be public to someone who has the project context. A project named “sandbox” still uses the real AppGram service. See [Going to production](/guides/going-to-production) for environment separation and plan checks.\n\n**Check:** the intended organization and project are selected in the dashboard. Keep this selection when you create feedback and copy identifiers.\n\n## 3. Add one visible feature request\n\n1. Open the project's [feedback requests](https://app.appgram.dev/wishes).\n2. Choose **New request**, enter the title `Feedback integration check`, and add a description such as `A sample request for verifying our AppGram integration.` Select a category if you need one, then choose **Create request**.\n3. Open the new request. If it shows **Awaiting approval · approve**, approve this sample request with an account that has permission to manage feedback. An **Approved** request is visible on the public portal.\n\nFeedback settings include **Require approval**. When it is enabled, a new submission can be stored successfully while remaining hidden from public lists. Keep the moderation policy you intend to use; approve the sample instead of disabling moderation just to pass this walkthrough.\n\n**Check:** you can find the request by title in the dashboard and its approval indicator shows **Approved**.\n\n## 4. Copy the matching project details\n\nWith the same project selected, open [Developer tools → Overview](https://app.appgram.dev/developer). Under **Identifiers**, copy **Project ID**. Use that value for every `YOUR_PROJECT_ID` placeholder below. **Organization ID** identifies the workspace and is a different value.\n\nReact, React Native, and Flutter examples also show organization and project slugs for features such as releases. On **Projects**, open the project's actions menu and select **View public page**. On the standard portal, its path has the form `/p/ORGANIZATION_SLUG/PROJECT_SLUG/`. Copy those two path segments, not the display names or IDs. If a custom domain hides that path, get the standard portal slugs from your workspace administrator. The organization slug is also shown under **Settings → Organization → URL slug**.\n\nIf Developer tools is unavailable, ask an administrator for access or for the project's public identifiers. Public identifiers are safe to configure in a client; management API keys belong on your backend. See [API authentication](/guides/api-authentication).\n\n**Check:** your copied project ID belongs to the project containing `Feedback integration check`.\n\n## 5. Show feedback in your application\n\nChoose one route. The website demo is a complete page; SDK examples assume an existing application on that platform.\n\n> > Website / JavaScript embed\n> >\n> > Create a folder containing `index.html` with this complete page. Replace `YOUR_PROJECT_ID`:\n> >\n> > ```html\n> > <!doctype html>\n> > <html lang=\"en\">\n> >   <head>\n> >     <meta charset=\"utf-8\">\n> >     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n> >     <title>AppGram feedback demo</title>\n> >   </head>\n> >   <body>\n> >     <h1>Feedback</h1>\n> >     <div id=\"appgram-feedback\" style=\"height: 600px\"></div>\n> >     <script>\n> >       window.appgramSettings = {\n> >         projectKey: 'YOUR_PROJECT_ID',\n> >         mode: 'inline',\n> >         container: '#appgram-feedback',\n> >         defaultPage: 'feedback',\n> >       };\n> >     </script>\n> >     <script src=\"https://cdn.appgram.dev/appgram.min.js\"></script>\n> >   </body>\n> > </html>\n> > ```\n> >\n> > Serve that folder with your normal local web server. For example, if Python 3 is installed, run this from the folder and open the [local demo](http://localhost\\:8000):\n> >\n> > ```bash\n> > python3 -m http.server 8000 --bind 127.0.0.1\n> > ```\n> >\n> > The feedback widget should appear inside the page. The script needs network access to AppGram's CDN and portal. Continue with [embed setup](/guides/sdks/embed) for floating mode, lifecycle, and script-policy details.\n>\n> > React / Next.js\n> >\n> > In an existing React application with React and React DOM 18 or newer:\n> >\n> > ```bash\n> > npm install @appgram/react@0.2.5\n> > ```\n> >\n> > Replace the project values and render this component from your application. For Vite, it can be `src/App.tsx`; for Next.js App Router, put it in a client component and render it from a page.\n> >\n> > ```tsx\n> > 'use client';\n> >\n> > import { AppgramProvider, useAppgramContext, useVote, useWishes, type Wish } from '@appgram/react';\n> >\n> > function FeedbackVote({ wish }: { wish: Wish }) {\n> >   const { fingerprint } = useAppgramContext();\n> >   const { hasVoted, voteCount, isLoading, error, vote } = useVote({\n> >     wishId: wish.id,\n> >     initialVoteCount: wish.vote_count,\n> >     initialHasVoted: wish.has_voted,\n> >   });\n> >\n> >   return (\n> >     <div>\n> >       <button\n> >         onClick={() => void vote()}\n> >         disabled={!fingerprint || isLoading || hasVoted}\n> >         aria-pressed={hasVoted}\n> >       >\n> >         {hasVoted ? 'Voted' : isLoading ? 'Saving…' : 'Vote'} ({voteCount})\n> >       </button>\n> >       {!fingerprint && <span> Preparing anonymous voting…</span>}\n> >       {error && <p role=\"alert\">{error}</p>}\n> >     </div>\n> >   );\n> > }\n> >\n> > function Feedback() {\n> >   const { wishes, isLoading, error, refetch } = useWishes();\n> >\n> >   if (isLoading) return <p>Loading feedback…</p>;\n> >   if (error) return (\n> >     <div>\n> >       <p role=\"alert\">{error}</p>\n> >       <button onClick={() => void refetch()}>Try again</button>\n> >     </div>\n> >   );\n> >   if (wishes.length === 0) return <p>No feature requests yet.</p>;\n> >\n> >   return (\n> >     <ul>{wishes.map((wish) => (\n> >       <li key={wish.id}>\n> >         <h2>{wish.title}</h2>\n> >         <FeedbackVote wish={wish} />\n> >       </li>\n> >     ))}</ul>\n> >   );\n> > }\n> >\n> > export default function App() {\n> >   return (\n> >     <AppgramProvider config={{\n> >       projectId: 'YOUR_PROJECT_ID',\n> >       orgSlug: 'your-org',\n> >       projectSlug: 'your-project',\n> >     }}>\n> >       <Feedback />\n> >     </AppgramProvider>\n> >   );\n> > }\n> > ```\n> >\n> > This example uses HTML and your own application styles, so it does not need the prebuilt component styling setup. Anonymous voting waits for the provider's fingerprint to initialize. Read [customer identity](/guides/client-identity) before changing that behavior, and [React setup](/guides/sdks/react) for prebuilt components and styling.\n>\n> > React Native\n> >\n> > Install the SDK and its native peer dependencies:\n> >\n> > ```bash\n> > npm install @appgram/react-native@0.1.2\n> > npm install @react-native-async-storage/async-storage lucide-react-native react-native-svg react-native-markdown-display react-native-render-html\n> > ```\n> >\n> > Use versions compatible with your native application and complete their platform installation steps. Follow [React Native setup](/guides/sdks/react-native), replace the project values, and render its `WishList` screen under `AppgramProvider`.\n>\n> > Flutter\n> >\n> > ```bash\n> > flutter pub add appgram_flutter:^1.0.0\n> > ```\n> >\n> > Follow [Flutter setup](/guides/sdks/flutter), replace the project values in its complete `lib/main.dart` example, and run the application. Its `WishList` belongs inside `AppgramProvider`.\n>\n> > Swift\n> >\n> > Add the package with Swift Package Manager:\n> >\n> > ```swift\n> > .package(url: \"https://github.com/AppGram/apple-sdk.git\", from: \"1.0.1\")\n> > ```\n> >\n> > The package supports iOS 17+ and macOS 14+. Follow [Swift setup](/guides/sdks/swift) to add the `AppGramSDK` product, configure your public project ID, and display the feedback view.\n\n**Check:** `Feedback integration check` appears in your page or application. A successful empty list means the connection worked but no matching public request was returned; it does not complete this sample-content check.\n\nYou can isolate the data request from the interface with:\n\n```bash\ncurl --get --include 'https://api.appgram.dev/portal/wishes' \\\n  --data-urlencode 'project_id=YOUR_PROJECT_ID' \\\n  --data-urlencode 'search=Feedback integration check' \\\n  --data-urlencode 'page=1' \\\n  --data-urlencode 'per_page=20'\n```\n\nExpect HTTP **200** and the sample title in the response's `data` list. If the list is empty, check project selection and approval. If the request fails, inspect its HTTP status and body using [pagination and errors](/guides/api-requests) and [troubleshooting](/guides/troubleshooting).\n\n## 6. Cast a vote and confirm it in the dashboard\n\n1. Find `Feedback integration check` in your application and note its vote count.\n2. Cast one vote using the widget's vote control, the native feedback interface, or the React example's **Vote** button. Wait for the request to finish; check any error shown by the interface.\n3. Refresh the same request in the dashboard. Its vote count should include your vote. Reload your application and confirm the count is still present.\n\nIf this customer identity has already voted, another click may remove the vote in interfaces with toggle controls; the React example instead shows **Voted** and disables its button. A local count change alone is not confirmation that the server saved it. Refresh the dashboard and check the network response when the two disagree.\n\n**Check:** the sample request is visible in the application and the dashboard reflects the saved vote. You now have a working feedback integration.\n\n## 7. Verify submissions and prepare for production\n\nIf your chosen interface includes a submission form, submit a second synthetic request with a distinct title. Confirm it arrives in the dashboard. With **Require approval** enabled, approve it there before expecting it in the public list. Complete any customer verification or bot-protection challenge the form presents. The React example above covers reading and voting; adding a submission form is a separate step using the documented [React components and client APIs](/react-sdk).\n\nBefore exposing the integration to customers, follow [Going to production](/guides/going-to-production) for project separation, team permissions, plan restrictions, credentials, identity, and launch checks. Add [webhooks](/guides/webhooks) only when your integration needs server notifications.\n\nUse the [public API reference](/guides/public-api) for HTTP workflows, or [Build with AI agents](/guides/ai-agents) to give your coding assistant the same documentation.\n\n","contentLocale":"en","isFallback":false,"authorship":{"authors":[],"contributors":[],"reviewedBy":[]}}