# Build with AppGram. Add feedback, roadmaps, help centers, changelogs, surveys, and status pages to your app in minutes. Pick a platform below and start shipping. ## Sections - [Overview](/docs) - [Guides](/docs/guides/getting-started) - [API authentication](/docs/guides/api-authentication) - [Pagination and errors](/docs/guides/api-requests) - [Customer identity and client credentials](/docs/guides/client-identity) - [Receive webhooks](/docs/guides/webhooks) - [Troubleshooting](/docs/guides/troubleshooting) - [Going to production](/docs/guides/going-to-production) - [Build with AI agents](/docs/guides/ai-agents) - [React](/docs/react-sdk) - [Getting started](/docs/guides/sdks/react) - [Components](/docs/react-sdk#functions) - [Hooks](/docs/react-sdk#hooks) - [API client](/docs/react-sdk#classes) - [Types and models](/docs/react-sdk#interfaces) - [React Native](/docs/react-native-sdk) - [Getting started](/docs/guides/sdks/react-native) - [Components](/docs/react-native-sdk#functions) - [Hooks](/docs/react-native-sdk#hooks) - [API client](/docs/react-native-sdk#classes) - [Types and models](/docs/react-native-sdk#interfaces) - [Flutter](/docs/flutter-sdk) - [Getting started](/docs/guides/sdks/flutter) - [Widgets](/docs/flutter-sdk#classes) - [State and providers](/docs/flutter-sdk#state-and-providers) - [API client](/docs/flutter-sdk#api-client) - [Types and models](/docs/flutter-sdk#types-and-models) - [Enums](/docs/flutter-sdk#enums) - [Swift](/docs/ios-sdk) - [Getting started](/docs/guides/sdks/swift) - [Views](/docs/ios-sdk#ui) - [Client and services](/docs/ios-sdk#client-and-services) - [Core types](/docs/ios-sdk#core) - [Theming](/docs/ios-sdk#theme) - [JavaScript embed](/docs/embed-sdk) - [Getting started](/docs/guides/sdks/embed) - [Lifecycle and methods](/docs/embed-sdk#appgram) - [Settings](/docs/embed-sdk#appgramsettings) - [Theming](/docs/embed-sdk#appgramtheme) - [User identity](/docs/embed-sdk#appgramuser) - [Types and events](/docs/embed-sdk#types) - [API overview](/docs/guides/public-api) - [Feature requests](/docs/api/wishes) - [Support](/docs/api/support) - [Help Center](/docs/api/help) - [Roadmaps](/docs/api/roadmaps) - [Surveys](/docs/api/surveys) - [Blog](/docs/api/blog) - [Monitors and status](/docs/api/monitors) - [Forms](/docs/api/forms) - [Waitlist](/docs/api/waitlist) - [Releases](/docs/api/releases) - [Analytics](/docs/api/analytics) - [Webhooks](/docs/api/webhooks) - [AI answers](/docs/api/ai) - [Portal](/docs/api/portal) --- # Getting started Create an account and project, show feedback in your app, and verify your first saved vote. Create 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. The 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. ## 1. Create your account 1. Open [Create an account](https://app.appgram.dev/auth/register). If you already have an account, [sign in](https://app.appgram.dev/auth/login). 2. Enter your full name, email, and a password of at least eight characters, or use an available Google or GitHub sign-in option. 3. 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. If 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. **Check:** you can enter the dashboard or its workspace setup flow without a sign-in or email-confirmation error. ## 2. Create or select a project For 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. Choose 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. If 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. > Use test content > > 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. **Check:** the intended organization and project are selected in the dashboard. Keep this selection when you create feedback and copy identifiers. ## 3. Add one visible feature request 1. Open the project's [feedback requests](https://app.appgram.dev/wishes). 2. 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**. 3. 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. Feedback 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. **Check:** you can find the request by title in the dashboard and its approval indicator shows **Approved**. ## 4. Copy the matching project details With 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. React, 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**. If 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). **Check:** your copied project ID belongs to the project containing `Feedback integration check`. ## 5. Show feedback in your application Choose one route. The website demo is a complete page; SDK examples assume an existing application on that platform. > > Website / JavaScript embed > > > > Create a folder containing `index.html` with this complete page. Replace `YOUR_PROJECT_ID`: > > > > ```html > > > > > > > > > > > > AppGram feedback demo > > > > > >

Feedback

> >
> > > > > > > > > > ``` > > > > 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): > > > > ```bash > > python3 -m http.server 8000 --bind 127.0.0.1 > > ``` > > > > 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. > > > React / Next.js > > > > In an existing React application with React and React DOM 18 or newer: > > > > ```bash > > npm install @appgram/react@0.2.5 > > ``` > > > > 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. > > > > ```tsx > > 'use client'; > > > > import { AppgramProvider, useAppgramContext, useVote, useWishes, type Wish } from '@appgram/react'; > > > > function FeedbackVote({ wish }: { wish: Wish }) { > > const { fingerprint } = useAppgramContext(); > > const { hasVoted, voteCount, isLoading, error, vote } = useVote({ > > wishId: wish.id, > > initialVoteCount: wish.vote_count, > > initialHasVoted: wish.has_voted, > > }); > > > > return ( > >
> > > > {!fingerprint && Preparing anonymous voting…} > > {error &&

{error}

} > >
> > ); > > } > > > > function Feedback() { > > const { wishes, isLoading, error, refetch } = useWishes(); > > > > if (isLoading) return

Loading feedback…

; > > if (error) return ( > >
> >

{error}

> > > >
> > ); > > if (wishes.length === 0) return

No feature requests yet.

; > > > > return ( > > > > ); > > } > > > > export default function App() { > > return ( > > > projectId: 'YOUR_PROJECT_ID', > > orgSlug: 'your-org', > > projectSlug: 'your-project', > > }}> > > > > > > ); > > } > > ``` > > > > 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. > > > React Native > > > > Install the SDK and its native peer dependencies: > > > > ```bash > > npm install @appgram/react-native@0.1.2 > > npm install @react-native-async-storage/async-storage lucide-react-native react-native-svg react-native-markdown-display react-native-render-html > > ``` > > > > 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`. > > > Flutter > > > > ```bash > > flutter pub add appgram_flutter:^1.0.0 > > ``` > > > > 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`. > > > Swift > > > > Add the package with Swift Package Manager: > > > > ```swift > > .package(url: "https://github.com/AppGram/apple-sdk.git", from: "1.0.1") > > ``` > > > > 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. **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. You can isolate the data request from the interface with: ```bash curl --get --include 'https://api.appgram.dev/portal/wishes' \ --data-urlencode 'project_id=YOUR_PROJECT_ID' \ --data-urlencode 'search=Feedback integration check' \ --data-urlencode 'page=1' \ --data-urlencode 'per_page=20' ``` Expect 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). ## 6. Cast a vote and confirm it in the dashboard 1. Find `Feedback integration check` in your application and note its vote count. 2. 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. 3. Refresh the same request in the dashboard. Its vote count should include your vote. Reload your application and confirm the count is still present. If 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. **Check:** the sample request is visible in the application and the dashboard reflects the saved vote. You now have a working feedback integration. ## 7. Verify submissions and prepare for production If 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). Before 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. Use 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. --- # API authentication Use project identifiers for portal requests and API keys for management operations. AppGram has two request surfaces. Management operations use an API key on your server. Portal operations identify the project and are designed for your customer-facing application. Each operation in the reference shows whether authentication is required. ## API base URL ```text https://api.appgram.dev ``` Use the complete path shown in the reference. Management paths start with `/api/v1`; portal paths start with `/portal`. Follow the operation's authentication badge rather than relying only on its path prefix. Some public status and submission operations also live under `/api/v1`. ## Management requests ### Create a management key 1. Select the intended organization in the [AppGram dashboard](https://app.appgram.dev). 2. Open [Developer tools → API keys](https://app.appgram.dev/developer/api-keys) and select **Create API key**. The key manager is also available in **Settings → Organization → Developer**. 3. Enter a recognizable name, such as `feedback-production-backend`. Under **Access**, select the project your backend serves. Select **Organization-wide** only when it needs access across that organization's projects. 4. Select the permissions needed by your documented operations and choose **Expiration**. An organization-wide key still needs the appropriate operation scopes. 5. Create the key and save the full value immediately in your server's secret storage. The full key is shown only once; the prefix displayed later is not a usable credential. Select **I've saved it** when finished. API-key administration is restricted to accounts with the appropriate capability; organization owners and administrators have it by default. Access to the Developer tools area is also required. Ask your administrator if the page or creation control is unavailable. A dashboard session and a public project ID do not authorize management requests. ### Verify a server request Send the key in the `x-api-key` header: ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/monitors?status_page_id=YOUR_STATUS_PAGE_ID' \ --header 'x-api-key: YOUR_API_KEY' ``` This operation requires the `status:view` scope. Use a status page your key can access. The monitor list accepts `status_page_id`; it does not use a `project_id` query filter. > Keep API keys on your server > > Do not ship a management API key in a browser bundle, mobile application, public repository, or embed configuration. Use a server endpoint for management operations. API keys are limited by their organization or project and granted permissions. A key does not grant access to another organization's resources. Follow the operation's required path, query parameters, and request body. ## Rotate or revoke a key To replace a key before it expires: 1. Create a replacement with the intended project access, scopes, and expiration. Give it a name that distinguishes it from the old key. 2. Update the secret in every backend that uses the old key, and deploy or restart those consumers as required. 3. Make a documented read request with the replacement against a resource it can access. Confirm a successful HTTP response and check for authentication failures in your application logs. 4. In **Developer tools → API keys**, open the old key's actions and select **Revoke**. Confirm the action after its consumers have switched. Revocation cannot be undone and requests using the revoked key stop working. If a key is exposed, revoke it promptly and replace the affected consumers; do not wait for normal expiry. If you lose the full value, create a replacement rather than trying to authenticate with its displayed prefix. Use separate keys for development and production. For environment and deployment checks, see [Going to production](/guides/going-to-production). ## Operation scopes The reference includes required scopes in the operation description when the public contract declares them. Examples include: | Scope | Example operation | | --- | --- | | `status:view` | List monitors | | `status:manage` | Create or update a monitor | | `surveys:view` | List or read surveys | | `surveys:manage` | Create or update surveys | | `analytics:view` | Read form or survey analytics | | `forms:view` | Read form overview or submissions | | `forms:manage` | Read a contact form's management configuration | | `settings:view` | Read a support form's configuration | | `settings:manage` | Create or update contact and support forms | | `wishlist:view` | Read a project's waitlist | | `releases:view` | Read release recipients | | `releases:manage` | Send a release demonstration | These are examples from the published operations, not a substitute for checking the operation you call. A read-looking HTTP method can still require a management scope for sensitive configuration. ## Portal requests Portal requests do not require a management API key. Pass your public project identifier in `project_id` where the operation requires it; configured custom domains can also provide project context. ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/wishes?project_id=YOUR_PROJECT_ID' ``` Public access still follows the operation's requirements. Some customer workflows use their own identity, ticket token, or verification step. Read the parameters for the specific operation rather than adding a management key to the client. ## SDK configuration Use the public project ID for client SDK setup. React, React Native, and Flutter can also use your organization and project slugs for features such as releases. Follow the [getting started guide](/guides/getting-started) and your platform reference for the exact configuration shape. ## Handle errors * **400**: check required fields, parameter types, and validation errors. * **401**: check that a required API key or customer credential is present and valid. * **403**: check the key's permissions and access to the requested project. * **404**: check the complete path and resource identifier. * **429**: pause requests and respect `Retry-After` when the response provides it. Use bounded retries with backoff. The published OpenAPI contract describes each operation's documented responses. Do not assume a fixed rate limit or that every response includes rate-limit headers. Continue with the [public API coverage guide](/guides/public-api) or [monitor reference](/api/monitors). --- # Public API coverage Download the public OpenAPI contract and choose a documented operation. The API reference is generated from AppGram's reviewed public OpenAPI contract. It covers published customer operations and their public request and response fields. ## Download the contract [Download the public OpenAPI JSON](/openapi.json) to import it into your API client or generate an HTTP client. The reference and download use the same committed contract. The base URL is `https://api.appgram.dev`. Read [API authentication](/guides/api-authentication) before calling a management operation. ## Choose a surface | Reference | Use it for | | --- | --- | | [Feature requests](/api/wishes) | Public ideas, categories, and voting | | [Support](/api/support) | Customer support requests and conversations | | [Help Center](/api/help) | Published help content and decision flows | | [Roadmaps](/api/roadmaps) | Your public product roadmap | | [Surveys](/api/surveys) | Survey management and customer responses | | [Blog](/api/blog) | Published posts, categories, tags, and feeds | | [Monitors and status](/api/monitors) | Monitoring, maintenance, and public status | | [Forms](/api/forms) | Contact forms and submissions | | [Waitlist](/api/waitlist) | Project waitlist membership | | [Releases](/api/releases) | Release recipients and demonstration delivery | | [Analytics](/api/analytics) | Comprehensive, form, and survey analytics | | [Webhooks](/api/webhooks) | Sample webhook event payloads | | [AI answers](/api/ai) | Questions against published project content | | [Portal](/api/portal) | Project resolution, page data, and CAPTCHA challenges | ## Request examples Each operation includes HTTP examples in cURL, TypeScript, Python, Go, Swift, Kotlin, Dart, and C#. These examples follow the operation's authentication and required parameters. Replace placeholder values with your own project and resource identifiers. For platform components and native library methods, use the SDK references: [Swift](/ios-sdk), [React](/react-sdk), [React Native](/react-native-sdk), [Flutter](/flutter-sdk), and [JavaScript embed](/embed-sdk). ## Availability The published contract defines the supported public API surface. Dashboard capabilities and SDK features can have a different surface. An operation absent from this reference, including license-key management, is not part of this published contract. [Contact AppGram](https://appgram.dev/contact) if your integration needs additional API coverage. --- # Build with AI agents Give your coding agent the current AppGram guides, SDK references, and API contract. Give your coding agent the current documentation before asking it to build an AppGram integration. AppGram provides SDK references for client applications and a public REST API for customer-facing and server workflows. ## Documentation for agents * [Documentation index](/llms.txt): Markdown URLs for every guide, SDK, and API section. * [Complete Markdown reference](/llms-full.txt): the entire public documentation corpus. * [Structured JSON index](/agent/index.json): searchable entries with links to Markdown and per-page JSON. * [Public OpenAPI contract](/openapi.json): the published HTTP operations and schemas. Each documentation page also has a **Markdown** link in the header. Use the focused guide or SDK page when you already know the platform. ## Start an integration Copy this prompt into your coding agent: ```text Integrate this project with AppGram (https://appgram.dev). First read https://appgram.dev/docs/llms.txt and the getting started guide: https://appgram.dev/docs/format-md/guides/getting-started.md Read the reference for my platform before writing SDK calls. For REST, read: https://appgram.dev/docs/format-md/guides/api-authentication.md https://appgram.dev/docs/openapi.json Use only documented endpoint paths, method names, and fields. Cite the page you used. If the needed operation is absent, explain the gap. REST base URL: https://api.appgram.dev Management requests: /api/v1 paths, with an x-api-key header on the server. Portal requests: /portal paths, with public project context where required. Keep management API keys out of browser and mobile bundles. ``` ## Connect AppGram MCP For managing AppGram content from an editor, open [Developer tools → Overview](https://app.appgram.dev/developer) and use **Connect an AI assistant** to obtain the MCP server URL and client configuration. Use the connection instructions shown for your account, then list the available tools to verify the connection. Use the REST API or an SDK for your application's runtime integration. MCP credentials and management API keys belong in the appropriate client or server environment. --- # React setup React and Next.js setup with loading, errors, styling, and project context. Use `@appgram/react` for React and Next.js applications. Start with the headless hook below, then choose the prebuilt components when you want AppGram's interface. ## Install React 18+ and React DOM 18+ are peer dependencies. In an existing React application: ```bash npm install @appgram/react@0.2.5 ``` ## Show feedback and cast a vote Copy this into a component file and replace the project values. The provider supplies configuration to every AppGram hook and component below it. This example uses your application's HTML and styles. ```tsx 'use client'; import { AppgramProvider, useAppgramContext, useVote, useWishes, type Wish } from '@appgram/react'; function FeedbackVote({ wish }: { wish: Wish }) { const { fingerprint } = useAppgramContext(); const { hasVoted, voteCount, isLoading, error, vote } = useVote({ wishId: wish.id, initialVoteCount: wish.vote_count, initialHasVoted: wish.has_voted, }); return (
{!fingerprint && Preparing anonymous voting…} {error &&

{error}

}
); } function Feedback() { const { wishes, isLoading, error, refetch } = useWishes(); if (isLoading) return

Loading feedback…

; if (error) return (

{error}

); if (wishes.length === 0) return

No feature requests yet.

; return ( ); } export default function App() { return ( ); } ``` First create and approve `Feedback integration check` using [Getting started](/guides/getting-started#3-add-one-visible-feature-request). Replace the project values, then confirm that request appears in the list. Cast a vote and refresh the dashboard to verify the saved count. The button waits for the provider's anonymous fingerprint, shows vote errors, and disables after a successful vote. If you disable fingerprint initialization, this example cannot cast anonymous votes. Read [customer identity](/guides/client-identity) before choosing another identification workflow. A successful empty list is different from a failed request. Check the selected project, approval, and filters if your sample is missing. Follow the complete [signup-to-feedback walkthrough](/guides/getting-started) when setting up a new workspace. ## Next.js App Router Keep `'use client'` at the top of the file that uses the provider and hooks. Render this client component from your page or layout. Do not add a management API key to a `NEXT_PUBLIC_` variable or to provider configuration. ## Prebuilt components and styles The package also exports `WishList`, `RoadmapBoard`, `HelpCenter`, `Releases`, `SupportForm`, and other components. They use Tailwind utility classes; the package does not ship a standalone stylesheet. If your application uses Tailwind CSS 3, preserve your existing configuration and include the package's compiled files and preset: ```js // tailwind.config.cjs — merge these entries into your existing config module.exports = { presets: [require('@appgram/react/tailwind-preset')], content: [ './src/**/*.{js,ts,jsx,tsx}', './node_modules/@appgram/react/dist/**/*.{js,mjs}', ], }; ``` The preset supplies AppGram color and animation tokens; content scanning supplies the utility styles. If your build uses a different Tailwind version, use that version's package-source registration rules. The headless hooks let you keep your own styling system. ## Project configuration `projectId` is required. Supply `orgSlug` and `projectSlug` for public URL and release routing. `apiUrl` can select your own API deployment; it defaults to `https://api.appgram.dev`. Anonymous fingerprinting is enabled by default and can be disabled with `enableFingerprinting: false`. Read [Customer identity and client credentials](/guides/client-identity) before choosing that behavior. Continue with the [React reference](/react-sdk), [pagination and errors](/guides/api-requests), or [troubleshooting guide](/guides/troubleshooting). --- # React Native setup Install native peers and render your first AppGram screen. Use `@appgram/react-native` inside a React Native application. The package requires React 18+ and React Native 0.70+. ## Install the SDK and peers ```bash npm install @appgram/react-native@0.1.2 npm install @react-native-async-storage/async-storage lucide-react-native react-native-svg react-native-markdown-display react-native-render-html ``` These five packages are peer dependencies, not optional extras. Use versions compatible with your application's React Native or Expo version, and complete the native dependency setup required by those packages. Adding a JavaScript dependency alone does not update an already installed native application. ## Show a feedback screen Replace the project values and render the provider above the screens that use AppGram: ```tsx import React from 'react'; import { SafeAreaView } from 'react-native'; import { AppgramProvider, WishList } from '@appgram/react-native'; export default function App() { return ( ); } ``` `WishList` includes the feature-request interface. For a custom native screen, use the documented `useWishes` hook and its loading, error, and pagination state. Use [Getting started](/guides/getting-started) to create and approve a sample request before testing this screen. Confirm it appears, cast a vote, and refresh the dashboard to check the saved count. An empty successful response is not a native setup error. ## Add other surfaces The SDK exports `RoadmapBoard`, `Releases`, `HelpCenter`, `SupportForm`, `SurveyForm`, and `StatusBoard`. Keep their screens under the same provider. Supply organization and project slugs for release and public URL routing. Configuration accepts `apiUrl` for an API deployment override, `theme` for native colors, and `enableFingerprinting` for anonymous identification. See [Customer identity and client credentials](/guides/client-identity). ## If native modules cannot be found Check that every peer dependency is installed in the application workspace, with a version supported by your platform. Complete that package's platform installation steps, then restart the JavaScript bundler and install an updated native application. Reloading JavaScript cannot add a missing native module. Continue with the [React Native reference](/react-native-sdk) and [troubleshooting guide](/guides/troubleshooting). --- # Flutter setup Configure the Flutter provider and render a feedback screen. Use `appgram_flutter` for Flutter applications. Version 1.0.0 declares Dart 3+ and Flutter 3.10+ requirements. ## Install ```bash flutter pub add appgram_flutter:^1.0.0 ``` The package declares its Riverpod and HTTP dependencies. Keep the resolved package versions in your application's lockfile. ## Show a feedback screen Replace the project details in `lib/main.dart`: ```dart import 'package:flutter/material.dart'; import 'package:appgram_flutter/appgram_flutter.dart'; void main() { runApp( const AppgramProvider( config: AppgramConfig( projectId: 'YOUR_PROJECT_ID', orgSlug: 'your-org', projectSlug: 'your-project', ), child: MaterialApp( home: Scaffold( body: SafeArea(child: WishList()), ), ), ), ); } ``` `AppgramProvider` creates the SDK's Riverpod scope and configuration. Keep AppGram widgets inside that provider. `WishList` displays your project's requests with its built-in loading, error, filtering, and pagination controls. Create and approve the sample request from [Getting started](/guides/getting-started), confirm it appears in `WishList`, then cast a vote and refresh the dashboard to verify persistence. Check project selection and approval if the screen receives an empty successful response. ## Configure other surfaces Supply `orgSlug` and `projectSlug` for release routing. The API origin override is `apiUrl`; its default is `https://api.appgram.dev`. Do not add `/api/v1` to that origin. The package also exports roadmap, help, support, status, survey, contact-form, and blog widgets and providers. Read the specific symbol before wiring callbacks or request models. Device fingerprinting is enabled by default. Set `enableFingerprinting: false` when your integration should not initialize it. Read [Customer identity and client credentials](/guides/client-identity). ## Reference coverage The [Flutter reference](/flutter-sdk) currently imports the package's existing Dartdoc symbol index. It lists public classes and functions, but has less signature detail than a full Dartdoc HTML archive. This setup guide supplies a complete first screen; consult the linked package source when a symbol needs details absent from the index. [Published package and source](https://pub.dev/packages/appgram_flutter) · [Troubleshooting](/guides/troubleshooting) --- # Swift setup Add the tagged Swift package, configure it, and show native feedback. Use the native SwiftUI SDK for iOS 17+ and macOS 14+. The package uses Swift tools 5.9 or newer. ## Add the package Add the public package with Swift Package Manager. Version 1.0.1 is a tagged release: ```swift .package(url: "https://github.com/AppGram/apple-sdk.git", from: "1.0.1") ``` Add the `AppGramSDK` library product to your application target. The imported module is `AppGramSDK`, with that capitalization. ## Configure and open feedback Configure the singleton on the main actor before requesting a view. Replace the project ID: ```swift import SwiftUI import AppGramSDK @main @MainActor struct FeedbackApp: App { init() { AppGramSDK.shared.configure(projectId: "YOUR_PROJECT_ID") } var body: some Scene { WindowGroup { NavigationStack { if let feedback = try? AppGramSDK.shared.feedbackView() { feedback } else { Text("Configure AppGram before opening feedback.") } } } } } ``` The view factory throws when the SDK is not configured. The example handles that failure instead of force-unwrapping the result. Before testing the view, create and approve the sample request in [Getting started](/guides/getting-started). Confirm it appears, cast a vote, and refresh the same request in the dashboard to check the saved count. An empty successful response can mean the project has no approved feedback. > Client configuration uses a public project ID > > Leave the optional `apiKey` argument unset in a distributed application. A management API key belongs on your server. Some older generated reference examples include that argument; it is not required for this client setup. ## Identify the current customer After sign-in, you can supply customer context: ```swift AppGramSDK.shared.setUser( userId: "customer-123", email: "customer@example.com", name: "Alex" ) // When the customer signs out: AppGramSDK.shared.clearUser() ``` Customer context associates feedback and support activity; it does not grant management permissions. Send only the fields your application needs. ## Other views and configuration The [Swift reference](/ios-sdk) documents the available view factories, services, configuration types, and models. For releases and announcements, consult `AnnouncementConfiguration` and its organization and project slugs. `baseURL` accepts the API origin and defaults to `https://api.appgram.dev`. [Public package source](https://github.com/AppGram/apple-sdk) · [Troubleshooting](/guides/troubleshooting) --- # JavaScript embed setup Add floating or inline widgets to any website. Use the JavaScript embed to add AppGram to a website without installing a framework package. The script runs in the browser and loads your project's portal in a widget. ## Add a floating widget Place this in your page and replace the project ID. A public `organization-slug/project-slug` project key is also supported. ```html ``` The script initializes from `data-project`. Load it once per page. A management API key is not part of embed configuration. For a complete `index.html` page and local-server command, follow [Show feedback in your application](/guides/getting-started#5-show-feedback-in-your-application). Create and approve the walkthrough's sample request first, then cast a vote in the widget and confirm the saved count in the dashboard. ## Inline mode Create the container before loading the script. Define settings before the script tag: ```html
``` The widget needs an existing container with visible dimensions. If your site uses a strict Content Security Policy, authorize the script and the portal iframe origin your project uses; an inline settings script also needs your application's approved nonce or hash. ## Open a page from your own button After the script has loaded and initialized: ```javascript window.AppGram.open('feedback'); window.AppGram.close(); ``` Do not call these methods from a script that runs before the external SDK has loaded. For a custom initialization flow, use the documented `onReady` callback and instance API. ## Customer context and cleanup The embed supports `user` in its initial settings and `setUser` for an active customer. For single-page applications, tear down the widget with `destroy()` when its owning screen is removed. Treat account changes and sign-out as a widget lifecycle change; do not assume passing an empty user object clears previous identity. Continue with the [embed reference](/embed-sdk), [customer identity guide](/guides/client-identity), and [troubleshooting guide](/guides/troubleshooting). --- # Pagination and errors Send requests, handle response envelopes, and retry safely. Use the complete operation path from the reference. The API origin is `https://api.appgram.dev`; each operation defines its own parameters, authentication, and response shape. ## Project context For portal requests, include your public project ID when the operation declares `project_id`. A configured custom domain can supply project context in other flows. The generated portal examples include a project-ID placeholder so you can make a request without configuring a domain first. Path identifiers are resource-specific. A `status_page_id` is not a project ID, and a survey ID is not its public slug. Replace every placeholder in an example with the matching identifier. ## Paginate feature requests The public wish list accepts `page` and `per_page`: ```bash curl --get 'https://api.appgram.dev/portal/wishes' \ --data-urlencode 'project_id=YOUR_PROJECT_ID' \ --data-urlencode 'page=1' \ --data-urlencode 'per_page=20' ``` Its documented response contains `success`, `data`, `page`, `per_page`, `total`, and `total_pages`. Treat a nullable `data` value as an empty list. Use the returned pagination metadata instead of assuming another page exists. ```javascript const url = new URL('https://api.appgram.dev/portal/wishes'); url.searchParams.set('project_id', 'YOUR_PROJECT_ID'); url.searchParams.set('page', '1'); url.searchParams.set('per_page', '20'); const response = await fetch(url); const body = await response.json(); if (!response.ok || body.success === false) { throw new Error(body.error?.message ?? `HTTP ${response.status}`); } const wishes = body.data ?? []; const nextPage = body.page < body.total_pages ? body.page + 1 : null; console.log({ wishes, nextPage }); ``` Other operations can return a plain array, a single object, or a different envelope. In particular, the monitor list returns an array. Do not apply the wish-list envelope to every endpoint. Blog feed endpoints return XML; read their declared media type before parsing. ## Handle documented errors The common JSON error schema is: ```json { "success": false, "error": { "code": "ERROR_CODE_FROM_THE_RESPONSE", "message": "A description of the failure" } } ``` `error.details` may also be present. The code above is a placeholder for the actual response code, not a complete error-code catalog. Check both the HTTP status and the documented error body. A proxy or network failure can return a non-JSON response, so production clients should handle parsing failures too. For **401**, check credentials. For **403**, check project access and the scope named in the operation description. For **400**, check identifiers, required fields, and validation constraints. See [API authentication](/guides/api-authentication). ## Retries and mutations Use bounded backoff for transient read failures and respect `Retry-After` when supplied. Do not immediately retry every failed request. A timeout on a mutation does not tell you whether the server completed it. Check the resulting resource before retrying creation or sending another message. Only use an idempotency header when the operation explicitly documents one. ## Generated examples Request and response examples illustrate the contract. Replace IDs, slugs, and credentials, and choose values that meet the operation's validation rules. They are not records from your project. HTTP examples in Swift or Dart are separate from the native [Swift](/ios-sdk) and [Flutter](/flutter-sdk) SDK APIs. --- # Customer identity and client credentials Configure public project context, anonymous identification, and account changes. Your project identifier selects the AppGram project. Customer identity associates activity with a person. A management API key authorizes server operations. Keep those responsibilities separate when configuring an integration. ## Public client configuration Use a public project ID in React, React Native, Flutter, and Swift. The embed accepts a public project ID or an `organization/project` key. Organization and project slugs help route public pages and releases; they do not act as passwords. Keep management keys on your backend. Do not place them in provider props, frontend environment variables, mobile bundles, HTML attributes, or customer identity fields. The [authentication guide](/guides/api-authentication) explains server requests. ## Anonymous identification The React, React Native, and Flutter providers enable fingerprinting by default for anonymous identification. Set `enableFingerprinting: false` in their configuration to avoid initializing it: ```tsx ``` The Flutter setting uses the same name in `AppgramConfig`. This option controls the SDK's fingerprint initialization; it does not remove identity your application explicitly supplies in a request. Decide which identification behavior your product needs before initializing the SDK. ## Signed-in customers The platforms expose different APIs. Do not assume every SDK has an `identify` or `setUser` method. | Platform | Customer context | | --- | --- | | Swift | `AppGramSDK.shared.setUser(...)`; call `clearUser()` on sign-out | | JavaScript embed | Initial `user` settings or the documented `setUser` method; reset the widget lifecycle on account changes | | React and React Native | Use the documented identity fields for the particular submission, vote, or support workflow | | Flutter | Use the documented input models for the particular workflow | Only send the customer fields needed by that workflow. Customer context is not proof of management access. Support conversations can require their own ticket token or verification step; a display name or email field does not replace that credential. ## Sign-out and account changes Clear Swift customer context when the account signs out. For embeds, do not assume `setUser({})` clears all previous fields; remove the old widget and initialize a fresh customer session, or reload the owning page. Remove account-specific data from your own state and cached screens too. If two projects share an application, supply the correct project configuration for the active surface. Avoid keeping a previous account's private support content on screen after changing users. Continue with the [platform setup guides](/guides/getting-started) or [troubleshooting](/guides/troubleshooting). --- # Receive webhooks Verify HMAC signatures, deduplicate events, and handle delivery retries. Receive AppGram events on your server when feedback, support, or other subscribed activity changes. Configure endpoints and event subscriptions in the dashboard's [Developer tools → Webhooks](https://app.appgram.dev/developer/webhooks) area. ## Configure an endpoint 1. Select your project or organization in the [dashboard](https://app.appgram.dev). 2. Open Webhooks and add the endpoint at the appropriate project or organization scope. 3. Enter a reachable HTTPS receiver URL and select the event types you need. 4. Save the signing secret securely when it is shown. Keep it on the receiving server. 5. Use the endpoint's delivery history or **Developer tools → Logs → Webhook deliveries** to inspect success and failure responses. The published REST contract currently exposes a sample-payload operation. Endpoint registration and subscription management are dashboard workflows; they are not additional public API operations implied by that sample endpoint. ## Inspect a sample payload Copy an exact event type from the dashboard's event catalog: ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/webhooks/events/YOUR_EVENT_TYPE/sample' \ --header 'x-api-key: YOUR_API_KEY' ``` The sample is synthetic and does not deliver a webhook. The [sample-payload reference](/api/webhooks) describes its response. ## Verify delivery signatures AppGram posts JSON with these headers: | Header | Meaning | | --- | --- | | `X-Webhook-ID` | Identifier for this delivery attempt | | `X-Webhook-Timestamp` | Attempt time as Unix seconds | | `X-Webhook-Signature` | `t=,v1=` | The signature is the lowercase hexadecimal HMAC-SHA256 of **`timestamp + "." + raw HTTP body`**, using your endpoint's signing secret. Verify the original request bytes before parsing JSON. Re-serializing JSON changes the bytes and can invalidate a legitimate signature. This Node.js verifier rejects malformed signatures and uses a five-minute clock tolerance: ```javascript import { createHmac, timingSafeEqual } from 'node:crypto'; export function verifyAppGramWebhook(rawBody, signatureHeader, secret, now = Date.now()) { if (!Buffer.isBuffer(rawBody) || typeof signatureHeader !== 'string' || !secret) return false; const match = /^t=(\d+),v1=([a-f0-9]{64})$/i.exec(signatureHeader); if (!match) return false; const timestamp = Number(match[1]); if (!Number.isSafeInteger(timestamp) || Math.abs(now - timestamp * 1000) > 300_000) return false; const expected = createHmac('sha256', secret) .update(`${match[1]}.`) .update(rawBody) .digest(); return timingSafeEqual(expected, Buffer.from(match[2], 'hex')); } ``` Pass the raw request buffer, the `X-Webhook-Signature` value, and your endpoint secret. Reject the request if verification fails. Configure a request-body size limit in your HTTP server. Keep its clock synchronized and choose a tolerance appropriate to your deployment. Only parse the JSON after verification succeeds. In frameworks with JSON middleware, preserve the raw body for this route rather than signing `JSON.stringify(parsedBody)`. ## Process once and acknowledge promptly The payload includes `id`, `event`, `timestamp`, and event-specific `data`; it can also contain metadata. Use the signed payload's **`id`** for durable deduplication. `X-Webhook-ID` identifies an attempt and changes between retries. Store accepted events or enqueue them durably, then return a **2xx** response promptly. Return a success response for an already processed event without repeating its side effects. Do not assume delivery order. ## Retries and failures Failed deliveries can be attempted up to eight times in total. Retry delays increase approximately through 30 seconds, 2 minutes, 10 minutes, 30 minutes, 2 hours, 6 hours, and 24 hours; scheduling and endpoint state affect actual timing. Retries use a fresh attempt timestamp and signature while retaining the event ID. Inspect delivery history when your receiver is unreachable or returns a non-2xx status. Changing a signing secret requires updating the receiving server too. The local signature example does not test your deployed endpoint; verify one actual delivery with your own configured endpoint before relying on the integration. --- # Troubleshooting Resolve setup, identity, styling, dependency, and request problems. Start with one documented read request and one SDK screen. Check the project, identifiers, and HTTP response before adding more features. ## Account or workspace setup is blocked If sign-in asks for email confirmation, complete the confirmation message for the email you registered. Check spam and the address you entered if it is missing. An invitation must be accepted with the intended account; registering a different email does not grant access to that organization. If your organization appears but its project or Developer tools does not, ask the owner or administrator to check your membership and permissions. Creating projects, approving feedback, opening Developer tools, and managing API keys can require different access. See [Getting started](/guides/getting-started) and [team access](/guides/going-to-production#give-teammates-the-access-they-need). ## No data appears 1. Confirm the SDK uses your public project ID, not a project slug or API key. 2. Check that the content exists and is visible on public surfaces. For feedback, open the sample request in the dashboard and check **Approved**. If it shows **Awaiting approval · approve**, a teammate with feedback-management permission must approve it. 3. Inspect the actual network response. A successful empty list is different from an error. 4. Compare the request path and query names with the [public reference](/guides/public-api). Use this read request to isolate project context from UI configuration: ```bash curl --get 'https://api.appgram.dev/portal/wishes' \ --data-urlencode 'project_id=YOUR_PROJECT_ID' \ --data-urlencode 'page=1' \ --data-urlencode 'per_page=1' ``` A request can be saved in the dashboard while remaining hidden from public lists when **Require approval** is enabled. Compare the project selected when you created it with the **Project ID** copied from **Developer tools → Overview**, then remove search or status filters that exclude it. ## Voting does not save The React walkthrough waits for the provider's fingerprint before enabling **Vote**. If it remains on **Preparing anonymous voting…**, check the browser console, provider initialization, and whether you set `enableFingerprinting: false`. That example needs a fingerprint to cast an anonymous vote. Check the vote request's response and any UI error. A local count change is not proof that the server saved it; refresh the dashboard and reload the application. One customer identity cannot add repeated votes to the same request. Some interfaces toggle an existing vote off, while the React walkthrough disables its button after voting. ## Provider or configuration errors React and React Native hooks must render below `AppgramProvider`, not in the component that is still constructing the provider. Flutter widgets need the scope supplied by `AppgramProvider`. Swift view factories require `configure(projectId:)` first. See the complete startup examples for [React](/guides/sdks/react), [React Native](/guides/sdks/react-native), [Flutter](/guides/sdks/flutter), and [Swift](/guides/sdks/swift). ## React UI is unstyled The prebuilt React components use Tailwind classes. Include the package's compiled files in content scanning and use its preset when configuring Tailwind CSS 3. There is no separate SDK stylesheet to import. The [React setup guide](/guides/sdks/react) includes the configuration; headless hooks work with your own UI. ## A React Native module cannot be resolved Install all five peer packages listed in the [React Native setup guide](/guides/sdks/react-native). Use versions compatible with your platform and complete their native installation steps. Restarting the JavaScript bundle alone cannot install a native dependency. ## Release pages are empty Check both `orgSlug` and `projectSlug` as well as the project ID. For Swift announcements, inspect `AnnouncementConfiguration` in the [Swift reference](/ios-sdk). Confirm that the release is published for the selected project. ## The embed does not initialize Load the script once, provide `data-project` or define `window.appgramSettings` before the script, and wait for loading before calling `window.AppGram` methods. Inline mode needs an existing container with a visible height. Check browser errors and your site's script and iframe policy. See [Embed setup](/guides/sdks/embed). A blocked script, a hidden container, and a failed portal request have different fixes. ## Authentication fails Management operations use `x-api-key` on your server. Check the operation's scope and the key's access to the resource. A status page ID, project ID, survey ID, and public slug are not interchangeable. Portal workflows can use a separate customer token; do not replace it with a management key in the browser. See [API authentication](/guides/api-authentication) and [pagination and errors](/guides/api-requests). ## A production-only feature or request fails Compare production project IDs and slugs with the environment you tested. Check the organization's subscription, resource access, and team role when an action is unavailable. If browser requests fail while cURL succeeds, inspect the actual HTTP response, CORS or origin restrictions, and script or iframe policy on the deployed origin. Do not add a management key to a browser or mobile application to work around an access error. Use [Going to production](/guides/going-to-production) to check environment separation and [key rotation](/guides/api-authentication#rotate-or-revoke-a-key) for expired, lost, or revoked server credentials. ## Report an integration problem [Contact AppGram](https://appgram.dev/contact) with your platform, SDK version, operation path, HTTP status, and a minimal reproduction. Include a request identifier if the response supplies one. Remove API keys, webhook secrets, customer tokens, and personal data before sharing logs. --- # Going to production Separate environments, set team access, manage credentials, and verify your deployed integration. Complete [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. ## Separate development and production Use 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. | Setting | Development | Production | | --- | --- | --- | | Project context | Development project ID and matching slugs | Production project ID and matching slugs | | Feedback | Synthetic requests and test customer identities | Reviewed requests intended for customers | | Management keys, if needed | Separate key limited to development resources | Separate key limited to production resources | | Webhooks, if needed | Test receiver and its own secret | Deployed receiver and its own secret | Keep 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. If 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. ## Give teammates the access they need Dashboard access, API-key permissions, and customer identity serve different purposes: | Task | Access to check | | --- | --- | | Open Projects or create a project | Project-view or project-management permission for the selected organization | | Read or approve feedback | Feedback-view or feedback-management permission for the selected project | | Open Developer tools | Developer-area access, such as `dev_logs:view` | | Create or revoke management keys | API-key administration capability; organization owners and administrators have this by default | | Use the public feedback interface | Public project context and any customer verification required by that workflow; a dashboard seat is not an API credential | Invite 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. ## Confirm plan and feature access Check 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. Installing 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. ## Protect server credentials Public 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. Follow [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. ## Review public content and customer identity Confirm 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. Use 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. ## Verify the deployed application Run these checks with the production project after deploying your application: 1. Confirm the selected project ID and slugs belong to production. Render one approved request and compare it with the dashboard. 2. 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. 3. Exercise loading, empty, and error states. Verify sign-out and account switching do not leave the previous customer's private content on screen. 4. 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. 5. 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. 6. 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). Pin 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. --- # Feature requests Read feature requests, submit ideas, and vote from your portal. > Source: https://appgram.dev/docs/api/wishes > Endpoints: 5 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### List feature request categories Get all categories available for wishes in a project **`GET`** `/portal/categories` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/categories?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/categories?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/categories?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/categories?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/categories?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/categories?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/categories?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/categories?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "icon": "string", "id": "string", "name": "string", "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "wish_count": 0 } ], "success": true } ``` --- ### Vote on a feature request Cast a vote on an existing wish/feature request **`POST`** `/portal/votes` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `organization_id` | `string` | | | | `organization_slug` | `string` | | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `_hp` | `string` | | | | `_timestamp` | `integer` | | | | `_token` | `string` | | | | `fingerprint` | `string` | | | | `wish_id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/portal/votes' \ --header 'Content-Type: application/json' \ --data '{ "_hp": "string", "_timestamp": 0, "_token": "string", "fingerprint": "string", "wish_id": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/votes", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"fingerprint\": \"string\",\n \"wish_id\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/portal/votes", headers={"Content-Type": "application/json"}, data="{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"fingerprint\": \"string\",\n \"wish_id\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/votes" payload := strings.NewReader("{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"fingerprint\": \"string\",\n \"wish_id\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/votes")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"fingerprint\": \"string\",\n \"wish_id\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/votes") .method("POST", "{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"fingerprint\": \"string\",\n \"wish_id\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/portal/votes")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"fingerprint\": \"string\",\n \"wish_id\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/portal/votes"), Content = new StringContent("{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"fingerprint\": \"string\",\n \"wish_id\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "action": "string", "message": "string", "vote": { "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "user": {}, "wish_id": "string" } }, "success": true } ``` --- ### List feature requests Get paginated list of public wishes for a project with optional filtering **`GET`** `/portal/wishes` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `category_id` | `string` | | | | `fingerprint` | `string` | | | | `page` | `string` | | | | `per_page` | `string` | | | | `project_id` | `string` | | | | `search` | `string` | | | | `sort_by` | `string` | | | | `sort_order` | `string` | | | | `status` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/wishes?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/wishes?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/wishes?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/wishes?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/wishes?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/wishes?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/wishes?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/wishes?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "author_type": "anonymous", "category": { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "icon": "string", "id": "string", "name": "string", "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "wish_count": 0 }, "category_id": "string", "comment_count": 0, "completed_at": "1970-01-01T00:00:00.000Z", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "has_voted": true, "id": "string", "is_merged": true, "is_pinned": true, "merged_into_id": "string", "project_id": "string", "slug": "string", "source": "api", "status": "completed", "title": "string", "updated_at": "1970-01-01T00:00:00.000Z", "vote_count": 0 } ], "page": 0, "per_page": 0, "success": true, "total": 0, "total_pages": 0 } ``` --- ### Submit a feature request Create a new wish/feature request from the public portal **`POST`** `/portal/wishes` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `organization_id` | `string` | | | | `organization_slug` | `string` | | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `_hp` | `string` | | | | `_timestamp` | `integer` | | | | `_token` | `string` | | | | `author_email` | `string` | | | | `author_name` | `string` | | | | `category_id` | `string` | | | | `description` | `string` | ✓ | | | `project_id` | `string` | ✓ | | | `title` | `string` | ✓ | | | `user_metadata` | `object` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/portal/wishes' \ --header 'Content-Type: application/json' \ --data '{ "_hp": "string", "_timestamp": 0, "_token": "string", "author_email": "string", "author_name": "string", "category_id": "string", "description": "string", "project_id": "string", "title": "string", "user_metadata": {} }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/wishes", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"author_email\": \"string\",\n \"author_name\": \"string\",\n \"category_id\": \"string\",\n \"description\": \"string\",\n \"project_id\": \"string\",\n \"title\": \"string\",\n \"user_metadata\": {}\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/portal/wishes", headers={"Content-Type": "application/json"}, data="{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"author_email\": \"string\",\n \"author_name\": \"string\",\n \"category_id\": \"string\",\n \"description\": \"string\",\n \"project_id\": \"string\",\n \"title\": \"string\",\n \"user_metadata\": {}\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/wishes" payload := strings.NewReader("{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"author_email\": \"string\",\n \"author_name\": \"string\",\n \"category_id\": \"string\",\n \"description\": \"string\",\n \"project_id\": \"string\",\n \"title\": \"string\",\n \"user_metadata\": {}\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/wishes")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"author_email\": \"string\",\n \"author_name\": \"string\",\n \"category_id\": \"string\",\n \"description\": \"string\",\n \"project_id\": \"string\",\n \"title\": \"string\",\n \"user_metadata\": {}\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/wishes") .method("POST", "{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"author_email\": \"string\",\n \"author_name\": \"string\",\n \"category_id\": \"string\",\n \"description\": \"string\",\n \"project_id\": \"string\",\n \"title\": \"string\",\n \"user_metadata\": {}\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/portal/wishes")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"author_email\": \"string\",\n \"author_name\": \"string\",\n \"category_id\": \"string\",\n \"description\": \"string\",\n \"project_id\": \"string\",\n \"title\": \"string\",\n \"user_metadata\": {}\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/portal/wishes"), Content = new StringContent("{\n \"_hp\": \"string\",\n \"_timestamp\": 0,\n \"_token\": \"string\",\n \"author_email\": \"string\",\n \"author_name\": \"string\",\n \"category_id\": \"string\",\n \"description\": \"string\",\n \"project_id\": \"string\",\n \"title\": \"string\",\n \"user_metadata\": {}\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "author_type": "anonymous", "category": { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "icon": "string", "id": "string", "name": "string", "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "wish_count": 0 }, "category_id": "string", "comment_count": 0, "completed_at": "1970-01-01T00:00:00.000Z", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "has_voted": true, "id": "string", "is_merged": true, "is_pinned": true, "merged_into_id": "string", "project_id": "string", "slug": "string", "source": "api", "status": "completed", "title": "string", "updated_at": "1970-01-01T00:00:00.000Z", "vote_count": 0 }, "success": true } ``` --- ### Get a feature request Get detailed information about a specific wish **`GET`** `/portal/wishes/{id}` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `fingerprint` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/wishes/{id}' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/wishes/{id}", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/wishes/{id}", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/wishes/%7Bid%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/wishes/{id}")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/wishes/{id}") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/wishes/{id}")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/wishes/%7Bid%7D"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "author_type": "anonymous", "category": { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "icon": "string", "id": "string", "name": "string", "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "wish_count": 0 }, "category_id": "string", "comment_count": 0, "completed_at": "1970-01-01T00:00:00.000Z", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "has_voted": true, "id": "string", "is_merged": true, "is_pinned": true, "merged_into_id": "string", "project_id": "string", "slug": "string", "source": "api", "status": "completed", "title": "string", "updated_at": "1970-01-01T00:00:00.000Z", "vote_count": 0 }, "success": true } ``` --- # Support Create support requests and manage customer conversations. > Source: https://appgram.dev/docs/api/support > Endpoints: 7 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Add a message as an end user Add a message to a support request, verifying the ticket belongs to the external user **`POST`** `/api/v1/support-requests/{id}/messages/user/{externalUserId}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `externalUserId` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `attachments` | `array` | | | | `content` | `string` | ✓ | | | `help_article_ids` | `array` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/support-requests/{id}/messages/user/{externalUserId}' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "attachments": [ { "mime_type": "string", "name": "string", "size": 0, "url": "string" } ], "content": "string", "help_article_ids": [ "string" ] }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/support-requests/{id}/messages/user/{externalUserId}", { method: "POST", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/support-requests/{id}/messages/user/{externalUserId}", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/support-requests/%7Bid%7D/messages/user/%7BexternalUserId%7D" payload := strings.NewReader("{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/support-requests/{id}/messages/user/{externalUserId}")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/support-requests/{id}/messages/user/{externalUserId}") .method("POST", "{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/support-requests/{id}/messages/user/{externalUserId}")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/support-requests/%7Bid%7D/messages/user/%7BexternalUserId%7D"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "attachments": [ { "mime_type": "string", "name": "string", "size": 0, "url": "string" } ], "author": { "avatar_url": "string", "id": "string" }, "author_name": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "help_articles": [ { "article_type": "faq", "author": {}, "author_user_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "flow": {}, "flow_id": "string", "id": "string", "is_published": true, "locale": "string", "published_at": "1970-01-01T00:00:00.000Z", "seo_description": "string", "seo_noindex": true, "seo_og_image_url": "string", "seo_title": "string", "slug": "string", "sort_order": 0, "tags": [], "title": "string", "translation_group_id": "string", "translations": [], "updated_at": "1970-01-01T00:00:00.000Z", "url": "string" } ], "id": "string", "is_from_user": true, "support_request_id": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "success": true } ``` --- ### Create support request Create a new customer support request from the public portal **`POST`** `/portal/support-requests` **Authentication:** None **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `anon_id` | `string` | | | | `attachments` | `array` | | | | `description` | `string` | ✓ | | | `external_user_id` | `string` | | | | `form_data` | `object` | | | | `form_id` | `string` | | | | `project_id` | `string` | ✓ | | | `subject` | `string` | | | | `user_email` | `string` | | | | `user_metadata` | `object` | | | | `user_name` | `string` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/portal/support-requests' \ --header 'Content-Type: application/json' \ --data '{ "anon_id": "string", "attachments": [ { "mime_type": "string", "name": "string", "size": 0, "url": "string" } ], "description": "string", "external_user_id": "string", "form_data": {}, "form_id": "string", "project_id": "string", "subject": "string", "user_email": "string", "user_metadata": {}, "user_name": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/support-requests", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"anon_id\": \"string\",\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"description\": \"string\",\n \"external_user_id\": \"string\",\n \"form_data\": {},\n \"form_id\": \"string\",\n \"project_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_metadata\": {},\n \"user_name\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/portal/support-requests", headers={"Content-Type": "application/json"}, data="{\n \"anon_id\": \"string\",\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"description\": \"string\",\n \"external_user_id\": \"string\",\n \"form_data\": {},\n \"form_id\": \"string\",\n \"project_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_metadata\": {},\n \"user_name\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/support-requests" payload := strings.NewReader("{\n \"anon_id\": \"string\",\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"description\": \"string\",\n \"external_user_id\": \"string\",\n \"form_data\": {},\n \"form_id\": \"string\",\n \"project_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_metadata\": {},\n \"user_name\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/support-requests")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"anon_id\": \"string\",\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"description\": \"string\",\n \"external_user_id\": \"string\",\n \"form_data\": {},\n \"form_id\": \"string\",\n \"project_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_metadata\": {},\n \"user_name\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/support-requests") .method("POST", "{\n \"anon_id\": \"string\",\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"description\": \"string\",\n \"external_user_id\": \"string\",\n \"form_data\": {},\n \"form_id\": \"string\",\n \"project_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_metadata\": {},\n \"user_name\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/portal/support-requests")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"anon_id\": \"string\",\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"description\": \"string\",\n \"external_user_id\": \"string\",\n \"form_data\": {},\n \"form_id\": \"string\",\n \"project_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_metadata\": {},\n \"user_name\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/portal/support-requests"), Content = new StringContent("{\n \"anon_id\": \"string\",\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"description\": \"string\",\n \"external_user_id\": \"string\",\n \"form_data\": {},\n \"form_id\": \"string\",\n \"project_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_metadata\": {},\n \"user_name\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "access_token": "string", "attachments": [ { "mime_type": "string", "name": "string", "size": 0, "url": "string" } ], "category": "account_issue", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "magic_link": "string", "message_count": 0, "messages": [ { "attachments": [], "author": {}, "author_name": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "help_articles": [], "id": "string", "is_from_user": true, "support_request_id": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ], "project_id": "string", "resolved_at": "1970-01-01T00:00:00.000Z", "source": "string", "status": "closed", "subject": "string", "updated_at": "1970-01-01T00:00:00.000Z", "user_email": "string", "user_name": "string" }, "success": true } ``` --- ### List the requester's support requests Get all support requests for the authenticated user (requires session token) **`GET`** `/portal/support-requests/my-requests` **Authentication:** None **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/support-requests/my-requests' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/support-requests/my-requests", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/support-requests/my-requests", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/support-requests/my-requests" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/support-requests/my-requests")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/support-requests/my-requests") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/support-requests/my-requests")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/support-requests/my-requests"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "attachments": [ {} ], "category": "account_issue", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "message_count": 0, "messages": [ {} ], "project_id": "string", "resolved_at": "1970-01-01T00:00:00.000Z", "source": "string", "status": "closed", "subject": "string", "updated_at": "1970-01-01T00:00:00.000Z", "user_email": "string", "user_name": "string" } ], "success": true } ``` --- ### Send a support sign-in link Send an email with a magic link to access a support request **`POST`** `/portal/support-requests/send-magic-link` **Authentication:** None **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | ✓ | | | `user_email` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/portal/support-requests/send-magic-link' \ --header 'Content-Type: application/json' \ --data '{ "project_id": "string", "user_email": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/support-requests/send-magic-link", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"project_id\": \"string\",\n \"user_email\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/portal/support-requests/send-magic-link", headers={"Content-Type": "application/json"}, data="{\n \"project_id\": \"string\",\n \"user_email\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/support-requests/send-magic-link" payload := strings.NewReader("{\n \"project_id\": \"string\",\n \"user_email\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/support-requests/send-magic-link")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"project_id\": \"string\",\n \"user_email\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/support-requests/send-magic-link") .method("POST", "{\n \"project_id\": \"string\",\n \"user_email\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/portal/support-requests/send-magic-link")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"project_id\": \"string\",\n \"user_email\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/portal/support-requests/send-magic-link"), Content = new StringContent("{\n \"project_id\": \"string\",\n \"user_email\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "message": "string" }, "success": true } ``` --- ### Get support request Get a specific support request by ID using access token **`GET`** `/portal/support-requests/{id}` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `token` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/support-requests/{id}' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/support-requests/{id}", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/support-requests/{id}", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/support-requests/%7Bid%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/support-requests/{id}")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/support-requests/{id}") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/support-requests/{id}")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/support-requests/%7Bid%7D"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "attachments": [ { "mime_type": "string", "name": "string", "size": 0, "url": "string" } ], "category": "account_issue", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "message_count": 0, "messages": [ { "attachments": [], "author": {}, "author_name": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "help_articles": [], "id": "string", "is_from_user": true, "support_request_id": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ], "project_id": "string", "resolved_at": "1970-01-01T00:00:00.000Z", "source": "string", "status": "closed", "subject": "string", "updated_at": "1970-01-01T00:00:00.000Z", "user_email": "string", "user_name": "string" }, "success": true } ``` --- ### Get support request messages Get all messages for a specific support request **`GET`** `/portal/support-requests/{id}/messages` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `token` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/support-requests/{id}/messages' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/support-requests/{id}/messages", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/support-requests/{id}/messages", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/support-requests/%7Bid%7D/messages" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/support-requests/{id}/messages")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/support-requests/{id}/messages") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/support-requests/{id}/messages")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/support-requests/%7Bid%7D/messages"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "attachments": [ {} ], "author": { "avatar_url": "string", "id": "string" }, "author_name": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "help_articles": [ {} ], "id": "string", "is_from_user": true, "support_request_id": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ], "success": true } ``` --- ### Add message to support request Add a new message to an existing support request **`POST`** `/portal/support-requests/{id}/messages` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `token` | `string` | | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `attachments` | `array` | | | | `content` | `string` | ✓ | | | `help_article_ids` | `array` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | | 401 | Unauthorized | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/portal/support-requests/{id}/messages' \ --header 'Content-Type: application/json' \ --data '{ "attachments": [ { "mime_type": "string", "name": "string", "size": 0, "url": "string" } ], "content": "string", "help_article_ids": [ "string" ] }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/support-requests/{id}/messages", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/portal/support-requests/{id}/messages", headers={"Content-Type": "application/json"}, data="{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/support-requests/%7Bid%7D/messages" payload := strings.NewReader("{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/support-requests/{id}/messages")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/support-requests/{id}/messages") .method("POST", "{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/portal/support-requests/{id}/messages")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/portal/support-requests/%7Bid%7D/messages"), Content = new StringContent("{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"content\": \"string\",\n \"help_article_ids\": [\n \"string\"\n ]\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "attachments": [ { "mime_type": "string", "name": "string", "size": 0, "url": "string" } ], "author": { "avatar_url": "string", "id": "string" }, "author_name": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "help_articles": [ { "article_type": "faq", "author": {}, "author_user_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "flow": {}, "flow_id": "string", "id": "string", "is_published": true, "locale": "string", "published_at": "1970-01-01T00:00:00.000Z", "seo_description": "string", "seo_noindex": true, "seo_og_image_url": "string", "seo_title": "string", "slug": "string", "sort_order": 0, "tags": [], "title": "string", "translation_group_id": "string", "translations": [], "updated_at": "1970-01-01T00:00:00.000Z", "url": "string" } ], "id": "string", "is_from_user": true, "support_request_id": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "success": true } ``` --- # Help Center Read published help articles, flows, and collections. > Source: https://appgram.dev/docs/api/help > Endpoints: 5 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Get help center Get the live help collection and flows for a project (public endpoint) **`GET`** `/portal/help` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/help?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/help?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/help?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/help?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/help?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/help?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/help?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/help?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "flows": [ { "articles": [], "collection": {}, "collection_id": "string", "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "decision_nodes": [], "description": "string", "display_type": "accordion", "icon": "string", "id": "string", "name": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "wizard_steps": [] } ], "id": "string", "is_live": true, "name": "string", "project_id": "string", "rag_enabled": true, "updated_at": "1970-01-01T00:00:00.000Z", "version": "string" }, "success": true } ``` --- ### Get help article Get a specific help article by slug (public endpoint) **`GET`** `/portal/help/articles/{slug}` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `flow_id` | `string` | | | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/help/articles/{slug}?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/help/articles/{slug}?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/help/articles/{slug}?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/help/articles/%7Bslug%7D?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/help/articles/{slug}?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/help/articles/{slug}?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/help/articles/{slug}?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/help/articles/%7Bslug%7D?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "article_type": "faq", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "flow": { "articles": [], "collection": {}, "collection_id": "string", "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "decision_nodes": [], "description": "string", "display_type": "accordion", "icon": "string", "id": "string", "name": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "wizard_steps": [] }, "flow_id": "string", "id": "string", "is_published": true, "published_at": "1970-01-01T00:00:00.000Z", "seo": { "description": "string", "noindex": true, "ogImageUrl": "string", "resolved": {}, "title": "string" }, "slug": "string", "sort_order": 0, "tags": [ "string" ], "title": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "success": true } ``` --- ### Get decision node Get a specific decision node by ID for navigation in decision tree flows (public endpoint) **`GET`** `/portal/help/decision-nodes/{id}` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/help/decision-nodes/{id}?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/help/decision-nodes/{id}?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/help/decision-nodes/{id}?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/help/decision-nodes/%7Bid%7D?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/help/decision-nodes/{id}?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/help/decision-nodes/{id}?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/help/decision-nodes/{id}?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/help/decision-nodes/%7Bid%7D?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "article": { "article_type": "faq", "author": {}, "author_user_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "flow": {}, "flow_id": "string", "id": "string", "is_published": true, "locale": "string", "published_at": "1970-01-01T00:00:00.000Z", "seo_description": "string", "seo_noindex": true, "seo_og_image_url": "string", "seo_title": "string", "slug": "string", "sort_order": 0, "tags": [], "title": "string", "translation_group_id": "string", "translations": [], "updated_at": "1970-01-01T00:00:00.000Z", "url": "string" }, "node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "article": {}, "article_id": "string", "children": [], "created_at": "1970-01-01T00:00:00.000Z", "flow": {}, "flow_id": "string", "id": "string", "no_node": {}, "parent_id": "string", "question": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } }, "success": true } ``` --- ### Get help flow Get a specific help flow by slug (public endpoint) **`GET`** `/portal/help/flows/{slug}` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/help/flows/{slug}?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/help/flows/{slug}?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/help/flows/{slug}?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/help/flows/%7Bslug%7D?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/help/flows/{slug}?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/help/flows/{slug}?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/help/flows/{slug}?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/help/flows/%7Bslug%7D?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "articles": [ { "article_type": "faq", "author": {}, "author_user_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "flow": {}, "flow_id": "string", "id": "string", "is_published": true, "locale": "string", "published_at": "1970-01-01T00:00:00.000Z", "seo_description": "string", "seo_noindex": true, "seo_og_image_url": "string", "seo_title": "string", "slug": "string", "sort_order": 0, "tags": [], "title": "string", "translation_group_id": "string", "translations": [], "updated_at": "1970-01-01T00:00:00.000Z", "url": "string" } ], "collection": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "flows": [ {} ], "id": "string", "is_live": true, "name": "string", "project": { "captcha_enabled": true, "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "custom_domain": "string", "description": "string", "icon_url": "string", "id": "string", "is_launched": true, "name": "string", "organization_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "project_id": "string", "rag_enabled": true, "updated_at": "1970-01-01T00:00:00.000Z", "version": "string" }, "collection_id": "string", "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "decision_nodes": [ { "answer_no_node_id": "string", "answer_yes_node_id": "string", "article": {}, "article_id": "string", "children": [], "created_at": "1970-01-01T00:00:00.000Z", "flow": {}, "flow_id": "string", "id": "string", "no_node": {}, "parent_id": "string", "question": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } ], "description": "string", "display_type": "accordion", "icon": "string", "id": "string", "name": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "wizard_steps": [ { "article": {}, "article_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "flow": {}, "flow_id": "string", "id": "string", "step_number": 0, "title": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ] }, "success": true } ``` --- ### Search help center Search articles in the help center (public endpoint) **`GET`** `/portal/help/search` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | | `q` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/help/search?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/help/search?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/help/search?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/help/search?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/help/search?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/help/search?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/help/search?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/help/search?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "query": "string", "results": [] }, "success": true } ``` --- # Roadmaps Display the public roadmap for your project. > Source: https://appgram.dev/docs/api/roadmaps > Endpoints: 1 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Get project roadmap Get the public roadmap for a project **`GET`** `/portal/roadmap` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/roadmap?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/roadmap?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/roadmap?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/roadmap?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/roadmap?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/roadmap?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/roadmap?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/roadmap?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "columns": [ { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "items": [], "name": "string", "roadmap_id": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "wip_limit": 0 } ], "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_default": true, "name": "string", "project_id": "string", "show_comments": true, "show_vote_counts": true, "updated_at": "1970-01-01T00:00:00.000Z", "visibility": "private" }, "success": true } ``` --- # Surveys Manage surveys and collect responses. > Source: https://appgram.dev/docs/api/surveys > Endpoints: 16 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Get available surveys for user Get active surveys that the user hasn't responded to yet Required API key scope: `surveys:view`. **`GET`** `/api/v1/projects/{id}/surveys/available/{externalUserId}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `externalUserId` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/projects/{id}/surveys/available/{externalUserId}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/surveys/available/{externalUserId}", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/projects/{id}/surveys/available/{externalUserId}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/surveys/available/%7BexternalUserId%7D" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/surveys/available/{externalUserId}")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/surveys/available/{externalUserId}") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/surveys/available/{externalUserId}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/surveys/available/%7BexternalUserId%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "description": "string", "id": "string", "name": "string", "number_of_questions": 0, "slug": "string" } ], "success": true } ``` --- ### List surveys Get list of surveys for a project with optional filtering by active status Required API key scope: `surveys:view`. **`GET`** `/api/v1/surveys` **Authentication:** x-api-key (header) **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `is_active` | `string` | | | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/surveys' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/surveys", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/surveys")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [ {} ], "number_of_questions": 0, "number_of_responses": 0, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ], "success": true } ``` --- ### Create survey Create a new survey for a project Required API key scope: `surveys:manage`. **`POST`** `/api/v1/surveys` **Authentication:** x-api-key (header) **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `description` | `string` | | | | `name` | `string` | ✓ | | | `project_id` | `string` | ✓ | | | `slug` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/surveys' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "description": "string", "name": "string", "project_id": "string", "slug": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys", { method: "POST", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"description\": \"string\",\n \"name\": \"string\",\n \"project_id\": \"string\",\n \"slug\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/surveys", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"description\": \"string\",\n \"name\": \"string\",\n \"project_id\": \"string\",\n \"slug\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys" payload := strings.NewReader("{\n \"description\": \"string\",\n \"name\": \"string\",\n \"project_id\": \"string\",\n \"slug\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"description\": \"string\",\n \"name\": \"string\",\n \"project_id\": \"string\",\n \"slug\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys") .method("POST", "{\n \"description\": \"string\",\n \"name\": \"string\",\n \"project_id\": \"string\",\n \"slug\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/surveys")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"description\": \"string\",\n \"name\": \"string\",\n \"project_id\": \"string\",\n \"slug\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"description\": \"string\",\n \"name\": \"string\",\n \"project_id\": \"string\",\n \"slug\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [ { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } ], "number_of_questions": 0, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "success": true } ``` --- ### Delete survey node Delete a survey node/question Required API key scope: `surveys:manage`. **`DELETE`** `/api/v1/surveys/nodes/{nodeId}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `nodeId` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request DELETE \ --url 'https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}", { method: "DELETE", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "DELETE", "https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/nodes/%7BnodeId%7D" req, _ := http.NewRequest("DELETE", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}")!) request.httpMethod = "DELETE" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}") .method("DELETE", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("DELETE", Uri.parse("https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Delete, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/nodes/%7BnodeId%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "success": true }, "success": true } ``` --- ### Update survey node Update an existing survey node/question Required API key scope: `surveys:manage`. **`PATCH`** `/api/v1/surveys/nodes/{nodeId}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `nodeId` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `answer_no_node_id` | `string` | | | | `answer_yes_node_id` | `string` | | | | `branches` | `array` | | Conditional branches evaluated in order; each next_node_id must belong to the same survey. | | `is_required` | `boolean` | | | | `max_rating` | `integer` | | | | `min_rating` | `integer` | | | | `next_node_id` | `string` | | | | `options` | `array` | | Choices for multiple_choice and checkboxes questions (validate_survey_node_options requires value and label); null for other types. | | `parent_id` | `string` | | | | `question` | `string` | | | | `question_type` | `string` | | | | `result_message` | `string` | | | | `sort_order` | `integer` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request PATCH \ --url 'https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [ { "condition": { "type": "equals" }, "next_node_id": "string" } ], "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "options": [ { "label": "string", "value": "string" } ], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0 }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}", { method: "PATCH", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "PATCH", "https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/nodes/%7BnodeId%7D" payload := strings.NewReader("{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0\n}") req, _ := http.NewRequest("PATCH", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}")!) request.httpMethod = "PATCH" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}") .method("PATCH", "{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("PATCH", Uri.parse("https://api.appgram.dev/api/v1/surveys/nodes/{nodeId}")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Patch, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/nodes/%7BnodeId%7D"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [ { "condition": {}, "next_node_id": "string" } ], "children": [ { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } ], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [ {} ], "children": [ {} ], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} }, "options": [ {} ], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [], "number_of_questions": 0, "number_of_responses": 0, "project": {}, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } }, "options": [ { "label": "string", "value": "string" } ], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [ {} ], "number_of_questions": 0, "number_of_responses": 0, "project": { "captcha_enabled": true, "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "custom_domain": "string", "description": "string", "icon_url": "string", "id": "string", "is_launched": true, "name": "string", "organization_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [ {} ], "children": [ {} ], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} }, "options": [ {} ], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [], "number_of_questions": 0, "number_of_responses": 0, "project": {}, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } } }, "success": true } ``` --- ### Get survey response Get a specific survey response with all its answers (admin only) Required API key scope: `surveys:view`. **`GET`** `/api/v1/surveys/responses/{id}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/surveys/responses/{id}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/responses/{id}", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/surveys/responses/{id}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/responses/%7Bid%7D" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/responses/{id}")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/responses/{id}") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/surveys/responses/{id}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/responses/%7Bid%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "answers": [ { "answer": "string", "answer_options": [], "answer_text": "string", "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "node": {}, "node_id": "string", "response_id": "string" } ], "created_at": "1970-01-01T00:00:00.000Z", "external_user_id": "string", "fingerprint": "string", "id": "string", "metadata": {}, "survey_id": "string" }, "success": true } ``` --- ### Get survey Get a specific survey with all its nodes Required API key scope: `surveys:view`. **`GET`** `/api/v1/surveys/{id}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/surveys/{id}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/{id}", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/surveys/{id}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/%7Bid%7D" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/{id}")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/{id}") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/surveys/{id}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/%7Bid%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [ { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } ], "number_of_questions": 0, "number_of_responses": 0, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "success": true } ``` --- ### Delete survey Delete a survey and all its associated nodes and responses Required API key scope: `surveys:manage`. **`DELETE`** `/api/v1/surveys/{id}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request DELETE \ --url 'https://api.appgram.dev/api/v1/surveys/{id}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/{id}", { method: "DELETE", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "DELETE", "https://api.appgram.dev/api/v1/surveys/{id}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/%7Bid%7D" req, _ := http.NewRequest("DELETE", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/{id}")!) request.httpMethod = "DELETE" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/{id}") .method("DELETE", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("DELETE", Uri.parse("https://api.appgram.dev/api/v1/surveys/{id}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Delete, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/%7Bid%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "success": true }, "success": true } ``` --- ### Update survey Update an existing survey's configuration Required API key scope: `surveys:manage`. **`PATCH`** `/api/v1/surveys/{id}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `description` | `string` | | | | `is_active` | `boolean` | | | | `name` | `string` | | | | `slug` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request PATCH \ --url 'https://api.appgram.dev/api/v1/surveys/{id}' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "description": "string", "is_active": true, "name": "string", "slug": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/{id}", { method: "PATCH", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"description\": \"string\",\n \"is_active\": true,\n \"name\": \"string\",\n \"slug\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "PATCH", "https://api.appgram.dev/api/v1/surveys/{id}", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"description\": \"string\",\n \"is_active\": true,\n \"name\": \"string\",\n \"slug\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/%7Bid%7D" payload := strings.NewReader("{\n \"description\": \"string\",\n \"is_active\": true,\n \"name\": \"string\",\n \"slug\": \"string\"\n}") req, _ := http.NewRequest("PATCH", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/{id}")!) request.httpMethod = "PATCH" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"description\": \"string\",\n \"is_active\": true,\n \"name\": \"string\",\n \"slug\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/{id}") .method("PATCH", "{\n \"description\": \"string\",\n \"is_active\": true,\n \"name\": \"string\",\n \"slug\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("PATCH", Uri.parse("https://api.appgram.dev/api/v1/surveys/{id}")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"description\": \"string\",\n \"is_active\": true,\n \"name\": \"string\",\n \"slug\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Patch, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/%7Bid%7D"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"description\": \"string\",\n \"is_active\": true,\n \"name\": \"string\",\n \"slug\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [ { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } ], "number_of_questions": 0, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "success": true } ``` --- ### Get survey analytics Get analytics and statistics for a survey (admin only) Required API key scope: `surveys:view`. **`GET`** `/api/v1/surveys/{id}/analytics` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/surveys/{id}/analytics' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/{id}/analytics", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/surveys/{id}/analytics", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/%7Bid%7D/analytics" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/{id}/analytics")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/{id}/analytics") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/surveys/{id}/analytics")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/%7Bid%7D/analytics"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": {}, "success": true } ``` --- ### Export survey responses Export all responses for a survey as a downloadable file (admin only). Wide CSV (one row per response, one column per question) or nested JSON. Required API key scope: `surveys:view`. **`POST`** `/api/v1/surveys/{id}/export` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `format` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/surveys/{id}/export' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/{id}/export", { method: "POST", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/surveys/{id}/export", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/%7Bid%7D/export" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/{id}/export")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/{id}/export") .method("POST", "".toRequestBody(null)) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/surveys/{id}/export")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/%7Bid%7D/export"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json "string" ``` --- ### List survey nodes Get all nodes (questions) for a survey Required API key scope: `surveys:view`. **`GET`** `/api/v1/surveys/{id}/nodes` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/surveys/{id}/nodes' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/{id}/nodes", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/surveys/{id}/nodes", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/%7Bid%7D/nodes" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/{id}/nodes")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/{id}/nodes") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/surveys/{id}/nodes")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/%7Bid%7D/nodes"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [ {} ], "children": [ {} ], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} }, "options": [ {} ], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [], "number_of_questions": 0, "number_of_responses": 0, "project": {}, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } } ], "success": true } ``` --- ### Create survey node Create a new question/node in a survey with support for multiple question types (yes_no, short_answer, paragraph, multiple_choice, checkboxes, rating) Required API key scope: `surveys:manage`. **`POST`** `/api/v1/surveys/{id}/nodes` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `answer_no_node_id` | `string` | | | | `answer_yes_node_id` | `string` | | | | `branches` | `array` | | Conditional branches evaluated in order; each next_node_id must belong to the same survey. | | `is_required` | `boolean` | | | | `max_rating` | `integer` | | | | `min_rating` | `integer` | | | | `next_node_id` | `string` | | | | `options` | `array` | | Choices for multiple_choice and checkboxes questions (validate_survey_node_options requires value and label); null for other types. | | `parent_id` | `string` | | | | `question` | `string` | ✓ | | | `question_type` | `string` | ✓ | | | `result_message` | `string` | | | | `sort_order` | `integer` | | | | `survey_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/surveys/{id}/nodes' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [ { "condition": { "type": "equals" }, "next_node_id": "string" } ], "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "options": [ { "label": "string", "value": "string" } ], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey_id": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/{id}/nodes", { method: "POST", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0,\n \"survey_id\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/surveys/{id}/nodes", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0,\n \"survey_id\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/%7Bid%7D/nodes" payload := strings.NewReader("{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0,\n \"survey_id\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/{id}/nodes")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0,\n \"survey_id\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/{id}/nodes") .method("POST", "{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0,\n \"survey_id\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/surveys/{id}/nodes")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0,\n \"survey_id\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/%7Bid%7D/nodes"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"answer_no_node_id\": \"string\",\n \"answer_yes_node_id\": \"string\",\n \"branches\": [\n {\n \"condition\": {\n \"type\": \"equals\"\n },\n \"next_node_id\": \"string\"\n }\n ],\n \"is_required\": true,\n \"max_rating\": 0,\n \"min_rating\": 0,\n \"next_node_id\": \"string\",\n \"options\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"parent_id\": \"string\",\n \"question\": \"string\",\n \"question_type\": \"checkboxes\",\n \"result_message\": \"string\",\n \"sort_order\": 0,\n \"survey_id\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [ { "condition": {}, "next_node_id": "string" } ], "children": [ { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } ], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [ {} ], "children": [ {} ], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} }, "options": [ {} ], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [], "number_of_questions": 0, "number_of_responses": 0, "project": {}, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } }, "options": [ { "label": "string", "value": "string" } ], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [ {} ], "number_of_questions": 0, "number_of_responses": 0, "project": { "captcha_enabled": true, "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "custom_domain": "string", "description": "string", "icon_url": "string", "id": "string", "is_launched": true, "name": "string", "organization_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [ {} ], "children": [ {} ], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} }, "options": [ {} ], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [], "number_of_questions": 0, "number_of_responses": 0, "project": {}, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey": {}, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } } }, "success": true } ``` --- ### List survey responses Get paginated list of survey responses for a survey (admin only) Required API key scope: `surveys:view`. **`GET`** `/api/v1/surveys/{id}/responses` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `page` | `string` | | | | `per_page` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/surveys/{id}/responses' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/surveys/{id}/responses", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/surveys/{id}/responses", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/surveys/%7Bid%7D/responses" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/surveys/{id}/responses")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/surveys/{id}/responses") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/surveys/{id}/responses")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/surveys/%7Bid%7D/responses"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "page": 0, "per_page": 0, "responses": [ { "answers": [], "created_at": "1970-01-01T00:00:00.000Z", "external_user_id": "string", "fingerprint": "string", "id": "string", "metadata": {}, "survey": {}, "survey_id": "string" } ], "total": 0 }, "success": true } ``` --- ### Submit survey response Submit a completed survey response with all answers (public endpoint, no authentication required) **`POST`** `/portal/surveys/{id}/responses` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `answers` | `array` | ✓ | | | `external_user_id` | `string` | | | | `fingerprint` | `string` | ✓ | | | `metadata` | `object` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/portal/surveys/{id}/responses' \ --header 'Content-Type: application/json' \ --data '{ "answers": [ { "answer": "string", "answer_options": [ "string" ], "answer_text": "string", "node_id": "string" } ], "external_user_id": "string", "fingerprint": "string", "metadata": {} }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/surveys/{id}/responses", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"answers\": [\n {\n \"answer\": \"string\",\n \"answer_options\": [\n \"string\"\n ],\n \"answer_text\": \"string\",\n \"node_id\": \"string\"\n }\n ],\n \"external_user_id\": \"string\",\n \"fingerprint\": \"string\",\n \"metadata\": {}\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/portal/surveys/{id}/responses", headers={"Content-Type": "application/json"}, data="{\n \"answers\": [\n {\n \"answer\": \"string\",\n \"answer_options\": [\n \"string\"\n ],\n \"answer_text\": \"string\",\n \"node_id\": \"string\"\n }\n ],\n \"external_user_id\": \"string\",\n \"fingerprint\": \"string\",\n \"metadata\": {}\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/surveys/%7Bid%7D/responses" payload := strings.NewReader("{\n \"answers\": [\n {\n \"answer\": \"string\",\n \"answer_options\": [\n \"string\"\n ],\n \"answer_text\": \"string\",\n \"node_id\": \"string\"\n }\n ],\n \"external_user_id\": \"string\",\n \"fingerprint\": \"string\",\n \"metadata\": {}\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/surveys/{id}/responses")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"answers\": [\n {\n \"answer\": \"string\",\n \"answer_options\": [\n \"string\"\n ],\n \"answer_text\": \"string\",\n \"node_id\": \"string\"\n }\n ],\n \"external_user_id\": \"string\",\n \"fingerprint\": \"string\",\n \"metadata\": {}\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/surveys/{id}/responses") .method("POST", "{\n \"answers\": [\n {\n \"answer\": \"string\",\n \"answer_options\": [\n \"string\"\n ],\n \"answer_text\": \"string\",\n \"node_id\": \"string\"\n }\n ],\n \"external_user_id\": \"string\",\n \"fingerprint\": \"string\",\n \"metadata\": {}\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/portal/surveys/{id}/responses")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"answers\": [\n {\n \"answer\": \"string\",\n \"answer_options\": [\n \"string\"\n ],\n \"answer_text\": \"string\",\n \"node_id\": \"string\"\n }\n ],\n \"external_user_id\": \"string\",\n \"fingerprint\": \"string\",\n \"metadata\": {}\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/portal/surveys/%7Bid%7D/responses"), Content = new StringContent("{\n \"answers\": [\n {\n \"answer\": \"string\",\n \"answer_options\": [\n \"string\"\n ],\n \"answer_text\": \"string\",\n \"node_id\": \"string\"\n }\n ],\n \"external_user_id\": \"string\",\n \"fingerprint\": \"string\",\n \"metadata\": {}\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "survey_id": "string" }, "success": true } ``` --- ### Get a survey to answer Get a survey by slug for users to take. Only returns active surveys (public endpoint, no authentication required) **`GET`** `/portal/surveys/{slug}` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/surveys/{slug}?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/surveys/{slug}?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/surveys/{slug}?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/surveys/%7Bslug%7D?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/surveys/{slug}?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/surveys/{slug}?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/surveys/{slug}?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/surveys/%7Bslug%7D?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_active": true, "name": "string", "nodes": [ { "answer_no_node_id": "string", "answer_yes_node_id": "string", "branches": [], "children": [], "created_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_required": true, "max_rating": 0, "min_rating": 0, "next_node_id": "string", "no_node": {}, "options": [], "parent_id": "string", "question": "string", "question_type": "checkboxes", "result_message": "string", "sort_order": 0, "survey_id": "string", "updated_at": "1970-01-01T00:00:00.000Z", "yes_node": {} } ], "number_of_questions": 0, "project_id": "string", "slug": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "success": true } ``` --- # Blog Read published posts, categories, tags, and feeds. > Source: https://appgram.dev/docs/api/blog > Endpoints: 11 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Get Atom feed Get Atom feed for blog posts (public endpoint) **`GET`** `/portal/blog/atom.xml` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/atom.xml?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/atom.xml?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/atom.xml?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/atom.xml?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/atom.xml?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/atom.xml?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/atom.xml?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/atom.xml?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json "string" ``` --- ### List blog categories List all blog categories for a project (public endpoint) **`GET`** `/portal/blog/categories` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/categories?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/categories?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/categories?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/categories?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/categories?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/categories?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/categories?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/categories?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "name": "string", "post_count": 0, "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z" } ], "success": true } ``` --- ### Get category with posts Get a category with its published posts (public endpoint) **`GET`** `/portal/blog/categories/{slug}` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | | `page` | `integer` | | | | `per_page` | `integer` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/categories/{slug}?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/categories/{slug}?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/categories/{slug}?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/categories/%7Bslug%7D?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/categories/{slug}?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/categories/{slug}?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/categories/{slug}?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/categories/%7Bslug%7D?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "category": { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "name": "string", "post_count": 0, "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z" }, "pagination": { "page": 0, "per_page": 0, "total": 0 }, "posts": [ { "author": {}, "canonical_url": "string", "category": {}, "category_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "id": "string", "is_featured": true, "meta_description": "string", "og_image_url": "string", "project_id": "string", "published_at": "1970-01-01T00:00:00.000Z", "slug": "string", "tags": [], "title": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ] }, "success": true } ``` --- ### List featured posts List featured published blog posts (public endpoint) **`GET`** `/portal/blog/featured` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/featured?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/featured?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/featured?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/featured?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/featured?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/featured?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/featured?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/featured?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "author": { "avatar_url": "string", "id": "string" }, "canonical_url": "string", "category": { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "name": "string", "post_count": 0, "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z" }, "category_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "id": "string", "is_featured": true, "meta_description": "string", "og_image_url": "string", "project_id": "string", "published_at": "1970-01-01T00:00:00.000Z", "slug": "string", "tags": [ "string" ], "title": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ], "success": true } ``` --- ### List published blog posts List all published blog posts for a project (public endpoint) **`GET`** `/portal/blog/posts` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `category_slug` | `string` | | | | `project_id` | `string` | | | | `search` | `string` | | | | `page` | `integer` | | | | `per_page` | `integer` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/posts?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/posts?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/posts?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/posts?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/posts?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/posts?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/posts?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/posts?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "author": { "avatar_url": "string", "id": "string" }, "canonical_url": "string", "category": { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "name": "string", "post_count": 0, "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z" }, "category_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "id": "string", "is_featured": true, "meta_description": "string", "og_image_url": "string", "project_id": "string", "published_at": "1970-01-01T00:00:00.000Z", "slug": "string", "tags": [ "string" ], "title": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ], "page": 0, "per_page": 0, "success": true, "total": 0, "total_pages": 0 } ``` --- ### Get blog post by slug Get a published blog post by slug (public endpoint) **`GET`** `/portal/blog/posts/{slug}` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/posts/{slug}?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/posts/{slug}?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/posts/{slug}?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/posts/%7Bslug%7D?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/posts/{slug}?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/posts/{slug}?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/posts/{slug}?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/posts/%7Bslug%7D?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "author": { "avatar_url": "string", "id": "string" }, "canonical_url": "string", "category": { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "name": "string", "post_count": 0, "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z" }, "category_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "id": "string", "is_featured": true, "meta_description": "string", "og_image_url": "string", "project_id": "string", "published_at": "1970-01-01T00:00:00.000Z", "slug": "string", "tags": [ "string" ], "title": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "success": true } ``` --- ### Get related posts Get posts related to a specific post (public endpoint) **`GET`** `/portal/blog/posts/{slug}/related` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/posts/{slug}/related?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/posts/{slug}/related?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/posts/{slug}/related?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/posts/%7Bslug%7D/related?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/posts/{slug}/related?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/posts/{slug}/related?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/posts/{slug}/related?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/posts/%7Bslug%7D/related?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "author": { "avatar_url": "string", "id": "string" }, "canonical_url": "string", "category": { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "name": "string", "post_count": 0, "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z" }, "category_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "id": "string", "is_featured": true, "meta_description": "string", "og_image_url": "string", "project_id": "string", "published_at": "1970-01-01T00:00:00.000Z", "slug": "string", "tags": [ "string" ], "title": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ], "success": true } ``` --- ### Get RSS feed Get RSS 2.0 feed for blog posts (public endpoint) **`GET`** `/portal/blog/rss.xml` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/rss.xml?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/rss.xml?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/rss.xml?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/rss.xml?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/rss.xml?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/rss.xml?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/rss.xml?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/rss.xml?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json "string" ``` --- ### Search blog posts Search published blog posts (public endpoint) **`GET`** `/portal/blog/search` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | | `q` | `string` | | | | `page` | `integer` | | | | `per_page` | `integer` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/search?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/search?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/search?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/search?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/search?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/search?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/search?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/search?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "pagination": { "page": 0, "per_page": 0, "total": 0 }, "query": "string", "results": [ { "author": {}, "canonical_url": "string", "category": {}, "category_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "id": "string", "is_featured": true, "meta_description": "string", "og_image_url": "string", "project_id": "string", "published_at": "1970-01-01T00:00:00.000Z", "slug": "string", "tags": [], "title": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ] }, "success": true } ``` --- ### Get sitemap Get SEO sitemap for blog posts (public endpoint) **`GET`** `/portal/blog/sitemap.xml` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/sitemap.xml?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/sitemap.xml?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/sitemap.xml?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/sitemap.xml?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/sitemap.xml?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/sitemap.xml?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/sitemap.xml?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/sitemap.xml?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json "string" ``` --- ### List posts by tag List published posts by tag (public endpoint) **`GET`** `/portal/blog/tags/{tag}` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `tag` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | | `page` | `integer` | | | | `per_page` | `integer` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/blog/tags/{tag}?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/blog/tags/{tag}?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/blog/tags/{tag}?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/blog/tags/%7Btag%7D?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/tags/{tag}?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/blog/tags/{tag}?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/tags/{tag}?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/blog/tags/%7Btag%7D?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "pagination": { "page": 0, "per_page": 0, "total": 0 }, "posts": [ { "author": {}, "canonical_url": "string", "category": {}, "category_id": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "excerpt": "string", "id": "string", "is_featured": true, "meta_description": "string", "og_image_url": "string", "project_id": "string", "published_at": "1970-01-01T00:00:00.000Z", "slug": "string", "tags": [], "title": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ], "tag": "string" }, "success": true } ``` --- # Monitors and status Manage monitors and maintenance, and read public status. > Source: https://appgram.dev/docs/api/monitors > Endpoints: 17 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### List monitors Required API key scope: `status:view`. **`GET`** `/api/v1/monitors` **Authentication:** x-api-key (header) **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `status_page_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/monitors' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/monitors", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/monitors")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json [ { "auto_create_incident": true, "check_interval_seconds": 0, "check_regions": [ "string" ], "consecutive_failures": 0, "consecutive_successes": 0, "created_at": "1970-01-01T00:00:00.000Z", "current_response_time_ms": 0, "current_status": "degraded", "degraded_response_time_ms": 0, "description": "string", "expected_response_contains": "string", "expected_status_codes": [ 0 ], "failure_threshold": 0, "http_body": "string", "http_headers": {}, "http_method": "string", "id": "string", "incident_severity": "string", "is_active": true, "last_check_at": "1970-01-01T00:00:00.000Z", "last_down_at": "1970-01-01T00:00:00.000Z", "last_status_change_at": "1970-01-01T00:00:00.000Z", "last_up_at": "1970-01-01T00:00:00.000Z", "monitor_type": "dns", "name": "string", "notify_on_failure": true, "notify_on_recovery": true, "recovery_threshold": 0, "service_id": "string", "ssl_expiry_warning_days": 0, "status_page_id": "string", "timeout_seconds": 0, "updated_at": "1970-01-01T00:00:00.000Z", "url": "string", "verify_ssl": true } ] ``` --- ### Create a monitor Required API key scope: `status:manage`. **`POST`** `/api/v1/monitors` **Authentication:** x-api-key (header) **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `auto_create_incident` | `boolean` | | | | `check_interval_seconds` | `integer` | | | | `check_regions` | `array` | | | | `degraded_response_time_ms` | `integer` | | | | `description` | `string` | | | | `expected_response_contains` | `string` | | | | `expected_status_codes` | `array` | | | | `failure_threshold` | `integer` | | | | `http_body` | `string` | | | | `http_headers` | `object` | | | | `http_method` | `string` | | | | `incident_severity` | `string` | | | | `monitor_type` | `string` | ✓ | | | `name` | `string` | ✓ | | | `notify_on_failure` | `boolean` | | | | `notify_on_recovery` | `boolean` | | | | `recovery_threshold` | `integer` | | | | `service_id` | `string` | | | | `ssl_expiry_warning_days` | `integer` | | | | `status_page_id` | `string` | ✓ | | | `timeout_seconds` | `integer` | | | | `url` | `string` | ✓ | | | `verify_ssl` | `boolean` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/monitors' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "auto_create_incident": true, "check_interval_seconds": 0, "check_regions": [ "string" ], "degraded_response_time_ms": 0, "description": "string", "expected_response_contains": "string", "expected_status_codes": [ 0 ], "failure_threshold": 0, "http_body": "string", "http_headers": {}, "http_method": "string", "incident_severity": "string", "monitor_type": "string", "name": "string", "notify_on_failure": true, "notify_on_recovery": true, "recovery_threshold": 0, "service_id": "string", "ssl_expiry_warning_days": 0, "status_page_id": "string", "timeout_seconds": 0, "url": "string", "verify_ssl": true }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors", { method: "POST", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"status_page_id\": \"string\",\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/monitors", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"status_page_id\": \"string\",\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors" payload := strings.NewReader("{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"status_page_id\": \"string\",\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"status_page_id\": \"string\",\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors") .method("POST", "{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"status_page_id\": \"string\",\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/monitors")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"status_page_id\": \"string\",\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"status_page_id\": \"string\",\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "auto_create_incident": true, "check_interval_seconds": 0, "check_regions": [ "string" ], "consecutive_failures": 0, "consecutive_successes": 0, "created_at": "1970-01-01T00:00:00.000Z", "current_response_time_ms": 0, "current_status": "degraded", "degraded_response_time_ms": 0, "description": "string", "expected_response_contains": "string", "expected_status_codes": [ 0 ], "failure_threshold": 0, "http_body": "string", "http_headers": {}, "http_method": "string", "id": "string", "incident_severity": "string", "is_active": true, "last_check_at": "1970-01-01T00:00:00.000Z", "last_down_at": "1970-01-01T00:00:00.000Z", "last_status_change_at": "1970-01-01T00:00:00.000Z", "last_up_at": "1970-01-01T00:00:00.000Z", "monitor_type": "dns", "name": "string", "notify_on_failure": true, "notify_on_recovery": true, "recovery_threshold": 0, "service_id": "string", "ssl_expiry_warning_days": 0, "status_page_id": "string", "timeout_seconds": 0, "updated_at": "1970-01-01T00:00:00.000Z", "url": "string", "verify_ssl": true } ``` --- ### Create maintenance window Required API key scope: `status:manage`. **`POST`** `/api/v1/monitors/maintenance` **Authentication:** x-api-key (header) **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `description` | `string` | | | | `ends_at` | `string` | ✓ | | | `is_recurring` | `boolean` | | | | `monitor_id` | `string` | | | | `name` | `string` | ✓ | | | `recurrence_rule` | `string` | | | | `starts_at` | `string` | ✓ | | | `status_page_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/monitors/maintenance' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "description": "string", "ends_at": "1970-01-01T00:00:00.000Z", "is_recurring": true, "monitor_id": "string", "name": "string", "recurrence_rule": "string", "starts_at": "1970-01-01T00:00:00.000Z", "status_page_id": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/maintenance", { method: "POST", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"description\": \"string\",\n \"ends_at\": \"1970-01-01T00:00:00.000Z\",\n \"is_recurring\": true,\n \"monitor_id\": \"string\",\n \"name\": \"string\",\n \"recurrence_rule\": \"string\",\n \"starts_at\": \"1970-01-01T00:00:00.000Z\",\n \"status_page_id\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/monitors/maintenance", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"description\": \"string\",\n \"ends_at\": \"1970-01-01T00:00:00.000Z\",\n \"is_recurring\": true,\n \"monitor_id\": \"string\",\n \"name\": \"string\",\n \"recurrence_rule\": \"string\",\n \"starts_at\": \"1970-01-01T00:00:00.000Z\",\n \"status_page_id\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/maintenance" payload := strings.NewReader("{\n \"description\": \"string\",\n \"ends_at\": \"1970-01-01T00:00:00.000Z\",\n \"is_recurring\": true,\n \"monitor_id\": \"string\",\n \"name\": \"string\",\n \"recurrence_rule\": \"string\",\n \"starts_at\": \"1970-01-01T00:00:00.000Z\",\n \"status_page_id\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/maintenance")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"description\": \"string\",\n \"ends_at\": \"1970-01-01T00:00:00.000Z\",\n \"is_recurring\": true,\n \"monitor_id\": \"string\",\n \"name\": \"string\",\n \"recurrence_rule\": \"string\",\n \"starts_at\": \"1970-01-01T00:00:00.000Z\",\n \"status_page_id\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/maintenance") .method("POST", "{\n \"description\": \"string\",\n \"ends_at\": \"1970-01-01T00:00:00.000Z\",\n \"is_recurring\": true,\n \"monitor_id\": \"string\",\n \"name\": \"string\",\n \"recurrence_rule\": \"string\",\n \"starts_at\": \"1970-01-01T00:00:00.000Z\",\n \"status_page_id\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/monitors/maintenance")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"description\": \"string\",\n \"ends_at\": \"1970-01-01T00:00:00.000Z\",\n \"is_recurring\": true,\n \"monitor_id\": \"string\",\n \"name\": \"string\",\n \"recurrence_rule\": \"string\",\n \"starts_at\": \"1970-01-01T00:00:00.000Z\",\n \"status_page_id\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/maintenance"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"description\": \"string\",\n \"ends_at\": \"1970-01-01T00:00:00.000Z\",\n \"is_recurring\": true,\n \"monitor_id\": \"string\",\n \"name\": \"string\",\n \"recurrence_rule\": \"string\",\n \"starts_at\": \"1970-01-01T00:00:00.000Z\",\n \"status_page_id\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "created_at": "1970-01-01T00:00:00.000Z", "created_by_user_id": "string", "description": "string", "ends_at": "1970-01-01T00:00:00.000Z", "id": "string", "is_active": true, "is_recurring": true, "monitor_id": "string", "name": "string", "recurrence_rule": "string", "starts_at": "1970-01-01T00:00:00.000Z", "status_page_id": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ``` --- ### Get public monitor status **`GET`** `/api/v1/monitors/public/{status_page_id}/status` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `status_page_id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/status' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/status", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/status", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/public/%7Bstatus_page_id%7D/status" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/status")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/status") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/status")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/public/%7Bstatus_page_id%7D/status"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json [ { "id": "string", "last_check_at": "1970-01-01T00:00:00.000Z", "name": "string", "response_time_ms": 0, "status": "degraded", "uptime_percent": 0 } ] ``` --- ### Get public monitor uptime **`GET`** `/api/v1/monitors/public/{status_page_id}/uptime` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `status_page_id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/uptime' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/uptime", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/uptime", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/public/%7Bstatus_page_id%7D/uptime" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/uptime")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/uptime") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/uptime")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/public/%7Bstatus_page_id%7D/uptime"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json {} ``` --- ### Get a monitor Required API key scope: `status:view`. **`GET`** `/api/v1/monitors/{id}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/monitors/{id}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/monitors/{id}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "auto_create_incident": true, "check_interval_seconds": 0, "check_regions": [ "string" ], "consecutive_failures": 0, "consecutive_successes": 0, "created_at": "1970-01-01T00:00:00.000Z", "current_response_time_ms": 0, "current_status": "degraded", "degraded_response_time_ms": 0, "description": "string", "expected_response_contains": "string", "expected_status_codes": [ 0 ], "failure_threshold": 0, "http_body": "string", "http_headers": {}, "http_method": "string", "id": "string", "incident_severity": "string", "is_active": true, "last_check_at": "1970-01-01T00:00:00.000Z", "last_down_at": "1970-01-01T00:00:00.000Z", "last_status_change_at": "1970-01-01T00:00:00.000Z", "last_up_at": "1970-01-01T00:00:00.000Z", "monitor_type": "dns", "name": "string", "notify_on_failure": true, "notify_on_recovery": true, "recovery_threshold": 0, "service_id": "string", "ssl_expiry_warning_days": 0, "status_page_id": "string", "timeout_seconds": 0, "updated_at": "1970-01-01T00:00:00.000Z", "url": "string", "verify_ssl": true } ``` --- ### Delete a monitor Required API key scope: `status:manage`. **`DELETE`** `/api/v1/monitors/{id}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request DELETE \ --url 'https://api.appgram.dev/api/v1/monitors/{id}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}", { method: "DELETE", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "DELETE", "https://api.appgram.dev/api/v1/monitors/{id}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D" req, _ := http.NewRequest("DELETE", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}")!) request.httpMethod = "DELETE" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}") .method("DELETE", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("DELETE", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Delete, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "message": "string", "success": true } ``` --- ### Update a monitor Required API key scope: `status:manage`. **`PATCH`** `/api/v1/monitors/{id}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `auto_create_incident` | `boolean` | | | | `check_interval_seconds` | `integer` | | | | `check_regions` | `array` | | | | `degraded_response_time_ms` | `integer` | | | | `description` | `string` | | | | `expected_response_contains` | `string` | | | | `expected_status_codes` | `array` | | | | `failure_threshold` | `integer` | | | | `http_body` | `string` | | | | `http_headers` | `object` | | | | `http_method` | `string` | | | | `incident_severity` | `string` | | | | `monitor_type` | `string` | | | | `name` | `string` | | | | `notify_on_failure` | `boolean` | | | | `notify_on_recovery` | `boolean` | | | | `recovery_threshold` | `integer` | | | | `service_id` | `string` | | | | `ssl_expiry_warning_days` | `integer` | | | | `timeout_seconds` | `integer` | | | | `url` | `string` | | | | `verify_ssl` | `boolean` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request PATCH \ --url 'https://api.appgram.dev/api/v1/monitors/{id}' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "auto_create_incident": true, "check_interval_seconds": 0, "check_regions": [ "string" ], "degraded_response_time_ms": 0, "description": "string", "expected_response_contains": "string", "expected_status_codes": [ 0 ], "failure_threshold": 0, "http_body": "string", "http_headers": {}, "http_method": "string", "incident_severity": "string", "monitor_type": "string", "name": "string", "notify_on_failure": true, "notify_on_recovery": true, "recovery_threshold": 0, "service_id": "string", "ssl_expiry_warning_days": 0, "timeout_seconds": 0, "url": "string", "verify_ssl": true }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}", { method: "PATCH", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "PATCH", "https://api.appgram.dev/api/v1/monitors/{id}", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D" payload := strings.NewReader("{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}") req, _ := http.NewRequest("PATCH", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}")!) request.httpMethod = "PATCH" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}") .method("PATCH", "{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("PATCH", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Patch, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"auto_create_incident\": true,\n \"check_interval_seconds\": 0,\n \"check_regions\": [\n \"string\"\n ],\n \"degraded_response_time_ms\": 0,\n \"description\": \"string\",\n \"expected_response_contains\": \"string\",\n \"expected_status_codes\": [\n 0\n ],\n \"failure_threshold\": 0,\n \"http_body\": \"string\",\n \"http_headers\": {},\n \"http_method\": \"string\",\n \"incident_severity\": \"string\",\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"notify_on_failure\": true,\n \"notify_on_recovery\": true,\n \"recovery_threshold\": 0,\n \"service_id\": \"string\",\n \"ssl_expiry_warning_days\": 0,\n \"timeout_seconds\": 0,\n \"url\": \"string\",\n \"verify_ssl\": true\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "auto_create_incident": true, "check_interval_seconds": 0, "check_regions": [ "string" ], "consecutive_failures": 0, "consecutive_successes": 0, "created_at": "1970-01-01T00:00:00.000Z", "current_response_time_ms": 0, "current_status": "degraded", "degraded_response_time_ms": 0, "description": "string", "expected_response_contains": "string", "expected_status_codes": [ 0 ], "failure_threshold": 0, "http_body": "string", "http_headers": {}, "http_method": "string", "id": "string", "incident_severity": "string", "is_active": true, "last_check_at": "1970-01-01T00:00:00.000Z", "last_down_at": "1970-01-01T00:00:00.000Z", "last_status_change_at": "1970-01-01T00:00:00.000Z", "last_up_at": "1970-01-01T00:00:00.000Z", "monitor_type": "dns", "name": "string", "notify_on_failure": true, "notify_on_recovery": true, "recovery_threshold": 0, "service_id": "string", "ssl_expiry_warning_days": 0, "status_page_id": "string", "timeout_seconds": 0, "updated_at": "1970-01-01T00:00:00.000Z", "url": "string", "verify_ssl": true } ``` --- ### Acknowledge an alert Required API key scope: `status:manage`. **`POST`** `/api/v1/monitors/{id}/alert/acknowledge` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `note` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/monitors/{id}/alert/acknowledge' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "note": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}/alert/acknowledge", { method: "POST", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"note\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/monitors/{id}/alert/acknowledge", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"note\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D/alert/acknowledge" payload := strings.NewReader("{\n \"note\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}/alert/acknowledge")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"note\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}/alert/acknowledge") .method("POST", "{\n \"note\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}/alert/acknowledge")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"note\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D/alert/acknowledge"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"note\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "message": "string" } ``` --- ### Resolve an alert Required API key scope: `status:manage`. **`POST`** `/api/v1/monitors/{id}/alert/resolve` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `note` | `string` | | | | `reason` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/monitors/{id}/alert/resolve' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "note": "string", "reason": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}/alert/resolve", { method: "POST", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"note\": \"string\",\n \"reason\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/monitors/{id}/alert/resolve", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"note\": \"string\",\n \"reason\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D/alert/resolve" payload := strings.NewReader("{\n \"note\": \"string\",\n \"reason\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}/alert/resolve")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"note\": \"string\",\n \"reason\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}/alert/resolve") .method("POST", "{\n \"note\": \"string\",\n \"reason\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}/alert/resolve")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"note\": \"string\",\n \"reason\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D/alert/resolve"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"note\": \"string\",\n \"reason\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "message": "string" } ``` --- ### Check monitor now Required API key scope: `status:manage`. **`POST`** `/api/v1/monitors/{id}/check-now` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | | 503 | Service Unavailable | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/monitors/{id}/check-now' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}/check-now", { method: "POST", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/monitors/{id}/check-now", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D/check-now" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}/check-now")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}/check-now") .method("POST", "".toRequestBody(null)) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}/check-now")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D/check-now"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "checked_at": "1970-01-01T00:00:00.000Z", "checked_from": "string", "dns_resolution_time_ms": 0, "dns_resolved_ips": [ "string" ], "error_message": "string", "monitor_id": "string", "response_body": "string", "response_time_ms": 0, "ssl_days_until_expiry": 0, "ssl_expires_at": "1970-01-01T00:00:00.000Z", "ssl_issuer": "string", "status": "degraded", "status_code": 0 } ``` --- ### List monitor checks Required API key scope: `status:view`. **`GET`** `/api/v1/monitors/{id}/checks` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `page` | `string` | | | | `per_page` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/monitors/{id}/checks' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}/checks", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/monitors/{id}/checks", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D/checks" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}/checks")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}/checks") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}/checks")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D/checks"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "checks": [ { "checked_at": "1970-01-01T00:00:00.000Z", "checked_from": "string", "dns_resolution_time_ms": 0, "dns_resolved_ips": [ "string" ], "error_message": "string", "monitor_id": "string", "response_body": "string", "response_time_ms": 0, "ssl_days_until_expiry": 0, "ssl_expires_at": "1970-01-01T00:00:00.000Z", "ssl_issuer": "string", "status": "degraded", "status_code": 0 } ], "pagination": { "has_next": true, "has_prev": true, "page": 0, "per_page": 0 } } ``` --- ### Get check history Required API key scope: `status:view`. **`GET`** `/api/v1/monitors/{id}/history` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/monitors/{id}/history' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}/history", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/monitors/{id}/history", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D/history" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}/history")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}/history") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}/history")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D/history"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json [ { "checked_at": "1970-01-01T00:00:00.000Z", "checked_from": "string", "dns_resolution_time_ms": 0, "dns_resolved_ips": [ "string" ], "error_message": "string", "monitor_id": "string", "response_body": "string", "response_time_ms": 0, "ssl_days_until_expiry": 0, "ssl_expires_at": "1970-01-01T00:00:00.000Z", "ssl_issuer": "string", "status": "degraded", "status_code": 0 } ] ``` --- ### Pause a monitor Required API key scope: `status:manage`. **`POST`** `/api/v1/monitors/{id}/pause` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/monitors/{id}/pause' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}/pause", { method: "POST", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/monitors/{id}/pause", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D/pause" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}/pause")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}/pause") .method("POST", "".toRequestBody(null)) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}/pause")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D/pause"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "message": "string" } ``` --- ### Get response time data Required API key scope: `status:view`. **`GET`** `/api/v1/monitors/{id}/response-times` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `end` | `string` | | | | `start` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/monitors/{id}/response-times' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}/response-times", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/monitors/{id}/response-times", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D/response-times" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}/response-times")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}/response-times") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}/response-times")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D/response-times"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json [ { "response_time_ms": 0, "status": "degraded", "timestamp": "1970-01-01T00:00:00.000Z" } ] ``` --- ### Resume a monitor Required API key scope: `status:manage`. **`POST`** `/api/v1/monitors/{id}/resume` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/monitors/{id}/resume' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}/resume", { method: "POST", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/monitors/{id}/resume", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D/resume" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}/resume")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}/resume") .method("POST", "".toRequestBody(null)) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}/resume")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D/resume"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "message": "string" } ``` --- ### Get monitor uptime Required API key scope: `status:view`. **`GET`** `/api/v1/monitors/{id}/uptime` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `period` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/monitors/{id}/uptime' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/monitors/{id}/uptime", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/monitors/{id}/uptime", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/monitors/%7Bid%7D/uptime" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/monitors/{id}/uptime")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/monitors/{id}/uptime") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/monitors/{id}/uptime")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/monitors/%7Bid%7D/uptime"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "avg_response_time_ms": 0, "period": "string", "total_downtime_seconds": 0, "total_incidents": 0, "uptime_percentage": 0 } ``` --- # Forms Create contact forms and collect submissions. > Source: https://appgram.dev/docs/api/forms > Endpoints: 16 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Get submission overview Retrieve comprehensive submission statistics for a project (admin only) Required API key scope: `forms:view`. **`GET`** `/api/v1/contact-forms/overview` **Authentication:** x-api-key (header) **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/contact-forms/overview' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/contact-forms/overview", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/contact-forms/overview", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/contact-forms/overview" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/contact-forms/overview")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/contact-forms/overview") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/contact-forms/overview")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/contact-forms/overview"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": {}, "success": true } ``` --- ### Create contact form Create a new contact form with custom fields and settings Required API key scope: `settings:manage`. **`POST`** `/api/v1/projects/{id}/contact-forms` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `description` | `string` | | | | `email_recipient` | `string` | ✓ | | | `email_subject` | `string` | | | | `fields` | `array` | ✓ | | | `integration` | `object` | | | | `name` | `string` | ✓ | | | `page_id` | `string` | | | | `submit_button_text` | `string` | | | | `success_message` | `string` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "description": "string", "email_recipient": "string", "email_subject": "string", "fields": [ { "default": "string", "id": "string", "label": "string", "options": [ "string" ], "placeholder": "string", "required": true, "type": "checkbox", "validation": { "max_length": 0, "min_length": 0, "pattern": "string" } } ], "integration": { "ai_reply": { "ask_clarifying": true, "enabled": true, "format": "string", "ground_in_articles": true, "instructions": "string", "language": "string", "length": "string", "mode": "auto", "persona": "string", "signoff": "string", "tone": "string" }, "field_mappings": {}, "type": "string" }, "name": "string", "page_id": "string", "submit_button_text": "string", "success_message": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/contact-forms", { method: "POST", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"page_id\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/projects/{id}/contact-forms", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"page_id\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms" payload := strings.NewReader("{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"page_id\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/contact-forms")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"page_id\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/contact-forms") .method("POST", "{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"page_id\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/contact-forms")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"page_id\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"page_id\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "contact_form": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "email_recipient": "string", "email_subject": "string", "enabled": true, "fields": [ {} ], "id": "string", "integration": { "field_mappings": {}, "type": "string" }, "name": "string", "submit_button_text": "string", "success_message": "string", "updated_at": "1970-01-01T00:00:00.000Z" } }, "success": true } ``` --- ### Get form submissions Retrieve all contact form submissions for a project (admin only) Required API key scope: `forms:view`. **`GET`** `/api/v1/projects/{id}/contact-forms/submissions` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | `string` | | | | `offset` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/submissions' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/submissions", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/submissions", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/submissions" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/submissions")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/submissions") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/submissions")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/submissions"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "submissions": [ { "anonymized_ip": "string", "data": {}, "email_sent": true, "form_id": "string", "id": "string", "processed_at": "1970-01-01T00:00:00.000Z", "project_id": "string", "submitted_at": "1970-01-01T00:00:00.000Z" } ] }, "success": true } ``` --- ### Get contact form Retrieve a single contact form configuration and its submission statistics Required API key scope: `forms:view` or `forms:manage`. **`GET`** `/api/v1/projects/{id}/contact-forms/{formId}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `formId` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "contact_form": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "email_recipient": "string", "email_subject": "string", "enabled": true, "fields": [ {} ], "id": "string", "integration": { "field_mappings": {}, "type": "string" }, "name": "string", "submit_button_text": "string", "success_message": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "recent_submissions": [ { "anonymized_ip": "string", "data": {}, "email_sent": true, "form_id": "string", "id": "string", "processed_at": "1970-01-01T00:00:00.000Z", "project_id": "string", "submitted_at": "1970-01-01T00:00:00.000Z" } ], "submission_count": 0 }, "success": true } ``` --- ### Update contact form Update an existing contact form's configuration Required API key scope: `settings:manage`. **`PUT`** `/api/v1/projects/{id}/contact-forms/{formId}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `formId` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `description` | `string` | | | | `email_recipient` | `string` | | | | `email_subject` | `string` | | | | `enabled` | `boolean` | | | | `fields` | `array` | | | | `integration` | `object` | | | | `name` | `string` | | | | `submit_button_text` | `string` | | | | `success_message` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request PUT \ --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "description": "string", "email_recipient": "string", "email_subject": "string", "enabled": true, "fields": [ { "default": "string", "id": "string", "label": "string", "options": [ "string" ], "placeholder": "string", "required": true, "type": "checkbox", "validation": { "max_length": 0, "min_length": 0, "pattern": "string" } } ], "integration": { "ai_reply": { "ask_clarifying": true, "enabled": true, "format": "string", "ground_in_articles": true, "instructions": "string", "language": "string", "length": "string", "mode": "auto", "persona": "string", "signoff": "string", "tone": "string" }, "field_mappings": {}, "type": "string" }, "name": "string", "submit_button_text": "string", "success_message": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}", { method: "PUT", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "PUT", "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D" payload := strings.NewReader("{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}")!) request.httpMethod = "PUT" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}") .method("PUT", "{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("PUT", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Put, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"description\": \"string\",\n \"email_recipient\": \"string\",\n \"email_subject\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"ai_reply\": {\n \"ask_clarifying\": true,\n \"enabled\": true,\n \"format\": \"string\",\n \"ground_in_articles\": true,\n \"instructions\": \"string\",\n \"language\": \"string\",\n \"length\": \"string\",\n \"mode\": \"auto\",\n \"persona\": \"string\",\n \"signoff\": \"string\",\n \"tone\": \"string\"\n },\n \"field_mappings\": {},\n \"type\": \"string\"\n },\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "updated_at": "1970-01-01T00:00:00.000Z" }, "success": true } ``` --- ### Delete contact form Delete a contact form and remove it from project customization Required API key scope: `settings:manage`. **`DELETE`** `/api/v1/projects/{id}/contact-forms/{formId}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `formId` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 204 | No Content | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request DELETE \ --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}", { method: "DELETE", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "DELETE", "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D" req, _ := http.NewRequest("DELETE", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}")!) request.httpMethod = "DELETE" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}") .method("DELETE", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("DELETE", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Delete, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` --- ### Get submissions by form Retrieve contact form submissions for a specific form (admin only) Required API key scope: `forms:view`. **`GET`** `/api/v1/projects/{id}/contact-forms/{formId}/submissions` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `formId` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `limit` | `string` | | | | `offset` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submissions' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submissions", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submissions", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D/submissions" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submissions")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submissions") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submissions")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D/submissions"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "submissions": [ { "anonymized_ip": "string", "data": {}, "email_sent": true, "form_id": "string", "id": "string", "processed_at": "1970-01-01T00:00:00.000Z", "project_id": "string", "submitted_at": "1970-01-01T00:00:00.000Z" } ] }, "success": true } ``` --- ### Submit contact form Submit a contact form with user data (public endpoint, no authentication required) **`POST`** `/api/v1/projects/{id}/contact-forms/{formId}/submit` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `formId` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `attachments` | `array` | | | | `data` | `object` | ✓ | | | `form_id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submit' \ --header 'Content-Type: application/json' \ --data '{ "attachments": [ { "mime_type": "string", "name": "string", "size": 0, "url": "string" } ], "data": {}, "form_id": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submit", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"data\": {},\n \"form_id\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submit", headers={"Content-Type": "application/json"}, data="{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"data\": {},\n \"form_id\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D/submit" payload := strings.NewReader("{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"data\": {},\n \"form_id\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submit")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"data\": {},\n \"form_id\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submit") .method("POST", "{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"data\": {},\n \"form_id\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/submit")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"data\": {},\n \"form_id\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D/submit"), Content = new StringContent("{\n \"attachments\": [\n {\n \"mime_type\": \"string\",\n \"name\": \"string\",\n \"size\": 0,\n \"url\": \"string\"\n }\n ],\n \"data\": {},\n \"form_id\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "message": "string", "success": true }, "success": true } ``` --- ### Track form view Track when a contact form is viewed (for analytics) **`POST`** `/api/v1/projects/{id}/contact-forms/{formId}/view` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `formId` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/view' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/view", { method: "POST", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/view", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D/view" req, _ := http.NewRequest("POST", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/view")!) request.httpMethod = "POST" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/view") .method("POST", "".toRequestBody(null)) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/contact-forms/{formId}/view")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/contact-forms/%7BformId%7D/view"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "tracked": true }, "success": true } ``` --- ### Get support forms Retrieve all support forms configured for a project Required API key scope: `settings:manage`. **`GET`** `/api/v1/projects/{id}/support-forms` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/support-forms", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/projects/{id}/support-forms", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/support-forms")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/support-forms") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/support-forms")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "support_forms": {} }, "success": true } ``` --- ### Create support form Create a new support form with custom fields and settings Required API key scope: `settings:manage`. **`POST`** `/api/v1/projects/{id}/support-forms` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `description` | `string` | | | | `fields` | `array` | ✓ | | | `form_id` | `string` | | | | `name` | `string` | ✓ | | | `submit_button_text` | `string` | | | | `success_message` | `string` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "description": "string", "fields": [ { "default": "string", "id": "string", "label": "string", "options": [ "string" ], "placeholder": "string", "required": true, "type": "checkbox", "validation": { "max_length": 0, "min_length": 0, "pattern": "string" } } ], "form_id": "string", "name": "string", "submit_button_text": "string", "success_message": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/support-forms", { method: "POST", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"description\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"form_id\": \"string\",\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/projects/{id}/support-forms", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"description\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"form_id\": \"string\",\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms" payload := strings.NewReader("{\n \"description\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"form_id\": \"string\",\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/support-forms")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"description\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"form_id\": \"string\",\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/support-forms") .method("POST", "{\n \"description\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"form_id\": \"string\",\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/support-forms")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"description\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"form_id\": \"string\",\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"description\": \"string\",\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"form_id\": \"string\",\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "support_form": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "enable_ai_summary": true, "enabled": true, "fields": [ {} ], "id": "string", "name": "string", "submit_button_text": "string", "success_message": "string", "updated_at": "1970-01-01T00:00:00.000Z" } }, "success": true } ``` --- ### Get support form Retrieve a single support form configuration Required API key scope: `settings:view` or `settings:manage`. **`GET`** `/api/v1/projects/{id}/support-forms/{formId}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `formId` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms/%7BformId%7D" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms/%7BformId%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "support_form": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "enable_ai_summary": true, "enabled": true, "fields": [ {} ], "id": "string", "name": "string", "submit_button_text": "string", "success_message": "string", "updated_at": "1970-01-01T00:00:00.000Z" } }, "success": true } ``` --- ### Update support form Update an existing support form's configuration Required API key scope: `settings:manage`. **`PUT`** `/api/v1/projects/{id}/support-forms/{formId}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `formId` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `description` | `string` | | | | `enabled` | `boolean` | | | | `fields` | `array` | | | | `name` | `string` | | | | `submit_button_text` | `string` | | | | `success_message` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request PUT \ --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}' \ --header 'x-api-key: ' \ --header 'Content-Type: application/json' \ --data '{ "description": "string", "enabled": true, "fields": [ { "default": "string", "id": "string", "label": "string", "options": [ "string" ], "placeholder": "string", "required": true, "type": "checkbox", "validation": { "max_length": 0, "min_length": 0, "pattern": "string" } } ], "name": "string", "submit_button_text": "string", "success_message": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}", { method: "PUT", headers: { "x-api-key": "", "Content-Type": "application/json" }, body: "{\n \"description\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "PUT", "https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}", headers={"x-api-key": "", "Content-Type": "application/json"}, data="{\n \"description\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms/%7BformId%7D" payload := strings.NewReader("{\n \"description\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}")!) request.httpMethod = "PUT" request.setValue("", forHTTPHeaderField: "x-api-key") request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"description\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}") .method("PUT", "{\n \"description\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("x-api-key", "") .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("PUT", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}")); request.headers.addAll({ "x-api-key": "", "Content-Type": "application/json", }); request.body = "{\n \"description\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Put, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms/%7BformId%7D"), Headers = { { "x-api-key", "" }, }, Content = new StringContent("{\n \"description\": \"string\",\n \"enabled\": true,\n \"fields\": [\n {\n \"default\": \"string\",\n \"id\": \"string\",\n \"label\": \"string\",\n \"options\": [\n \"string\"\n ],\n \"placeholder\": \"string\",\n \"required\": true,\n \"type\": \"checkbox\",\n \"validation\": {\n \"max_length\": 0,\n \"min_length\": 0,\n \"pattern\": \"string\"\n }\n }\n ],\n \"name\": \"string\",\n \"submit_button_text\": \"string\",\n \"success_message\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "support_form": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "enable_ai_summary": true, "enabled": true, "fields": [ {} ], "id": "string", "name": "string", "submit_button_text": "string", "success_message": "string", "updated_at": "1970-01-01T00:00:00.000Z" } }, "success": true } ``` --- ### Delete support form Delete a support form and remove it from project customization Required API key scope: `settings:manage`. **`DELETE`** `/api/v1/projects/{id}/support-forms/{formId}` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `formId` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 204 | No Content | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request DELETE \ --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}", { method: "DELETE", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "DELETE", "https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms/%7BformId%7D" req, _ := http.NewRequest("DELETE", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}")!) request.httpMethod = "DELETE" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}") .method("DELETE", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("DELETE", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Delete, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms/%7BformId%7D"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` --- ### Submit support form Submit a support form with user data and create a support request (public endpoint, no authentication required) **`POST`** `/api/v1/projects/{id}/support-forms/{formId}/submit` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | | `formId` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `object` | ✓ | | | `description` | `string` | ✓ | | | `form_id` | `string` | ✓ | | | `subject` | `string` | ✓ | | | `user_email` | `string` | | | | `user_name` | `string` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}/submit' \ --header 'Content-Type: application/json' \ --data '{ "data": {}, "description": "string", "form_id": "string", "subject": "string", "user_email": "string", "user_name": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}/submit", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"data\": {},\n \"description\": \"string\",\n \"form_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_name\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}/submit", headers={"Content-Type": "application/json"}, data="{\n \"data\": {},\n \"description\": \"string\",\n \"form_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_name\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms/%7BformId%7D/submit" payload := strings.NewReader("{\n \"data\": {},\n \"description\": \"string\",\n \"form_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_name\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}/submit")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"data\": {},\n \"description\": \"string\",\n \"form_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_name\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}/submit") .method("POST", "{\n \"data\": {},\n \"description\": \"string\",\n \"form_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_name\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/support-forms/{formId}/submit")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"data\": {},\n \"description\": \"string\",\n \"form_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_name\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/support-forms/%7BformId%7D/submit"), Content = new StringContent("{\n \"data\": {},\n \"description\": \"string\",\n \"form_id\": \"string\",\n \"subject\": \"string\",\n \"user_email\": \"string\",\n \"user_name\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "access_token": "string", "attachments": [ { "mime_type": "string", "name": "string", "size": 0, "url": "string" } ], "category": "account_issue", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "magic_link": "string", "message_count": 0, "messages": [ { "attachments": [], "author": {}, "author_name": "string", "content": "string", "created_at": "1970-01-01T00:00:00.000Z", "help_articles": [], "id": "string", "is_from_user": true, "support_request_id": "string", "updated_at": "1970-01-01T00:00:00.000Z" } ], "project_id": "string", "resolved_at": "1970-01-01T00:00:00.000Z", "source": "string", "status": "closed", "subject": "string", "updated_at": "1970-01-01T00:00:00.000Z", "user_email": "string", "user_name": "string" }, "success": true } ``` --- ### Get a contact form Retrieve a contact form definition for rendering on public pages **`GET`** `/portal/contact-forms/{formId}` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `formId` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `project_id` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/contact-forms/{formId}?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/contact-forms/{formId}?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/contact-forms/{formId}?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/contact-forms/%7BformId%7D?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/contact-forms/{formId}?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/contact-forms/{formId}?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/contact-forms/{formId}?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/contact-forms/%7BformId%7D?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "contact_form": { "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "email_recipient": "string", "email_subject": "string", "enabled": true, "fields": [ {} ], "id": "string", "integration": { "field_mappings": {}, "type": "string" }, "name": "string", "submit_button_text": "string", "success_message": "string", "updated_at": "1970-01-01T00:00:00.000Z" } }, "success": true } ``` --- # Waitlist Join, leave, and inspect a project waitlist. > Source: https://appgram.dev/docs/api/waitlist > Endpoints: 5 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### List waitlist entries Get paginated list of all users on project wishlist (admin only) Required API key scope: `wishlist:view`. **`GET`** `/api/v1/projects/{id}/wishlist` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `page` | `integer` | | | | `per_page` | `integer` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/projects/{id}/wishlist' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/wishlist", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/projects/{id}/wishlist", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/wishlist" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/wishlist")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/wishlist") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/wishlist")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/wishlist"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "created_at": "1970-01-01T00:00:00.000Z", "email": "string", "id": "string", "name": "string", "user_id": "string" } ], "page": 0, "per_page": 0, "success": true, "total": 0, "total_pages": 0 } ``` --- ### Count waitlist entries Get total number of users on project wishlist **`GET`** `/api/v1/projects/{id}/wishlist/count` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/projects/{id}/wishlist/count' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/wishlist/count", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/projects/{id}/wishlist/count", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/wishlist/count" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/wishlist/count")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/wishlist/count") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/wishlist/count")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/wishlist/count"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "count": 0 }, "success": true } ``` --- ### Join the waitlist Add current user or email to project wishlist **`POST`** `/api/v1/projects/{id}/wishlist/join` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | | | | `fingerprint` | `string` | | | | `name` | `string` | | | **Responses** | Status | Description | | --- | --- | | 201 | Created | | 400 | Bad Request | | 404 | Not Found | | 409 | Conflict | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/projects/{id}/wishlist/join' \ --header 'Content-Type: application/json' \ --data '{ "email": "string", "fingerprint": "string", "name": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/wishlist/join", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"email\": \"string\",\n \"fingerprint\": \"string\",\n \"name\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/projects/{id}/wishlist/join", headers={"Content-Type": "application/json"}, data="{\n \"email\": \"string\",\n \"fingerprint\": \"string\",\n \"name\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/wishlist/join" payload := strings.NewReader("{\n \"email\": \"string\",\n \"fingerprint\": \"string\",\n \"name\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/wishlist/join")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"email\": \"string\",\n \"fingerprint\": \"string\",\n \"name\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/wishlist/join") .method("POST", "{\n \"email\": \"string\",\n \"fingerprint\": \"string\",\n \"name\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/wishlist/join")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"email\": \"string\",\n \"fingerprint\": \"string\",\n \"name\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/wishlist/join"), Content = new StringContent("{\n \"email\": \"string\",\n \"fingerprint\": \"string\",\n \"name\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `201` ```json { "data": { "created_at": "1970-01-01T00:00:00.000Z", "email": "string", "id": "string", "name": "string", "user_id": "string" }, "success": true } ``` --- ### Leave the waitlist Remove current user from project wishlist **`DELETE`** `/api/v1/projects/{id}/wishlist/leave` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | | | | `fingerprint` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | **Request** **cURL** ```bash curl --request DELETE \ --url 'https://api.appgram.dev/api/v1/projects/{id}/wishlist/leave' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/wishlist/leave", { method: "DELETE", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "DELETE", "https://api.appgram.dev/api/v1/projects/{id}/wishlist/leave", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/wishlist/leave" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/wishlist/leave")!) request.httpMethod = "DELETE" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/wishlist/leave") .method("DELETE", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("DELETE", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/wishlist/leave")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Delete, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/wishlist/leave"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "success": true }, "success": true } ``` --- ### Check waitlist membership Check if current user is on project wishlist **`GET`** `/api/v1/projects/{id}/wishlist/status` **Authentication:** None **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | | | | `fingerprint` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/projects/{id}/wishlist/status' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/projects/{id}/wishlist/status", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/projects/{id}/wishlist/status", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/projects/%7Bid%7D/wishlist/status" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/projects/{id}/wishlist/status")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/projects/{id}/wishlist/status") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/projects/{id}/wishlist/status")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/projects/%7Bid%7D/wishlist/status"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "is_on_wishlist": true }, "success": true } ``` --- # Releases Access release recipients and send a release demonstration. > Source: https://appgram.dev/docs/api/releases > Endpoints: 2 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Preview release email recipients Returns the list of subscribers who would receive this release email based on audience_tags. Call before publishing to see who will be notified. Required API key scope: `releases:view`. **`GET`** `/api/v1/releases/{id}/recipients` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/releases/{id}/recipients' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/releases/{id}/recipients", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/releases/{id}/recipients", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/releases/%7Bid%7D/recipients" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/releases/{id}/recipients")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/releases/{id}/recipients") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/releases/{id}/recipients")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/releases/%7Bid%7D/recipients"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "audience_tags": [ "string" ], "email_quota": { "limit": 0, "over_limit": true, "plan": "string", "remaining": 0, "used": 0 }, "notify_channels": [ "string" ], "recipients": [ { "created_at": "1970-01-01T00:00:00.000Z", "email": "string", "id": "string", "last_notified_at": "1970-01-01T00:00:00.000Z", "name": "string", "tags": [] } ], "total": 0 }, "success": true } ``` --- ### Send a preview release email Sends a preview of the release announcement email to the requesting user's inbox before publishing to subscribers Required API key scope: `releases:manage`. **`POST`** `/api/v1/releases/{id}/send-demo` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `id` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/api/v1/releases/{id}/send-demo' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/releases/{id}/send-demo", { method: "POST", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/api/v1/releases/{id}/send-demo", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/releases/%7Bid%7D/send-demo" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/releases/{id}/send-demo")!) request.httpMethod = "POST" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/releases/{id}/send-demo") .method("POST", "".toRequestBody(null)) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/api/v1/releases/{id}/send-demo")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/api/v1/releases/%7Bid%7D/send-demo"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "message": "string" }, "success": true } ``` --- # Analytics Read comprehensive, form, and survey analytics. > Source: https://appgram.dev/docs/api/analytics > Endpoints: 3 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Get comprehensive analytics across all sources Returns unified analytics with friction scores, health metrics, and insights from all data sources **`GET`** `/api/v1/analytics/comprehensive` **Authentication:** x-api-key (header) **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `end_date` | `string` | | | | `include_insights` | `string` | | | | `include_scores` | `string` | | | | `include_timeseries` | `string` | | | | `period` | `string` | | | | `project_id` | `string` | | | | `sources` | `string` | | | | `start_date` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/analytics/comprehensive' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/analytics/comprehensive", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/analytics/comprehensive", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/analytics/comprehensive" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/analytics/comprehensive")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/analytics/comprehensive") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/analytics/comprehensive")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/analytics/comprehensive"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "correlations": [ { "correlation": 0, "description": "string", "metric_1": "string", "metric_2": "string", "source_1": "string", "source_2": "string" } ], "date_range": { "end_date": "string", "start_date": "string" }, "engagement_score": { "components": { "feedback_volume": 0, "help_center_usage": 0, "survey_participation": 0, "voting_activity": 0 }, "score": 0, "trend": "string" }, "forms": { "by_form": [ {} ], "summary": { "active_forms": 0, "avg_submissions_per_form": 0, "response_rate": 0, "total_forms": 0, "total_submissions": 0 }, "timeseries": [ {} ] }, "friction_score": { "components": { "documentation_gaps": 0, "feature_gaps": 0, "onboarding_friction": 0, "stability_issues": 0, "support_friction": 0 }, "grade": "string", "score": 0, "trend": "string", "trend_change": 0 }, "generated_at": "string", "health_score": { "components": { "feature_velocity": 0, "response_time": 0, "uptime": 0, "user_satisfaction": 0 }, "grade": "string", "score": 0 }, "help_center": { "summary": { "published_articles": 0, "total_articles": 0, "total_flows": 0, "total_searches": 0, "total_views": 0 }, "timeseries": [ {} ], "top_articles": [ {} ], "top_searches": [ {} ] }, "insights": [ { "action": "string", "description": "string", "metric": "string", "severity": "string", "sources": [], "threshold": 0, "title": "string", "type": "string", "value": 0 } ], "releases": { "summary": { "draft_releases": 0, "published_releases": 0, "total_releases": 0, "total_views": 0 }, "timeseries": [ {} ], "top_releases": [ {} ] }, "roadmaps": { "by_column": [ {} ], "summary": { "completion_rate": 0, "items_with_target_date": 0, "total_items": 0, "total_roadmaps": 0, "total_views": 0 }, "timeseries": [ {} ] }, "sources": [ "string" ], "status": { "by_service": {}, "by_type": {}, "summary": { "active_incidents": 0, "avg_resolution_time_ms": 0, "current_status": "string", "resolved_incidents": 0, "total_incidents": 0, "uptime_percentage": 0 }, "timeseries": [ {} ] }, "support": { "avg_resolution_time_ms": 0, "avg_response_time_ms": 0, "summary": { "open_tickets": 0, "resolution_rate": 0, "resolved_tickets": 0, "total_tickets": 0, "unassigned": 0, "waiting_on_customer": 0 }, "tickets_by_category": {}, "tickets_by_priority": {}, "tickets_by_status": {}, "timeseries": [ {} ] }, "surveys": { "by_survey": [ {} ], "summary": { "active_surveys": 0, "avg_completion_rate": 0, "avg_response_rate": 0, "avg_satisfaction": 0, "total_responses": 0, "total_surveys": 0 }, "timeseries": [ {} ] }, "timeseries": { "end_date": "string", "forms": [ {} ], "help_center": [ {} ], "period": "string", "releases": [ {} ], "start_date": "string", "status": [ {} ], "support": [ {} ], "surveys": [ {} ], "wishes": [ {} ] }, "wishes": { "by_category": {}, "by_status": {}, "summary": { "active_wishes": 0, "completion_rate": 0, "total_votes": 0, "total_wishes": 0 }, "timeseries": [ {} ], "top_voted": [ {} ] } }, "success": true } ``` --- ### Get contact form analytics Returns analytics for contact forms including submission rates and timeseries Required API key scope: `analytics:view`. **`GET`** `/api/v1/analytics/forms` **Authentication:** x-api-key (header) **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `end_date` | `string` | | | | `period` | `string` | | | | `project_id` | `string` | | | | `start_date` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/analytics/forms' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/analytics/forms", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/analytics/forms", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/analytics/forms" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/analytics/forms")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/analytics/forms") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/analytics/forms")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/analytics/forms"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "by_form": [ { "id": "string", "name": "string", "submission_count": 0 } ], "summary": { "active_forms": 0, "avg_submissions_per_form": 0, "response_rate": 0, "total_forms": 0, "total_submissions": 0 }, "timeseries": [ { "date": "string", "submissions": 0 } ] }, "success": true } ``` --- ### Get survey analytics Returns analytics for surveys including response rates and timeseries Required API key scope: `analytics:view`. **`GET`** `/api/v1/analytics/surveys` **Authentication:** x-api-key (header) **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `end_date` | `string` | | | | `period` | `string` | | | | `project_id` | `string` | | | | `start_date` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/analytics/surveys' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/analytics/surveys", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/analytics/surveys", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/analytics/surveys" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/analytics/surveys")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/analytics/surveys") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/analytics/surveys")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/analytics/surveys"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "by_survey": [ { "id": "string", "response_count": 0, "response_rate": 0, "title": "string" } ], "summary": { "active_surveys": 0, "avg_completion_rate": 0, "avg_response_rate": 0, "avg_satisfaction": 0, "total_responses": 0, "total_surveys": 0 }, "timeseries": [ { "date": "string", "responses": 0 } ] }, "success": true } ``` --- # Webhooks Inspect the sample payload for a webhook event type. > Source: https://appgram.dev/docs/api/webhooks > Endpoints: 1 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Get a sample payload for an event type Returns a synthetic payload identical in shape to what real events deliver. Zapier polls this to populate field pickers without waiting for a real event to fire. **`GET`** `/api/v1/webhooks/events/{type}/sample` **Authentication:** x-api-key (header) **Path parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `type` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/api/v1/webhooks/events/{type}/sample' \ --header 'x-api-key: ' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/api/v1/webhooks/events/{type}/sample", { method: "GET", headers: { "x-api-key": "" }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/api/v1/webhooks/events/{type}/sample", headers={"x-api-key": ""}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/api/v1/webhooks/events/%7Btype%7D/sample" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/webhooks/events/{type}/sample")!) request.httpMethod = "GET" request.setValue("", forHTTPHeaderField: "x-api-key") let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/api/v1/webhooks/events/{type}/sample") .method("GET", null) .addHeader("x-api-key", "") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/webhooks/events/{type}/sample")); request.headers.addAll({ "x-api-key": "", }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/api/v1/webhooks/events/%7Btype%7D/sample"), Headers = { { "x-api-key", "" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "data": {}, "event": "string", "id": "string", "metadata": { "organization_id": "string", "project_id": "string", "triggered_by": "string" }, "timestamp": "1970-01-01T00:00:00.000Z" }, "success": true } ``` --- # AI answers Ask questions against published project content. > Source: https://appgram.dev/docs/api/ai > Endpoints: 2 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Ask a question about the project Answers questions about the project using real features and data. In "home" context, provides marketing-oriented responses. **`POST`** `/portal/ask` **Authentication:** None **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `context` | `string` | | | | `language` | `string` | | | | `project_id` | `string` | ✓ | | | `query` | `string` | ✓ | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/portal/ask' \ --header 'Content-Type: application/json' \ --data '{ "context": "string", "language": "string", "project_id": "string", "query": "string" }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/ask", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"context\": \"string\",\n \"language\": \"string\",\n \"project_id\": \"string\",\n \"query\": \"string\"\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/portal/ask", headers={"Content-Type": "application/json"}, data="{\n \"context\": \"string\",\n \"language\": \"string\",\n \"project_id\": \"string\",\n \"query\": \"string\"\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/ask" payload := strings.NewReader("{\n \"context\": \"string\",\n \"language\": \"string\",\n \"project_id\": \"string\",\n \"query\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/ask")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"context\": \"string\",\n \"language\": \"string\",\n \"project_id\": \"string\",\n \"query\": \"string\"\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/ask") .method("POST", "{\n \"context\": \"string\",\n \"language\": \"string\",\n \"project_id\": \"string\",\n \"query\": \"string\"\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/portal/ask")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"context\": \"string\",\n \"language\": \"string\",\n \"project_id\": \"string\",\n \"query\": \"string\"\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/portal/ask"), Content = new StringContent("{\n \"context\": \"string\",\n \"language\": \"string\",\n \"project_id\": \"string\",\n \"query\": \"string\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "answer": "string", "blocked": true, "metadata": {}, "mode": "string", "reason": "string", "show_user_support": true }, "success": true } ``` --- ### Ask the help center Answers questions using relevant help center articles as context (no auth required) **`POST`** `/portal/help/ask` **Authentication:** None **Body** | Name | Type | Required | Description | | --- | --- | --- | --- | | `conversation_id` | `string` | | | | `language` | `string` | | | | `max_results` | `integer` | | | | `project_id` | `string` | ✓ | | | `query` | `string` | ✓ | | | `threshold` | `number` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request POST \ --url 'https://api.appgram.dev/portal/help/ask' \ --header 'Content-Type: application/json' \ --data '{ "conversation_id": "string", "language": "string", "max_results": 0, "project_id": "string", "query": "string", "threshold": 0 }' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/help/ask", { method: "POST", headers: { "Content-Type": "application/json" }, body: "{\n \"conversation_id\": \"string\",\n \"language\": \"string\",\n \"max_results\": 0,\n \"project_id\": \"string\",\n \"query\": \"string\",\n \"threshold\": 0\n}", }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "POST", "https://api.appgram.dev/portal/help/ask", headers={"Content-Type": "application/json"}, data="{\n \"conversation_id\": \"string\",\n \"language\": \"string\",\n \"max_results\": 0,\n \"project_id\": \"string\",\n \"query\": \"string\",\n \"threshold\": 0\n}".encode("utf-8"), timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/help/ask" payload := strings.NewReader("{\n \"conversation_id\": \"string\",\n \"language\": \"string\",\n \"max_results\": 0,\n \"project_id\": \"string\",\n \"query\": \"string\",\n \"threshold\": 0\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/help/ask")!) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpBody = Data("{\n \"conversation_id\": \"string\",\n \"language\": \"string\",\n \"max_results\": 0,\n \"project_id\": \"string\",\n \"query\": \"string\",\n \"threshold\": 0\n}".utf8) let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/help/ask") .method("POST", "{\n \"conversation_id\": \"string\",\n \"language\": \"string\",\n \"max_results\": 0,\n \"project_id\": \"string\",\n \"query\": \"string\",\n \"threshold\": 0\n}".toRequestBody("application/json".toMediaType())) .addHeader("Content-Type", "application/json") .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("POST", Uri.parse("https://api.appgram.dev/portal/help/ask")); request.headers.addAll({ "Content-Type": "application/json", }); request.body = "{\n \"conversation_id\": \"string\",\n \"language\": \"string\",\n \"max_results\": 0,\n \"project_id\": \"string\",\n \"query\": \"string\",\n \"threshold\": 0\n}"; final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.appgram.dev/portal/help/ask"), Content = new StringContent("{\n \"conversation_id\": \"string\",\n \"language\": \"string\",\n \"max_results\": 0,\n \"project_id\": \"string\",\n \"query\": \"string\",\n \"threshold\": 0\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "answer": "string", "blocked": true, "conversation_id": "string", "metadata": {}, "reason": "string", "show_user_support": true, "sources": [ { "article_id": "string", "excerpt": "string", "flow_id": "string", "flow_slug": "string", "post_id": "string", "similarity": 0, "slug": "string", "title": "string", "type": "string" } ] }, "success": true } ``` --- # Portal Resolve public projects, page data, and CAPTCHA challenges. > Source: https://appgram.dev/docs/api/portal > Endpoints: 3 > API version: v1.0 See [Authentication](/docs/guides/api-authentication) for the base setup. ### Get a bot protection challenge **`GET`** `/portal/captcha/challenge` **Authentication:** None **Responses** | Status | Description | | --- | --- | | 200 | OK | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/captcha/challenge' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/captcha/challenge", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/captcha/challenge", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/captcha/challenge" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/captcha/challenge")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/captcha/challenge") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/captcha/challenge")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/captcha/challenge"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "_timestamp": 0, "_token": "string" }, "success": true } ``` --- ### Get public page data Get all data needed to render the public portal page (supports custom domain access) **`GET`** `/portal/page-data` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `org_slug` | `string` | | | | `project_id` | `string` | | | | `project_slug` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/page-data?project_id=' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/page-data?project_id=", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/page-data?project_id=", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/page-data?project_id=" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/page-data?project_id=")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/page-data?project_id=") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/page-data?project_id=")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/page-data?project_id="), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": { "categories": [ { "color": "string", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "icon": "string", "id": "string", "name": "string", "project_id": "string", "slug": "string", "sort_order": 0, "updated_at": "1970-01-01T00:00:00.000Z", "wish_count": 0 } ], "created_at": "1970-01-01T00:00:00.000Z", "customization_data": { "blocks": {}, "branding": { "companyName": "string", "faviconUrl": "string", "logoUrl": "string", "socialLinks": [] }, "chatWidgetActiveColorMode": "string", "chatWidgetActiveStyleId": "string", "chatWidgetStyles": {}, "colors": { "accent": "string", "background": "string", "feedback": {}, "primary": "string", "releases": {}, "roadmap": {}, "secondary": "string", "status": {}, "support": {}, "text": "string" }, "contactForms": {}, "content": { "feedback": {}, "headingAlignment": "string", "headingSpacing": 0, "help": {}, "pageDescription": "string", "pageHeading": "string", "releases": {}, "roadmap": {}, "roadmapDescription": "string", "roadmapDevelopersNote": "string", "roadmapHeading": "string", "status": {}, "statusDescription": "string", "statusHeading": "string", "support": {} }, "customPageColors": {}, "customPageContent": {}, "customPages": [ {} ], "layout": { "background": {}, "bannerStyle": {}, "borderRadius": 0, "cardStyle": {}, "footerStyle": {}, "headerStyle": {}, "roadmapBannerStyle": {} }, "pagePresentation": {}, "pageRoutes": {}, "sections": {}, "supportForms": {}, "typography": { "fontFamily": "string", "fontSizes": {} } }, "id": "string", "organization_id": "string", "page_order": [ { "id": "string", "name": "string", "order": 0, "route": "string", "show_in_nav": true } ], "project": { "icon_url": "string", "id": "string", "name": "string", "slug": "string" }, "project_id": "string", "roadmap": { "columns": [ {} ], "description": "string", "id": "string", "name": "string", "show_comments": true, "show_vote_counts": true, "visibility": "private" }, "total_wishes": 0, "updated_at": "1970-01-01T00:00:00.000Z", "use_custom": true, "variant": { "created_at": "1970-01-01T00:00:00.000Z", "customization_data": { "blocks": {}, "branding": {}, "chatWidgetActiveColorMode": "string", "chatWidgetActiveStyleId": "string", "chatWidgetStyles": {}, "colors": {}, "contactForms": {}, "content": {}, "customPageColors": {}, "customPageContent": {}, "customPages": [], "layout": {}, "pagePresentation": {}, "pageRoutes": {}, "sections": {}, "supportForms": {}, "typography": {} }, "description": "string", "id": "string", "is_default": true, "name": "string", "organization_id": "string", "updated_at": "1970-01-01T00:00:00.000Z" }, "variant_id": "string", "wishes": [ { "author_type": "anonymous", "category": {}, "category_id": "string", "comment_count": 0, "completed_at": "1970-01-01T00:00:00.000Z", "created_at": "1970-01-01T00:00:00.000Z", "description": "string", "id": "string", "is_approved": true, "is_merged": true, "is_pinned": true, "merged_into_id": "string", "priority": "critical", "project": {}, "project_id": "string", "slug": "string", "source": "api", "status": "completed", "title": "string", "updated_at": "1970-01-01T00:00:00.000Z", "vote_count": 0 } ] }, "success": true } ``` --- ### List organization projects Get paginated list of public projects for an organization **`GET`** `/portal/projects` **Authentication:** None **Query parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `organization_id` | `string` | | | | `organization_slug` | `string` | | | | `page` | `string` | | | | `per_page` | `string` | | | **Responses** | Status | Description | | --- | --- | | 200 | OK | | 400 | Bad Request | | 404 | Not Found | | 500 | Internal Server Error | **Request** **cURL** ```bash curl --request GET \ --url 'https://api.appgram.dev/portal/projects' ``` **TypeScript · fetch** ```typescript const response = await fetch("https://api.appgram.dev/portal/projects", { method: "GET", headers: {}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.text()); ``` **Python · requests** ```python import requests response = requests.request( "GET", "https://api.appgram.dev/portal/projects", headers={}, timeout=30, ) response.raise_for_status() print(response.text) ``` **Go · net/http** ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.appgram.dev/portal/projects" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` **Swift · URLSession** ```swift import Foundation var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/projects")!) request.httpMethod = "GET" let (data, _) = try await URLSession.shared.data(for: request) print(String(decoding: data, as: UTF8.self)) ``` **Kotlin · OkHttp** ```kotlin // Requires OkHttp 4.x. import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody fun main() { val request = Request.Builder() .url("https://api.appgram.dev/portal/projects") .method("GET", null) .build() OkHttpClient().newCall(request).execute().use { response -> println(response.body?.string()) } } ``` **Dart · http** ```dart // Requires package:http in pubspec.yaml. import 'package:http/http.dart' as http; Future main() async { final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/projects")); request.headers.addAll({ }); final response = await request.send(); print(await response.stream.bytesToString()); } ``` **C# · HttpClient** ```csharp using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.appgram.dev/portal/projects"), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); } ``` **Response** — `200` ```json { "data": [ { "color": "string", "custom_domain": "string", "description": "string", "icon_url": "string", "id": "string", "name": "string", "organization_id": "string", "slug": "string" } ], "page": 0, "per_page": 0, "success": true, "total": 0, "total_pages": 0 } ``` --- # React SDK Drop-in components and headless hooks for React and Next.js applications. > Source: https://appgram.dev/docs/react-sdk > Language: tsx > Symbols: 1215 across 145 categories ## Install ```bash npm install @appgram/react@0.2.5 ``` ## Quickstart ```tsx 'use client'; import { AppgramProvider, useAppgramContext, useVote, useWishes, type Wish } from '@appgram/react'; function FeedbackVote({ wish }: { wish: Wish }) { const { fingerprint } = useAppgramContext(); const { hasVoted, voteCount, isLoading, error, vote } = useVote({ wishId: wish.id, initialVoteCount: wish.vote_count, initialHasVoted: wish.has_voted, }); return (
{!fingerprint && Preparing anonymous voting…} {error &&

{error}

}
); } function Feedback() { const { wishes, isLoading, error, refetch } = useWishes(); if (isLoading) return

Loading feedback…

; if (error) return (

{error}

); if (wishes.length === 0) return

No feature requests yet.

; return (
    {wishes.map((wish) => (
  • {wish.title}

  • ))}
); } export default function App() { return ( ); } ``` ## Categories - [Classes](#classes) — 1 items - [AppgramClient](#appgramclient) — 43 items - [Interfaces](#interfaces) — 138 items - [ApiResponse](#apiresponse) — 3 items - [AppgramClientConfig](#appgramclientconfig) — 4 items - [AppgramConfig](#appgramconfig) — 6 items - [AppgramContextValue](#appgramcontextvalue) — 4 items - [AppgramProviderProps](#appgramproviderprops) — 2 items - [AppgramTheme](#appgramtheme) — 5 items - [BlogCardProps](#blogcardprops) — 4 items - [BlogCategory](#blogcategory) — 6 items - [BlogFilters](#blogfilters) — 6 items - [BlogListProps](#bloglistprops) — 17 items - [BlogPost](#blogpost) — 17 items - [BlogPostDetailProps](#blogpostdetailprops) — 9 items - [BlogPostsResponse](#blogpostsresponse) — 5 items - [BlogProps](#blogprops) — 13 items - [Category](#category) — 7 items - [ChatSource](#chatsource) — 7 items - [ChatWidgetProps](#chatwidgetprops) — 13 items - [Comment](#comment) — 14 items - [CommentAuthor](#commentauthor) — 2 items - [CommentCreateInput](#commentcreateinput) — 5 items - [CommentsResponse](#commentsresponse) — 5 items - [ContactForm](#contactform) — 12 items - [ContactFormField](#contactformfield) — 7 items - [ContactFormFieldValidation](#contactformfieldvalidation) — 3 items - [ContactFormRendererProps](#contactformrendererprops) — 7 items - [ContactFormSubmission](#contactformsubmission) — 5 items - [ContactFormSubmitInput](#contactformsubmitinput) — 2 items - [CustomColors](#customcolors) — 18 items - [CustomTypography](#customtypography) — 2 items - [HelpArticle](#helparticle) — 12 items - [HelpArticleDetailProps](#helparticledetailprops) — 10 items - [HelpArticlesProps](#helparticlesprops) — 10 items - [HelpArticlesResponse](#helparticlesresponse) — 5 items - [HelpCenterData](#helpcenterdata) — 2 items - [HelpCenterProps](#helpcenterprops) — 17 items - [HelpCollection](#helpcollection) — 9 items - [HelpCollectionsProps](#helpcollectionsprops) — 17 items - [HelpFlow](#helpflow) — 12 items - [IncidentUpdate](#incidentupdate) — 4 items - [LayoutConfig](#layoutconfig) — 2 items - [PaginatedResponse](#paginatedresponse) — 5 items - [QuickAction](#quickaction) — 3 items - [Release](#release) — 17 items - [ReleaseCardProps](#releasecardprops) — 6 items - [ReleaseDetailProps](#releasedetailprops) — 7 items - [ReleaseFeature](#releasefeature) — 6 items - [ReleaseListProps](#releaselistprops) — 11 items - [ReleasesProps](#releasesprops) — 11 items - [ReleasesResponse](#releasesresponse) — 5 items - [Roadmap](#roadmap) — 11 items - [RoadmapBoardProps](#roadmapboardprops) — 15 items - [RoadmapColumnProps](#roadmapcolumnprops) — 5 items - [RoadmapColumnType](#roadmapcolumntype) — 9 items - [RoadmapData](#roadmapdata) — 4 items - [RoadmapItem](#roadmapitem) — 12 items - [StatusBoardProps](#statusboardprops) — 12 items - [StatusComponent](#statuscomponent) — 5 items - [StatusData](#statusdata) — 4 items - [StatusIncident](#statusincident) — 8 items - [StatusIncidentDetailProps](#statusincidentdetailprops) — 5 items - [StatusPage](#statuspage) — 8 items - [StatusPageOverview](#statuspageoverview) — 10 items - [StatusPageService](#statuspageservice) — 10 items - [StatusUpdateApi](#statusupdateapi) — 11 items - [SubmitWishFormProps](#submitwishformprops) — 9 items - [SupportAttachment](#supportattachment) — 4 items - [SupportFormProps](#supportformprops) — 19 items - [SupportMessage](#supportmessage) — 10 items - [SupportRequest](#supportrequest) — 16 items - [SupportRequestInput](#supportrequestinput) — 7 items - [SupportRequestsResponse](#supportrequestsresponse) — 5 items - [Survey](#survey) — 12 items - [SurveyAnswer](#surveyanswer) — 9 items - [SurveyNode](#surveynode) — 17 items - [SurveyNodeBranch](#surveynodebranch) — 2 items - [SurveyNodeOption](#surveynodeoption) — 2 items - [SurveyRendererProps](#surveyrendererprops) — 8 items - [SurveyResponse](#surveyresponse) — 7 items - [SurveySubmitInput](#surveysubmitinput) — 4 items - [UseBlogCategoriesOptions](#useblogcategoriesoptions) — 1 items - [UseBlogCategoriesResult](#useblogcategoriesresult) — 4 items - [UseBlogPostOptions](#useblogpostoptions) — 2 items - [UseBlogPostResult](#useblogpostresult) — 5 items - [UseBlogPostsOptions](#useblogpostsoptions) — 7 items - [UseBlogPostsResult](#useblogpostsresult) — 9 items - [UseCommentsOptions](#usecommentsoptions) — 3 items - [UseCommentsResult](#usecommentsresult) — 12 items - [UseContactFormOptions](#usecontactformoptions) — 2 items - [UseContactFormResult](#usecontactformresult) — 4 items - [UseContactFormSubmitOptions](#usecontactformsubmitoptions) — 3 items - [UseContactFormSubmitResult](#usecontactformsubmitresult) — 7 items - [UseFeaturedPostsOptions](#usefeaturedpostsoptions) — 1 items - [UseFeaturedPostsResult](#usefeaturedpostsresult) — 4 items - [UseHelpArticleOptions](#usehelparticleoptions) — 3 items - [UseHelpArticleResult](#usehelparticleresult) — 4 items - [UseHelpCenterOptions](#usehelpcenteroptions) — 1 items - [UseHelpCenterResult](#usehelpcenterresult) — 5 items - [UseHelpFlowOptions](#usehelpflowoptions) — 2 items - [UseHelpFlowResult](#usehelpflowresult) — 4 items - [UseReleaseOptions](#usereleaseoptions) — 2 items - [UseReleaseResult](#usereleaseresult) — 4 items - [UseReleasesOptions](#usereleasesoptions) — 2 items - [UseReleasesResult](#usereleasesresult) — 4 items - [UseRoadmapOptions](#useroadmapoptions) — 2 items - [UseRoadmapResult](#useroadmapresult) — 6 items - [UseStatusOptions](#usestatusoptions) — 3 items - [UseStatusResult](#usestatusresult) — 5 items - [UseSupportOptions](#usesupportoptions) — 2 items - [UseSupportResult](#usesupportresult) — 11 items - [UseSurveyOptions](#usesurveyoptions) — 1 items - [UseSurveyResult](#usesurveyresult) — 5 items - [UseSurveySubmitOptions](#usesurveysubmitoptions) — 2 items - [UseSurveySubmitResult](#usesurveysubmitresult) — 5 items - [UseVoteOptions](#usevoteoptions) — 6 items - [UseVoteResult](#usevoteresult) — 8 items - [UseWaitlistOptions](#usewaitlistoptions) — 6 items - [UseWaitlistResult](#usewaitlistresult) — 14 items - [UseWishesOptions](#usewishesoptions) — 3 items - [UseWishesResult](#usewishesresult) — 9 items - [UseWishOptions](#usewishoptions) — 2 items - [UseWishResult](#usewishresult) — 4 items - [Vote](#vote) — 6 items - [VoteButtonProps](#votebuttonprops) — 10 items - [VoteCheckResponse](#votecheckresponse) — 2 items - [VoteCreateInput](#votecreateinput) — 3 items - [VoteState](#votestate) — 5 items - [WaitlistCount](#waitlistcount) — 1 items - [WaitlistEntry](#waitlistentry) — 5 items - [WaitlistJoinInput](#waitlistjoininput) — 3 items - [WaitlistStatus](#waitliststatus) — 3 items - [WhatsNewPopupProps](#whatsnewpopupprops) — 12 items - [Wish](#wish) — 20 items - [WishAuthor](#wishauthor) — 3 items - [WishCardProps](#wishcardprops) — 14 items - [WishDetailProps](#wishdetailprops) — 6 items - [WishesResponse](#wishesresponse) — 5 items - [WishFilters](#wishfilters) — 9 items - [WishListProps](#wishlistprops) — 14 items - [Types](#types) — 30 items - [Components](#components) — 27 items - [Hooks](#hooks) — 22 items - [Utilities](#utilities) — 3 items ## Classes ### `AppgramClient` class **Methods** - `constructor` → `AppgramClient` - `config: AppgramClientConfig` - `addSupportMessage` → `Promise>` Add a message to a support ticket - `ticketId: string` - `token: string` - `content: string` - `checkVote` → `Promise>` Check if a fingerprint has voted on a wish - `wishId: string` - `fingerprint: string` - `checkWaitlistStatus` → `Promise>` Check if an email is on the waitlist - `email: string` - `createComment` → `Promise>` Create a comment - `data: object` - `createVote` → `Promise>` Create a vote - `wishId: string` - `fingerprint: string` - `voterEmail: string` (optional) - `createWish` → `Promise>` Create a new wish (feature request) - `data: object` - `deleteVote` → `Promise>` Delete a vote - `voteId: string` - `getBlogCategories` → `Promise>` Get blog categories - `getBlogPost` → `Promise>` Get a single blog post by slug - `slug: string` - `getBlogPosts` → `Promise>` Get public blog posts with optional filters - `filters: BlogFilters` (optional) - `getBlogPostsByCategory` → `Promise>` Get blog posts by category slug - `categorySlug: string` - `options: object` (optional) - `getBlogPostsByTag` → `Promise>` Get blog posts by tag - `tag: string` - `options: object` (optional) - `getComments` → `Promise>` Get comments for a wish - `wishId: string` - `options: object` (optional) - `getContactForm` → `Promise>` Get a contact form by ID via portal endpoint - `formId: string` - `getFeaturedBlogPosts` → `Promise>` Get featured blog posts - `getHelpArticle` → `Promise>` Get a help article by slug - `slug: string` - `flowId: string` - `getHelpCollection` → `Promise>` Get help center collection for the project - `getHelpFlow` → `Promise>` Get a help flow by slug - `slug: string` - `getPageData` → `Promise>` Get all public page data in one request - `getPublicForm` → `Promise>` Get a public contact form by ID (legacy endpoint) - `formId: string` - `getPublicStatusOverview` → `Promise>` Get public status page overview (services, active updates, overall status) - `slug: string` (optional) - `getPublicSurvey` → `Promise>` Get a public survey by slug - `slug: string` - `getPublicSurveyCustomization` → `Promise>>` Get survey customization settings - `surveyId: string` - `getPublicWishes` → `Promise>` Get public wishes for the project - `filters: WishFilters` (optional) - `getRelatedBlogPosts` → `Promise>` Get related blog posts for a given post - `slug: string` - `getRelease` → `Promise>` Get a single release by slug - `releaseSlug: string` - `getReleaseFeatures` → `Promise>` Get features for a release (public endpoint) - `releaseSlug: string` - `getReleases` → `Promise>` Get public releases for the project - `options: object` (optional) - `getRoadmapData` → `Promise>` Get roadmap data for the project - `getSupportTicket` → `Promise>` Get a specific support ticket using magic link token - `ticketId: string` - `token: string` - `getWaitlistCount` → `Promise>` Get the total count of users on the waitlist - `getWish` → `Promise>` Get a single wish by ID - `wishId: string` - `joinWaitlist` → `Promise>` Join the waitlist - `data: WaitlistJoinInput` - `leaveWaitlist` → `Promise>` Leave the waitlist - `email: string` - `searchBlogPosts` → `Promise>` Search blog posts - `query: string` - `options: object` (optional) - `sendSupportMagicLink` → `Promise>` Request a magic link to access support tickets - `userEmail: string` - `submitContactForm` → `Promise>` Submit a contact form - `projectId: string` - `formId: string` - `data: ContactFormSubmitInput` - `submitSupportRequest` → `Promise>` Submit a support request - `data: SupportRequestInput` - `submitSurveyResponse` → `Promise>` Submit a survey response - `surveyId: string` - `data: SurveySubmitInput` - `trackContactFormView` → `Promise>` Track a contact form view (call when form is displayed) - `formId: string` - `uploadFile` → `Promise>` Upload a file via public portal (no auth required) - `file: File` - `verifySupportToken` → `Promise>` Verify magic link token and get user's support tickets - `token: string` ```tsx class AppgramClient ``` ## AppgramClient ### `AppgramClient.addSupportMessage` method Add a message to a support ticket **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticketId` | `string` | ✓ | | | `token` | `string` | ✓ | | | `content` | `string` | ✓ | | **Returns** — `Promise>` ```tsx addSupportMessage(ticketId: string, token: string, content: string): Promise> ``` --- ### `AppgramClient.checkVote` method Check if a fingerprint has voted on a wish **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | | `fingerprint` | `string` | ✓ | | **Returns** — `Promise>` ```tsx checkVote(wishId: string, fingerprint: string): Promise> ``` --- ### `AppgramClient.checkWaitlistStatus` method Check if an email is on the waitlist **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | ✓ | | **Returns** — `Promise>` ```tsx checkWaitlistStatus(email: string): Promise> ``` --- ### `AppgramClient.constructor` constructor **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `config` | `AppgramClientConfig` | ✓ | | **Returns** — `AppgramClient` ```tsx constructor(config: AppgramClientConfig): AppgramClient ``` --- ### `AppgramClient.createComment` method Create a comment **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `object` | ✓ | | **Returns** — `Promise>` ```tsx createComment(data: object): Promise> ``` --- ### `AppgramClient.createVote` method Create a vote **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | | `fingerprint` | `string` | ✓ | | | `voterEmail` | `string` | | | **Returns** — `Promise>` ```tsx createVote(wishId: string, fingerprint: string, voterEmail?: string): Promise> ``` --- ### `AppgramClient.createWish` method Create a new wish (feature request) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `object` | ✓ | | **Returns** — `Promise>` ```tsx createWish(data: object): Promise> ``` --- ### `AppgramClient.deleteVote` method Delete a vote **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `voteId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx deleteVote(voteId: string): Promise> ``` --- ### `AppgramClient.getBlogCategories` method Get blog categories **Returns** — `Promise>` ```tsx getBlogCategories(): Promise> ``` --- ### `AppgramClient.getBlogPost` method Get a single blog post by slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getBlogPost(slug: string): Promise> ``` --- ### `AppgramClient.getBlogPosts` method Get public blog posts with optional filters **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `filters` | `BlogFilters` | | | **Returns** — `Promise>` ```tsx getBlogPosts(filters?: BlogFilters): Promise> ``` --- ### `AppgramClient.getBlogPostsByCategory` method Get blog posts by category slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `categorySlug` | `string` | ✓ | | | `options` | `object` | | | **Returns** — `Promise>` ```tsx getBlogPostsByCategory(categorySlug: string, options?: object): Promise> ``` --- ### `AppgramClient.getBlogPostsByTag` method Get blog posts by tag **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `tag` | `string` | ✓ | | | `options` | `object` | | | **Returns** — `Promise>` ```tsx getBlogPostsByTag(tag: string, options?: object): Promise> ``` --- ### `AppgramClient.getComments` method Get comments for a wish **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | | `options` | `object` | | | **Returns** — `Promise>` ```tsx getComments(wishId: string, options?: object): Promise> ``` --- ### `AppgramClient.getContactForm` method Get a contact form by ID via portal endpoint **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `formId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getContactForm(formId: string): Promise> ``` --- ### `AppgramClient.getFeaturedBlogPosts` method Get featured blog posts **Returns** — `Promise>` ```tsx getFeaturedBlogPosts(): Promise> ``` --- ### `AppgramClient.getHelpArticle` method Get a help article by slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | | `flowId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getHelpArticle(slug: string, flowId: string): Promise> ``` --- ### `AppgramClient.getHelpCollection` method Get help center collection for the project **Returns** — `Promise>` ```tsx getHelpCollection(): Promise> ``` --- ### `AppgramClient.getHelpFlow` method Get a help flow by slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getHelpFlow(slug: string): Promise> ``` --- ### `AppgramClient.getPageData` method Get all public page data in one request **Returns** — `Promise>` ```tsx getPageData(): Promise> ``` --- ### `AppgramClient.getPublicForm` method Get a public contact form by ID (legacy endpoint) > **Deprecated**: Use getContactForm instead **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `formId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getPublicForm(formId: string): Promise> ``` --- ### `AppgramClient.getPublicStatusOverview` method Get public status page overview (services, active updates, overall status) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | | | **Returns** — `Promise>` ```tsx getPublicStatusOverview(slug?: string): Promise> ``` --- ### `AppgramClient.getPublicSurvey` method Get a public survey by slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getPublicSurvey(slug: string): Promise> ``` --- ### `AppgramClient.getPublicSurveyCustomization` method Get survey customization settings **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `surveyId` | `string` | ✓ | | **Returns** — `Promise>>` ```tsx getPublicSurveyCustomization(surveyId: string): Promise>> ``` --- ### `AppgramClient.getPublicWishes` method Get public wishes for the project **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `filters` | `WishFilters` | | | **Returns** — `Promise>` ```tsx getPublicWishes(filters?: WishFilters): Promise> ``` --- ### `AppgramClient.getRelatedBlogPosts` method Get related blog posts for a given post **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getRelatedBlogPosts(slug: string): Promise> ``` --- ### `AppgramClient.getRelease` method Get a single release by slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `releaseSlug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getRelease(releaseSlug: string): Promise> ``` --- ### `AppgramClient.getReleaseFeatures` method Get features for a release (public endpoint) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `releaseSlug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getReleaseFeatures(releaseSlug: string): Promise> ``` --- ### `AppgramClient.getReleases` method Get public releases for the project **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `object` | | | **Returns** — `Promise>` ```tsx getReleases(options?: object): Promise> ``` --- ### `AppgramClient.getRoadmapData` method Get roadmap data for the project **Returns** — `Promise>` ```tsx getRoadmapData(): Promise> ``` --- ### `AppgramClient.getSupportTicket` method Get a specific support ticket using magic link token **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticketId` | `string` | ✓ | | | `token` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getSupportTicket(ticketId: string, token: string): Promise> ``` --- ### `AppgramClient.getWaitlistCount` method Get the total count of users on the waitlist **Returns** — `Promise>` ```tsx getWaitlistCount(): Promise> ``` --- ### `AppgramClient.getWish` method Get a single wish by ID **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getWish(wishId: string): Promise> ``` --- ### `AppgramClient.joinWaitlist` method Join the waitlist **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `WaitlistJoinInput` | ✓ | | **Returns** — `Promise>` ```tsx joinWaitlist(data: WaitlistJoinInput): Promise> ``` --- ### `AppgramClient.leaveWaitlist` method Leave the waitlist **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | ✓ | | **Returns** — `Promise>` ```tsx leaveWaitlist(email: string): Promise> ``` --- ### `AppgramClient.searchBlogPosts` method Search blog posts **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `query` | `string` | ✓ | | | `options` | `object` | | | **Returns** — `Promise>` ```tsx searchBlogPosts(query: string, options?: object): Promise> ``` --- ### `AppgramClient.sendSupportMagicLink` method Request a magic link to access support tickets **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `userEmail` | `string` | ✓ | | **Returns** — `Promise>` ```tsx sendSupportMagicLink(userEmail: string): Promise> ``` --- ### `AppgramClient.submitContactForm` method Submit a contact form **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `projectId` | `string` | ✓ | | | `formId` | `string` | ✓ | | | `data` | `ContactFormSubmitInput` | ✓ | | **Returns** — `Promise>` ```tsx submitContactForm(projectId: string, formId: string, data: ContactFormSubmitInput): Promise> ``` --- ### `AppgramClient.submitSupportRequest` method Submit a support request **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `SupportRequestInput` | ✓ | | **Returns** — `Promise>` ```tsx submitSupportRequest(data: SupportRequestInput): Promise> ``` --- ### `AppgramClient.submitSurveyResponse` method Submit a survey response **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `surveyId` | `string` | ✓ | | | `data` | `SurveySubmitInput` | ✓ | | **Returns** — `Promise>` ```tsx submitSurveyResponse(surveyId: string, data: SurveySubmitInput): Promise> ``` --- ### `AppgramClient.trackContactFormView` method Track a contact form view (call when form is displayed) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `formId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx trackContactFormView(formId: string): Promise> ``` --- ### `AppgramClient.uploadFile` method Upload a file via public portal (no auth required) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `file` | `File` | ✓ | | **Returns** — `Promise>` ```tsx uploadFile(file: File): Promise> ``` --- ### `AppgramClient.verifySupportToken` method Verify magic link token and get user's support tickets **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `token` | `string` | ✓ | | **Returns** — `Promise>` ```tsx verifySupportToken(token: string): Promise> ``` ## Interfaces ### `ApiResponse` interface API Response wrapper **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `T` | | | | | `error` | `object` | | | | | `success` | `boolean` | ✓ | | | ```tsx interface ApiResponse ``` --- ### `AppgramClientConfig` interface AppgramClient API client for Appgram portal/public endpoints. Adapted from the main app's api.ts for use in the SDK. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `baseUrl` | `string` | ✓ | | | | `orgSlug` | `string` | | | | | `projectId` | `string` | ✓ | | | | `projectSlug` | `string` | | | | ```tsx interface AppgramClientConfig ``` --- ### `AppgramConfig` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `apiUrl` | `string` | | Optional API URL override (defaults to https://api.appgram.dev) | | | `enableFingerprinting` | `boolean` | | Enable browser fingerprinting for anonymous voting | | | `orgSlug` | `string` | | Organization slug (used for public URLs) | | | `projectId` | `string` | ✓ | Your Appgram project ID | | | `projectSlug` | `string` | | Project slug (used for public URLs) | | | `theme` | `AppgramTheme` | | Theme customization | | ```tsx interface AppgramConfig ``` --- ### `AppgramContextValue` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `client` | `AppgramClient` | ✓ | The API client instance | | | `config` | `Required> & AppgramConfig` | ✓ | The Appgram configuration | | | `fingerprint` | `string \| null` | ✓ | Browser fingerprint for anonymous voting | | | `theme` | `AppgramTheme` | ✓ | Theme values | | ```tsx interface AppgramContextValue ``` --- ### `AppgramProviderProps` interface AppgramProvider Root provider component that manages configuration, API client, and theming. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `children` | `ReactNode` | ✓ | Child components | | | `config` | `AppgramConfig` | ✓ | Appgram configuration | | ```tsx interface AppgramProviderProps ``` --- ### `AppgramTheme` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `borderRadius` | `number` | | | | | `colors` | `Partial` | | Light mode colors (used when mode is 'light' or system is light) | | | `darkColors` | `Partial` | | Dark mode colors (used when mode is 'dark' or system is dark) If not provided, will auto-generate from light colors | | | `mode` | `ThemeMode` | | Theme mode - 'light', 'dark', or 'system' (default: 'system') | | | `typography` | `Partial` | | | | ```tsx interface AppgramTheme ``` --- ### `BlogCardProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Additional CSS classes | | | `onClick` | `(post: BlogPost) => void` | | Called when the card is clicked | | | `post` | `BlogPost` | ✓ | The blog post to display | | | `variant` | `"default" \| "compact" \| "featured"` | | Card variant | | ```tsx interface BlogCardProps ``` --- ### `BlogCategory` interface Blog/Resources Types **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `color` | `string \| null` | | | | | `description` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `name` | `string` | ✓ | | | | `post_count` | `number` | | | | | `slug` | `string` | ✓ | | | ```tsx interface BlogCategory ``` --- ### `BlogFilters` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `category_slug` | `string` | | | | | `is_featured` | `boolean` | | | | | `page` | `number` | | | | | `per_page` | `number` | | | | | `search` | `string` | | | | | `tag` | `string` | | | | ```tsx interface BlogFilters ``` --- ### `BlogListProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `categories` | `BlogCategory[]` | | List of categories for filtering | | | `className` | `string` | | Additional CSS classes | | | `isLoading` | `boolean` | | Loading state | | | `onCategoryChange` | `(category: string \| null) => void` | | Called when a category is selected | | | `onPageChange` | `(page: number) => void` | | Called when page changes | | | `onPostClick` | `(post: BlogPost) => void` | | Called when a post is clicked | | | `onSearchChange` | `(query: string) => void` | | Called when search query changes | | | `page` | `number` | | Current page | | | `posts` | `BlogPost[]` | ✓ | List of blog posts to display | | | `renderEmpty` | `() => ReactNode` | | Custom empty state component | | | `renderLoading` | `() => ReactNode` | | Custom loading component | | | `searchQuery` | `string` | | Search query | | | `selectedCategory` | `string \| null` | | Currently selected category | | | `showCategories` | `boolean` | | Show category filter | | | `showSearch` | `boolean` | | Show search input | | | `totalPages` | `number` | | Total pages | | | `variant` | `"grid" \| "list"` | | Grid variant | | ```tsx interface BlogListProps ``` --- ### `BlogPost` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `author_name` | `string \| null` | | | | | `category` | `object` | | | | | `category_id` | `string \| null` | | | | | `content` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `excerpt` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `is_featured` | `boolean` | ✓ | | | | `meta_description` | `string \| null` | | | | | `og_image_url` | `string \| null` | | | | | `project_id` | `string` | ✓ | | | | `published_at` | `string` | ✓ | | | | `slug` | `string` | ✓ | | | | `tags` | `string[]` | ✓ | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `view_count` | `number` | ✓ | | | ```tsx interface BlogPost ``` --- ### `BlogPostDetailProps` interface BlogPostDetail Component Displays a single blog post's full content with styling. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Additional CSS classes | | | `onBack` | `() => void` | | Back button click handler | | | `onRelatedPostClick` | `(post: BlogPost) => void` | | Called when a related post is clicked | | | `post` | `BlogPost` | | The blog post to display (either pass post object or postSlug) | | | `postSlug` | `string` | | Post slug to fetch (alternative to passing post object) | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `showBackButton` | `boolean` | | Show back button | | | `showRelatedPosts` | `boolean` | | Show related posts section | | ```tsx interface BlogPostDetailProps ``` --- ### `BlogPostsResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `BlogPost[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface BlogPostsResponse ``` --- ### `BlogProps` interface Blog Component Full-featured blog component with list and detail views. Manages internal state for navigation between posts. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Additional CSS classes | | | `initialCategory` | `string` | | Initial category filter | | | `initialSearch` | `string` | | Initial search query | | | `onBackToList` | `() => void` | | Called when navigating back to list | | | `onPostView` | `(post: BlogPost) => void` | | Called when a post is viewed | | | `postsPerPage` | `number` | | Posts per page | | | `renderEmpty` | `() => ReactNode` | | Custom render function for empty state | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `showCategories` | `boolean` | | Show category filter | | | `showRelatedPosts` | `boolean` | | Show related posts on detail view | | | `showSearch` | `boolean` | | Show search input | | | `variant` | `"grid" \| "list"` | | Grid variant for list view | | ```tsx interface BlogProps ``` --- ### `Category` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `color` | `string` | ✓ | | | | `description` | `string \| null` | | | | | `icon` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `name` | `string` | ✓ | | | | `slug` | `string` | ✓ | | | | `wish_count` | `number` | | | | ```tsx interface Category ``` --- ### `ChatSource` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `article_id` | `string` | ✓ | | | | `flow_id` | `string` | | | | | `flow_slug` | `string` | | | | | `similarity` | `number` | ✓ | | | | `slug` | `string` | ✓ | | | | `title` | `string` | ✓ | | | | `type` | `"help_article" \| "blog_post"` | | Source type - determines routing behavior | | ```tsx interface ChatSource ``` --- ### `ChatWidgetProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `accentColor` | `string` | | Accent color for the widget (used for links, send button, avatar accents) | | | `agentName` | `string` | | Name of the chat agent | | | `apiUrl` | `string` | | API URL for the help center | | | `className` | `string` | | Custom class name | | | `colors` | `ChatWidgetColors` | | Color customization options | | | `fontSize` | `string` | | Base font size for the widget Can be 'sm' (12px), 'base' (14px), 'lg' (16px), or a custom value like '13px' or '0.875rem' | | | `greeting` | `string` | | Initial greeting message | | | `logoUrl` | `string` | | Logo URL for the agent avatar | | | `onArticleClick` | `(slug: string, source: ChatSource) => void` | | Callback when an article source is clicked. Provides the article slug and full source data for flexible routing. | | | `onSupportClick` | `() => void` | | Callback when support button is clicked | | | `options` | `ChatOption[]` | | Quick reply options shown initially | | | `projectId` | `string` | ✓ | Project ID for API calls | | | `subtitle` | `string` | | Subtitle shown below greeting | | ```tsx interface ChatWidgetProps ``` --- ### `Comment` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `author_avatar_url` | `string \| null` | | | | | `author_name` | `string` | ✓ | | | | `author_type` | `"user" \| "team_member" \| "anonymous"` | ✓ | | | | `author_user_id` | `string \| null` | | | | | `content` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_deleted` | `boolean` | ✓ | | | | `is_official` | `boolean` | ✓ | | | | `parent_id` | `string \| null` | | | | | `replies` | `Comment[]` | | | | | `reply_count` | `number` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `wish_id` | `string` | ✓ | | | ```tsx interface Comment ``` --- ### `CommentAuthor` interface Comment Types **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `avatar_url` | `string \| null` | | | | | `name` | `string` | ✓ | | | ```tsx interface CommentAuthor ``` --- ### `CommentCreateInput` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `author_email` | `string` | | | | | `author_name` | `string` | | | | | `content` | `string` | ✓ | | | | `parent_id` | `string` | | | | | `wish_id` | `string` | ✓ | | | ```tsx interface CommentCreateInput ``` --- ### `CommentsResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `Comment[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface CommentsResponse ``` --- ### `ContactForm` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `createdAt` | `string` | | | | | `description` | `string` | | | | | `emailRecipient` | `string` | ✓ | | | | `emailSubject` | `string` | ✓ | | | | `enabled` | `boolean` | ✓ | | | | `fields` | `ContactFormField[]` | ✓ | | | | `id` | `string` | ✓ | | | | `integration` | `ContactFormIntegration` | | Integration settings for form submission | | | `name` | `string` | ✓ | | | | `submitButtonText` | `string` | ✓ | | | | `successMessage` | `string` | ✓ | | | | `updatedAt` | `string` | | | | ```tsx interface ContactForm ``` --- ### `ContactFormField` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `id` | `string` | ✓ | | | | `label` | `string` | ✓ | | | | `options` | `string[]` | | | | | `placeholder` | `string` | | | | | `required` | `boolean` | ✓ | | | | `type` | `ContactFormFieldType` | ✓ | | | | `validation` | `ContactFormFieldValidation` | | | | ```tsx interface ContactFormField ``` --- ### `ContactFormFieldValidation` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `maxLength` | `number` | | | | | `minLength` | `number` | | | | | `pattern` | `string` | | | | ```tsx interface ContactFormFieldValidation ``` --- ### `ContactFormRendererProps` interface ContactFormRenderer Component Renders a contact form based on its field configuration. Supports: text, email, textarea, select, radio, checkbox fields with validation. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `description` | `string` | | Optional description override | | | `formId` | `string` | ✓ | Form ID to load | | | `onError` | `(error: string) => void` | | Called on submission error | | | `onSuccess` | `() => void` | | Called when the form is submitted successfully | | | `projectId` | `string` | ✓ | Project ID for submission | | | `title` | `string` | | Optional title override | | ```tsx interface ContactFormRendererProps ``` --- ### `ContactFormSubmission` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `Record` | ✓ | | | | `form_id` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `project_id` | `string` | ✓ | | | | `submitted_at` | `string` | ✓ | | | ```tsx interface ContactFormSubmission ``` --- ### `ContactFormSubmitInput` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `Record` | ✓ | | | | `metadata` | `Record` | | | | ```tsx interface ContactFormSubmitInput ``` --- ### `CustomColors` interface Customization & Theme Types **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `accent` | `string` | ✓ | | | | `background` | `string` | ✓ | | | | `border` | `string` | | | | | `cardBackground` | `string` | | | | | `cardText` | `string` | | | | | `info` | `string` | | | | | `infoSubtle` | `string` | | | | | `muted` | `string` | | | | | `mutedForeground` | `string` | | | | | `navbarBackground` | `string` | | | | | `navbarText` | `string` | | | | | `primary` | `string` | ✓ | | | | `secondary` | `string` | ✓ | | | | `success` | `string` | | | | | `successSubtle` | `string` | | | | | `text` | `string` | ✓ | | | | `warning` | `string` | | | | | `warningSubtle` | `string` | | | | ```tsx interface CustomColors ``` --- ### `CustomTypography` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `fontFamily` | `string` | | | | | `fontSizes` | `object` | | | | ```tsx interface CustomTypography ``` --- ### `HelpArticle` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `article_type` | `ArticleType` | ✓ | | | | `content` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `excerpt` | `string \| null` | | | | | `flow_id` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_published` | `boolean` | ✓ | | | | `published_at` | `string \| null` | | | | | `slug` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface HelpArticle ``` --- ### `HelpArticleDetailProps` interface HelpArticleDetail Component Displays a single help article's content with glassmorphism styling. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `article` | `HelpArticle` | | The article to display (either pass article object or articleSlug + flowId) | | | `articleSlug` | `string` | | Article slug to fetch (alternative to passing article object) | | | `className` | `string` | | Custom class name | | | `flow` | `HelpFlow` | | The parent flow (for context) | | | `flowId` | `string` | | Flow ID for fetching article (required if using articleSlug) | | | `onBack` | `() => void` | | Back button click handler | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `showBackButton` | `boolean` | | Show back button | | | `showMetadata` | `boolean` | | Show article metadata (date, type) | | ```tsx interface HelpArticleDetailProps ``` --- ### `HelpArticlesProps` interface HelpArticles Component Displays articles within a selected help flow with glassmorphism styling. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `flow` | `HelpFlow` | | The flow to display articles for (either pass flow object or flowSlug) | | | `flowSlug` | `string` | | Flow slug to fetch (alternative to passing flow object) | | | `onArticleClick` | `(article: HelpArticle) => void` | | Click handler for articles | | | `onBack` | `() => void` | | Back button click handler | | | `renderEmpty` | `() => ReactNode` | | Custom render function for empty state | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `showBackButton` | `boolean` | | Show back button | | | `showSearch` | `boolean` | | Show search input | | ```tsx interface HelpArticlesProps ``` --- ### `HelpArticlesResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `HelpArticle[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface HelpArticlesResponse ``` --- ### `HelpCenterData` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `collection` | `HelpCollection \| null` | ✓ | | | | `flows` | `HelpFlow[]` | ✓ | | | ```tsx interface HelpCenterData ``` --- ### `HelpCenterProps` interface HelpCenter Component Complete help center with navigation between collections, articles, and article detail. Handles all state management internally for a seamless user experience. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `contactSupportUrl` | `string` | | Contact support URL | | | `description` | `string` | | Page description | | | `featuredArticles` | `HelpArticle[]` | | Featured articles to display on the main view | | | `heading` | `string` | | Page heading | | | `headingAlignment` | `"left" \| "center" \| "right"` | | Heading alignment | | | `onArticleClick` | `(article: HelpArticle, flow: HelpFlow \| null) => void` | | External callback when article is clicked (for custom routing) If not provided, internal navigation is used | | | `onFlowClick` | `(flow: HelpFlow) => void` | | External callback when flow is clicked (for custom routing) If not provided, internal navigation is used | | | `onLiveChatClick` | `() => void` | | Live chat handler | | | `quickActions` | `QuickAction[]` | | Quick action buttons to display | | | `renderEmpty` | `() => ReactNode` | | Custom render function for empty state | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `showFooter` | `boolean` | | Show contact support footer | | | `showSearch` | `boolean` | | Show search input | | | `useExternalRouting` | `boolean` | | Use external routing instead of internal state management Set to true if you want to handle navigation yourself via onFlowClick/onArticleClick | | | `variant` | `"grid" \| "list"` | | Layout variant for collections | | ```tsx interface HelpCenterProps ``` **Example** ```tsx import { HelpCenter } from '@appgram/react' router.push('/support') }, { label: 'Live Chat', onClick: () => openChat() }, ]} /> // Grid variant with featured articles window.Intercom?.('show')} /> ``` --- ### `HelpCollection` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | | | | | `flows` | `HelpFlow[]` | | | | | `id` | `string` | ✓ | | | | `is_live` | `boolean` | ✓ | | | | `name` | `string` | ✓ | | | | `project_id` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `version` | `string` | ✓ | | | ```tsx interface HelpCollection ``` --- ### `HelpCollectionsProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `contactSupportUrl` | `string` | | Contact support URL | | | `description` | `string` | | Page description | | | `featuredArticles` | `HelpArticle[]` | | Featured articles to display | | | `heading` | `string` | | Page heading | | | `headingAlignment` | `"left" \| "center" \| "right"` | | Heading alignment | | | `onArticleClick` | `(article: HelpArticle, flow: HelpFlow) => void` | | Click handler for articles | | | `onFlowClick` | `(flow: HelpFlow) => void` | | Click handler for flows | | | `onLiveChatClick` | `() => void` | | Live chat handler | | | `quickActions` | `QuickAction[]` | | Quick action buttons to display | | | `renderEmpty` | `() => ReactNode` | | Custom render function for empty state | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderFlow` | `(flow: HelpFlow) => ReactNode` | | Custom render function for flows | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `showFooter` | `boolean` | | Show contact support footer | | | `showSearch` | `boolean` | | Show search input | | | `variant` | `"grid" \| "list"` | | Layout variant | | ```tsx interface HelpCollectionsProps ``` --- ### `HelpFlow` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `articles` | `HelpArticle[]` | | | | | `collection_id` | `string` | ✓ | | | | `color` | `string \| null` | | | | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | | | | | `display_type` | `FlowDisplayType` | ✓ | | | | `icon` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `name` | `string` | ✓ | | | | `slug` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface HelpFlow ``` --- ### `IncidentUpdate` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `message` | `string` | ✓ | | | | `status` | `IncidentStatus` | ✓ | | | ```tsx interface IncidentUpdate ``` --- ### `LayoutConfig` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `borderRadius` | `number` | | | | | `cardStyle` | `object` | | | | ```tsx interface LayoutConfig ``` --- ### `PaginatedResponse` interface Paginated response wrapper **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `T[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface PaginatedResponse ``` --- ### `QuickAction` interface HelpCollections Component Modern help center with glassmorphism style, quick actions, and grid layout. Adapted from HelpCenterGlass variant. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `icon` | `any` | | | | | `label` | `string` | ✓ | | | | `onClick` | `() => void` | ✓ | | | ```tsx interface QuickAction ``` --- ### `Release` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `author_user_id` | `string` | ✓ | | | | `content` | `string` | ✓ | | | | `cover_image_url` | `string \| null` | | | | | `created_at` | `string` | ✓ | | | | `excerpt` | `string \| null` | | | | | `features` | `ReleaseFeature[]` | | | | | `id` | `string` | ✓ | | | | `is_published` | `boolean` | ✓ | | | | `items` | `ReleaseItem[]` | | | | | `labels` | `string[]` | ✓ | | | | `project_id` | `string` | ✓ | | | | `published_at` | `string \| null` | | | | | `slug` | `string` | ✓ | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `version` | `string \| null` | | | | | `wish_ids` | `string[]` | ✓ | | | ```tsx interface Release ``` --- ### `ReleaseCardProps` interface ReleaseCard Component A card component for displaying a single release/changelog entry. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `onClick` | `() => void` | | Click handler | | | `release` | `Release` | ✓ | The release data | | | `showCoverImage` | `boolean` | | Show cover image | | | `showDate` | `boolean` | | Show date | | | `showLabels` | `boolean` | | Show labels | | ```tsx interface ReleaseCardProps ``` --- ### `ReleaseDetailProps` interface ReleaseDetail Component Displays a single release's full content with glassmorphism styling. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `onBack` | `() => void` | | Back button click handler | | | `release` | `Release` | | The release to display (either pass release object or releaseSlug) | | | `releaseSlug` | `string` | | Release slug to fetch (alternative to passing release object) | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `showBackButton` | `boolean` | | Show back button | | ```tsx interface ReleaseDetailProps ``` --- ### `ReleaseFeature` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `description` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `image_url` | `string \| null` | | | | | `release_id` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `title` | `string` | ✓ | | | ```tsx interface ReleaseFeature ``` --- ### `ReleaseListProps` interface ReleaseList Component Modern changelog with animations. Adapted from ReleasesModern variant. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `description` | `string` | | Page description | | | `heading` | `string` | | Page heading | | | `headingAlignment` | `"left" \| "center" \| "right"` | | Heading alignment | | | `limit` | `number` | | Maximum number of releases to show | | | `onReleaseClick` | `(release: Release) => void` | | Click handler for releases | | | `renderEmpty` | `() => ReactNode` | | Custom render function for empty state | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `renderRelease` | `(release: Release, index: number) => ReactNode` | | Custom render function for releases | | | `variant` | `"compact" \| "timeline" \| "cards"` | | Layout variant | | ```tsx interface ReleaseListProps ``` --- ### `ReleasesProps` interface Releases Component Complete releases/changelog with navigation between list and detail views. Handles all state management internally for a seamless user experience. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `description` | `string` | | Page description | | | `heading` | `string` | | Page heading | | | `headingAlignment` | `"left" \| "center" \| "right"` | | Heading alignment | | | `limit` | `number` | | Maximum number of releases to show | | | `onReleaseClick` | `(release: Release) => void` | | External callback when release is clicked (for custom routing) If not provided, internal navigation is used | | | `renderEmpty` | `() => ReactNode` | | Custom render function for empty state | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `useExternalRouting` | `boolean` | | Use external routing instead of internal state management Set to true if you want to handle navigation yourself via onReleaseClick | | | `variant` | `"compact" \| "timeline" \| "cards"` | | Layout variant for list | | ```tsx interface ReleasesProps ``` **Example** ```tsx import { Releases } from '@appgram/react' // Cards variant for a grid layout router.push(`/releases/${release.id}`)} /> ``` --- ### `ReleasesResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `Release[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface ReleasesResponse ``` --- ### `Roadmap` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `columns` | `RoadmapColumn[]` | | | | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `is_default` | `boolean` | ✓ | | | | `name` | `string` | ✓ | | | | `project_id` | `string` | ✓ | | | | `show_comments` | `boolean` | ✓ | | | | `show_vote_counts` | `boolean` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `visibility` | `RoadmapVisibility` | ✓ | | | ```tsx interface Roadmap ``` --- ### `RoadmapBoardProps` interface RoadmapBoard Component Modern glassmorphism kanban board with animations for displaying product roadmap. Adapted from RoadmapModern variant. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `description` | `string` | | Page description | | | `developersNote` | `string` | | Developer's note | | | `heading` | `string` | | Page heading | | | `headingAlignment` | `"left" \| "center" \| "right"` | | Heading alignment | | | `onItemClick` | `(item: RoadmapItem) => void` | | Click handler for items | | | `refreshInterval` | `number` | | Auto-refresh interval in milliseconds | | | `renderColumn` | `(column: RoadmapColumn) => ReactNode` | | Custom render function for columns | | | `renderEmpty` | `() => ReactNode` | | Custom render function for empty state | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderItem` | `(item: RoadmapItem) => ReactNode` | | Custom render function for items | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `showComments` | `boolean` | | Show comment counts | | | `showVoteCounts` | `boolean` | | Show vote counts on items | | | `variant` | `"list" \| "timeline" \| "kanban"` | | Layout variant | | ```tsx interface RoadmapBoardProps ``` **Example** ```tsx import { RoadmapBoard } from '@appgram/react' openWishDetail(item.id)} /> // Timeline view for chronological display ``` --- ### `RoadmapColumnProps` interface RoadmapColumn Component A single column in the roadmap board. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `column` | `RoadmapColumn` | ✓ | The column data | | | `onItemClick` | `(item: RoadmapItem) => void` | | Click handler for items | | | `renderItem` | `(item: RoadmapItem) => ReactNode` | | Custom render function for items | | | `showVoteCounts` | `boolean` | | Show vote counts on items | | ```tsx interface RoadmapColumnProps ``` --- ### `RoadmapColumnType` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `color` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `items` | `RoadmapItem[]` | | | | | `name` | `string` | ✓ | | | | `roadmap_id` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `wip_limit` | `number \| null` | | | | ```tsx interface RoadmapColumnType ``` --- ### `RoadmapData` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `columns` | `RoadmapColumn[]` | ✓ | | | | `customization` | `object \| null` | | | | | `roadmap` | `Roadmap \| null` | ✓ | | | | `total_items` | `number` | ✓ | | | ```tsx interface RoadmapData ``` --- ### `RoadmapItem` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `color` | `string \| null` | | | | | `column_id` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `roadmap_id` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `target_date` | `string \| null` | | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `wish` | `Wish \| null` | | | | | `wish_id` | `string \| null` | | | | ```tsx interface RoadmapItem ``` --- ### `StatusBoardProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `description` | `string` | | Page description | | | `heading` | `string` | | Page heading | | | `headingAlignment` | `"left" \| "center" \| "right"` | | Heading alignment | | | `maxPastIncidents` | `number` | | Max number of past incidents to show | | | `onIncidentClick` | `(incident: StatusIncident) => void` | | Click handler for incidents | | | `renderComponent` | `(component: StatusComponent) => ReactNode` | | Custom render for component | | | `renderIncident` | `(incident: StatusIncident) => ReactNode` | | Custom render for incident | | | `renderOverallStatus` | `(status: OverallStatus) => ReactNode` | | Custom render for overall status | | | `showComponentDescriptions` | `boolean` | | Show component descriptions | | | `showIncidentHistory` | `boolean` | | Show incident history | | | `status` | `StatusData` | ✓ | Status data to display | | ```tsx interface StatusBoardProps ``` --- ### `StatusComponent` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `description` | `string` | | | | | `group` | `string` | | | | | `id` | `string` | ✓ | | | | `name` | `string` | ✓ | | | | `status` | `ComponentStatus` | ✓ | | | ```tsx interface StatusComponent ``` --- ### `StatusData` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `components` | `StatusComponent[]` | ✓ | | | | `incidents` | `StatusIncident[]` | ✓ | | | | `last_updated` | `string` | | | | | `overall_status` | `OverallStatus` | ✓ | | | ```tsx interface StatusData ``` --- ### `StatusIncident` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `affected_components` | `string[]` | | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `impact` | `IncidentImpact` | ✓ | | | | `resolved_at` | `string \| null` | | | | | `status` | `IncidentStatus` | ✓ | | | | `title` | `string` | ✓ | | | | `updates` | `IncidentUpdate[]` | ✓ | | | ```tsx interface StatusIncident ``` --- ### `StatusIncidentDetailProps` interface StatusIncidentDetail Component Displays a single incident's full details with timeline of updates. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `incident` | `StatusIncident` | ✓ | The incident to display | | | `onBack` | `() => void` | | Back button click handler | | | `showAffectedComponents` | `boolean` | | Show affected components | | | `showBackButton` | `boolean` | | Show back button | | ```tsx interface StatusIncidentDetailProps ``` --- ### `StatusPage` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | ✓ | | | | `id` | `string` | ✓ | | | | `is_active` | `boolean` | ✓ | | | | `name` | `string` | ✓ | | | | `project_id` | `string` | ✓ | | | | `slug` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface StatusPage ``` --- ### `StatusPageOverview` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `active_count` | `number` | ✓ | | | | `active_updates` | `StatusUpdate[]` | ✓ | | | | `current_status` | `StatusType` | ✓ | | | | `recent_updates` | `StatusUpdate[]` | ✓ | | | | `resolved_count` | `number` | ✓ | | | | `services` | `StatusPageService[]` | ✓ | | | | `services_status` | `Record` | ✓ | | | | `status_breakdown` | `Record` | ✓ | | | | `status_page` | `StatusPage` | ✓ | | | | `total_updates` | `number` | ✓ | | | ```tsx interface StatusPageOverview ``` --- ### `StatusPageService` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `color` | `string \| null` | ✓ | | | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | ✓ | | | | `group_name` | `string \| null` | ✓ | | | | `id` | `string` | ✓ | | | | `is_active` | `boolean` | ✓ | | | | `name` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `status_page_id` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface StatusPageService ``` --- ### `StatusUpdateApi` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `affected_services` | `string[]` | ✓ | | | | `created_at` | `string` | ✓ | | | | `description` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_public` | `boolean` | ✓ | | | | `resolved_at` | `string \| null` | ✓ | | | | `state` | `StatusState` | ✓ | | | | `status_page_id` | `string` | ✓ | | | | `status_type` | `StatusType` | ✓ | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface StatusUpdateApi ``` --- ### `SubmitWishFormProps` interface SubmitWishForm Component Sheet/modal for submitting new feature requests. Supports auto-detection of custom forms from project customization. Adapted from FeatureRequestForm. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `customFormId` | `string` | | Custom form ID to use instead of default form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'wish' to create feature requests. | | | `description` | `string` | | Form description | | | `onError` | `(error: string) => void` | | Callback when submission fails | | | `onOpenChange` | `(open: boolean) => void` | ✓ | Callback when open state changes | | | `onSuccess` | `(wish: Wish) => void` | | Callback when wish is successfully submitted | | | `open` | `boolean` | ✓ | Whether the form is open | | | `submitButtonText` | `string` | | Submit button text | | | `title` | `string` | | Form title | | ```tsx interface SubmitWishFormProps ``` --- ### `SupportAttachment` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `mime_type` | `string` | | | | | `name` | `string` | ✓ | | | | `size` | `number` | ✓ | | | | `url` | `string` | ✓ | | | ```tsx interface SupportAttachment ``` --- ### `SupportFormProps` interface SupportForm Component Modern support form with animations for submitting and tracking support tickets. Adapted from SupportModern variant. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `accessToken` | `string` | | Access token for viewing tickets (from magic link) | | | `checkDescription` | `string` | | Check status section description | | | `checkTitle` | `string` | | Check status section title | | | `className` | `string` | | Custom class name | | | `customFormId` | `string` | | Custom contact form ID to use instead of default support form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'support' to create tickets. | | | `description` | `string` | | Page description | | | `heading` | `string` | | Page heading | | | `headingAlignment` | `"left" \| "center" \| "right"` | | Heading alignment | | | `onCheckStatus` | `(email: string) => void` | | Callback when checking status (optional - uses magic link by default) | | | `onSubmitError` | `(error: string) => void` | | Callback when submission fails | | | `onSubmitSuccess` | `(ticket: SupportRequest) => void` | | Callback when ticket is successfully submitted | | | `onTicketClick` | `(ticket: SupportRequest) => void` | | Callback when a ticket is clicked | | | `showAttachments` | `boolean` | | Show file attachments | | | `showCategory` | `boolean` | | Show category selector | | | `showCheckStatus` | `boolean` | | Show check status tab | | | `showName` | `boolean` | | Show name field | | | `submitButtonText` | `string` | | Submit button text | | | `submitDescription` | `string` | | Submit section description | | | `submitTitle` | `string` | | Submit section title | | ```tsx interface SupportFormProps ``` **Example** ```tsx import { SupportForm } from '@appgram/react' console.log('Created:', ticket.id)} onSubmitError={(error) => toast.error(error)} /> // With status check enabled sendMagicLink(email)} /> ``` --- ### `SupportMessage` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `attachments` | `SupportAttachment[]` | | | | | `author_email` | `string \| null` | | | | | `author_name` | `string \| null` | | | | | `author_type` | `"user" \| "team_member"` | ✓ | | | | `author_user_id` | `string \| null` | | | | | `content` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_internal` | `boolean` | ✓ | | | | `support_request_id` | `string` | ✓ | | | ```tsx interface SupportMessage ``` --- ### `SupportRequest` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `assignee_id` | `string \| null` | | | | | `attachments` | `SupportAttachment[]` | | | | | `category` | `SupportRequestCategory \| null` | | | | | `created_at` | `string` | ✓ | | | | `description` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `message_count` | `number` | ✓ | | | | `messages` | `SupportMessage[]` | | | | | `priority` | `SupportRequestPriority \| null` | | | | | `project_id` | `string` | ✓ | | | | `resolved_at` | `string \| null` | | | | | `status` | `SupportRequestStatus` | ✓ | | | | `subject` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `user_email` | `string` | ✓ | | | | `user_name` | `string \| null` | | | | ```tsx interface SupportRequest ``` --- ### `SupportRequestInput` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `attachments` | `File[]` | | | | | `category` | `SupportRequestCategory` | | | | | `description` | `string` | ✓ | | | | `external_user_id` | `string` | | | | | `subject` | `string` | ✓ | | | | `user_email` | `string` | ✓ | | | | `user_name` | `string` | | | | ```tsx interface SupportRequestInput ``` --- ### `SupportRequestsResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `SupportRequest[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface SupportRequestsResponse ``` --- ### `Survey` interface Survey **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `created_at` | `string` | ✓ | | | | `description` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_active` | `boolean` | ✓ | | | | `name` | `string` | ✓ | | | | `nodes` | `SurveyNode[]` | | | | | `number_of_questions` | `number` | | | | | `number_of_responses` | `number` | | | | | `project_id` | `string` | ✓ | | | | `responses` | `SurveyResponse[]` | | | | | `slug` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface Survey ``` --- ### `SurveyAnswer` interface Survey Answer **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `answer` | `boolean` | | | | | `answer_options` | `string[]` | | | | | `answer_rating` | `number` | | | | | `answer_text` | `string` | | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `node` | `object` | | | | | `node_id` | `string` | ✓ | | | | `response_id` | `string` | ✓ | | | ```tsx interface SurveyAnswer ``` --- ### `SurveyNode` interface Survey Node Individual questions or result nodes in a survey decision tree. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `answer_no_node_id` | `string \| null` | ✓ | | | | `answer_yes_node_id` | `string \| null` | ✓ | | | | `branches` | `SurveyNodeBranch[]` | | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_required` | `boolean` | | | | | `max_rating` | `number` | | | | | `min_rating` | `number` | | | | | `next_node_id` | `string \| null` | | | | | `options` | `SurveyNodeOption[]` | | | | | `parent_id` | `string \| null` | ✓ | | | | `question` | `string` | ✓ | | | | `question_type` | `SurveyQuestionType` | ✓ | | | | `result_message` | `string \| null` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `survey_id` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface SurveyNode ``` --- ### `SurveyNodeBranch` interface Survey Node Branch Conditional branching configuration for decision tree logic. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `condition` | `object` | ✓ | | | | `next_node_id` | `string` | ✓ | | | ```tsx interface SurveyNodeBranch ``` --- ### `SurveyNodeOption` interface Survey Node Option **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `label` | `string` | ✓ | | | | `value` | `string` | ✓ | | | ```tsx interface SurveyNodeOption ``` --- ### `SurveyRendererProps` interface SurveyRenderer Component Renders survey questions step-by-step with branching logic. Supports all 6 question types: yes_no, short_answer, paragraph, multiple_choice, checkboxes, rating. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `description` | `string` | | Optional description override | | | `externalUserId` | `string` | | External user ID to attach to the response | | | `metadata` | `Record` | | Additional metadata to attach to the response | | | `onComplete` | `() => void` | | Called when the survey is submitted successfully | | | `onError` | `(error: string) => void` | | Called on submission error | | | `slug` | `string` | ✓ | Survey slug to load | | | `title` | `string` | | Optional title override | | ```tsx interface SurveyRendererProps ``` --- ### `SurveyResponse` interface Survey Response **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `answers` | `SurveyAnswer[]` | | | | | `created_at` | `string` | ✓ | | | | `external_user_id` | `string \| null` | ✓ | | | | `fingerprint` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `metadata` | `Record` | ✓ | | | | `survey_id` | `string` | ✓ | | | ```tsx interface SurveyResponse ``` --- ### `SurveySubmitInput` interface Input for submitting a survey response **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `answers` | `object[]` | ✓ | | | | `external_user_id` | `string` | | | | | `fingerprint` | `string` | ✓ | | | | `metadata` | `Record` | | | | ```tsx interface SurveySubmitInput ``` --- ### `UseBlogCategoriesOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseBlogCategoriesOptions ``` --- ### `UseBlogCategoriesResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `categories` | `BlogCategory[]` | ✓ | List of blog categories | | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseBlogCategoriesResult ``` --- ### `UseBlogPostOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `skip` | `boolean` | | Skip initial fetch | | | `slug` | `string` | ✓ | The blog post slug to fetch | | ```tsx interface UseBlogPostOptions ``` --- ### `UseBlogPostResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `post` | `BlogPost \| null` | ✓ | The blog post data | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `relatedPosts` | `BlogPost[]` | ✓ | Related posts | | ```tsx interface UseBlogPostResult ``` --- ### `UseBlogPostsOptions` interface useBlog Hooks Fetches and manages blog/resources data for custom UI implementations. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `category` | `string` | | Filter by category slug | | | `featured` | `boolean` | | Only featured posts | | | `per_page` | `number` | | Items per page | | | `refreshInterval` | `number` | | Auto-refresh interval in milliseconds | | | `search` | `string` | | Search query | | | `skip` | `boolean` | | Skip initial fetch | | | `tag` | `string` | | Filter by tag | | ```tsx interface UseBlogPostsOptions ``` **Example** ```tsx import { useBlogPosts, useBlogPost } from '@appgram/react' function BlogList() { const { posts, isLoading, error, refetch } = useBlogPosts({ per_page: 10 }) if (isLoading) return if (error) return {error} return (
    {posts.map(post => (
  • {post.title}

    {post.excerpt}

  • ))}
) } ``` --- ### `UseBlogPostsResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `page` | `number` | ✓ | Current page number | | | `posts` | `BlogPost[]` | ✓ | List of blog posts | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `setFilters` | `(filters: Partial) => void` | ✓ | Update filters | | | `setPage` | `(page: number) => void` | ✓ | Set the current page | | | `total` | `number` | ✓ | Total number of posts | | | `totalPages` | `number` | ✓ | Total number of pages | | ```tsx interface UseBlogPostsResult ``` --- ### `UseCommentsOptions` interface useComments Hook Fetches and manages comments for a wish. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `perPage` | `number` | | Number of comments per page | | | `skip` | `boolean` | | Skip initial fetch | | | `wishId` | `string` | ✓ | The wish ID to fetch comments for | | ```tsx interface UseCommentsOptions ``` --- ### `UseCommentsResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `comments` | `Comment[]` | ✓ | List of comments | | | `createComment` | `(data: Omit) => Promise` | ✓ | Create a new comment | | | `error` | `string \| null` | ✓ | Error message if any | | | `isCreating` | `boolean` | ✓ | Loading state for creating a comment | | | `isLoading` | `boolean` | ✓ | Loading state | | | `nextPage` | `() => void` | ✓ | Go to next page | | | `page` | `number` | ✓ | Current page | | | `prevPage` | `() => void` | ✓ | Go to previous page | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `setPage` | `(page: number) => void` | ✓ | Go to specific page | | | `total` | `number` | ✓ | Total number of comments | | | `totalPages` | `number` | ✓ | Total pages | | ```tsx interface UseCommentsResult ``` --- ### `UseContactFormOptions` interface useContactForm Hook Fetches contact form config and manages form submission. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `enabled` | `boolean` | | Whether to fetch the form immediately | | | `trackView` | `boolean` | | Whether to track form views for analytics | | ```tsx interface UseContactFormOptions ``` --- ### `UseContactFormResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | | | | `form` | `ContactForm \| null` | ✓ | | | | `isLoading` | `boolean` | ✓ | | | | `refetch` | `() => Promise` | ✓ | | | ```tsx interface UseContactFormResult ``` --- ### `UseContactFormSubmitOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `onError` | `(error: string) => void` | | | | | `onSuccess` | `(submission: ContactFormSubmission) => void` | | | | | `rateLimitMs` | `number` | | Rate limit cooldown in milliseconds | | ```tsx interface UseContactFormSubmitOptions ``` --- ### `UseContactFormSubmitResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `clearMessages` | `() => void` | ✓ | | | | `error` | `string \| null` | ✓ | | | | `isRateLimited` | `boolean` | ✓ | | | | `isSubmitting` | `boolean` | ✓ | | | | `submitForm` | `(projectId: string, formId: string, data: ContactFormSubmitInput) => Promise` | ✓ | | | | `successMessage` | `string \| null` | ✓ | | | | `validateField` | `(value: string, field: object) => string \| null` | ✓ | | | ```tsx interface UseContactFormSubmitResult ``` --- ### `UseFeaturedPostsOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseFeaturedPostsOptions ``` --- ### `UseFeaturedPostsResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `posts` | `BlogPost[]` | ✓ | List of featured blog posts | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseFeaturedPostsResult ``` --- ### `UseHelpArticleOptions` interface useHelpArticle Hook Fetches a single help article by slug. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `articleSlug` | `string` | ✓ | The article slug to fetch | | | `flowId` | `string` | ✓ | The flow ID the article belongs to | | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseHelpArticleOptions ``` --- ### `UseHelpArticleResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `article` | `HelpArticle \| null` | ✓ | The article data | | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseHelpArticleResult ``` --- ### `UseHelpCenterOptions` interface useHelpCenter Hook Fetches and manages help center data. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseHelpCenterOptions ``` --- ### `UseHelpCenterResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `collection` | `HelpCollection \| null` | ✓ | Help collection | | | `error` | `string \| null` | ✓ | Error message if any | | | `flows` | `HelpFlow[]` | ✓ | Help flows | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseHelpCenterResult ``` --- ### `UseHelpFlowOptions` interface useHelpFlow Hook Fetches a single help flow by slug. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `flowSlug` | `string` | ✓ | The flow slug to fetch | | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseHelpFlowOptions ``` --- ### `UseHelpFlowResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `flow` | `HelpFlow \| null` | ✓ | The flow data | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseHelpFlowResult ``` --- ### `UseReleaseOptions` interface useRelease Hook Fetches a single release by slug. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `releaseSlug` | `string` | ✓ | The release slug to fetch | | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseReleaseOptions ``` --- ### `UseReleaseResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `release` | `Release \| null` | ✓ | The release data | | ```tsx interface UseReleaseResult ``` --- ### `UseReleasesOptions` interface useReleases Hook Fetches and manages releases/changelog data for custom UI implementations. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `limit` | `number` | | Maximum number of releases to fetch | | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseReleasesOptions ``` **Example** ```tsx import { useReleases } from '@appgram/react' function ChangelogList() { const { releases, isLoading, error, refetch } = useReleases({ limit: 10 }) if (isLoading) return if (error) return {error} return (
    {releases.map(release => (
  • {release.title}

  • ))}
) } ``` --- ### `UseReleasesResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `releases` | `Release[]` | ✓ | List of releases | | ```tsx interface UseReleasesResult ``` --- ### `UseRoadmapOptions` interface useRoadmap Hook Fetches and manages roadmap data for custom UI implementations. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `refreshInterval` | `number` | | Auto-refresh interval in milliseconds (0 to disable) | | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseRoadmapOptions ``` **Example** ```tsx import { useRoadmap } from '@appgram/react' function CustomRoadmap() { const { roadmap, isLoading, error, refetch } = useRoadmap({ refreshInterval: 60000, }) if (isLoading) return if (error) return return (
{roadmap?.columns.map(col => ( ))}
) } ``` --- ### `UseRoadmapResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `columns` | `RoadmapColumn[]` | ✓ | Roadmap columns with items | | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `roadmap` | `Roadmap \| null` | ✓ | Roadmap data | | | `totalItems` | `number` | ✓ | Total number of items | | ```tsx interface UseRoadmapResult ``` --- ### `UseStatusOptions` interface useStatus Hook Fetches status page data and transforms it for the StatusBoard component. Supports auto-refresh polling. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `enabled` | `boolean` | | Whether to fetch immediately | | | `refreshInterval` | `number` | | Auto-refresh interval in milliseconds (0 to disable) | | | `slug` | `string` | | Status page slug | | ```tsx interface UseStatusOptions ``` --- ### `UseStatusResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message | | | `isLoading` | `boolean` | ✓ | Loading state | | | `overview` | `StatusPageOverview \| null` | ✓ | Raw API overview response | | | `refetch` | `() => Promise` | ✓ | Manually refresh | | | `status` | `StatusData \| null` | ✓ | Transformed status data ready for StatusBoard | | ```tsx interface UseStatusResult ``` --- ### `UseSupportOptions` interface useSupport Hook Manages support ticket submissions and access. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `onSubmitError` | `(error: string) => void` | | Callback when a submission fails | | | `onSubmitSuccess` | `(ticket: SupportRequest) => void` | | Callback when a ticket is successfully submitted | | ```tsx interface UseSupportOptions ``` --- ### `UseSupportResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `addMessage` | `(ticketId: string, token: string, content: string) => Promise` | ✓ | Add a message to a ticket | | | `clearMessages` | `() => void` | ✓ | Clear any error or success messages | | | `error` | `string \| null` | ✓ | Error message if any | | | `getTicket` | `(ticketId: string, token: string) => Promise` | ✓ | Get a specific ticket by ID with token | | | `isSendingMagicLink` | `boolean` | ✓ | Loading state for magic link request | | | `isSubmitting` | `boolean` | ✓ | Loading state for ticket submission | | | `isVerifying` | `boolean` | ✓ | Loading state for token verification | | | `requestMagicLink` | `(email: string) => Promise` | ✓ | Request a magic link to access tickets | | | `submitTicket` | `(data: SupportRequestInput) => Promise` | ✓ | Submit a new support ticket | | | `successMessage` | `string \| null` | ✓ | Success message after submitting | | | `verifyToken` | `(token: string) => Promise` | ✓ | Verify a magic link token | | ```tsx interface UseSupportResult ``` --- ### `UseSurveyOptions` interface useSurvey Hook Fetches and manages survey data and response submission. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `enabled` | `boolean` | | Whether to fetch the survey immediately | | ```tsx interface UseSurveyOptions ``` --- ### `UseSurveyResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | | | | `isLoading` | `boolean` | ✓ | | | | `nodes` | `SurveyNode[]` | ✓ | | | | `refetch` | `() => Promise` | ✓ | | | | `survey` | `Survey \| null` | ✓ | | | ```tsx interface UseSurveyResult ``` --- ### `UseSurveySubmitOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `onError` | `(error: string) => void` | | | | | `onSuccess` | `(response: SurveyResponse) => void` | | | | ```tsx interface UseSurveySubmitOptions ``` --- ### `UseSurveySubmitResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `clearMessages` | `() => void` | ✓ | | | | `error` | `string \| null` | ✓ | | | | `isSubmitting` | `boolean` | ✓ | | | | `submitResponse` | `(surveyId: string, data: SurveySubmitInput) => Promise` | ✓ | | | | `successMessage` | `string \| null` | ✓ | | | ```tsx interface UseSurveySubmitResult ``` --- ### `UseVoteOptions` interface useVote Hook Manages voting state and actions for a wish. Provides optimistic updates for instant UI feedback. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `initialHasVoted` | `boolean` | | Initial hasVoted state (optional) | | | `initialVoteCount` | `number` | | Initial vote count (optional, useful when you already have the wish data) | | | `onVoteChange` | `(hasVoted: boolean, voteCount: number) => void` | | Callback when vote state changes | | | `skipAutoCheck` | `boolean` | | Skip automatic vote check on mount to avoid rate limiting When true, vote status will be checked lazily on first interaction | | | `voterEmail` | `string` | | Voter email (optional, for identified voting) | | | `wishId` | `string` | ✓ | The wish ID to vote on | | ```tsx interface UseVoteOptions ``` **Example** ```tsx import { useVote } from '@appgram/react' function VoteButton({ wishId, initialCount, initialHasVoted }) { const { hasVoted, voteCount, toggle, isLoading } = useVote({ wishId, initialVoteCount: initialCount, initialHasVoted, onVoteChange: (voted, count) => { analytics.track('vote', { wishId, voted }) } }) return ( ) } // Lazy vote check to avoid rate limiting const { hasVoted, voteCount, toggle } = useVote({ wishId: wish.id, initialVoteCount: wish.vote_count, skipAutoCheck: true, // Check on first click instead }) ``` --- ### `UseVoteResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `hasVoted` | `boolean` | ✓ | Whether the current user has voted | | | `isChecking` | `boolean` | ✓ | Loading state for initial vote check | | | `isLoading` | `boolean` | ✓ | Loading state for vote operations | | | `toggle` | `() => Promise` | ✓ | Toggle vote (vote if not voted, unvote if voted) | | | `unvote` | `() => Promise` | ✓ | Remove a vote | | | `vote` | `() => Promise` | ✓ | Cast a vote | | | `voteCount` | `number` | ✓ | Current vote count | | ```tsx interface UseVoteResult ``` --- ### `UseWaitlistOptions` interface useWaitlist Hook Manages waitlist operations: join, leave, check status, and get count. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `email` | `string` | | Email to auto-check waitlist status for on mount | | | `fetchCountOnMount` | `boolean` | | Whether to fetch the waitlist count on mount | | | `onJoinError` | `(error: string) => void` | | Callback when join fails | | | `onJoinSuccess` | `(entry: WaitlistEntry) => void` | | Callback when successfully joined the waitlist | | | `onLeaveError` | `(error: string) => void` | | Callback when leave fails | | | `onLeaveSuccess` | `() => void` | | Callback when successfully left the waitlist | | ```tsx interface UseWaitlistOptions ``` **Example** ```tsx import { useWaitlist } from '@appgram/react' function WaitlistForm() { const { count, isOnWaitlist, isLoading, isJoining, error, join, leave, checkStatus, refresh, } = useWaitlist({ email: userEmail, // Optional: auto-check status for this email onJoinSuccess: (entry) => console.log('Joined!', entry), }) return (

{count} people on the waitlist

{isOnWaitlist ? ( ) : ( )}
) } ``` --- ### `UseWaitlistResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `checkStatus` | `(email: string) => Promise` | ✓ | Check if an email is on the waitlist | | | `clearMessages` | `() => void` | ✓ | Clear error and success messages | | | `count` | `number \| null` | ✓ | Total count of users on the waitlist | | | `error` | `string \| null` | ✓ | Error message if any operation failed | | | `isCheckingStatus` | `boolean` | ✓ | Loading state for status check | | | `isJoining` | `boolean` | ✓ | Loading state for join operation | | | `isLeaving` | `boolean` | ✓ | Loading state for leave operation | | | `isLoading` | `boolean` | ✓ | Loading state for initial data fetch | | | `isOnWaitlist` | `boolean \| null` | ✓ | Whether the provided email is on the waitlist | | | `join` | `(data: WaitlistJoinInput) => Promise` | ✓ | Join the waitlist | | | `leave` | `(email: string) => Promise` | ✓ | Leave the waitlist | | | `refreshCount` | `() => Promise` | ✓ | Refresh the waitlist count | | | `status` | `WaitlistStatus \| null` | ✓ | Current user's waitlist status details | | | `successMessage` | `string \| null` | ✓ | Success message after successful operation | | ```tsx interface UseWaitlistResult ``` --- ### `UseWishesOptions` interface useWishes Hook Fetches and manages a list of wishes with filtering and pagination. Provides headless access to the wishes API for custom UI implementations. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `filters` | `WishFilters` | | Initial filters | | | `refreshInterval` | `number` | | Auto-refresh interval in milliseconds (0 to disable) | | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseWishesOptions ``` **Example** ```tsx import { useWishes } from '@appgram/react' function WishList() { const { wishes, isLoading, error, setFilters, refetch } = useWishes({ filters: { sort_by: 'votes', status: 'pending' }, refreshInterval: 30000, }) if (isLoading) return if (error) return return (
    {wishes.map(wish => (
  • {wish.title}
  • ))}
) } // With search and pagination function SearchableWishes() { const { wishes, isLoading, setFilters, page, totalPages, setPage } = useWishes() const handleSearch = (query: string) => { setFilters({ search: query, page: 1 }) } return ( <> ) } ``` --- ### `UseWishesResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `page` | `number` | ✓ | Current page | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `setFilters` | `(filters: WishFilters) => void` | ✓ | Update filters | | | `setPage` | `(page: number) => void` | ✓ | Go to a specific page | | | `total` | `number` | ✓ | Total number of wishes | | | `totalPages` | `number` | ✓ | Total pages | | | `wishes` | `Wish[]` | ✓ | List of wishes | | ```tsx interface UseWishesResult ``` --- ### `UseWishOptions` interface useWish Hook Fetches and manages a single wish. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `skip` | `boolean` | | Skip initial fetch | | | `wishId` | `string` | ✓ | The wish ID to fetch | | ```tsx interface UseWishOptions ``` --- ### `UseWishResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `wish` | `Wish \| null` | ✓ | The wish data | | ```tsx interface UseWishResult ``` --- ### `Vote` interface Vote Types **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `created_at` | `string` | ✓ | | | | `fingerprint` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `user_id` | `string \| null` | | | | | `voter_email` | `string \| null` | | | | | `wish_id` | `string` | ✓ | | | ```tsx interface Vote ``` --- ### `VoteButtonProps` interface VoteButton Component A button for voting on wishes with animated feedback. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `initialHasVoted` | `boolean` | | Initial hasVoted state (optional) | | | `initialVoteCount` | `number` | | Initial vote count (optional, useful when you already have the wish data) | | | `onVoteChange` | `(hasVoted: boolean, voteCount: number) => void` | | Callback when vote state changes | | | `renderContent` | `(props: object) => ReactNode` | | Custom render function for the button content | | | `showCount` | `boolean` | | Show vote count | | | `size` | `"sm" \| "md" \| "lg"` | | Size variant | | | `skipAutoCheck` | `boolean` | | Skip automatic vote check on mount to avoid rate limiting When true, vote status will be checked lazily on first interaction | | | `voterEmail` | `string` | | Voter email (optional, for identified voting) | | | `wishId` | `string` | ✓ | The wish ID to vote on | | **Related types** — `Omit` ```tsx interface VoteButtonProps extends Omit ``` --- ### `VoteCheckResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `has_voted` | `boolean` | ✓ | | | | `vote_id` | `string` | | | | ```tsx interface VoteCheckResponse ``` --- ### `VoteCreateInput` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `fingerprint` | `string` | ✓ | | | | `voter_email` | `string` | | | | | `wish_id` | `string` | ✓ | | | ```tsx interface VoteCreateInput ``` --- ### `VoteState` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | | | | | `hasVoted` | `boolean` | ✓ | | | | `isLoading` | `boolean` | ✓ | | | | `voteCount` | `number` | ✓ | | | | `voteId` | `string` | | | | ```tsx interface VoteState ``` --- ### `WaitlistCount` interface Waitlist count response **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `count` | `number` | ✓ | Total number of users on the waitlist | | ```tsx interface WaitlistCount ``` --- ### `WaitlistEntry` interface Waitlist entry (returned after joining) **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `created_at` | `string` | ✓ | When the user joined | | | `email` | `string` | ✓ | Email address | | | `id` | `string` | ✓ | Unique ID of the waitlist entry | | | `name` | `string` | | Name (if provided) | | | `position` | `number` | | Position in the waitlist | | ```tsx interface WaitlistEntry ``` --- ### `WaitlistJoinInput` interface Input for joining a waitlist **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `email` | `string` | ✓ | Email address to add to waitlist | | | `metadata` | `Record` | | Optional additional metadata | | | `name` | `string` | | Optional name of the user | | ```tsx interface WaitlistJoinInput ``` --- ### `WaitlistStatus` interface Waitlist status response **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `is_on_waitlist` | `boolean` | ✓ | Whether the user/email is on the waitlist | | | `joined_at` | `string` | | When the user joined (if on waitlist) | | | `position` | `number` | | Position in the waitlist (if available) | | ```tsx interface WaitlistStatus ``` --- ### `WhatsNewPopupProps` interface WhatsNewPopup Component Small popup at bottom of screen showing latest release features with media carousel for images and videos. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `autoPlayInterval` | `number` | | Auto-play carousel interval in ms (0 to disable) | | | `autoShow` | `boolean` | | Auto-show popup on mount if there's a new release Uses localStorage to track seen releases | | | `className` | `string` | | Custom class name | | | `maxItems` | `number` | | Maximum number of items to show | | | `onOpenChange` | `(open: boolean) => void` | | Callback when open state changes | | | `onViewAll` | `() => void` | | Click handler for "View All" button | | | `open` | `boolean` | | Whether the popup is open | | | `position` | `"bottom-right" \| "bottom-left" \| "bottom-center"` | | Position of the popup | | | `showMedia` | `boolean` | | Show media carousel | | | `showTypes` | `"feature" \| "improvement" \| "bugfix" \| "other"[]` | | Show only specific item types | | | `storageKey` | `string` | | localStorage key for tracking seen releases | | | `title` | `string` | | Title for the popup | | ```tsx interface WhatsNewPopupProps ``` --- ### `Wish` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `author` | `WishAuthor` | | | | | `author_email` | `string \| null` | | | | | `author_name` | `string \| null` | | | | | `author_type` | `"user" \| "team_member" \| "anonymous"` | ✓ | | | | `category` | `Category \| null` | | | | | `category_id` | `string \| null` | | | | | `comment_count` | `number` | ✓ | | | | `completed_at` | `string \| null` | | | | | `created_at` | `string` | ✓ | | | | `description` | `string` | ✓ | | | | `has_voted` | `boolean` | | | | | `id` | `string` | ✓ | | | | `is_pinned` | `boolean` | | | | | `priority` | `WishPriority \| null` | | | | | `project_id` | `string` | ✓ | | | | `slug` | `string` | ✓ | | | | `status` | `WishStatus` | ✓ | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `vote_count` | `number` | ✓ | | | ```tsx interface Wish ``` --- ### `WishAuthor` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `avatar_url` | `string \| null` | | | | | `email` | `string \| null` | | | | | `name` | `string` | ✓ | | | ```tsx interface WishAuthor ``` --- ### `WishCardProps` interface WishCard Component Modern glassmorphism card with animations and theming. Adapted from FeedbackModern variant. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `animationIndex` | `number` | | Animation delay index (for staggered animations) | | | `className` | `string` | | Custom class name | | | `hasVoted` | `boolean` | | Override hasVoted state (for optimistic updates) | | | `isVoting` | `boolean` | | Loading state for vote | | | `onClick` | `() => void` | | Click handler for the card | | | `onCommentClick` | `() => void` | | Comment click handler | | | `onVote` | `(wishId: string, hasVoted: boolean, voteCount: number) => void` | | Vote handler | | | `renderVoteButton` | `(props: object) => ReactNode` | | Custom render function for the vote button | | | `showAuthor` | `boolean` | | Show author | | | `showCategory` | `boolean` | | Show category badge | | | `showCommentCount` | `boolean` | | Show comment count | | | `showStatus` | `boolean` | | Show status badge | | | `voteCount` | `number` | | Override vote count (for optimistic updates) | | | `wish` | `Wish` | ✓ | The wish data | | ```tsx interface WishCardProps ``` --- ### `WishDetailProps` interface WishDetail Component Sheet/modal for displaying wish details with voting and comments. Adapted from PublicWishDetail. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `onCommentAdded` | `(comment: Comment) => void` | | Callback when a comment is added | | | `onOpenChange` | `(open: boolean) => void` | ✓ | Callback when open state changes | | | `onVote` | `(wishId: string) => void` | | Callback when vote is toggled | | | `open` | `boolean` | ✓ | Whether the detail view is open | | | `wish` | `Wish \| null` | ✓ | The wish to display | | ```tsx interface WishDetailProps ``` --- ### `WishesResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `Wish[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface WishesResponse ``` --- ### `WishFilters` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `category_id` | `string` | | | | | `fingerprint` | `string` | | | | | `page` | `number` | | | | | `per_page` | `number` | | | | | `priority` | `WishPriority \| WishPriority[]` | | | | | `search` | `string` | | | | | `sort_by` | `"votes" \| "created_at" \| "updated_at"` | | | | | `sort_order` | `"asc" \| "desc"` | | | | | `status` | `WishStatus \| WishStatus[]` | | | | ```tsx interface WishFilters ``` --- ### `WishListProps` interface WishList Component Modern glassmorphism list with animations for displaying and voting on feature requests. Adapted from FeedbackModern variant. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `className` | `string` | | Custom class name | | | `description` | `string` | | Page description | | | `filters` | `WishFilters` | | Initial filters | | | `heading` | `string` | | Page heading | | | `headingAlignment` | `"left" \| "center" \| "right"` | | Heading alignment | | | `onAddWish` | `() => void` | | Handler for adding a new wish | | | `onWishClick` | `(wish: Wish) => void` | | Click handler for a wish | | | `refreshInterval` | `number` | | Auto-refresh interval in milliseconds | | | `renderEmpty` | `() => ReactNode` | | Custom render function for empty state | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | Custom render function for error state | | | `renderLoading` | `() => ReactNode` | | Custom render function for loading state | | | `renderWish` | `(wish: Wish, index: number) => ReactNode` | | Custom render function for individual wish cards | | | `showSearch` | `boolean` | | Show search input | | | `variant` | `"compact" \| "cards" \| "masonry"` | | Layout variant | | ```tsx interface WishListProps ``` **Example** ```tsx import { WishList } from '@appgram/react' console.log('Clicked:', wish.title)} onAddWish={() => setShowForm(true)} /> // Compact variant for sidebar ``` ## ApiResponse ### `ApiResponse.data` property ```tsx data: T ``` --- ### `ApiResponse.error` property ```tsx error: object ``` --- ### `ApiResponse.success` property ```tsx success: boolean ``` ## AppgramClientConfig ### `AppgramClientConfig.baseUrl` property ```tsx baseUrl: string ``` --- ### `AppgramClientConfig.orgSlug` property ```tsx orgSlug: string ``` --- ### `AppgramClientConfig.projectId` property ```tsx projectId: string ``` --- ### `AppgramClientConfig.projectSlug` property ```tsx projectSlug: string ``` ## AppgramConfig ### `AppgramConfig.apiUrl` property Optional API URL override (defaults to https://api.appgram.dev) ```tsx apiUrl: string ``` --- ### `AppgramConfig.enableFingerprinting` property Enable browser fingerprinting for anonymous voting ```tsx enableFingerprinting: boolean ``` --- ### `AppgramConfig.orgSlug` property Organization slug (used for public URLs) ```tsx orgSlug: string ``` --- ### `AppgramConfig.projectId` property Your Appgram project ID ```tsx projectId: string ``` --- ### `AppgramConfig.projectSlug` property Project slug (used for public URLs) ```tsx projectSlug: string ``` --- ### `AppgramConfig.theme` property Theme customization ```tsx theme: AppgramTheme ``` ## AppgramContextValue ### `AppgramContextValue.client` property The API client instance ```tsx client: AppgramClient ``` --- ### `AppgramContextValue.config` property The Appgram configuration ```tsx config: Required> & AppgramConfig ``` --- ### `AppgramContextValue.fingerprint` property Browser fingerprint for anonymous voting ```tsx fingerprint: string | null ``` --- ### `AppgramContextValue.theme` property Theme values ```tsx theme: AppgramTheme ``` ## AppgramProviderProps ### `AppgramProviderProps.children` property Child components ```tsx children: ReactNode ``` --- ### `AppgramProviderProps.config` property Appgram configuration ```tsx config: AppgramConfig ``` ## AppgramTheme ### `AppgramTheme.borderRadius` property ```tsx borderRadius: number ``` --- ### `AppgramTheme.colors` property Light mode colors (used when mode is 'light' or system is light) ```tsx colors: Partial ``` --- ### `AppgramTheme.darkColors` property Dark mode colors (used when mode is 'dark' or system is dark) If not provided, will auto-generate from light colors ```tsx darkColors: Partial ``` --- ### `AppgramTheme.mode` property Theme mode - 'light', 'dark', or 'system' (default: 'system') ```tsx mode: ThemeMode ``` --- ### `AppgramTheme.typography` property ```tsx typography: Partial ``` ## BlogCardProps ### `BlogCardProps.className` property Additional CSS classes ```tsx className: string ``` --- ### `BlogCardProps.onClick` property Called when the card is clicked **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onClick(post: BlogPost): void ``` --- ### `BlogCardProps.post` property The blog post to display ```tsx post: BlogPost ``` --- ### `BlogCardProps.variant` property Card variant ```tsx variant: "default" | "compact" | "featured" ``` ## BlogCategory ### `BlogCategory.color` property ```tsx color: string | null ``` --- ### `BlogCategory.description` property ```tsx description: string | null ``` --- ### `BlogCategory.id` property ```tsx id: string ``` --- ### `BlogCategory.name` property ```tsx name: string ``` --- ### `BlogCategory.post_count` property ```tsx post_count: number ``` --- ### `BlogCategory.slug` property ```tsx slug: string ``` ## BlogFilters ### `BlogFilters.category_slug` property ```tsx category_slug: string ``` --- ### `BlogFilters.is_featured` property ```tsx is_featured: boolean ``` --- ### `BlogFilters.page` property ```tsx page: number ``` --- ### `BlogFilters.per_page` property ```tsx per_page: number ``` --- ### `BlogFilters.search` property ```tsx search: string ``` --- ### `BlogFilters.tag` property ```tsx tag: string ``` ## BlogListProps ### `BlogListProps.categories` property List of categories for filtering ```tsx categories: BlogCategory[] ``` --- ### `BlogListProps.className` property Additional CSS classes ```tsx className: string ``` --- ### `BlogListProps.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `BlogListProps.onCategoryChange` property Called when a category is selected **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `category` | `string \| null` | ✓ | | **Returns** — `void` ```tsx onCategoryChange(category: string | null): void ``` --- ### `BlogListProps.onPageChange` property Called when page changes **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `page` | `number` | ✓ | | **Returns** — `void` ```tsx onPageChange(page: number): void ``` --- ### `BlogListProps.onPostClick` property Called when a post is clicked **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onPostClick(post: BlogPost): void ``` --- ### `BlogListProps.onSearchChange` property Called when search query changes **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `query` | `string` | ✓ | | **Returns** — `void` ```tsx onSearchChange(query: string): void ``` --- ### `BlogListProps.page` property Current page ```tsx page: number ``` --- ### `BlogListProps.posts` property List of blog posts to display ```tsx posts: BlogPost[] ``` --- ### `BlogListProps.renderEmpty` property Custom empty state component **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `BlogListProps.renderLoading` property Custom loading component **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `BlogListProps.searchQuery` property Search query ```tsx searchQuery: string ``` --- ### `BlogListProps.selectedCategory` property Currently selected category ```tsx selectedCategory: string | null ``` --- ### `BlogListProps.showCategories` property Show category filter ```tsx showCategories: boolean ``` --- ### `BlogListProps.showSearch` property Show search input ```tsx showSearch: boolean ``` --- ### `BlogListProps.totalPages` property Total pages ```tsx totalPages: number ``` --- ### `BlogListProps.variant` property Grid variant ```tsx variant: "grid" | "list" ``` ## BlogPost ### `BlogPost.author_name` property ```tsx author_name: string | null ``` --- ### `BlogPost.category` property ```tsx category: object ``` --- ### `BlogPost.category_id` property ```tsx category_id: string | null ``` --- ### `BlogPost.content` property ```tsx content: string ``` --- ### `BlogPost.created_at` property ```tsx created_at: string ``` --- ### `BlogPost.excerpt` property ```tsx excerpt: string | null ``` --- ### `BlogPost.id` property ```tsx id: string ``` --- ### `BlogPost.is_featured` property ```tsx is_featured: boolean ``` --- ### `BlogPost.meta_description` property ```tsx meta_description: string | null ``` --- ### `BlogPost.og_image_url` property ```tsx og_image_url: string | null ``` --- ### `BlogPost.project_id` property ```tsx project_id: string ``` --- ### `BlogPost.published_at` property ```tsx published_at: string ``` --- ### `BlogPost.slug` property ```tsx slug: string ``` --- ### `BlogPost.tags` property ```tsx tags: string[] ``` --- ### `BlogPost.title` property ```tsx title: string ``` --- ### `BlogPost.updated_at` property ```tsx updated_at: string ``` --- ### `BlogPost.view_count` property ```tsx view_count: number ``` ## BlogPostDetailProps ### `BlogPostDetailProps.className` property Additional CSS classes ```tsx className: string ``` --- ### `BlogPostDetailProps.onBack` property Back button click handler **Returns** — `void` ```tsx onBack(): void ``` --- ### `BlogPostDetailProps.onRelatedPostClick` property Called when a related post is clicked **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onRelatedPostClick(post: BlogPost): void ``` --- ### `BlogPostDetailProps.post` property The blog post to display (either pass post object or postSlug) ```tsx post: BlogPost ``` --- ### `BlogPostDetailProps.postSlug` property Post slug to fetch (alternative to passing post object) ```tsx postSlug: string ``` --- ### `BlogPostDetailProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `BlogPostDetailProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `BlogPostDetailProps.showBackButton` property Show back button ```tsx showBackButton: boolean ``` --- ### `BlogPostDetailProps.showRelatedPosts` property Show related posts section ```tsx showRelatedPosts: boolean ``` ## BlogPostsResponse ### `BlogPostsResponse.data` property ```tsx data: BlogPost[] ``` --- ### `BlogPostsResponse.page` property ```tsx page: number ``` --- ### `BlogPostsResponse.per_page` property ```tsx per_page: number ``` --- ### `BlogPostsResponse.total` property ```tsx total: number ``` --- ### `BlogPostsResponse.total_pages` property ```tsx total_pages: number ``` ## BlogProps ### `BlogProps.className` property Additional CSS classes ```tsx className: string ``` --- ### `BlogProps.initialCategory` property Initial category filter ```tsx initialCategory: string ``` --- ### `BlogProps.initialSearch` property Initial search query ```tsx initialSearch: string ``` --- ### `BlogProps.onBackToList` property Called when navigating back to list **Returns** — `void` ```tsx onBackToList(): void ``` --- ### `BlogProps.onPostView` property Called when a post is viewed **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onPostView(post: BlogPost): void ``` --- ### `BlogProps.postsPerPage` property Posts per page ```tsx postsPerPage: number ``` --- ### `BlogProps.renderEmpty` property Custom render function for empty state **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `BlogProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `BlogProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `BlogProps.showCategories` property Show category filter ```tsx showCategories: boolean ``` --- ### `BlogProps.showRelatedPosts` property Show related posts on detail view ```tsx showRelatedPosts: boolean ``` --- ### `BlogProps.showSearch` property Show search input ```tsx showSearch: boolean ``` --- ### `BlogProps.variant` property Grid variant for list view ```tsx variant: "grid" | "list" ``` ## Category ### `Category.color` property ```tsx color: string ``` --- ### `Category.description` property ```tsx description: string | null ``` --- ### `Category.icon` property ```tsx icon: string | null ``` --- ### `Category.id` property ```tsx id: string ``` --- ### `Category.name` property ```tsx name: string ``` --- ### `Category.slug` property ```tsx slug: string ``` --- ### `Category.wish_count` property ```tsx wish_count: number ``` ## ChatSource ### `ChatSource.article_id` property ```tsx article_id: string ``` --- ### `ChatSource.flow_id` property ```tsx flow_id: string ``` --- ### `ChatSource.flow_slug` property ```tsx flow_slug: string ``` --- ### `ChatSource.similarity` property ```tsx similarity: number ``` --- ### `ChatSource.slug` property ```tsx slug: string ``` --- ### `ChatSource.title` property ```tsx title: string ``` --- ### `ChatSource.type` property Source type - determines routing behavior ```tsx type: "help_article" | "blog_post" ``` ## ChatWidgetProps ### `ChatWidgetProps.accentColor` property Accent color for the widget (used for links, send button, avatar accents) ```tsx accentColor: string ``` --- ### `ChatWidgetProps.agentName` property Name of the chat agent ```tsx agentName: string ``` --- ### `ChatWidgetProps.apiUrl` property API URL for the help center ```tsx apiUrl: string ``` --- ### `ChatWidgetProps.className` property Custom class name ```tsx className: string ``` --- ### `ChatWidgetProps.colors` property Color customization options ```tsx colors: ChatWidgetColors ``` --- ### `ChatWidgetProps.fontSize` property Base font size for the widget Can be 'sm' (12px), 'base' (14px), 'lg' (16px), or a custom value like '13px' or '0.875rem' ```tsx fontSize: string ``` --- ### `ChatWidgetProps.greeting` property Initial greeting message ```tsx greeting: string ``` --- ### `ChatWidgetProps.logoUrl` property Logo URL for the agent avatar ```tsx logoUrl: string ``` --- ### `ChatWidgetProps.onArticleClick` property Callback when an article source is clicked. Provides the article slug and full source data for flexible routing. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | | `source` | `ChatSource` | ✓ | | **Returns** — `void` ```tsx onArticleClick(slug: string, source: ChatSource): void ``` **Example** ```tsx // Simple slug-based routing onArticleClick={(slug) => router.push(`/help/articles/${slug}`)} // Using flow context for nested routes onArticleClick={(slug, source) => { if (source.flow_slug) { router.push(`/help/${source.flow_slug}/${slug}`) } else { router.push(`/help/articles/${slug}`) } }} ``` --- ### `ChatWidgetProps.onSupportClick` property Callback when support button is clicked **Returns** — `void` ```tsx onSupportClick(): void ``` --- ### `ChatWidgetProps.options` property Quick reply options shown initially ```tsx options: ChatOption[] ``` --- ### `ChatWidgetProps.projectId` property Project ID for API calls ```tsx projectId: string ``` --- ### `ChatWidgetProps.subtitle` property Subtitle shown below greeting ```tsx subtitle: string ``` ## Comment ### `Comment.author_avatar_url` property ```tsx author_avatar_url: string | null ``` --- ### `Comment.author_name` property ```tsx author_name: string ``` --- ### `Comment.author_type` property ```tsx author_type: "user" | "team_member" | "anonymous" ``` --- ### `Comment.author_user_id` property ```tsx author_user_id: string | null ``` --- ### `Comment.content` property ```tsx content: string ``` --- ### `Comment.created_at` property ```tsx created_at: string ``` --- ### `Comment.id` property ```tsx id: string ``` --- ### `Comment.is_deleted` property ```tsx is_deleted: boolean ``` --- ### `Comment.is_official` property ```tsx is_official: boolean ``` --- ### `Comment.parent_id` property ```tsx parent_id: string | null ``` --- ### `Comment.replies` property ```tsx replies: Comment[] ``` --- ### `Comment.reply_count` property ```tsx reply_count: number ``` --- ### `Comment.updated_at` property ```tsx updated_at: string ``` --- ### `Comment.wish_id` property ```tsx wish_id: string ``` ## CommentAuthor ### `CommentAuthor.avatar_url` property ```tsx avatar_url: string | null ``` --- ### `CommentAuthor.name` property ```tsx name: string ``` ## CommentCreateInput ### `CommentCreateInput.author_email` property ```tsx author_email: string ``` --- ### `CommentCreateInput.author_name` property ```tsx author_name: string ``` --- ### `CommentCreateInput.content` property ```tsx content: string ``` --- ### `CommentCreateInput.parent_id` property ```tsx parent_id: string ``` --- ### `CommentCreateInput.wish_id` property ```tsx wish_id: string ``` ## CommentsResponse ### `CommentsResponse.data` property ```tsx data: Comment[] ``` --- ### `CommentsResponse.page` property ```tsx page: number ``` --- ### `CommentsResponse.per_page` property ```tsx per_page: number ``` --- ### `CommentsResponse.total` property ```tsx total: number ``` --- ### `CommentsResponse.total_pages` property ```tsx total_pages: number ``` ## ContactForm ### `ContactForm.createdAt` property ```tsx createdAt: string ``` --- ### `ContactForm.description` property ```tsx description: string ``` --- ### `ContactForm.emailRecipient` property ```tsx emailRecipient: string ``` --- ### `ContactForm.emailSubject` property ```tsx emailSubject: string ``` --- ### `ContactForm.enabled` property ```tsx enabled: boolean ``` --- ### `ContactForm.fields` property ```tsx fields: ContactFormField[] ``` --- ### `ContactForm.id` property ```tsx id: string ``` --- ### `ContactForm.integration` property Integration settings for form submission ```tsx integration: ContactFormIntegration ``` --- ### `ContactForm.name` property ```tsx name: string ``` --- ### `ContactForm.submitButtonText` property ```tsx submitButtonText: string ``` --- ### `ContactForm.successMessage` property ```tsx successMessage: string ``` --- ### `ContactForm.updatedAt` property ```tsx updatedAt: string ``` ## ContactFormField ### `ContactFormField.id` property ```tsx id: string ``` --- ### `ContactFormField.label` property ```tsx label: string ``` --- ### `ContactFormField.options` property ```tsx options: string[] ``` --- ### `ContactFormField.placeholder` property ```tsx placeholder: string ``` --- ### `ContactFormField.required` property ```tsx required: boolean ``` --- ### `ContactFormField.type` property ```tsx type: ContactFormFieldType ``` --- ### `ContactFormField.validation` property ```tsx validation: ContactFormFieldValidation ``` ## ContactFormFieldValidation ### `ContactFormFieldValidation.maxLength` property ```tsx maxLength: number ``` --- ### `ContactFormFieldValidation.minLength` property ```tsx minLength: number ``` --- ### `ContactFormFieldValidation.pattern` property ```tsx pattern: string ``` ## ContactFormRendererProps ### `ContactFormRendererProps.className` property Custom class name ```tsx className: string ``` --- ### `ContactFormRendererProps.description` property Optional description override ```tsx description: string ``` --- ### `ContactFormRendererProps.formId` property Form ID to load ```tsx formId: string ``` --- ### `ContactFormRendererProps.onError` property Called on submission error **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `ContactFormRendererProps.onSuccess` property Called when the form is submitted successfully **Returns** — `void` ```tsx onSuccess(): void ``` --- ### `ContactFormRendererProps.projectId` property Project ID for submission ```tsx projectId: string ``` --- ### `ContactFormRendererProps.title` property Optional title override ```tsx title: string ``` ## ContactFormSubmission ### `ContactFormSubmission.data` property ```tsx data: Record ``` --- ### `ContactFormSubmission.form_id` property ```tsx form_id: string ``` --- ### `ContactFormSubmission.id` property ```tsx id: string ``` --- ### `ContactFormSubmission.project_id` property ```tsx project_id: string ``` --- ### `ContactFormSubmission.submitted_at` property ```tsx submitted_at: string ``` ## ContactFormSubmitInput ### `ContactFormSubmitInput.data` property ```tsx data: Record ``` --- ### `ContactFormSubmitInput.metadata` property ```tsx metadata: Record ``` ## CustomColors ### `CustomColors.accent` property ```tsx accent: string ``` --- ### `CustomColors.background` property ```tsx background: string ``` --- ### `CustomColors.border` property ```tsx border: string ``` --- ### `CustomColors.cardBackground` property ```tsx cardBackground: string ``` --- ### `CustomColors.cardText` property ```tsx cardText: string ``` --- ### `CustomColors.info` property ```tsx info: string ``` --- ### `CustomColors.infoSubtle` property ```tsx infoSubtle: string ``` --- ### `CustomColors.muted` property ```tsx muted: string ``` --- ### `CustomColors.mutedForeground` property ```tsx mutedForeground: string ``` --- ### `CustomColors.navbarBackground` property ```tsx navbarBackground: string ``` --- ### `CustomColors.navbarText` property ```tsx navbarText: string ``` --- ### `CustomColors.primary` property ```tsx primary: string ``` --- ### `CustomColors.secondary` property ```tsx secondary: string ``` --- ### `CustomColors.success` property ```tsx success: string ``` --- ### `CustomColors.successSubtle` property ```tsx successSubtle: string ``` --- ### `CustomColors.text` property ```tsx text: string ``` --- ### `CustomColors.warning` property ```tsx warning: string ``` --- ### `CustomColors.warningSubtle` property ```tsx warningSubtle: string ``` ## CustomTypography ### `CustomTypography.fontFamily` property ```tsx fontFamily: string ``` --- ### `CustomTypography.fontSizes` property ```tsx fontSizes: object ``` ## HelpArticle ### `HelpArticle.article_type` property ```tsx article_type: ArticleType ``` --- ### `HelpArticle.content` property ```tsx content: string ``` --- ### `HelpArticle.created_at` property ```tsx created_at: string ``` --- ### `HelpArticle.excerpt` property ```tsx excerpt: string | null ``` --- ### `HelpArticle.flow_id` property ```tsx flow_id: string ``` --- ### `HelpArticle.id` property ```tsx id: string ``` --- ### `HelpArticle.is_published` property ```tsx is_published: boolean ``` --- ### `HelpArticle.published_at` property ```tsx published_at: string | null ``` --- ### `HelpArticle.slug` property ```tsx slug: string ``` --- ### `HelpArticle.sort_order` property ```tsx sort_order: number ``` --- ### `HelpArticle.title` property ```tsx title: string ``` --- ### `HelpArticle.updated_at` property ```tsx updated_at: string ``` ## HelpArticleDetailProps ### `HelpArticleDetailProps.article` property The article to display (either pass article object or articleSlug + flowId) ```tsx article: HelpArticle ``` --- ### `HelpArticleDetailProps.articleSlug` property Article slug to fetch (alternative to passing article object) ```tsx articleSlug: string ``` --- ### `HelpArticleDetailProps.className` property Custom class name ```tsx className: string ``` --- ### `HelpArticleDetailProps.flow` property The parent flow (for context) ```tsx flow: HelpFlow ``` --- ### `HelpArticleDetailProps.flowId` property Flow ID for fetching article (required if using articleSlug) ```tsx flowId: string ``` --- ### `HelpArticleDetailProps.onBack` property Back button click handler **Returns** — `void` ```tsx onBack(): void ``` --- ### `HelpArticleDetailProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `HelpArticleDetailProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `HelpArticleDetailProps.showBackButton` property Show back button ```tsx showBackButton: boolean ``` --- ### `HelpArticleDetailProps.showMetadata` property Show article metadata (date, type) ```tsx showMetadata: boolean ``` ## HelpArticlesProps ### `HelpArticlesProps.className` property Custom class name ```tsx className: string ``` --- ### `HelpArticlesProps.flow` property The flow to display articles for (either pass flow object or flowSlug) ```tsx flow: HelpFlow ``` --- ### `HelpArticlesProps.flowSlug` property Flow slug to fetch (alternative to passing flow object) ```tsx flowSlug: string ``` --- ### `HelpArticlesProps.onArticleClick` property Click handler for articles **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `article` | `HelpArticle` | ✓ | | **Returns** — `void` ```tsx onArticleClick(article: HelpArticle): void ``` --- ### `HelpArticlesProps.onBack` property Back button click handler **Returns** — `void` ```tsx onBack(): void ``` --- ### `HelpArticlesProps.renderEmpty` property Custom render function for empty state **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `HelpArticlesProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `HelpArticlesProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `HelpArticlesProps.showBackButton` property Show back button ```tsx showBackButton: boolean ``` --- ### `HelpArticlesProps.showSearch` property Show search input ```tsx showSearch: boolean ``` ## HelpArticlesResponse ### `HelpArticlesResponse.data` property ```tsx data: HelpArticle[] ``` --- ### `HelpArticlesResponse.page` property ```tsx page: number ``` --- ### `HelpArticlesResponse.per_page` property ```tsx per_page: number ``` --- ### `HelpArticlesResponse.total` property ```tsx total: number ``` --- ### `HelpArticlesResponse.total_pages` property ```tsx total_pages: number ``` ## HelpCenterData ### `HelpCenterData.collection` property ```tsx collection: HelpCollection | null ``` --- ### `HelpCenterData.flows` property ```tsx flows: HelpFlow[] ``` ## HelpCenterProps ### `HelpCenterProps.className` property Custom class name ```tsx className: string ``` --- ### `HelpCenterProps.contactSupportUrl` property Contact support URL ```tsx contactSupportUrl: string ``` --- ### `HelpCenterProps.description` property Page description ```tsx description: string ``` --- ### `HelpCenterProps.featuredArticles` property Featured articles to display on the main view ```tsx featuredArticles: HelpArticle[] ``` --- ### `HelpCenterProps.heading` property Page heading ```tsx heading: string ``` --- ### `HelpCenterProps.headingAlignment` property Heading alignment ```tsx headingAlignment: "left" | "center" | "right" ``` --- ### `HelpCenterProps.onArticleClick` property External callback when article is clicked (for custom routing) If not provided, internal navigation is used **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `article` | `HelpArticle` | ✓ | | | `flow` | `HelpFlow \| null` | ✓ | | **Returns** — `void` ```tsx onArticleClick(article: HelpArticle, flow: HelpFlow | null): void ``` --- ### `HelpCenterProps.onFlowClick` property External callback when flow is clicked (for custom routing) If not provided, internal navigation is used **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `flow` | `HelpFlow` | ✓ | | **Returns** — `void` ```tsx onFlowClick(flow: HelpFlow): void ``` --- ### `HelpCenterProps.onLiveChatClick` property Live chat handler **Returns** — `void` ```tsx onLiveChatClick(): void ``` --- ### `HelpCenterProps.quickActions` property Quick action buttons to display ```tsx quickActions: QuickAction[] ``` --- ### `HelpCenterProps.renderEmpty` property Custom render function for empty state **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `HelpCenterProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `HelpCenterProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `HelpCenterProps.showFooter` property Show contact support footer ```tsx showFooter: boolean ``` --- ### `HelpCenterProps.showSearch` property Show search input ```tsx showSearch: boolean ``` --- ### `HelpCenterProps.useExternalRouting` property Use external routing instead of internal state management Set to true if you want to handle navigation yourself via onFlowClick/onArticleClick ```tsx useExternalRouting: boolean ``` --- ### `HelpCenterProps.variant` property Layout variant for collections ```tsx variant: "grid" | "list" ``` ## HelpCollection ### `HelpCollection.created_at` property ```tsx created_at: string ``` --- ### `HelpCollection.description` property ```tsx description: string | null ``` --- ### `HelpCollection.flows` property ```tsx flows: HelpFlow[] ``` --- ### `HelpCollection.id` property ```tsx id: string ``` --- ### `HelpCollection.is_live` property ```tsx is_live: boolean ``` --- ### `HelpCollection.name` property ```tsx name: string ``` --- ### `HelpCollection.project_id` property ```tsx project_id: string ``` --- ### `HelpCollection.updated_at` property ```tsx updated_at: string ``` --- ### `HelpCollection.version` property ```tsx version: string ``` ## HelpCollectionsProps ### `HelpCollectionsProps.className` property Custom class name ```tsx className: string ``` --- ### `HelpCollectionsProps.contactSupportUrl` property Contact support URL ```tsx contactSupportUrl: string ``` --- ### `HelpCollectionsProps.description` property Page description ```tsx description: string ``` --- ### `HelpCollectionsProps.featuredArticles` property Featured articles to display ```tsx featuredArticles: HelpArticle[] ``` --- ### `HelpCollectionsProps.heading` property Page heading ```tsx heading: string ``` --- ### `HelpCollectionsProps.headingAlignment` property Heading alignment ```tsx headingAlignment: "left" | "center" | "right" ``` --- ### `HelpCollectionsProps.onArticleClick` property Click handler for articles **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `article` | `HelpArticle` | ✓ | | | `flow` | `HelpFlow` | ✓ | | **Returns** — `void` ```tsx onArticleClick(article: HelpArticle, flow: HelpFlow): void ``` --- ### `HelpCollectionsProps.onFlowClick` property Click handler for flows **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `flow` | `HelpFlow` | ✓ | | **Returns** — `void` ```tsx onFlowClick(flow: HelpFlow): void ``` --- ### `HelpCollectionsProps.onLiveChatClick` property Live chat handler **Returns** — `void` ```tsx onLiveChatClick(): void ``` --- ### `HelpCollectionsProps.quickActions` property Quick action buttons to display ```tsx quickActions: QuickAction[] ``` --- ### `HelpCollectionsProps.renderEmpty` property Custom render function for empty state **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `HelpCollectionsProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `HelpCollectionsProps.renderFlow` property Custom render function for flows **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `flow` | `HelpFlow` | ✓ | | **Returns** — `ReactNode` ```tsx renderFlow(flow: HelpFlow): ReactNode ``` --- ### `HelpCollectionsProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `HelpCollectionsProps.showFooter` property Show contact support footer ```tsx showFooter: boolean ``` --- ### `HelpCollectionsProps.showSearch` property Show search input ```tsx showSearch: boolean ``` --- ### `HelpCollectionsProps.variant` property Layout variant ```tsx variant: "grid" | "list" ``` ## HelpFlow ### `HelpFlow.articles` property ```tsx articles: HelpArticle[] ``` --- ### `HelpFlow.collection_id` property ```tsx collection_id: string ``` --- ### `HelpFlow.color` property ```tsx color: string | null ``` --- ### `HelpFlow.created_at` property ```tsx created_at: string ``` --- ### `HelpFlow.description` property ```tsx description: string | null ``` --- ### `HelpFlow.display_type` property ```tsx display_type: FlowDisplayType ``` --- ### `HelpFlow.icon` property ```tsx icon: string | null ``` --- ### `HelpFlow.id` property ```tsx id: string ``` --- ### `HelpFlow.name` property ```tsx name: string ``` --- ### `HelpFlow.slug` property ```tsx slug: string ``` --- ### `HelpFlow.sort_order` property ```tsx sort_order: number ``` --- ### `HelpFlow.updated_at` property ```tsx updated_at: string ``` ## IncidentUpdate ### `IncidentUpdate.created_at` property ```tsx created_at: string ``` --- ### `IncidentUpdate.id` property ```tsx id: string ``` --- ### `IncidentUpdate.message` property ```tsx message: string ``` --- ### `IncidentUpdate.status` property ```tsx status: IncidentStatus ``` ## LayoutConfig ### `LayoutConfig.borderRadius` property ```tsx borderRadius: number ``` --- ### `LayoutConfig.cardStyle` property ```tsx cardStyle: object ``` ## PaginatedResponse ### `PaginatedResponse.data` property ```tsx data: T[] ``` --- ### `PaginatedResponse.page` property ```tsx page: number ``` --- ### `PaginatedResponse.per_page` property ```tsx per_page: number ``` --- ### `PaginatedResponse.total` property ```tsx total: number ``` --- ### `PaginatedResponse.total_pages` property ```tsx total_pages: number ``` ## QuickAction ### `QuickAction.icon` property ```tsx icon: any ``` --- ### `QuickAction.label` property ```tsx label: string ``` --- ### `QuickAction.onClick` property **Returns** — `void` ```tsx onClick(): void ``` ## Release ### `Release.author_user_id` property ```tsx author_user_id: string ``` --- ### `Release.content` property ```tsx content: string ``` --- ### `Release.cover_image_url` property ```tsx cover_image_url: string | null ``` --- ### `Release.created_at` property ```tsx created_at: string ``` --- ### `Release.excerpt` property ```tsx excerpt: string | null ``` --- ### `Release.features` property ```tsx features: ReleaseFeature[] ``` --- ### `Release.id` property ```tsx id: string ``` --- ### `Release.is_published` property ```tsx is_published: boolean ``` --- ### `Release.items` property ```tsx items: ReleaseItem[] ``` --- ### `Release.labels` property ```tsx labels: string[] ``` --- ### `Release.project_id` property ```tsx project_id: string ``` --- ### `Release.published_at` property ```tsx published_at: string | null ``` --- ### `Release.slug` property ```tsx slug: string ``` --- ### `Release.title` property ```tsx title: string ``` --- ### `Release.updated_at` property ```tsx updated_at: string ``` --- ### `Release.version` property ```tsx version: string | null ``` --- ### `Release.wish_ids` property ```tsx wish_ids: string[] ``` ## ReleaseCardProps ### `ReleaseCardProps.className` property Custom class name ```tsx className: string ``` --- ### `ReleaseCardProps.onClick` property Click handler **Returns** — `void` ```tsx onClick(): void ``` --- ### `ReleaseCardProps.release` property The release data ```tsx release: Release ``` --- ### `ReleaseCardProps.showCoverImage` property Show cover image ```tsx showCoverImage: boolean ``` --- ### `ReleaseCardProps.showDate` property Show date ```tsx showDate: boolean ``` --- ### `ReleaseCardProps.showLabels` property Show labels ```tsx showLabels: boolean ``` ## ReleaseDetailProps ### `ReleaseDetailProps.className` property Custom class name ```tsx className: string ``` --- ### `ReleaseDetailProps.onBack` property Back button click handler **Returns** — `void` ```tsx onBack(): void ``` --- ### `ReleaseDetailProps.release` property The release to display (either pass release object or releaseSlug) ```tsx release: Release ``` --- ### `ReleaseDetailProps.releaseSlug` property Release slug to fetch (alternative to passing release object) ```tsx releaseSlug: string ``` --- ### `ReleaseDetailProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `ReleaseDetailProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `ReleaseDetailProps.showBackButton` property Show back button ```tsx showBackButton: boolean ``` ## ReleaseFeature ### `ReleaseFeature.description` property ```tsx description: string ``` --- ### `ReleaseFeature.id` property ```tsx id: string ``` --- ### `ReleaseFeature.image_url` property ```tsx image_url: string | null ``` --- ### `ReleaseFeature.release_id` property ```tsx release_id: string ``` --- ### `ReleaseFeature.sort_order` property ```tsx sort_order: number ``` --- ### `ReleaseFeature.title` property ```tsx title: string ``` ## ReleaseListProps ### `ReleaseListProps.className` property Custom class name ```tsx className: string ``` --- ### `ReleaseListProps.description` property Page description ```tsx description: string ``` --- ### `ReleaseListProps.heading` property Page heading ```tsx heading: string ``` --- ### `ReleaseListProps.headingAlignment` property Heading alignment ```tsx headingAlignment: "left" | "center" | "right" ``` --- ### `ReleaseListProps.limit` property Maximum number of releases to show ```tsx limit: number ``` --- ### `ReleaseListProps.onReleaseClick` property Click handler for releases **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `release` | `Release` | ✓ | | **Returns** — `void` ```tsx onReleaseClick(release: Release): void ``` --- ### `ReleaseListProps.renderEmpty` property Custom render function for empty state **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `ReleaseListProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `ReleaseListProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `ReleaseListProps.renderRelease` property Custom render function for releases **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `release` | `Release` | ✓ | | | `index` | `number` | ✓ | | **Returns** — `ReactNode` ```tsx renderRelease(release: Release, index: number): ReactNode ``` --- ### `ReleaseListProps.variant` property Layout variant ```tsx variant: "compact" | "timeline" | "cards" ``` ## ReleasesProps ### `ReleasesProps.className` property Custom class name ```tsx className: string ``` --- ### `ReleasesProps.description` property Page description ```tsx description: string ``` --- ### `ReleasesProps.heading` property Page heading ```tsx heading: string ``` --- ### `ReleasesProps.headingAlignment` property Heading alignment ```tsx headingAlignment: "left" | "center" | "right" ``` --- ### `ReleasesProps.limit` property Maximum number of releases to show ```tsx limit: number ``` --- ### `ReleasesProps.onReleaseClick` property External callback when release is clicked (for custom routing) If not provided, internal navigation is used **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `release` | `Release` | ✓ | | **Returns** — `void` ```tsx onReleaseClick(release: Release): void ``` --- ### `ReleasesProps.renderEmpty` property Custom render function for empty state **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `ReleasesProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `ReleasesProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `ReleasesProps.useExternalRouting` property Use external routing instead of internal state management Set to true if you want to handle navigation yourself via onReleaseClick ```tsx useExternalRouting: boolean ``` --- ### `ReleasesProps.variant` property Layout variant for list ```tsx variant: "compact" | "timeline" | "cards" ``` ## ReleasesResponse ### `ReleasesResponse.data` property ```tsx data: Release[] ``` --- ### `ReleasesResponse.page` property ```tsx page: number ``` --- ### `ReleasesResponse.per_page` property ```tsx per_page: number ``` --- ### `ReleasesResponse.total` property ```tsx total: number ``` --- ### `ReleasesResponse.total_pages` property ```tsx total_pages: number ``` ## Roadmap ### `Roadmap.columns` property ```tsx columns: RoadmapColumn[] ``` --- ### `Roadmap.created_at` property ```tsx created_at: string ``` --- ### `Roadmap.description` property ```tsx description: string | null ``` --- ### `Roadmap.id` property ```tsx id: string ``` --- ### `Roadmap.is_default` property ```tsx is_default: boolean ``` --- ### `Roadmap.name` property ```tsx name: string ``` --- ### `Roadmap.project_id` property ```tsx project_id: string ``` --- ### `Roadmap.show_comments` property ```tsx show_comments: boolean ``` --- ### `Roadmap.show_vote_counts` property ```tsx show_vote_counts: boolean ``` --- ### `Roadmap.updated_at` property ```tsx updated_at: string ``` --- ### `Roadmap.visibility` property ```tsx visibility: RoadmapVisibility ``` ## RoadmapBoardProps ### `RoadmapBoardProps.className` property Custom class name ```tsx className: string ``` --- ### `RoadmapBoardProps.description` property Page description ```tsx description: string ``` --- ### `RoadmapBoardProps.developersNote` property Developer's note ```tsx developersNote: string ``` --- ### `RoadmapBoardProps.heading` property Page heading ```tsx heading: string ``` --- ### `RoadmapBoardProps.headingAlignment` property Heading alignment ```tsx headingAlignment: "left" | "center" | "right" ``` --- ### `RoadmapBoardProps.onItemClick` property Click handler for items **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `item` | `RoadmapItem` | ✓ | | **Returns** — `void` ```tsx onItemClick(item: RoadmapItem): void ``` --- ### `RoadmapBoardProps.refreshInterval` property Auto-refresh interval in milliseconds ```tsx refreshInterval: number ``` --- ### `RoadmapBoardProps.renderColumn` property Custom render function for columns **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `column` | `RoadmapColumn` | ✓ | | **Returns** — `ReactNode` ```tsx renderColumn(column: RoadmapColumn): ReactNode ``` --- ### `RoadmapBoardProps.renderEmpty` property Custom render function for empty state **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `RoadmapBoardProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `RoadmapBoardProps.renderItem` property Custom render function for items **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `item` | `RoadmapItem` | ✓ | | **Returns** — `ReactNode` ```tsx renderItem(item: RoadmapItem): ReactNode ``` --- ### `RoadmapBoardProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `RoadmapBoardProps.showComments` property Show comment counts ```tsx showComments: boolean ``` --- ### `RoadmapBoardProps.showVoteCounts` property Show vote counts on items ```tsx showVoteCounts: boolean ``` --- ### `RoadmapBoardProps.variant` property Layout variant ```tsx variant: "list" | "timeline" | "kanban" ``` ## RoadmapColumnProps ### `RoadmapColumnProps.className` property Custom class name ```tsx className: string ``` --- ### `RoadmapColumnProps.column` property The column data ```tsx column: RoadmapColumn ``` --- ### `RoadmapColumnProps.onItemClick` property Click handler for items **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `item` | `RoadmapItem` | ✓ | | **Returns** — `void` ```tsx onItemClick(item: RoadmapItem): void ``` --- ### `RoadmapColumnProps.renderItem` property Custom render function for items **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `item` | `RoadmapItem` | ✓ | | **Returns** — `ReactNode` ```tsx renderItem(item: RoadmapItem): ReactNode ``` --- ### `RoadmapColumnProps.showVoteCounts` property Show vote counts on items ```tsx showVoteCounts: boolean ``` ## RoadmapColumnType ### `RoadmapColumnType.color` property ```tsx color: string ``` --- ### `RoadmapColumnType.created_at` property ```tsx created_at: string ``` --- ### `RoadmapColumnType.id` property ```tsx id: string ``` --- ### `RoadmapColumnType.items` property ```tsx items: RoadmapItem[] ``` --- ### `RoadmapColumnType.name` property ```tsx name: string ``` --- ### `RoadmapColumnType.roadmap_id` property ```tsx roadmap_id: string ``` --- ### `RoadmapColumnType.sort_order` property ```tsx sort_order: number ``` --- ### `RoadmapColumnType.updated_at` property ```tsx updated_at: string ``` --- ### `RoadmapColumnType.wip_limit` property ```tsx wip_limit: number | null ``` ## RoadmapData ### `RoadmapData.columns` property ```tsx columns: RoadmapColumn[] ``` --- ### `RoadmapData.customization` property ```tsx customization: object | null ``` --- ### `RoadmapData.roadmap` property ```tsx roadmap: Roadmap | null ``` --- ### `RoadmapData.total_items` property ```tsx total_items: number ``` ## RoadmapItem ### `RoadmapItem.color` property ```tsx color: string | null ``` --- ### `RoadmapItem.column_id` property ```tsx column_id: string ``` --- ### `RoadmapItem.created_at` property ```tsx created_at: string ``` --- ### `RoadmapItem.description` property ```tsx description: string | null ``` --- ### `RoadmapItem.id` property ```tsx id: string ``` --- ### `RoadmapItem.roadmap_id` property ```tsx roadmap_id: string ``` --- ### `RoadmapItem.sort_order` property ```tsx sort_order: number ``` --- ### `RoadmapItem.target_date` property ```tsx target_date: string | null ``` --- ### `RoadmapItem.title` property ```tsx title: string ``` --- ### `RoadmapItem.updated_at` property ```tsx updated_at: string ``` --- ### `RoadmapItem.wish` property ```tsx wish: Wish | null ``` --- ### `RoadmapItem.wish_id` property ```tsx wish_id: string | null ``` ## StatusBoardProps ### `StatusBoardProps.className` property Custom class name ```tsx className: string ``` --- ### `StatusBoardProps.description` property Page description ```tsx description: string ``` --- ### `StatusBoardProps.heading` property Page heading ```tsx heading: string ``` --- ### `StatusBoardProps.headingAlignment` property Heading alignment ```tsx headingAlignment: "left" | "center" | "right" ``` --- ### `StatusBoardProps.maxPastIncidents` property Max number of past incidents to show ```tsx maxPastIncidents: number ``` --- ### `StatusBoardProps.onIncidentClick` property Click handler for incidents **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `incident` | `StatusIncident` | ✓ | | **Returns** — `void` ```tsx onIncidentClick(incident: StatusIncident): void ``` --- ### `StatusBoardProps.renderComponent` property Custom render for component **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `component` | `StatusComponent` | ✓ | | **Returns** — `ReactNode` ```tsx renderComponent(component: StatusComponent): ReactNode ``` --- ### `StatusBoardProps.renderIncident` property Custom render for incident **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `incident` | `StatusIncident` | ✓ | | **Returns** — `ReactNode` ```tsx renderIncident(incident: StatusIncident): ReactNode ``` --- ### `StatusBoardProps.renderOverallStatus` property Custom render for overall status **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `status` | `OverallStatus` | ✓ | | **Returns** — `ReactNode` ```tsx renderOverallStatus(status: OverallStatus): ReactNode ``` --- ### `StatusBoardProps.showComponentDescriptions` property Show component descriptions ```tsx showComponentDescriptions: boolean ``` --- ### `StatusBoardProps.showIncidentHistory` property Show incident history ```tsx showIncidentHistory: boolean ``` --- ### `StatusBoardProps.status` property Status data to display ```tsx status: StatusData ``` ## StatusComponent ### `StatusComponent.description` property ```tsx description: string ``` --- ### `StatusComponent.group` property ```tsx group: string ``` --- ### `StatusComponent.id` property ```tsx id: string ``` --- ### `StatusComponent.name` property ```tsx name: string ``` --- ### `StatusComponent.status` property ```tsx status: ComponentStatus ``` ## StatusData ### `StatusData.components` property ```tsx components: StatusComponent[] ``` --- ### `StatusData.incidents` property ```tsx incidents: StatusIncident[] ``` --- ### `StatusData.last_updated` property ```tsx last_updated: string ``` --- ### `StatusData.overall_status` property ```tsx overall_status: OverallStatus ``` ## StatusIncident ### `StatusIncident.affected_components` property ```tsx affected_components: string[] ``` --- ### `StatusIncident.created_at` property ```tsx created_at: string ``` --- ### `StatusIncident.id` property ```tsx id: string ``` --- ### `StatusIncident.impact` property ```tsx impact: IncidentImpact ``` --- ### `StatusIncident.resolved_at` property ```tsx resolved_at: string | null ``` --- ### `StatusIncident.status` property ```tsx status: IncidentStatus ``` --- ### `StatusIncident.title` property ```tsx title: string ``` --- ### `StatusIncident.updates` property ```tsx updates: IncidentUpdate[] ``` ## StatusIncidentDetailProps ### `StatusIncidentDetailProps.className` property Custom class name ```tsx className: string ``` --- ### `StatusIncidentDetailProps.incident` property The incident to display ```tsx incident: StatusIncident ``` --- ### `StatusIncidentDetailProps.onBack` property Back button click handler **Returns** — `void` ```tsx onBack(): void ``` --- ### `StatusIncidentDetailProps.showAffectedComponents` property Show affected components ```tsx showAffectedComponents: boolean ``` --- ### `StatusIncidentDetailProps.showBackButton` property Show back button ```tsx showBackButton: boolean ``` ## StatusPage ### `StatusPage.created_at` property ```tsx created_at: string ``` --- ### `StatusPage.description` property ```tsx description: string | null ``` --- ### `StatusPage.id` property ```tsx id: string ``` --- ### `StatusPage.is_active` property ```tsx is_active: boolean ``` --- ### `StatusPage.name` property ```tsx name: string ``` --- ### `StatusPage.project_id` property ```tsx project_id: string ``` --- ### `StatusPage.slug` property ```tsx slug: string ``` --- ### `StatusPage.updated_at` property ```tsx updated_at: string ``` ## StatusPageOverview ### `StatusPageOverview.active_count` property ```tsx active_count: number ``` --- ### `StatusPageOverview.active_updates` property ```tsx active_updates: StatusUpdate[] ``` --- ### `StatusPageOverview.current_status` property ```tsx current_status: StatusType ``` --- ### `StatusPageOverview.recent_updates` property ```tsx recent_updates: StatusUpdate[] ``` --- ### `StatusPageOverview.resolved_count` property ```tsx resolved_count: number ``` --- ### `StatusPageOverview.services` property ```tsx services: StatusPageService[] ``` --- ### `StatusPageOverview.services_status` property ```tsx services_status: Record ``` --- ### `StatusPageOverview.status_breakdown` property ```tsx status_breakdown: Record ``` --- ### `StatusPageOverview.status_page` property ```tsx status_page: StatusPage ``` --- ### `StatusPageOverview.total_updates` property ```tsx total_updates: number ``` ## StatusPageService ### `StatusPageService.color` property ```tsx color: string | null ``` --- ### `StatusPageService.created_at` property ```tsx created_at: string ``` --- ### `StatusPageService.description` property ```tsx description: string | null ``` --- ### `StatusPageService.group_name` property ```tsx group_name: string | null ``` --- ### `StatusPageService.id` property ```tsx id: string ``` --- ### `StatusPageService.is_active` property ```tsx is_active: boolean ``` --- ### `StatusPageService.name` property ```tsx name: string ``` --- ### `StatusPageService.sort_order` property ```tsx sort_order: number ``` --- ### `StatusPageService.status_page_id` property ```tsx status_page_id: string ``` --- ### `StatusPageService.updated_at` property ```tsx updated_at: string ``` ## StatusUpdateApi ### `StatusUpdateApi.affected_services` property ```tsx affected_services: string[] ``` --- ### `StatusUpdateApi.created_at` property ```tsx created_at: string ``` --- ### `StatusUpdateApi.description` property ```tsx description: string ``` --- ### `StatusUpdateApi.id` property ```tsx id: string ``` --- ### `StatusUpdateApi.is_public` property ```tsx is_public: boolean ``` --- ### `StatusUpdateApi.resolved_at` property ```tsx resolved_at: string | null ``` --- ### `StatusUpdateApi.state` property ```tsx state: StatusState ``` --- ### `StatusUpdateApi.status_page_id` property ```tsx status_page_id: string ``` --- ### `StatusUpdateApi.status_type` property ```tsx status_type: StatusType ``` --- ### `StatusUpdateApi.title` property ```tsx title: string ``` --- ### `StatusUpdateApi.updated_at` property ```tsx updated_at: string ``` ## SubmitWishFormProps ### `SubmitWishFormProps.className` property Custom class name ```tsx className: string ``` --- ### `SubmitWishFormProps.customFormId` property Custom form ID to use instead of default form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'wish' to create feature requests. ```tsx customFormId: string ``` --- ### `SubmitWishFormProps.description` property Form description ```tsx description: string ``` --- ### `SubmitWishFormProps.onError` property Callback when submission fails **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `SubmitWishFormProps.onOpenChange` property Callback when open state changes **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `open` | `boolean` | ✓ | | **Returns** — `void` ```tsx onOpenChange(open: boolean): void ``` --- ### `SubmitWishFormProps.onSuccess` property Callback when wish is successfully submitted **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wish` | `Wish` | ✓ | | **Returns** — `void` ```tsx onSuccess(wish: Wish): void ``` --- ### `SubmitWishFormProps.open` property Whether the form is open ```tsx open: boolean ``` --- ### `SubmitWishFormProps.submitButtonText` property Submit button text ```tsx submitButtonText: string ``` --- ### `SubmitWishFormProps.title` property Form title ```tsx title: string ``` ## SupportAttachment ### `SupportAttachment.mime_type` property ```tsx mime_type: string ``` --- ### `SupportAttachment.name` property ```tsx name: string ``` --- ### `SupportAttachment.size` property ```tsx size: number ``` --- ### `SupportAttachment.url` property ```tsx url: string ``` ## SupportFormProps ### `SupportFormProps.accessToken` property Access token for viewing tickets (from magic link) ```tsx accessToken: string ``` --- ### `SupportFormProps.checkDescription` property Check status section description ```tsx checkDescription: string ``` --- ### `SupportFormProps.checkTitle` property Check status section title ```tsx checkTitle: string ``` --- ### `SupportFormProps.className` property Custom class name ```tsx className: string ``` --- ### `SupportFormProps.customFormId` property Custom contact form ID to use instead of default support form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'support' to create tickets. ```tsx customFormId: string ``` --- ### `SupportFormProps.description` property Page description ```tsx description: string ``` --- ### `SupportFormProps.heading` property Page heading ```tsx heading: string ``` --- ### `SupportFormProps.headingAlignment` property Heading alignment ```tsx headingAlignment: "left" | "center" | "right" ``` --- ### `SupportFormProps.onCheckStatus` property Callback when checking status (optional - uses magic link by default) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | ✓ | | **Returns** — `void` ```tsx onCheckStatus(email: string): void ``` --- ### `SupportFormProps.onSubmitError` property Callback when submission fails **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onSubmitError(error: string): void ``` --- ### `SupportFormProps.onSubmitSuccess` property Callback when ticket is successfully submitted **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticket` | `SupportRequest` | ✓ | | **Returns** — `void` ```tsx onSubmitSuccess(ticket: SupportRequest): void ``` --- ### `SupportFormProps.onTicketClick` property Callback when a ticket is clicked **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticket` | `SupportRequest` | ✓ | | **Returns** — `void` ```tsx onTicketClick(ticket: SupportRequest): void ``` --- ### `SupportFormProps.showAttachments` property Show file attachments ```tsx showAttachments: boolean ``` --- ### `SupportFormProps.showCategory` property Show category selector ```tsx showCategory: boolean ``` --- ### `SupportFormProps.showCheckStatus` property Show check status tab ```tsx showCheckStatus: boolean ``` --- ### `SupportFormProps.showName` property Show name field ```tsx showName: boolean ``` --- ### `SupportFormProps.submitButtonText` property Submit button text ```tsx submitButtonText: string ``` --- ### `SupportFormProps.submitDescription` property Submit section description ```tsx submitDescription: string ``` --- ### `SupportFormProps.submitTitle` property Submit section title ```tsx submitTitle: string ``` ## SupportMessage ### `SupportMessage.attachments` property ```tsx attachments: SupportAttachment[] ``` --- ### `SupportMessage.author_email` property ```tsx author_email: string | null ``` --- ### `SupportMessage.author_name` property ```tsx author_name: string | null ``` --- ### `SupportMessage.author_type` property ```tsx author_type: "user" | "team_member" ``` --- ### `SupportMessage.author_user_id` property ```tsx author_user_id: string | null ``` --- ### `SupportMessage.content` property ```tsx content: string ``` --- ### `SupportMessage.created_at` property ```tsx created_at: string ``` --- ### `SupportMessage.id` property ```tsx id: string ``` --- ### `SupportMessage.is_internal` property ```tsx is_internal: boolean ``` --- ### `SupportMessage.support_request_id` property ```tsx support_request_id: string ``` ## SupportRequest ### `SupportRequest.assignee_id` property ```tsx assignee_id: string | null ``` --- ### `SupportRequest.attachments` property ```tsx attachments: SupportAttachment[] ``` --- ### `SupportRequest.category` property ```tsx category: SupportRequestCategory | null ``` --- ### `SupportRequest.created_at` property ```tsx created_at: string ``` --- ### `SupportRequest.description` property ```tsx description: string ``` --- ### `SupportRequest.id` property ```tsx id: string ``` --- ### `SupportRequest.message_count` property ```tsx message_count: number ``` --- ### `SupportRequest.messages` property ```tsx messages: SupportMessage[] ``` --- ### `SupportRequest.priority` property ```tsx priority: SupportRequestPriority | null ``` --- ### `SupportRequest.project_id` property ```tsx project_id: string ``` --- ### `SupportRequest.resolved_at` property ```tsx resolved_at: string | null ``` --- ### `SupportRequest.status` property ```tsx status: SupportRequestStatus ``` --- ### `SupportRequest.subject` property ```tsx subject: string ``` --- ### `SupportRequest.updated_at` property ```tsx updated_at: string ``` --- ### `SupportRequest.user_email` property ```tsx user_email: string ``` --- ### `SupportRequest.user_name` property ```tsx user_name: string | null ``` ## SupportRequestInput ### `SupportRequestInput.attachments` property ```tsx attachments: File[] ``` --- ### `SupportRequestInput.category` property ```tsx category: SupportRequestCategory ``` --- ### `SupportRequestInput.description` property ```tsx description: string ``` --- ### `SupportRequestInput.external_user_id` property ```tsx external_user_id: string ``` --- ### `SupportRequestInput.subject` property ```tsx subject: string ``` --- ### `SupportRequestInput.user_email` property ```tsx user_email: string ``` --- ### `SupportRequestInput.user_name` property ```tsx user_name: string ``` ## SupportRequestsResponse ### `SupportRequestsResponse.data` property ```tsx data: SupportRequest[] ``` --- ### `SupportRequestsResponse.page` property ```tsx page: number ``` --- ### `SupportRequestsResponse.per_page` property ```tsx per_page: number ``` --- ### `SupportRequestsResponse.total` property ```tsx total: number ``` --- ### `SupportRequestsResponse.total_pages` property ```tsx total_pages: number ``` ## Survey ### `Survey.created_at` property ```tsx created_at: string ``` --- ### `Survey.description` property ```tsx description: string ``` --- ### `Survey.id` property ```tsx id: string ``` --- ### `Survey.is_active` property ```tsx is_active: boolean ``` --- ### `Survey.name` property ```tsx name: string ``` --- ### `Survey.nodes` property ```tsx nodes: SurveyNode[] ``` --- ### `Survey.number_of_questions` property ```tsx number_of_questions: number ``` --- ### `Survey.number_of_responses` property ```tsx number_of_responses: number ``` --- ### `Survey.project_id` property ```tsx project_id: string ``` --- ### `Survey.responses` property ```tsx responses: SurveyResponse[] ``` --- ### `Survey.slug` property ```tsx slug: string ``` --- ### `Survey.updated_at` property ```tsx updated_at: string ``` ## SurveyAnswer ### `SurveyAnswer.answer` property ```tsx answer: boolean ``` --- ### `SurveyAnswer.answer_options` property ```tsx answer_options: string[] ``` --- ### `SurveyAnswer.answer_rating` property ```tsx answer_rating: number ``` --- ### `SurveyAnswer.answer_text` property ```tsx answer_text: string ``` --- ### `SurveyAnswer.created_at` property ```tsx created_at: string ``` --- ### `SurveyAnswer.id` property ```tsx id: string ``` --- ### `SurveyAnswer.node` property ```tsx node: object ``` --- ### `SurveyAnswer.node_id` property ```tsx node_id: string ``` --- ### `SurveyAnswer.response_id` property ```tsx response_id: string ``` ## SurveyNode ### `SurveyNode.answer_no_node_id` property ```tsx answer_no_node_id: string | null ``` --- ### `SurveyNode.answer_yes_node_id` property ```tsx answer_yes_node_id: string | null ``` --- ### `SurveyNode.branches` property ```tsx branches: SurveyNodeBranch[] ``` --- ### `SurveyNode.created_at` property ```tsx created_at: string ``` --- ### `SurveyNode.id` property ```tsx id: string ``` --- ### `SurveyNode.is_required` property ```tsx is_required: boolean ``` --- ### `SurveyNode.max_rating` property ```tsx max_rating: number ``` --- ### `SurveyNode.min_rating` property ```tsx min_rating: number ``` --- ### `SurveyNode.next_node_id` property ```tsx next_node_id: string | null ``` --- ### `SurveyNode.options` property ```tsx options: SurveyNodeOption[] ``` --- ### `SurveyNode.parent_id` property ```tsx parent_id: string | null ``` --- ### `SurveyNode.question` property ```tsx question: string ``` --- ### `SurveyNode.question_type` property ```tsx question_type: SurveyQuestionType ``` --- ### `SurveyNode.result_message` property ```tsx result_message: string | null ``` --- ### `SurveyNode.sort_order` property ```tsx sort_order: number ``` --- ### `SurveyNode.survey_id` property ```tsx survey_id: string ``` --- ### `SurveyNode.updated_at` property ```tsx updated_at: string ``` ## SurveyNodeBranch ### `SurveyNodeBranch.condition` property ```tsx condition: object ``` --- ### `SurveyNodeBranch.next_node_id` property ```tsx next_node_id: string ``` ## SurveyNodeOption ### `SurveyNodeOption.label` property ```tsx label: string ``` --- ### `SurveyNodeOption.value` property ```tsx value: string ``` ## SurveyRendererProps ### `SurveyRendererProps.className` property Custom class name ```tsx className: string ``` --- ### `SurveyRendererProps.description` property Optional description override ```tsx description: string ``` --- ### `SurveyRendererProps.externalUserId` property External user ID to attach to the response ```tsx externalUserId: string ``` --- ### `SurveyRendererProps.metadata` property Additional metadata to attach to the response ```tsx metadata: Record ``` --- ### `SurveyRendererProps.onComplete` property Called when the survey is submitted successfully **Returns** — `void` ```tsx onComplete(): void ``` --- ### `SurveyRendererProps.onError` property Called on submission error **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `SurveyRendererProps.slug` property Survey slug to load ```tsx slug: string ``` --- ### `SurveyRendererProps.title` property Optional title override ```tsx title: string ``` ## SurveyResponse ### `SurveyResponse.answers` property ```tsx answers: SurveyAnswer[] ``` --- ### `SurveyResponse.created_at` property ```tsx created_at: string ``` --- ### `SurveyResponse.external_user_id` property ```tsx external_user_id: string | null ``` --- ### `SurveyResponse.fingerprint` property ```tsx fingerprint: string ``` --- ### `SurveyResponse.id` property ```tsx id: string ``` --- ### `SurveyResponse.metadata` property ```tsx metadata: Record ``` --- ### `SurveyResponse.survey_id` property ```tsx survey_id: string ``` ## SurveySubmitInput ### `SurveySubmitInput.answers` property ```tsx answers: object[] ``` --- ### `SurveySubmitInput.external_user_id` property ```tsx external_user_id: string ``` --- ### `SurveySubmitInput.fingerprint` property ```tsx fingerprint: string ``` --- ### `SurveySubmitInput.metadata` property ```tsx metadata: Record ``` ## UseBlogCategoriesOptions ### `UseBlogCategoriesOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseBlogCategoriesResult ### `UseBlogCategoriesResult.categories` property List of blog categories ```tsx categories: BlogCategory[] ``` --- ### `UseBlogCategoriesResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseBlogCategoriesResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseBlogCategoriesResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseBlogPostOptions ### `UseBlogPostOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` --- ### `UseBlogPostOptions.slug` property The blog post slug to fetch ```tsx slug: string ``` ## UseBlogPostResult ### `UseBlogPostResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseBlogPostResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseBlogPostResult.post` property The blog post data ```tsx post: BlogPost | null ``` --- ### `UseBlogPostResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseBlogPostResult.relatedPosts` property Related posts ```tsx relatedPosts: BlogPost[] ``` ## UseBlogPostsOptions ### `UseBlogPostsOptions.category` property Filter by category slug ```tsx category: string ``` --- ### `UseBlogPostsOptions.featured` property Only featured posts ```tsx featured: boolean ``` --- ### `UseBlogPostsOptions.per_page` property Items per page ```tsx per_page: number ``` --- ### `UseBlogPostsOptions.refreshInterval` property Auto-refresh interval in milliseconds ```tsx refreshInterval: number ``` --- ### `UseBlogPostsOptions.search` property Search query ```tsx search: string ``` --- ### `UseBlogPostsOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` --- ### `UseBlogPostsOptions.tag` property Filter by tag ```tsx tag: string ``` ## UseBlogPostsResult ### `UseBlogPostsResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseBlogPostsResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseBlogPostsResult.page` property Current page number ```tsx page: number ``` --- ### `UseBlogPostsResult.posts` property List of blog posts ```tsx posts: BlogPost[] ``` --- ### `UseBlogPostsResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseBlogPostsResult.setFilters` property Update filters **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `filters` | `Partial` | ✓ | | **Returns** — `void` ```tsx setFilters(filters: Partial): void ``` --- ### `UseBlogPostsResult.setPage` property Set the current page **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `page` | `number` | ✓ | | **Returns** — `void` ```tsx setPage(page: number): void ``` --- ### `UseBlogPostsResult.total` property Total number of posts ```tsx total: number ``` --- ### `UseBlogPostsResult.totalPages` property Total number of pages ```tsx totalPages: number ``` ## UseCommentsOptions ### `UseCommentsOptions.perPage` property Number of comments per page ```tsx perPage: number ``` --- ### `UseCommentsOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` --- ### `UseCommentsOptions.wishId` property The wish ID to fetch comments for ```tsx wishId: string ``` ## UseCommentsResult ### `UseCommentsResult.comments` property List of comments ```tsx comments: Comment[] ``` --- ### `UseCommentsResult.createComment` property Create a new comment **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `Omit` | ✓ | | **Returns** — `Promise` ```tsx createComment(data: Omit): Promise ``` --- ### `UseCommentsResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseCommentsResult.isCreating` property Loading state for creating a comment ```tsx isCreating: boolean ``` --- ### `UseCommentsResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseCommentsResult.nextPage` property Go to next page **Returns** — `void` ```tsx nextPage(): void ``` --- ### `UseCommentsResult.page` property Current page ```tsx page: number ``` --- ### `UseCommentsResult.prevPage` property Go to previous page **Returns** — `void` ```tsx prevPage(): void ``` --- ### `UseCommentsResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseCommentsResult.setPage` property Go to specific page **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `page` | `number` | ✓ | | **Returns** — `void` ```tsx setPage(page: number): void ``` --- ### `UseCommentsResult.total` property Total number of comments ```tsx total: number ``` --- ### `UseCommentsResult.totalPages` property Total pages ```tsx totalPages: number ``` ## UseContactFormOptions ### `UseContactFormOptions.enabled` property Whether to fetch the form immediately ```tsx enabled: boolean ``` --- ### `UseContactFormOptions.trackView` property Whether to track form views for analytics ```tsx trackView: boolean ``` ## UseContactFormResult ### `UseContactFormResult.error` property ```tsx error: string | null ``` --- ### `UseContactFormResult.form` property ```tsx form: ContactForm | null ``` --- ### `UseContactFormResult.isLoading` property ```tsx isLoading: boolean ``` --- ### `UseContactFormResult.refetch` property **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseContactFormSubmitOptions ### `UseContactFormSubmitOptions.onError` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `UseContactFormSubmitOptions.onSuccess` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `submission` | `ContactFormSubmission` | ✓ | | **Returns** — `void` ```tsx onSuccess(submission: ContactFormSubmission): void ``` --- ### `UseContactFormSubmitOptions.rateLimitMs` property Rate limit cooldown in milliseconds ```tsx rateLimitMs: number ``` ## UseContactFormSubmitResult ### `UseContactFormSubmitResult.clearMessages` property **Returns** — `void` ```tsx clearMessages(): void ``` --- ### `UseContactFormSubmitResult.error` property ```tsx error: string | null ``` --- ### `UseContactFormSubmitResult.isRateLimited` property ```tsx isRateLimited: boolean ``` --- ### `UseContactFormSubmitResult.isSubmitting` property ```tsx isSubmitting: boolean ``` --- ### `UseContactFormSubmitResult.submitForm` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `projectId` | `string` | ✓ | | | `formId` | `string` | ✓ | | | `data` | `ContactFormSubmitInput` | ✓ | | **Returns** — `Promise` ```tsx submitForm(projectId: string, formId: string, data: ContactFormSubmitInput): Promise ``` --- ### `UseContactFormSubmitResult.successMessage` property ```tsx successMessage: string | null ``` --- ### `UseContactFormSubmitResult.validateField` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `value` | `string` | ✓ | | | `field` | `object` | ✓ | | **Returns** — `string | null` ```tsx validateField(value: string, field: object): string | null ``` ## UseFeaturedPostsOptions ### `UseFeaturedPostsOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseFeaturedPostsResult ### `UseFeaturedPostsResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseFeaturedPostsResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseFeaturedPostsResult.posts` property List of featured blog posts ```tsx posts: BlogPost[] ``` --- ### `UseFeaturedPostsResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseHelpArticleOptions ### `UseHelpArticleOptions.articleSlug` property The article slug to fetch ```tsx articleSlug: string ``` --- ### `UseHelpArticleOptions.flowId` property The flow ID the article belongs to ```tsx flowId: string ``` --- ### `UseHelpArticleOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseHelpArticleResult ### `UseHelpArticleResult.article` property The article data ```tsx article: HelpArticle | null ``` --- ### `UseHelpArticleResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseHelpArticleResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseHelpArticleResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseHelpCenterOptions ### `UseHelpCenterOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseHelpCenterResult ### `UseHelpCenterResult.collection` property Help collection ```tsx collection: HelpCollection | null ``` --- ### `UseHelpCenterResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseHelpCenterResult.flows` property Help flows ```tsx flows: HelpFlow[] ``` --- ### `UseHelpCenterResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseHelpCenterResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseHelpFlowOptions ### `UseHelpFlowOptions.flowSlug` property The flow slug to fetch ```tsx flowSlug: string ``` --- ### `UseHelpFlowOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseHelpFlowResult ### `UseHelpFlowResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseHelpFlowResult.flow` property The flow data ```tsx flow: HelpFlow | null ``` --- ### `UseHelpFlowResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseHelpFlowResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseReleaseOptions ### `UseReleaseOptions.releaseSlug` property The release slug to fetch ```tsx releaseSlug: string ``` --- ### `UseReleaseOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseReleaseResult ### `UseReleaseResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseReleaseResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseReleaseResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseReleaseResult.release` property The release data ```tsx release: Release | null ``` ## UseReleasesOptions ### `UseReleasesOptions.limit` property Maximum number of releases to fetch ```tsx limit: number ``` --- ### `UseReleasesOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseReleasesResult ### `UseReleasesResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseReleasesResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseReleasesResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseReleasesResult.releases` property List of releases ```tsx releases: Release[] ``` ## UseRoadmapOptions ### `UseRoadmapOptions.refreshInterval` property Auto-refresh interval in milliseconds (0 to disable) ```tsx refreshInterval: number ``` --- ### `UseRoadmapOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseRoadmapResult ### `UseRoadmapResult.columns` property Roadmap columns with items ```tsx columns: RoadmapColumn[] ``` --- ### `UseRoadmapResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseRoadmapResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseRoadmapResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseRoadmapResult.roadmap` property Roadmap data ```tsx roadmap: Roadmap | null ``` --- ### `UseRoadmapResult.totalItems` property Total number of items ```tsx totalItems: number ``` ## UseStatusOptions ### `UseStatusOptions.enabled` property Whether to fetch immediately ```tsx enabled: boolean ``` --- ### `UseStatusOptions.refreshInterval` property Auto-refresh interval in milliseconds (0 to disable) ```tsx refreshInterval: number ``` --- ### `UseStatusOptions.slug` property Status page slug ```tsx slug: string ``` ## UseStatusResult ### `UseStatusResult.error` property Error message ```tsx error: string | null ``` --- ### `UseStatusResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseStatusResult.overview` property Raw API overview response ```tsx overview: StatusPageOverview | null ``` --- ### `UseStatusResult.refetch` property Manually refresh **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseStatusResult.status` property Transformed status data ready for StatusBoard ```tsx status: StatusData | null ``` ## UseSupportOptions ### `UseSupportOptions.onSubmitError` property Callback when a submission fails **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onSubmitError(error: string): void ``` --- ### `UseSupportOptions.onSubmitSuccess` property Callback when a ticket is successfully submitted **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticket` | `SupportRequest` | ✓ | | **Returns** — `void` ```tsx onSubmitSuccess(ticket: SupportRequest): void ``` ## UseSupportResult ### `UseSupportResult.addMessage` property Add a message to a ticket **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticketId` | `string` | ✓ | | | `token` | `string` | ✓ | | | `content` | `string` | ✓ | | **Returns** — `Promise` ```tsx addMessage(ticketId: string, token: string, content: string): Promise ``` --- ### `UseSupportResult.clearMessages` property Clear any error or success messages **Returns** — `void` ```tsx clearMessages(): void ``` --- ### `UseSupportResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseSupportResult.getTicket` property Get a specific ticket by ID with token **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticketId` | `string` | ✓ | | | `token` | `string` | ✓ | | **Returns** — `Promise` ```tsx getTicket(ticketId: string, token: string): Promise ``` --- ### `UseSupportResult.isSendingMagicLink` property Loading state for magic link request ```tsx isSendingMagicLink: boolean ``` --- ### `UseSupportResult.isSubmitting` property Loading state for ticket submission ```tsx isSubmitting: boolean ``` --- ### `UseSupportResult.isVerifying` property Loading state for token verification ```tsx isVerifying: boolean ``` --- ### `UseSupportResult.requestMagicLink` property Request a magic link to access tickets **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | ✓ | | **Returns** — `Promise` ```tsx requestMagicLink(email: string): Promise ``` --- ### `UseSupportResult.submitTicket` property Submit a new support ticket **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `SupportRequestInput` | ✓ | | **Returns** — `Promise` ```tsx submitTicket(data: SupportRequestInput): Promise ``` --- ### `UseSupportResult.successMessage` property Success message after submitting ```tsx successMessage: string | null ``` --- ### `UseSupportResult.verifyToken` property Verify a magic link token **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `token` | `string` | ✓ | | **Returns** — `Promise` ```tsx verifyToken(token: string): Promise ``` ## UseSurveyOptions ### `UseSurveyOptions.enabled` property Whether to fetch the survey immediately ```tsx enabled: boolean ``` ## UseSurveyResult ### `UseSurveyResult.error` property ```tsx error: string | null ``` --- ### `UseSurveyResult.isLoading` property ```tsx isLoading: boolean ``` --- ### `UseSurveyResult.nodes` property ```tsx nodes: SurveyNode[] ``` --- ### `UseSurveyResult.refetch` property **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseSurveyResult.survey` property ```tsx survey: Survey | null ``` ## UseSurveySubmitOptions ### `UseSurveySubmitOptions.onError` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `UseSurveySubmitOptions.onSuccess` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `response` | `SurveyResponse` | ✓ | | **Returns** — `void` ```tsx onSuccess(response: SurveyResponse): void ``` ## UseSurveySubmitResult ### `UseSurveySubmitResult.clearMessages` property **Returns** — `void` ```tsx clearMessages(): void ``` --- ### `UseSurveySubmitResult.error` property ```tsx error: string | null ``` --- ### `UseSurveySubmitResult.isSubmitting` property ```tsx isSubmitting: boolean ``` --- ### `UseSurveySubmitResult.submitResponse` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `surveyId` | `string` | ✓ | | | `data` | `SurveySubmitInput` | ✓ | | **Returns** — `Promise` ```tsx submitResponse(surveyId: string, data: SurveySubmitInput): Promise ``` --- ### `UseSurveySubmitResult.successMessage` property ```tsx successMessage: string | null ``` ## UseVoteOptions ### `UseVoteOptions.initialHasVoted` property Initial hasVoted state (optional) ```tsx initialHasVoted: boolean ``` --- ### `UseVoteOptions.initialVoteCount` property Initial vote count (optional, useful when you already have the wish data) ```tsx initialVoteCount: number ``` --- ### `UseVoteOptions.onVoteChange` property Callback when vote state changes **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `hasVoted` | `boolean` | ✓ | | | `voteCount` | `number` | ✓ | | **Returns** — `void` ```tsx onVoteChange(hasVoted: boolean, voteCount: number): void ``` --- ### `UseVoteOptions.skipAutoCheck` property Skip automatic vote check on mount to avoid rate limiting When true, vote status will be checked lazily on first interaction ```tsx skipAutoCheck: boolean ``` --- ### `UseVoteOptions.voterEmail` property Voter email (optional, for identified voting) ```tsx voterEmail: string ``` --- ### `UseVoteOptions.wishId` property The wish ID to vote on ```tsx wishId: string ``` ## UseVoteResult ### `UseVoteResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseVoteResult.hasVoted` property Whether the current user has voted ```tsx hasVoted: boolean ``` --- ### `UseVoteResult.isChecking` property Loading state for initial vote check ```tsx isChecking: boolean ``` --- ### `UseVoteResult.isLoading` property Loading state for vote operations ```tsx isLoading: boolean ``` --- ### `UseVoteResult.toggle` property Toggle vote (vote if not voted, unvote if voted) **Returns** — `Promise` ```tsx toggle(): Promise ``` --- ### `UseVoteResult.unvote` property Remove a vote **Returns** — `Promise` ```tsx unvote(): Promise ``` --- ### `UseVoteResult.vote` property Cast a vote **Returns** — `Promise` ```tsx vote(): Promise ``` --- ### `UseVoteResult.voteCount` property Current vote count ```tsx voteCount: number ``` ## UseWaitlistOptions ### `UseWaitlistOptions.email` property Email to auto-check waitlist status for on mount ```tsx email: string ``` --- ### `UseWaitlistOptions.fetchCountOnMount` property Whether to fetch the waitlist count on mount ```tsx fetchCountOnMount: boolean ``` --- ### `UseWaitlistOptions.onJoinError` property Callback when join fails **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onJoinError(error: string): void ``` --- ### `UseWaitlistOptions.onJoinSuccess` property Callback when successfully joined the waitlist **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `entry` | `WaitlistEntry` | ✓ | | **Returns** — `void` ```tsx onJoinSuccess(entry: WaitlistEntry): void ``` --- ### `UseWaitlistOptions.onLeaveError` property Callback when leave fails **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onLeaveError(error: string): void ``` --- ### `UseWaitlistOptions.onLeaveSuccess` property Callback when successfully left the waitlist **Returns** — `void` ```tsx onLeaveSuccess(): void ``` ## UseWaitlistResult ### `UseWaitlistResult.checkStatus` property Check if an email is on the waitlist **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | ✓ | | **Returns** — `Promise` ```tsx checkStatus(email: string): Promise ``` --- ### `UseWaitlistResult.clearMessages` property Clear error and success messages **Returns** — `void` ```tsx clearMessages(): void ``` --- ### `UseWaitlistResult.count` property Total count of users on the waitlist ```tsx count: number | null ``` --- ### `UseWaitlistResult.error` property Error message if any operation failed ```tsx error: string | null ``` --- ### `UseWaitlistResult.isCheckingStatus` property Loading state for status check ```tsx isCheckingStatus: boolean ``` --- ### `UseWaitlistResult.isJoining` property Loading state for join operation ```tsx isJoining: boolean ``` --- ### `UseWaitlistResult.isLeaving` property Loading state for leave operation ```tsx isLeaving: boolean ``` --- ### `UseWaitlistResult.isLoading` property Loading state for initial data fetch ```tsx isLoading: boolean ``` --- ### `UseWaitlistResult.isOnWaitlist` property Whether the provided email is on the waitlist ```tsx isOnWaitlist: boolean | null ``` --- ### `UseWaitlistResult.join` property Join the waitlist **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `WaitlistJoinInput` | ✓ | | **Returns** — `Promise` ```tsx join(data: WaitlistJoinInput): Promise ``` --- ### `UseWaitlistResult.leave` property Leave the waitlist **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | ✓ | | **Returns** — `Promise` ```tsx leave(email: string): Promise ``` --- ### `UseWaitlistResult.refreshCount` property Refresh the waitlist count **Returns** — `Promise` ```tsx refreshCount(): Promise ``` --- ### `UseWaitlistResult.status` property Current user's waitlist status details ```tsx status: WaitlistStatus | null ``` --- ### `UseWaitlistResult.successMessage` property Success message after successful operation ```tsx successMessage: string | null ``` ## UseWishesOptions ### `UseWishesOptions.filters` property Initial filters ```tsx filters: WishFilters ``` --- ### `UseWishesOptions.refreshInterval` property Auto-refresh interval in milliseconds (0 to disable) ```tsx refreshInterval: number ``` --- ### `UseWishesOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseWishesResult ### `UseWishesResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseWishesResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseWishesResult.page` property Current page ```tsx page: number ``` --- ### `UseWishesResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseWishesResult.setFilters` property Update filters **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `filters` | `WishFilters` | ✓ | | **Returns** — `void` ```tsx setFilters(filters: WishFilters): void ``` --- ### `UseWishesResult.setPage` property Go to a specific page **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `page` | `number` | ✓ | | **Returns** — `void` ```tsx setPage(page: number): void ``` --- ### `UseWishesResult.total` property Total number of wishes ```tsx total: number ``` --- ### `UseWishesResult.totalPages` property Total pages ```tsx totalPages: number ``` --- ### `UseWishesResult.wishes` property List of wishes ```tsx wishes: Wish[] ``` ## UseWishOptions ### `UseWishOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` --- ### `UseWishOptions.wishId` property The wish ID to fetch ```tsx wishId: string ``` ## UseWishResult ### `UseWishResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseWishResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseWishResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseWishResult.wish` property The wish data ```tsx wish: Wish | null ``` ## Vote ### `Vote.created_at` property ```tsx created_at: string ``` --- ### `Vote.fingerprint` property ```tsx fingerprint: string ``` --- ### `Vote.id` property ```tsx id: string ``` --- ### `Vote.user_id` property ```tsx user_id: string | null ``` --- ### `Vote.voter_email` property ```tsx voter_email: string | null ``` --- ### `Vote.wish_id` property ```tsx wish_id: string ``` ## VoteButtonProps ### `VoteButtonProps.className` property Custom class name ```tsx className: string ``` --- ### `VoteButtonProps.initialHasVoted` property Initial hasVoted state (optional) ```tsx initialHasVoted: boolean ``` --- ### `VoteButtonProps.initialVoteCount` property Initial vote count (optional, useful when you already have the wish data) ```tsx initialVoteCount: number ``` --- ### `VoteButtonProps.onVoteChange` property Callback when vote state changes **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `hasVoted` | `boolean` | ✓ | | | `voteCount` | `number` | ✓ | | **Returns** — `void` ```tsx onVoteChange(hasVoted: boolean, voteCount: number): void ``` --- ### `VoteButtonProps.renderContent` property Custom render function for the button content **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `props` | `object` | ✓ | | **Returns** — `ReactNode` ```tsx renderContent(props: object): ReactNode ``` --- ### `VoteButtonProps.showCount` property Show vote count ```tsx showCount: boolean ``` --- ### `VoteButtonProps.size` property Size variant ```tsx size: "sm" | "md" | "lg" ``` --- ### `VoteButtonProps.skipAutoCheck` property Skip automatic vote check on mount to avoid rate limiting When true, vote status will be checked lazily on first interaction ```tsx skipAutoCheck: boolean ``` --- ### `VoteButtonProps.voterEmail` property Voter email (optional, for identified voting) ```tsx voterEmail: string ``` --- ### `VoteButtonProps.wishId` property The wish ID to vote on ```tsx wishId: string ``` ## VoteCheckResponse ### `VoteCheckResponse.has_voted` property ```tsx has_voted: boolean ``` --- ### `VoteCheckResponse.vote_id` property ```tsx vote_id: string ``` ## VoteCreateInput ### `VoteCreateInput.fingerprint` property ```tsx fingerprint: string ``` --- ### `VoteCreateInput.voter_email` property ```tsx voter_email: string ``` --- ### `VoteCreateInput.wish_id` property ```tsx wish_id: string ``` ## VoteState ### `VoteState.error` property ```tsx error: string | null ``` --- ### `VoteState.hasVoted` property ```tsx hasVoted: boolean ``` --- ### `VoteState.isLoading` property ```tsx isLoading: boolean ``` --- ### `VoteState.voteCount` property ```tsx voteCount: number ``` --- ### `VoteState.voteId` property ```tsx voteId: string ``` ## WaitlistCount ### `WaitlistCount.count` property Total number of users on the waitlist ```tsx count: number ``` ## WaitlistEntry ### `WaitlistEntry.created_at` property When the user joined ```tsx created_at: string ``` --- ### `WaitlistEntry.email` property Email address ```tsx email: string ``` --- ### `WaitlistEntry.id` property Unique ID of the waitlist entry ```tsx id: string ``` --- ### `WaitlistEntry.name` property Name (if provided) ```tsx name: string ``` --- ### `WaitlistEntry.position` property Position in the waitlist ```tsx position: number ``` ## WaitlistJoinInput ### `WaitlistJoinInput.email` property Email address to add to waitlist ```tsx email: string ``` --- ### `WaitlistJoinInput.metadata` property Optional additional metadata ```tsx metadata: Record ``` --- ### `WaitlistJoinInput.name` property Optional name of the user ```tsx name: string ``` ## WaitlistStatus ### `WaitlistStatus.is_on_waitlist` property Whether the user/email is on the waitlist ```tsx is_on_waitlist: boolean ``` --- ### `WaitlistStatus.joined_at` property When the user joined (if on waitlist) ```tsx joined_at: string ``` --- ### `WaitlistStatus.position` property Position in the waitlist (if available) ```tsx position: number ``` ## WhatsNewPopupProps ### `WhatsNewPopupProps.autoPlayInterval` property Auto-play carousel interval in ms (0 to disable) ```tsx autoPlayInterval: number ``` --- ### `WhatsNewPopupProps.autoShow` property Auto-show popup on mount if there's a new release Uses localStorage to track seen releases ```tsx autoShow: boolean ``` --- ### `WhatsNewPopupProps.className` property Custom class name ```tsx className: string ``` --- ### `WhatsNewPopupProps.maxItems` property Maximum number of items to show ```tsx maxItems: number ``` --- ### `WhatsNewPopupProps.onOpenChange` property Callback when open state changes **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `open` | `boolean` | ✓ | | **Returns** — `void` ```tsx onOpenChange(open: boolean): void ``` --- ### `WhatsNewPopupProps.onViewAll` property Click handler for "View All" button **Returns** — `void` ```tsx onViewAll(): void ``` --- ### `WhatsNewPopupProps.open` property Whether the popup is open ```tsx open: boolean ``` --- ### `WhatsNewPopupProps.position` property Position of the popup ```tsx position: "bottom-right" | "bottom-left" | "bottom-center" ``` --- ### `WhatsNewPopupProps.showMedia` property Show media carousel ```tsx showMedia: boolean ``` --- ### `WhatsNewPopupProps.showTypes` property Show only specific item types ```tsx showTypes: "feature" | "improvement" | "bugfix" | "other"[] ``` --- ### `WhatsNewPopupProps.storageKey` property localStorage key for tracking seen releases ```tsx storageKey: string ``` --- ### `WhatsNewPopupProps.title` property Title for the popup ```tsx title: string ``` ## Wish ### `Wish.author` property ```tsx author: WishAuthor ``` --- ### `Wish.author_email` property ```tsx author_email: string | null ``` --- ### `Wish.author_name` property ```tsx author_name: string | null ``` --- ### `Wish.author_type` property ```tsx author_type: "user" | "team_member" | "anonymous" ``` --- ### `Wish.category` property ```tsx category: Category | null ``` --- ### `Wish.category_id` property ```tsx category_id: string | null ``` --- ### `Wish.comment_count` property ```tsx comment_count: number ``` --- ### `Wish.completed_at` property ```tsx completed_at: string | null ``` --- ### `Wish.created_at` property ```tsx created_at: string ``` --- ### `Wish.description` property ```tsx description: string ``` --- ### `Wish.has_voted` property ```tsx has_voted: boolean ``` --- ### `Wish.id` property ```tsx id: string ``` --- ### `Wish.is_pinned` property ```tsx is_pinned: boolean ``` --- ### `Wish.priority` property ```tsx priority: WishPriority | null ``` --- ### `Wish.project_id` property ```tsx project_id: string ``` --- ### `Wish.slug` property ```tsx slug: string ``` --- ### `Wish.status` property ```tsx status: WishStatus ``` --- ### `Wish.title` property ```tsx title: string ``` --- ### `Wish.updated_at` property ```tsx updated_at: string ``` --- ### `Wish.vote_count` property ```tsx vote_count: number ``` ## WishAuthor ### `WishAuthor.avatar_url` property ```tsx avatar_url: string | null ``` --- ### `WishAuthor.email` property ```tsx email: string | null ``` --- ### `WishAuthor.name` property ```tsx name: string ``` ## WishCardProps ### `WishCardProps.animationIndex` property Animation delay index (for staggered animations) ```tsx animationIndex: number ``` --- ### `WishCardProps.className` property Custom class name ```tsx className: string ``` --- ### `WishCardProps.hasVoted` property Override hasVoted state (for optimistic updates) ```tsx hasVoted: boolean ``` --- ### `WishCardProps.isVoting` property Loading state for vote ```tsx isVoting: boolean ``` --- ### `WishCardProps.onClick` property Click handler for the card **Returns** — `void` ```tsx onClick(): void ``` --- ### `WishCardProps.onCommentClick` property Comment click handler **Returns** — `void` ```tsx onCommentClick(): void ``` --- ### `WishCardProps.onVote` property Vote handler **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | | `hasVoted` | `boolean` | ✓ | | | `voteCount` | `number` | ✓ | | **Returns** — `void` ```tsx onVote(wishId: string, hasVoted: boolean, voteCount: number): void ``` --- ### `WishCardProps.renderVoteButton` property Custom render function for the vote button **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `props` | `object` | ✓ | | **Returns** — `ReactNode` ```tsx renderVoteButton(props: object): ReactNode ``` --- ### `WishCardProps.showAuthor` property Show author ```tsx showAuthor: boolean ``` --- ### `WishCardProps.showCategory` property Show category badge ```tsx showCategory: boolean ``` --- ### `WishCardProps.showCommentCount` property Show comment count ```tsx showCommentCount: boolean ``` --- ### `WishCardProps.showStatus` property Show status badge ```tsx showStatus: boolean ``` --- ### `WishCardProps.voteCount` property Override vote count (for optimistic updates) ```tsx voteCount: number ``` --- ### `WishCardProps.wish` property The wish data ```tsx wish: Wish ``` ## WishDetailProps ### `WishDetailProps.className` property Custom class name ```tsx className: string ``` --- ### `WishDetailProps.onCommentAdded` property Callback when a comment is added **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `comment` | `Comment` | ✓ | | **Returns** — `void` ```tsx onCommentAdded(comment: Comment): void ``` --- ### `WishDetailProps.onOpenChange` property Callback when open state changes **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `open` | `boolean` | ✓ | | **Returns** — `void` ```tsx onOpenChange(open: boolean): void ``` --- ### `WishDetailProps.onVote` property Callback when vote is toggled **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | **Returns** — `void` ```tsx onVote(wishId: string): void ``` --- ### `WishDetailProps.open` property Whether the detail view is open ```tsx open: boolean ``` --- ### `WishDetailProps.wish` property The wish to display ```tsx wish: Wish | null ``` ## WishesResponse ### `WishesResponse.data` property ```tsx data: Wish[] ``` --- ### `WishesResponse.page` property ```tsx page: number ``` --- ### `WishesResponse.per_page` property ```tsx per_page: number ``` --- ### `WishesResponse.total` property ```tsx total: number ``` --- ### `WishesResponse.total_pages` property ```tsx total_pages: number ``` ## WishFilters ### `WishFilters.category_id` property ```tsx category_id: string ``` --- ### `WishFilters.fingerprint` property ```tsx fingerprint: string ``` --- ### `WishFilters.page` property ```tsx page: number ``` --- ### `WishFilters.per_page` property ```tsx per_page: number ``` --- ### `WishFilters.priority` property ```tsx priority: WishPriority | WishPriority[] ``` --- ### `WishFilters.search` property ```tsx search: string ``` --- ### `WishFilters.sort_by` property ```tsx sort_by: "votes" | "created_at" | "updated_at" ``` --- ### `WishFilters.sort_order` property ```tsx sort_order: "asc" | "desc" ``` --- ### `WishFilters.status` property ```tsx status: WishStatus | WishStatus[] ``` ## WishListProps ### `WishListProps.className` property Custom class name ```tsx className: string ``` --- ### `WishListProps.description` property Page description ```tsx description: string ``` --- ### `WishListProps.filters` property Initial filters ```tsx filters: WishFilters ``` --- ### `WishListProps.heading` property Page heading ```tsx heading: string ``` --- ### `WishListProps.headingAlignment` property Heading alignment ```tsx headingAlignment: "left" | "center" | "right" ``` --- ### `WishListProps.onAddWish` property Handler for adding a new wish **Returns** — `void` ```tsx onAddWish(): void ``` --- ### `WishListProps.onWishClick` property Click handler for a wish **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wish` | `Wish` | ✓ | | **Returns** — `void` ```tsx onWishClick(wish: Wish): void ``` --- ### `WishListProps.refreshInterval` property Auto-refresh interval in milliseconds ```tsx refreshInterval: number ``` --- ### `WishListProps.renderEmpty` property Custom render function for empty state **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `WishListProps.renderError` property Custom render function for error state **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `WishListProps.renderLoading` property Custom render function for loading state **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `WishListProps.renderWish` property Custom render function for individual wish cards **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wish` | `Wish` | ✓ | | | `index` | `number` | ✓ | | **Returns** — `ReactNode` ```tsx renderWish(wish: Wish, index: number): ReactNode ``` --- ### `WishListProps.showSearch` property Show search input ```tsx showSearch: boolean ``` --- ### `WishListProps.variant` property Layout variant ```tsx variant: "compact" | "cards" | "masonry" ``` ## Types ### `ArticleType` type Help Center Types ```tsx type ArticleType ``` --- ### `ComponentStatus` type ```tsx type ComponentStatus ``` --- ### `ContactFormFieldType` type Contact Form Types Configurable contact forms for collecting user submissions. ```tsx type ContactFormFieldType ``` --- ### `FlowDisplayType` type ```tsx type FlowDisplayType ``` --- ### `Form` type ```tsx type Form ``` --- ### `FormField` type ```tsx type FormField ``` --- ### `FormFieldType` type ```tsx type FormFieldType ``` --- ### `FormFieldValidation` type ```tsx type FormFieldValidation ``` --- ### `FormIntegration` type ```tsx type FormIntegration ``` --- ### `FormSubmission` type ```tsx type FormSubmission ``` --- ### `FormSubmitInput` type ```tsx type FormSubmitInput ``` --- ### `IncidentImpact` type ```tsx type IncidentImpact ``` --- ### `IncidentStatus` type ```tsx type IncidentStatus ``` --- ### `OverallStatus` type StatusBoard Component Modern system status page with service health indicators and incident tracking. Adapted from StatusModern variant. ```tsx type OverallStatus ``` **Example** ```tsx import { StatusBoard } from '@appgram/react' openIncidentDetail(incident.id)} /> // With custom component rendering (
{component.name}
)} /> ``` --- ### `RoadmapVisibility` type Roadmap Types ```tsx type RoadmapVisibility ``` --- ### `StatusState` type ```tsx type StatusState ``` --- ### `StatusType` type Status Page Types Types for status page API responses. ```tsx type StatusType ``` --- ### `SupportRequestCategory` type ```tsx type SupportRequestCategory ``` --- ### `SupportRequestPriority` type ```tsx type SupportRequestPriority ``` --- ### `SupportRequestStatus` type Support Types ```tsx type SupportRequestStatus ``` --- ### `SurveyQuestionType` type Survey Question Types ```tsx type SurveyQuestionType ``` --- ### `ThemeMode` type Theme mode - 'light', 'dark', or 'system' (follows OS preference) ```tsx type ThemeMode ``` --- ### `useForm` type ```tsx type useForm ``` --- ### `UseFormOptions` type ```tsx type UseFormOptions ``` --- ### `UseFormResult` type ```tsx type UseFormResult ``` --- ### `useFormSubmit` type ```tsx type useFormSubmit ``` --- ### `UseFormSubmitOptions` type ```tsx type UseFormSubmitOptions ``` --- ### `UseFormSubmitResult` type ```tsx type UseFormSubmitResult ``` --- ### `WishPriority` type ```tsx type WishPriority ``` --- ### `WishStatus` type Wish (Feature Request) Types ```tsx type WishStatus ``` ## Components ### `AppgramProvider` function AppgramProvider - Root provider for Appgram React SDK Supports automatic dark/light theme based on system preference. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `AppgramProviderProps` | ✓ | | **Returns** — `ReactElement` ```tsx AppgramProvider(__namedParameters: AppgramProviderProps): ReactElement ``` **Example** ```tsx ``` --- ### `Blog` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `BlogProps` | ✓ | | **Returns** — `ReactElement` ```tsx Blog(__namedParameters: BlogProps): ReactElement ``` --- ### `BlogCard` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `BlogCardProps` | ✓ | | **Returns** — `Element` ```tsx BlogCard(__namedParameters: BlogCardProps): Element ``` --- ### `BlogList` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `BlogListProps` | ✓ | | **Returns** — `Element` ```tsx BlogList(__namedParameters: BlogListProps): Element ``` --- ### `BlogPostDetail` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `BlogPostDetailProps` | ✓ | | **Returns** — `any` ```tsx BlogPostDetail(__namedParameters: BlogPostDetailProps): any ``` --- ### `ChatWidget` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ChatWidgetProps` | ✓ | | **Returns** — `ReactElement` ```tsx ChatWidget(__namedParameters: ChatWidgetProps): ReactElement ``` --- ### `ContactFormRenderer` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ContactFormRendererProps` | ✓ | | **Returns** — `ReactElement` ```tsx ContactFormRenderer(__namedParameters: ContactFormRendererProps): ReactElement ``` --- ### `HelpArticleDetail` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `HelpArticleDetailProps` | ✓ | | **Returns** — `any` ```tsx HelpArticleDetail(__namedParameters: HelpArticleDetailProps): any ``` --- ### `HelpArticles` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `HelpArticlesProps` | ✓ | | **Returns** — `any` ```tsx HelpArticles(__namedParameters: HelpArticlesProps): any ``` --- ### `HelpCenter` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `HelpCenterProps` | ✓ | | **Returns** — `ReactElement` ```tsx HelpCenter(__namedParameters: HelpCenterProps): ReactElement ``` --- ### `HelpCollections` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `HelpCollectionsProps` | ✓ | | **Returns** — `ReactElement` ```tsx HelpCollections(__namedParameters: HelpCollectionsProps): ReactElement ``` --- ### `ReleaseCard` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ReleaseCardProps` | ✓ | | **Returns** — `ReactElement` ```tsx ReleaseCard(__namedParameters: ReleaseCardProps): ReactElement ``` --- ### `ReleaseDetail` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ReleaseDetailProps` | ✓ | | **Returns** — `any` ```tsx ReleaseDetail(__namedParameters: ReleaseDetailProps): any ``` --- ### `ReleaseList` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ReleaseListProps` | ✓ | | **Returns** — `ReactElement` ```tsx ReleaseList(__namedParameters: ReleaseListProps): ReactElement ``` --- ### `Releases` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ReleasesProps` | ✓ | | **Returns** — `ReactElement` ```tsx Releases(__namedParameters: ReleasesProps): ReactElement ``` --- ### `RoadmapBoard` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `RoadmapBoardProps` | ✓ | | **Returns** — `ReactElement` ```tsx RoadmapBoard(__namedParameters: RoadmapBoardProps): ReactElement ``` --- ### `RoadmapColumn` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `RoadmapColumnProps` | ✓ | | **Returns** — `ReactElement` ```tsx RoadmapColumn(__namedParameters: RoadmapColumnProps): ReactElement ``` --- ### `StatusBoard` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `StatusBoardProps` | ✓ | | **Returns** — `ReactElement` ```tsx StatusBoard(__namedParameters: StatusBoardProps): ReactElement ``` --- ### `StatusIncidentDetail` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `StatusIncidentDetailProps` | ✓ | | **Returns** — `ReactElement` ```tsx StatusIncidentDetail(__namedParameters: StatusIncidentDetailProps): ReactElement ``` --- ### `SubmitWishForm` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `SubmitWishFormProps` | ✓ | | **Returns** — `ReactElement` ```tsx SubmitWishForm(__namedParameters: SubmitWishFormProps): ReactElement ``` --- ### `SupportForm` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `SupportFormProps` | ✓ | | **Returns** — `ReactElement` ```tsx SupportForm(__namedParameters: SupportFormProps): ReactElement ``` --- ### `SurveyRenderer` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `SurveyRendererProps` | ✓ | | **Returns** — `ReactElement` ```tsx SurveyRenderer(__namedParameters: SurveyRendererProps): ReactElement ``` --- ### `VoteButton` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `VoteButtonProps` | ✓ | | **Returns** — `ReactElement` ```tsx VoteButton(__namedParameters: VoteButtonProps): ReactElement ``` --- ### `WhatsNewPopup` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `WhatsNewPopupProps` | ✓ | | **Returns** — `any` ```tsx WhatsNewPopup(__namedParameters: WhatsNewPopupProps): any ``` --- ### `WishCard` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `WishCardProps` | ✓ | | **Returns** — `ReactElement` ```tsx WishCard(__namedParameters: WishCardProps): ReactElement ``` --- ### `WishDetail` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `WishDetailProps` | ✓ | | **Returns** — `any` ```tsx WishDetail(__namedParameters: WishDetailProps): any ``` --- ### `WishList` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `WishListProps` | ✓ | | **Returns** — `ReactElement` ```tsx WishList(__namedParameters: WishListProps): ReactElement ``` ## Hooks ### `useAppgramContext` function Hook to access the Appgram context **Errors** - `Error` — if used outside of AppgramProvider **Returns** — `AppgramContextValue` ```tsx useAppgramContext(): AppgramContextValue ``` --- ### `useBlogCategories` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseBlogCategoriesOptions` | | | **Returns** — `UseBlogCategoriesResult` ```tsx useBlogCategories(options?: UseBlogCategoriesOptions): UseBlogCategoriesResult ``` --- ### `useBlogPost` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseBlogPostOptions` | ✓ | | **Returns** — `UseBlogPostResult` ```tsx useBlogPost(options: UseBlogPostOptions): UseBlogPostResult ``` --- ### `useBlogPosts` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseBlogPostsOptions` | | | **Returns** — `UseBlogPostsResult` ```tsx useBlogPosts(options?: UseBlogPostsOptions): UseBlogPostsResult ``` --- ### `useComments` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseCommentsOptions` | ✓ | | **Returns** — `UseCommentsResult` ```tsx useComments(options: UseCommentsOptions): UseCommentsResult ``` --- ### `useContactForm` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `formId` | `string` | ✓ | | | `options` | `UseContactFormOptions` | | | **Returns** — `UseContactFormResult` ```tsx useContactForm(formId: string, options?: UseContactFormOptions): UseContactFormResult ``` --- ### `useContactFormSubmit` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseContactFormSubmitOptions` | | | **Returns** — `UseContactFormSubmitResult` ```tsx useContactFormSubmit(options?: UseContactFormSubmitOptions): UseContactFormSubmitResult ``` --- ### `useFeaturedPosts` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseFeaturedPostsOptions` | | | **Returns** — `UseFeaturedPostsResult` ```tsx useFeaturedPosts(options?: UseFeaturedPostsOptions): UseFeaturedPostsResult ``` --- ### `useHelpArticle` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseHelpArticleOptions` | ✓ | | **Returns** — `UseHelpArticleResult` ```tsx useHelpArticle(options: UseHelpArticleOptions): UseHelpArticleResult ``` --- ### `useHelpCenter` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseHelpCenterOptions` | | | **Returns** — `UseHelpCenterResult` ```tsx useHelpCenter(options?: UseHelpCenterOptions): UseHelpCenterResult ``` --- ### `useHelpFlow` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseHelpFlowOptions` | ✓ | | **Returns** — `UseHelpFlowResult` ```tsx useHelpFlow(options: UseHelpFlowOptions): UseHelpFlowResult ``` --- ### `useRelease` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseReleaseOptions` | ✓ | | **Returns** — `UseReleaseResult` ```tsx useRelease(options: UseReleaseOptions): UseReleaseResult ``` --- ### `useReleases` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseReleasesOptions` | | | **Returns** — `UseReleasesResult` ```tsx useReleases(options?: UseReleasesOptions): UseReleasesResult ``` --- ### `useRoadmap` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseRoadmapOptions` | | | **Returns** — `UseRoadmapResult` ```tsx useRoadmap(options?: UseRoadmapOptions): UseRoadmapResult ``` --- ### `useStatus` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseStatusOptions` | | | **Returns** — `UseStatusResult` ```tsx useStatus(options?: UseStatusOptions): UseStatusResult ``` --- ### `useSupport` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseSupportOptions` | | | **Returns** — `UseSupportResult` ```tsx useSupport(options?: UseSupportOptions): UseSupportResult ``` --- ### `useSurvey` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | | `options` | `UseSurveyOptions` | | | **Returns** — `UseSurveyResult` ```tsx useSurvey(slug: string, options?: UseSurveyOptions): UseSurveyResult ``` --- ### `useSurveySubmit` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseSurveySubmitOptions` | | | **Returns** — `UseSurveySubmitResult` ```tsx useSurveySubmit(options?: UseSurveySubmitOptions): UseSurveySubmitResult ``` --- ### `useVote` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseVoteOptions` | ✓ | | **Returns** — `UseVoteResult` ```tsx useVote(options: UseVoteOptions): UseVoteResult ``` --- ### `useWaitlist` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseWaitlistOptions` | | | **Returns** — `UseWaitlistResult` ```tsx useWaitlist(options?: UseWaitlistOptions): UseWaitlistResult ``` --- ### `useWish` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseWishOptions` | ✓ | | **Returns** — `UseWishResult` ```tsx useWish(options: UseWishOptions): UseWishResult ``` --- ### `useWishes` function **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `UseWishesOptions` | | | **Returns** — `UseWishesResult` ```tsx useWishes(options?: UseWishesOptions): UseWishesResult ``` ## Utilities ### `cn` function Merges Tailwind CSS classes with proper precedence handling **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `inputs` | `ClassValue[]` | ✓ | Class values to merge | **Returns** — `string` — Merged class string ```tsx cn(inputs: ClassValue[]): string ``` --- ### `getFingerprint` function Get or create a fingerprint for the current browser/device **Returns** — `string` — The fingerprint string ```tsx getFingerprint(): string ``` --- ### `resetFingerprint` function Reset the stored fingerprint (for testing purposes) **Returns** — `void` ```tsx resetFingerprint(): void ``` --- # React Native SDK Native mobile components and hooks for React Native apps on iOS and Android. > Source: https://appgram.dev/docs/react-native-sdk > Language: tsx > Symbols: 964 across 122 categories ## Install ```bash npm install @appgram/react-native@0.1.2 npm install @react-native-async-storage/async-storage lucide-react-native react-native-svg react-native-markdown-display react-native-render-html ``` ## Quickstart ```tsx import React from 'react'; import { SafeAreaView } from 'react-native'; import { AppgramProvider, WishList } from '@appgram/react-native'; export default function App() { return ( ); } ``` ## Categories - [Classes](#classes) — 1 items - [AppgramClient](#appgramclient) — 38 items - [Interfaces](#interfaces) — 114 items - [ApiResponse](#apiresponse) — 3 items - [AppgramClientConfig](#appgramclientconfig) — 4 items - [AppgramColors](#appgramcolors) — 18 items - [AppgramConfig](#appgramconfig) — 6 items - [AppgramProviderProps](#appgramproviderprops) — 2 items - [AppgramTheme](#appgramtheme) — 6 items - [BadgeProps](#badgeprops) — 4 items - [BlogCardProps](#blogcardprops) — 6 items - [BlogCategory](#blogcategory) — 6 items - [BlogFilters](#blogfilters) — 6 items - [BlogListProps](#bloglistprops) — 16 items - [BlogPost](#blogpost) — 17 items - [BlogPostDetailProps](#blogpostdetailprops) — 9 items - [BlogPostsResponse](#blogpostsresponse) — 5 items - [BlogProps](#blogprops) — 18 items - [ButtonProps](#buttonprops) — 8 items - [CardProps](#cardprops) — 3 items - [Category](#category) — 7 items - [ChatScreenProps](#chatscreenprops) — 9 items - [ChatSource](#chatsource) — 7 items - [Comment](#comment) — 14 items - [CommentAuthor](#commentauthor) — 2 items - [CommentCreateInput](#commentcreateinput) — 5 items - [CommentsResponse](#commentsresponse) — 5 items - [Form](#form) — 12 items - [FormField](#formfield) — 7 items - [FormRendererProps](#formrendererprops) — 7 items - [FormSubmission](#formsubmission) — 5 items - [HelpArticle](#helparticle) — 12 items - [HelpArticleCardProps](#helparticlecardprops) — 3 items - [HelpArticleDetailProps](#helparticledetailprops) — 3 items - [HelpCenterProps](#helpcenterprops) — 7 items - [HelpCollection](#helpcollection) — 9 items - [HelpFlow](#helpflow) — 12 items - [HelpFlowCardProps](#helpflowcardprops) — 3 items - [HelpFlowDetailProps](#helpflowdetailprops) — 5 items - [InputProps](#inputprops) — 5 items - [PaginatedResponse](#paginatedresponse) — 5 items - [Release](#release) — 17 items - [ReleaseDetailProps](#releasedetailprops) — 2 items - [ReleaseFeature](#releasefeature) — 6 items - [ReleaseListProps](#releaselistprops) — 4 items - [ReleasesProps](#releasesprops) — 4 items - [RoadmapBoardProps](#roadmapboardprops) — 4 items - [RoadmapColumn](#roadmapcolumn) — 9 items - [RoadmapData](#roadmapdata) — 4 items - [RoadmapItem](#roadmapitem) — 14 items - [StatusBoardProps](#statusboardprops) — 7 items - [StatusPage](#statuspage) — 8 items - [StatusPageOverview](#statuspageoverview) — 10 items - [StatusPageService](#statuspageservice) — 10 items - [StoredTicket](#storedticket) — 7 items - [SubmitWishSheetProps](#submitwishsheetprops) — 8 items - [SupportAttachment](#supportattachment) — 4 items - [SupportFormProps](#supportformprops) — 19 items - [SupportMessage](#supportmessage) — 10 items - [SupportMessageInput](#supportmessageinput) — 2 items - [SupportMessageResponse](#supportmessageresponse) — 4 items - [SupportRequest](#supportrequest) — 16 items - [SupportRequestInput](#supportrequestinput) — 7 items - [SupportSubmitData](#supportsubmitdata) — 7 items - [SupportUploadFile](#supportuploadfile) — 5 items - [Survey](#survey) — 12 items - [SurveyAnswer](#surveyanswer) — 9 items - [SurveyFormProps](#surveyformprops) — 5 items - [SurveyNode](#surveynode) — 17 items - [SurveyNodeOption](#surveynodeoption) — 2 items - [SurveyResponse](#surveyresponse) — 7 items - [SurveySubmitInput](#surveysubmitinput) — 4 items - [UseBlogCategoriesOptions](#useblogcategoriesoptions) — 1 items - [UseBlogCategoriesResult](#useblogcategoriesresult) — 4 items - [UseBlogPostOptions](#useblogpostoptions) — 2 items - [UseBlogPostResult](#useblogpostresult) — 5 items - [UseBlogPostsOptions](#useblogpostsoptions) — 7 items - [UseBlogPostsResult](#useblogpostsresult) — 9 items - [UseCommentsOptions](#usecommentsoptions) — 2 items - [UseCommentsResult](#usecommentsresult) — 6 items - [UseFeaturedPostsOptions](#usefeaturedpostsoptions) — 1 items - [UseFeaturedPostsResult](#usefeaturedpostsresult) — 4 items - [UseFormOptions](#useformoptions) — 1 items - [UseFormResult](#useformresult) — 4 items - [UseFormSubmitOptions](#useformsubmitoptions) — 3 items - [UseFormSubmitResult](#useformsubmitresult) — 6 items - [UseHelpArticleResult](#usehelparticleresult) — 4 items - [UseHelpCenterResult](#usehelpcenterresult) — 5 items - [UseHelpFlowResult](#usehelpflowresult) — 4 items - [UseReleaseOptions](#usereleaseoptions) — 2 items - [UseReleaseResult](#usereleaseresult) — 5 items - [UseReleasesOptions](#usereleasesoptions) — 2 items - [UseReleasesResult](#usereleasesresult) — 4 items - [UseRoadmapOptions](#useroadmapoptions) — 2 items - [UseRoadmapResult](#useroadmapresult) — 6 items - [UseStatusOptions](#usestatusoptions) — 2 items - [UseStatusResult](#usestatusresult) — 4 items - [UseSupportOptions](#usesupportoptions) — 2 items - [UseSupportResult](#usesupportresult) — 14 items - [UseSurveyOptions](#usesurveyoptions) — 1 items - [UseSurveyResult](#usesurveyresult) — 5 items - [UseSurveySubmitOptions](#usesurveysubmitoptions) — 2 items - [UseSurveySubmitResult](#usesurveysubmitresult) — 3 items - [UseVoteOptions](#usevoteoptions) — 2 items - [UseVoteResult](#usevoteresult) — 5 items - [UseWishesOptions](#usewishesoptions) — 3 items - [UseWishesResult](#usewishesresult) — 9 items - [Vote](#vote) — 6 items - [VoteButtonProps](#votebuttonprops) — 7 items - [VoteCheckResponse](#votecheckresponse) — 2 items - [Wish](#wish) — 20 items - [WishAuthor](#wishauthor) — 3 items - [WishCardProps](#wishcardprops) — 5 items - [WishDetailModalProps](#wishdetailmodalprops) — 4 items - [WishesResponse](#wishesresponse) — 5 items - [WishFilters](#wishfilters) — 9 items - [WishListProps](#wishlistprops) — 17 items - [Types](#types) — 11 items - [Symbols](#symbols) — 5 items - [Components](#components) — 28 items - [Hooks](#hooks) — 21 items - [Utilities](#utilities) — 2 items ## Classes ### `AppgramClient` class **Methods** - `constructor` → `AppgramClient` - `config: AppgramClientConfig` - `addSupportMessage` → `Promise>` Add a message to a support ticket - `ticketId: string` - `token: string` - `contentOrData: string | SupportMessageInput` - `attachments: SupportUploadFile[]` (optional) - `checkVote` → `Promise>` Check if a fingerprint has voted on a wish - `wishId: string` - `fingerprint: string` - `createComment` → `Promise>` Create a comment - `data: object` - `createVote` → `Promise>` Create a vote - `wishId: string` - `fingerprint: string` - `voterEmail: string` (optional) - `createWish` → `Promise>` Create a new wish (feature request) - `data: object` - `deleteVote` → `Promise>` Delete a vote - `voteId: string` - `getBlogCategories` → `Promise>` Get blog categories - `getBlogPost` → `Promise>` Get a single blog post by slug - `slug: string` - `getBlogPosts` → `Promise>` Get public blog posts with optional filters - `filters: BlogFilters` (optional) - `getBlogPostsByCategory` → `Promise>` Get blog posts by category slug - `categorySlug: string` - `options: object` (optional) - `getBlogPostsByTag` → `Promise>` Get blog posts by tag - `tag: string` - `options: object` (optional) - `getComments` → `Promise>` Get comments for a wish - `wishId: string` - `options: object` (optional) - `getFeaturedBlogPosts` → `Promise>` Get featured blog posts - `getForm` → `Promise>` Get a form by ID via portal endpoint - `formId: string` - `getHelpArticle` → `Promise>` Get a help article by slug - `slug: string` - `flowId: string` - `getHelpCollection` → `Promise>` Get help center collection for the project - `getHelpFlow` → `Promise>` Get a help flow by slug - `slug: string` - `getPageData` → `Promise>` Get all public page data in one request - `getPublicStatusOverview` → `Promise>` Get public status page overview (services, active updates, overall status) - `slug: string` (optional) - `getPublicSurvey` → `Promise>` Get a public survey by slug - `slug: string` - `getPublicSurveyCustomization` → `Promise>>` Get survey customization settings - `surveyId: string` - `getPublicWishes` → `Promise>` Get public wishes for the project - `filters: WishFilters` (optional) - `getRelatedBlogPosts` → `Promise>` Get related blog posts for a given post - `slug: string` - `getRelease` → `Promise>` Get a single release by slug - `releaseSlug: string` - `getReleaseFeatures` → `Promise>` Get features for a release (public endpoint) - `releaseSlug: string` - `getReleases` → `Promise>` Get public releases for the project - `options: object` (optional) - `getRoadmapData` → `Promise>` Get roadmap data for the project - `getSupportTicket` → `Promise>` Get a specific support ticket using magic link token - `ticketId: string` - `token: string` - `getWish` → `Promise>` Get a single wish by ID - `wishId: string` - `searchBlogPosts` → `Promise>` Search blog posts - `query: string` - `options: object` (optional) - `sendSupportMagicLink` → `Promise>` Request a magic link to access support tickets - `userEmail: string` - `submitForm` → `Promise>` Submit a form - `projectId: string` - `formId: string` - `data: FormSubmitInput` - `submitSupportRequest` → `Promise>` Submit a support request - `data: SupportRequestInput` - `submitSurveyResponse` → `Promise>` Submit a survey response - `surveyId: string` - `data: SurveySubmitInput` - `trackFormView` → `Promise>` Track a form view (call when form is displayed) - `formId: string` - `uploadFile` → `Promise>` Upload a file via public portal (no auth required) - `file: SupportUploadFile` - `verifySupportToken` → `Promise>` Verify magic link token and get user's support tickets - `token: string` ```tsx class AppgramClient ``` ## AppgramClient ### `AppgramClient.addSupportMessage` method Add a message to a support ticket **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticketId` | `string` | ✓ | | | `token` | `string` | ✓ | | | `contentOrData` | `string \| SupportMessageInput` | ✓ | | | `attachments` | `SupportUploadFile[]` | | | **Returns** — `Promise>` ```tsx addSupportMessage(ticketId: string, token: string, contentOrData: string | SupportMessageInput, attachments?: SupportUploadFile[]): Promise> ``` --- ### `AppgramClient.checkVote` method Check if a fingerprint has voted on a wish **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | | `fingerprint` | `string` | ✓ | | **Returns** — `Promise>` ```tsx checkVote(wishId: string, fingerprint: string): Promise> ``` --- ### `AppgramClient.constructor` constructor **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `config` | `AppgramClientConfig` | ✓ | | **Returns** — `AppgramClient` ```tsx constructor(config: AppgramClientConfig): AppgramClient ``` --- ### `AppgramClient.createComment` method Create a comment **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `object` | ✓ | | **Returns** — `Promise>` ```tsx createComment(data: object): Promise> ``` --- ### `AppgramClient.createVote` method Create a vote **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | | `fingerprint` | `string` | ✓ | | | `voterEmail` | `string` | | | **Returns** — `Promise>` ```tsx createVote(wishId: string, fingerprint: string, voterEmail?: string): Promise> ``` --- ### `AppgramClient.createWish` method Create a new wish (feature request) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `object` | ✓ | | **Returns** — `Promise>` ```tsx createWish(data: object): Promise> ``` --- ### `AppgramClient.deleteVote` method Delete a vote **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `voteId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx deleteVote(voteId: string): Promise> ``` --- ### `AppgramClient.getBlogCategories` method Get blog categories **Returns** — `Promise>` ```tsx getBlogCategories(): Promise> ``` --- ### `AppgramClient.getBlogPost` method Get a single blog post by slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getBlogPost(slug: string): Promise> ``` --- ### `AppgramClient.getBlogPosts` method Get public blog posts with optional filters **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `filters` | `BlogFilters` | | | **Returns** — `Promise>` ```tsx getBlogPosts(filters?: BlogFilters): Promise> ``` --- ### `AppgramClient.getBlogPostsByCategory` method Get blog posts by category slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `categorySlug` | `string` | ✓ | | | `options` | `object` | | | **Returns** — `Promise>` ```tsx getBlogPostsByCategory(categorySlug: string, options?: object): Promise> ``` --- ### `AppgramClient.getBlogPostsByTag` method Get blog posts by tag **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `tag` | `string` | ✓ | | | `options` | `object` | | | **Returns** — `Promise>` ```tsx getBlogPostsByTag(tag: string, options?: object): Promise> ``` --- ### `AppgramClient.getComments` method Get comments for a wish **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | | `options` | `object` | | | **Returns** — `Promise>` ```tsx getComments(wishId: string, options?: object): Promise> ``` --- ### `AppgramClient.getFeaturedBlogPosts` method Get featured blog posts **Returns** — `Promise>` ```tsx getFeaturedBlogPosts(): Promise> ``` --- ### `AppgramClient.getForm` method Get a form by ID via portal endpoint **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `formId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getForm(formId: string): Promise> ``` --- ### `AppgramClient.getHelpArticle` method Get a help article by slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | | `flowId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getHelpArticle(slug: string, flowId: string): Promise> ``` --- ### `AppgramClient.getHelpCollection` method Get help center collection for the project **Returns** — `Promise>` ```tsx getHelpCollection(): Promise> ``` --- ### `AppgramClient.getHelpFlow` method Get a help flow by slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getHelpFlow(slug: string): Promise> ``` --- ### `AppgramClient.getPageData` method Get all public page data in one request **Returns** — `Promise>` ```tsx getPageData(): Promise> ``` --- ### `AppgramClient.getPublicStatusOverview` method Get public status page overview (services, active updates, overall status) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | | | **Returns** — `Promise>` ```tsx getPublicStatusOverview(slug?: string): Promise> ``` --- ### `AppgramClient.getPublicSurvey` method Get a public survey by slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getPublicSurvey(slug: string): Promise> ``` --- ### `AppgramClient.getPublicSurveyCustomization` method Get survey customization settings **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `surveyId` | `string` | ✓ | | **Returns** — `Promise>>` ```tsx getPublicSurveyCustomization(surveyId: string): Promise>> ``` --- ### `AppgramClient.getPublicWishes` method Get public wishes for the project **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `filters` | `WishFilters` | | | **Returns** — `Promise>` ```tsx getPublicWishes(filters?: WishFilters): Promise> ``` --- ### `AppgramClient.getRelatedBlogPosts` method Get related blog posts for a given post **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getRelatedBlogPosts(slug: string): Promise> ``` --- ### `AppgramClient.getRelease` method Get a single release by slug **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `releaseSlug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getRelease(releaseSlug: string): Promise> ``` --- ### `AppgramClient.getReleaseFeatures` method Get features for a release (public endpoint) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `releaseSlug` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getReleaseFeatures(releaseSlug: string): Promise> ``` --- ### `AppgramClient.getReleases` method Get public releases for the project **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `options` | `object` | | | **Returns** — `Promise>` ```tsx getReleases(options?: object): Promise> ``` --- ### `AppgramClient.getRoadmapData` method Get roadmap data for the project **Returns** — `Promise>` ```tsx getRoadmapData(): Promise> ``` --- ### `AppgramClient.getSupportTicket` method Get a specific support ticket using magic link token **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticketId` | `string` | ✓ | | | `token` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getSupportTicket(ticketId: string, token: string): Promise> ``` --- ### `AppgramClient.getWish` method Get a single wish by ID **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx getWish(wishId: string): Promise> ``` --- ### `AppgramClient.searchBlogPosts` method Search blog posts **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `query` | `string` | ✓ | | | `options` | `object` | | | **Returns** — `Promise>` ```tsx searchBlogPosts(query: string, options?: object): Promise> ``` --- ### `AppgramClient.sendSupportMagicLink` method Request a magic link to access support tickets **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `userEmail` | `string` | ✓ | | **Returns** — `Promise>` ```tsx sendSupportMagicLink(userEmail: string): Promise> ``` --- ### `AppgramClient.submitForm` method Submit a form **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `projectId` | `string` | ✓ | | | `formId` | `string` | ✓ | | | `data` | `FormSubmitInput` | ✓ | | **Returns** — `Promise>` ```tsx submitForm(projectId: string, formId: string, data: FormSubmitInput): Promise> ``` --- ### `AppgramClient.submitSupportRequest` method Submit a support request **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `SupportRequestInput` | ✓ | | **Returns** — `Promise>` ```tsx submitSupportRequest(data: SupportRequestInput): Promise> ``` --- ### `AppgramClient.submitSurveyResponse` method Submit a survey response **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `surveyId` | `string` | ✓ | | | `data` | `SurveySubmitInput` | ✓ | | **Returns** — `Promise>` ```tsx submitSurveyResponse(surveyId: string, data: SurveySubmitInput): Promise> ``` --- ### `AppgramClient.trackFormView` method Track a form view (call when form is displayed) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `formId` | `string` | ✓ | | **Returns** — `Promise>` ```tsx trackFormView(formId: string): Promise> ``` --- ### `AppgramClient.uploadFile` method Upload a file via public portal (no auth required) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `file` | `SupportUploadFile` | ✓ | | **Returns** — `Promise>` ```tsx uploadFile(file: SupportUploadFile): Promise> ``` --- ### `AppgramClient.verifySupportToken` method Verify magic link token and get user's support tickets **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `token` | `string` | ✓ | | **Returns** — `Promise>` ```tsx verifySupportToken(token: string): Promise> ``` ## Interfaces ### `ApiResponse` interface API Response wrapper **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `T` | | | | | `error` | `object` | | | | | `success` | `boolean` | ✓ | | | ```tsx interface ApiResponse ``` --- ### `AppgramClientConfig` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `baseUrl` | `string` | ✓ | | | | `orgSlug` | `string` | | | | | `projectId` | `string` | ✓ | | | | `projectSlug` | `string` | | | | ```tsx interface AppgramClientConfig ``` --- ### `AppgramColors` interface Hazel Design System Colors for React Native Mobile-optimized color palette based on the Hazel design system. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `accent` | `string` | ✓ | | | | `background` | `string` | ✓ | | | | `border` | `string` | ✓ | | | | `card` | `string` | ✓ | | | | `cardForeground` | `string` | ✓ | | | | `error` | `string` | ✓ | | | | `errorSubtle` | `string` | ✓ | | | | `foreground` | `string` | ✓ | | | | `info` | `string` | ✓ | | | | `infoSubtle` | `string` | ✓ | | | | `muted` | `string` | ✓ | | | | `mutedForeground` | `string` | ✓ | | | | `primary` | `string` | ✓ | | | | `secondary` | `string` | ✓ | | | | `success` | `string` | ✓ | | | | `successSubtle` | `string` | ✓ | | | | `warning` | `string` | ✓ | | | | `warningSubtle` | `string` | ✓ | | | ```tsx interface AppgramColors ``` --- ### `AppgramConfig` interface Appgram SDK configuration **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `apiUrl` | `string` | | Custom API URL (defaults to https://api.appgram.dev) | | | `enableFingerprinting` | `boolean` | | Enable device fingerprinting for anonymous voting | | | `orgSlug` | `string` | | Organization slug for API routing | | | `projectId` | `string` | ✓ | Your Appgram project ID (required) | | | `projectSlug` | `string` | | Project slug for API routing | | | `theme` | `object` | | Theme configuration | | ```tsx interface AppgramConfig ``` --- ### `AppgramProviderProps` interface Props for AppgramProvider **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `children` | `ReactNode` | ✓ | Child components | | | `config` | `AppgramConfig` | ✓ | SDK configuration | | ```tsx interface AppgramProviderProps ``` --- ### `AppgramTheme` interface Complete theme object with colors, spacing, radius, and typography **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `colors` | `AppgramColors` | ✓ | Color palette | | | `isDark` | `boolean` | ✓ | Whether dark mode is active | | | `mode` | `ThemeMode` | ✓ | Current theme mode | | | `radius` | `object` | ✓ | Border radius scale (sm, md, lg, xl, full) | | | `spacing` | `object` | ✓ | Spacing scale (xs, sm, md, lg, xl, 2xl) | | | `typography` | `object` | ✓ | Typography scale (xs, sm, base, lg, xl, 2xl, 3xl) | | ```tsx interface AppgramTheme ``` --- ### `BadgeProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `action` | `"muted" \| "success" \| "warning" \| "info" \| "error"` | | | | | `children` | `ReactNode` | ✓ | | | | `size` | `"sm" \| "md" \| "lg"` | | | | | `style` | `any` | | | | ```tsx interface BadgeProps ``` --- ### `BlogCardProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `isBookmarked` | `boolean` | | | | | `onBookmark` | `(post: BlogPost) => void` | | | | | `onPress` | `(post: BlogPost) => void` | | | | | `post` | `BlogPost` | ✓ | | | | `style` | `any` | | | | | `variant` | `"default" \| "compact" \| "large"` | | | | ```tsx interface BlogCardProps ``` --- ### `BlogCategory` interface Blog/Resources Types **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `color` | `string \| null` | | | | | `description` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `name` | `string` | ✓ | | | | `post_count` | `number` | | | | | `slug` | `string` | ✓ | | | ```tsx interface BlogCategory ``` --- ### `BlogFilters` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `category_slug` | `string` | | | | | `is_featured` | `boolean` | | | | | `page` | `number` | | | | | `per_page` | `number` | | | | | `search` | `string` | | | | | `tag` | `string` | | | | ```tsx interface BlogFilters ``` --- ### `BlogListProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `bookmarkedIds` | `string[]` | | | | | `cardVariant` | `"default" \| "compact" \| "large"` | | | | | `description` | `string` | | | | | `initialCategory` | `string` | | | | | `initialSearch` | `string` | | | | | `onBookmark` | `(post: BlogPost) => void` | | | | | `onFilterPress` | `() => void` | | | | | `onPostPress` | `(post: BlogPost) => void` | | | | | `postsPerPage` | `number` | | | | | `renderEmpty` | `() => ReactNode` | | | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | | | | `renderLoading` | `() => ReactNode` | | | | | `showCategories` | `boolean` | | | | | `showSearch` | `boolean` | | | | | `style` | `any` | | | | | `title` | `string` | | | | ```tsx interface BlogListProps ``` --- ### `BlogPost` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `author_name` | `string \| null` | | | | | `category` | `object` | | | | | `category_id` | `string \| null` | | | | | `content` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `excerpt` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `is_featured` | `boolean` | ✓ | | | | `meta_description` | `string \| null` | | | | | `og_image_url` | `string \| null` | | | | | `project_id` | `string` | ✓ | | | | `published_at` | `string` | ✓ | | | | `slug` | `string` | ✓ | | | | `tags` | `string[]` | ✓ | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `view_count` | `number` | ✓ | | | ```tsx interface BlogPost ``` --- ### `BlogPostDetailProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `isBookmarked` | `boolean` | | | | | `onBookmark` | `(post: BlogPost) => void` | | | | | `onRelatedPostPress` | `(post: BlogPost) => void` | | | | | `post` | `BlogPost` | | | | | `postSlug` | `string` | | | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | | | | `renderLoading` | `() => ReactNode` | | | | | `showRelatedPosts` | `boolean` | | | | | `style` | `any` | | | | ```tsx interface BlogPostDetailProps ``` --- ### `BlogPostsResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `BlogPost[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface BlogPostsResponse ``` --- ### `BlogProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `bookmarkedIds` | `string[]` | | | | | `cardVariant` | `"default" \| "compact" \| "large"` | | | | | `description` | `string` | | | | | `initialCategory` | `string` | | | | | `initialSearch` | `string` | | | | | `onBackToList` | `() => void` | | | | | `onBookmark` | `(post: BlogPost) => void` | | | | | `onFilterPress` | `() => void` | | | | | `onPostView` | `(post: BlogPost) => void` | | | | | `postsPerPage` | `number` | | | | | `renderEmpty` | `() => ReactNode` | | | | | `renderError` | `(error: string, retry: () => void) => ReactNode` | | | | | `renderLoading` | `() => ReactNode` | | | | | `showCategories` | `boolean` | | | | | `showRelatedPosts` | `boolean` | | | | | `showSearch` | `boolean` | | | | | `style` | `any` | | | | | `title` | `string` | | | | ```tsx interface BlogProps ``` --- ### `ButtonProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `children` | `ReactNode` | ✓ | | | | `disabled` | `boolean` | | | | | `loading` | `boolean` | | | | | `onPress` | `() => void` | ✓ | | | | `size` | `"sm" \| "md" \| "lg"` | | | | | `style` | `any` | | | | | `textStyle` | `any` | | | | | `variant` | `"solid" \| "outline" \| "ghost"` | | | | ```tsx interface ButtonProps ``` --- ### `CardProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `children` | `ReactNode` | ✓ | | | | `style` | `any` | | | | | `variant` | `"default" \| "elevated" \| "outlined"` | | | | ```tsx interface CardProps ``` --- ### `Category` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `color` | `string` | ✓ | | | | `description` | `string \| null` | | | | | `icon` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `name` | `string` | ✓ | | | | `slug` | `string` | ✓ | | | | `wish_count` | `number` | | | | ```tsx interface Category ``` --- ### `ChatScreenProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `accentColor` | `string` | | Accent color override | | | `agentName` | `string` | | Name of the chat agent | | | `greeting` | `string` | | Initial greeting message | | | `onArticlePress` | `(slug: string, source: ChatSource) => void` | | Callback when an article source is tapped. Provides the article slug and full source data for flexible routing. | | | `onSupportPress` | `() => void` | | Callback when support button is tapped | | | `options` | `QuickOption[]` | | Quick reply options shown initially | | | `placeholder` | `string` | | Input placeholder text | | | `style` | `any` | | Custom style for container | | | `subtitle` | `string` | | Subtitle shown below greeting | | ```tsx interface ChatScreenProps ``` --- ### `ChatSource` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `article_id` | `string` | ✓ | | | | `flow_id` | `string` | | | | | `flow_slug` | `string` | | | | | `similarity` | `number` | ✓ | | | | `slug` | `string` | ✓ | | | | `title` | `string` | ✓ | | | | `type` | `"help_article" \| "blog_post"` | | Source type - determines routing behavior | | ```tsx interface ChatSource ``` --- ### `Comment` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `author_avatar_url` | `string \| null` | | | | | `author_name` | `string` | ✓ | | | | `author_type` | `"user" \| "anonymous" \| "team_member"` | ✓ | | | | `author_user_id` | `string \| null` | | | | | `content` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_deleted` | `boolean` | ✓ | | | | `is_official` | `boolean` | ✓ | | | | `parent_id` | `string \| null` | | | | | `replies` | `Comment[]` | | | | | `reply_count` | `number` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `wish_id` | `string` | ✓ | | | ```tsx interface Comment ``` --- ### `CommentAuthor` interface Comment Types **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `avatar_url` | `string \| null` | | | | | `name` | `string` | ✓ | | | ```tsx interface CommentAuthor ``` --- ### `CommentCreateInput` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `author_email` | `string` | | | | | `author_name` | `string` | | | | | `content` | `string` | ✓ | | | | `parent_id` | `string` | | | | | `wish_id` | `string` | ✓ | | | ```tsx interface CommentCreateInput ``` --- ### `CommentsResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `Comment[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface CommentsResponse ``` --- ### `Form` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `createdAt` | `string` | | | | | `description` | `string` | | | | | `emailRecipient` | `string` | ✓ | | | | `emailSubject` | `string` | ✓ | | | | `enabled` | `boolean` | ✓ | | | | `fields` | `FormField[]` | ✓ | | | | `id` | `string` | ✓ | | | | `integration` | `FormIntegration` | | Integration settings for form submission | | | `name` | `string` | ✓ | | | | `submitButtonText` | `string` | ✓ | | | | `successMessage` | `string` | ✓ | | | | `updatedAt` | `string` | | | | ```tsx interface Form ``` --- ### `FormField` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `id` | `string` | ✓ | | | | `label` | `string` | ✓ | | | | `options` | `string[]` | | | | | `placeholder` | `string` | | | | | `required` | `boolean` | ✓ | | | | `type` | `FormFieldType` | ✓ | | | | `validation` | `FormFieldValidation` | | | | ```tsx interface FormField ``` --- ### `FormRendererProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `description` | `string` | | | | | `formId` | `string` | ✓ | | | | `onError` | `(error: string) => void` | | | | | `onSuccess` | `() => void` | | | | | `projectId` | `string` | | | | | `style` | `any` | | | | | `title` | `string` | | | | ```tsx interface FormRendererProps ``` --- ### `FormSubmission` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `Record` | ✓ | | | | `form_id` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `project_id` | `string` | ✓ | | | | `submitted_at` | `string` | ✓ | | | ```tsx interface FormSubmission ``` --- ### `HelpArticle` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `article_type` | `ArticleType` | ✓ | | | | `content` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `excerpt` | `string \| null` | | | | | `flow_id` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_published` | `boolean` | ✓ | | | | `published_at` | `string \| null` | | | | | `slug` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface HelpArticle ``` --- ### `HelpArticleCardProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `article` | `HelpArticle` | ✓ | | | | `onPress` | `(article: HelpArticle) => void` | | | | | `style` | `any` | | | | ```tsx interface HelpArticleCardProps ``` --- ### `HelpArticleDetailProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `article` | `HelpArticle` | ✓ | | | | `contentContainerStyle` | `any` | | | | | `style` | `any` | | | | ```tsx interface HelpArticleDetailProps ``` --- ### `HelpCenterProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `contentContainerStyle` | `any` | | | | | `description` | `string` | | | | | `emptyText` | `string` | | | | | `numColumns` | `number` | | | | | `onFlowPress` | `(flow: HelpFlow) => void` | | | | | `style` | `any` | | | | | `title` | `string` | | | | ```tsx interface HelpCenterProps ``` --- ### `HelpCollection` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | | | | | `flows` | `HelpFlow[]` | | | | | `id` | `string` | ✓ | | | | `is_live` | `boolean` | ✓ | | | | `name` | `string` | ✓ | | | | `project_id` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `version` | `string` | ✓ | | | ```tsx interface HelpCollection ``` --- ### `HelpFlow` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `articles` | `HelpArticle[]` | | | | | `collection_id` | `string` | ✓ | | | | `color` | `string \| null` | | | | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | | | | | `display_type` | `FlowDisplayType` | ✓ | | | | `icon` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `name` | `string` | ✓ | | | | `slug` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface HelpFlow ``` --- ### `HelpFlowCardProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `flow` | `HelpFlow` | ✓ | | | | `onPress` | `(flow: HelpFlow) => void` | | | | | `style` | `any` | | | | ```tsx interface HelpFlowCardProps ``` --- ### `HelpFlowDetailProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `contentContainerStyle` | `any` | | | | | `emptyText` | `string` | | | | | `flow` | `HelpFlow` | ✓ | | | | `onArticlePress` | `(article: HelpArticle) => void` | | | | | `style` | `any` | | | | ```tsx interface HelpFlowDetailProps ``` --- ### `InputProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `containerStyle` | `any` | | | | | `error` | `string` | | | | | `inputStyle` | `any` | | | | | `label` | `string` | | | | | `labelStyle` | `any` | | | | **Related types** — `Omit` ```tsx interface InputProps extends Omit ``` --- ### `PaginatedResponse` interface Paginated response wrapper **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `T[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface PaginatedResponse ``` --- ### `Release` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `author_user_id` | `string` | ✓ | | | | `content` | `string` | ✓ | | | | `cover_image_url` | `string \| null` | | | | | `created_at` | `string` | ✓ | | | | `excerpt` | `string \| null` | | | | | `features` | `ReleaseFeature[]` | | | | | `id` | `string` | ✓ | | | | `is_published` | `boolean` | ✓ | | | | `items` | `ReleaseItem[]` | | | | | `labels` | `string[]` | ✓ | | | | `project_id` | `string` | ✓ | | | | `published_at` | `string \| null` | | | | | `slug` | `string` | ✓ | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `version` | `string \| null` | | | | | `wish_ids` | `string[]` | ✓ | | | ```tsx interface Release ``` --- ### `ReleaseDetailProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `release` | `Release` | | | | | `releaseSlug` | `string` | | | | ```tsx interface ReleaseDetailProps ``` --- ### `ReleaseFeature` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `description` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `image_url` | `string \| null` | | | | | `release_id` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `title` | `string` | ✓ | | | ```tsx interface ReleaseFeature ``` --- ### `ReleaseListProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `description` | `string` | | | | | `limit` | `number` | | | | | `onReleasePress` | `(release: Release) => void` | | | | | `title` | `string` | | | | ```tsx interface ReleaseListProps ``` --- ### `ReleasesProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `description` | `string` | | | | | `limit` | `number` | | | | | `onReleasePress` | `(release: Release) => void` | | | | | `title` | `string` | | | | ```tsx interface ReleasesProps ``` --- ### `RoadmapBoardProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `description` | `string` | | | | | `onItemPress` | `(item: RoadmapItem) => void` | | | | | `showVoteCounts` | `boolean` | | | | | `title` | `string` | | | | ```tsx interface RoadmapBoardProps ``` --- ### `RoadmapColumn` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `color` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `items` | `RoadmapItem[]` | | | | | `name` | `string` | ✓ | | | | `roadmap_id` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `wip_limit` | `number \| null` | | | | ```tsx interface RoadmapColumn ``` --- ### `RoadmapData` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `columns` | `RoadmapColumn[]` | ✓ | | | | `customization` | `object \| null` | | | | | `roadmap` | `Roadmap \| null` | ✓ | | | | `total_items` | `number` | ✓ | | | ```tsx interface RoadmapData ``` --- ### `RoadmapItem` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `color` | `string \| null` | | | | | `column_id` | `string` | ✓ | | | | `comment_count` | `number` | | | | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | | | | | `id` | `string` | ✓ | | | | `roadmap_id` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `target_date` | `string \| null` | | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `vote_count` | `number` | | | | | `wish` | `Wish \| null` | | | | | `wish_id` | `string \| null` | | | | ```tsx interface RoadmapItem ``` --- ### `StatusBoardProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `onIncidentPress` | `(incidentId: string) => void` | | | | | `onSubscribe` | `() => void` | | | | | `refreshInterval` | `number` | | | | | `slug` | `string` | | | | | `style` | `any` | | | | | `subtitle` | `string` | | | | | `title` | `string` | | | | ```tsx interface StatusBoardProps ``` --- ### `StatusPage` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | ✓ | | | | `id` | `string` | ✓ | | | | `is_active` | `boolean` | ✓ | | | | `name` | `string` | ✓ | | | | `project_id` | `string` | ✓ | | | | `slug` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface StatusPage ``` --- ### `StatusPageOverview` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `active_count` | `number` | ✓ | | | | `active_updates` | `StatusUpdate[]` | ✓ | | | | `current_status` | `StatusType` | ✓ | | | | `recent_updates` | `StatusUpdate[]` | ✓ | | | | `resolved_count` | `number` | ✓ | | | | `services` | `StatusPageService[]` | ✓ | | | | `services_status` | `Record` | ✓ | | | | `status_breakdown` | `Record` | ✓ | | | | `status_page` | `StatusPage` | ✓ | | | | `total_updates` | `number` | ✓ | | | ```tsx interface StatusPageOverview ``` --- ### `StatusPageService` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `color` | `string \| null` | ✓ | | | | `created_at` | `string` | ✓ | | | | `description` | `string \| null` | ✓ | | | | `group_name` | `string \| null` | ✓ | | | | `id` | `string` | ✓ | | | | `is_active` | `boolean` | ✓ | | | | `name` | `string` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `status_page_id` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface StatusPageService ``` --- ### `StoredTicket` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `access_token` | `string` | ✓ | Access token for viewing the ticket | | | `created_at` | `string` | ✓ | Creation timestamp | | | `id` | `string` | ✓ | Ticket ID | | | `magic_link` | `string` | | Magic link for authentication (optional) | | | `status` | `string` | ✓ | Ticket status | | | `subject` | `string` | ✓ | Ticket subject | | | `user_email` | `string` | ✓ | User email | | ```tsx interface StoredTicket ``` --- ### `SubmitWishSheetProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `customFormId` | `string` | | Custom form ID to use instead of default form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'wish' to create feature requests. | | | `description` | `string` | | Form description | | | `onClose` | `() => void` | ✓ | Callback when visibility changes | | | `onError` | `(error: string) => void` | | Callback when submission fails | | | `onSuccess` | `(wish: Wish) => void` | | Callback when wish is successfully submitted | | | `submitButtonText` | `string` | | Submit button text | | | `title` | `string` | | Form title | | | `visible` | `boolean` | ✓ | Whether the sheet is visible | | ```tsx interface SubmitWishSheetProps ``` --- ### `SupportAttachment` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `mime_type` | `string` | | | | | `name` | `string` | ✓ | | | | `size` | `number` | ✓ | | | | `url` | `string` | ✓ | | | ```tsx interface SupportAttachment ``` --- ### `SupportFormProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `checkDescription` | `string` | | Check status section description | | | `checkTitle` | `string` | | Check status section title | | | `customFormId` | `string` | | Custom contact form ID to use instead of default support form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'support' to create tickets. | | | `description` | `string` | | Page description | | | `externalUserId` | `string` | | External user ID for tracking | | | `heading` | `string` | | Page heading | | | `onCheckStatus` | `(email: string) => void` | | Callback when checking status | | | `onError` | `(error: string) => void` | | Callback when submission fails | | | `onStoredTicketClick` | `(ticket: StoredTicket) => void` | | Callback when a locally stored recent ticket is clicked | | | `onSuccess` | `(ticket?: SupportRequest) => void` | | Callback when ticket is successfully submitted | | | `onTicketClick` | `(ticket: SupportRequest) => void` | | Callback when a ticket is clicked | | | `showCategory` | `boolean` | | Show category selector | | | `showCheckStatus` | `boolean` | | Show check status tab | | | `showName` | `boolean` | | Show name field | | | `submitButtonText` | `string` | | Submit button text | | | `submitDescription` | `string` | | Submit section description | | | `submitTitle` | `string` | | Submit section title | | | `userEmail` | `string` | | Pre-filled user email | | | `userName` | `string` | | Pre-filled user name | | ```tsx interface SupportFormProps ``` --- ### `SupportMessage` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `attachments` | `SupportAttachment[]` | | | | | `author_email` | `string \| null` | | | | | `author_name` | `string \| null` | | | | | `author_type` | `"user" \| "team_member"` | ✓ | | | | `author_user_id` | `string \| null` | | | | | `content` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_internal` | `boolean` | ✓ | | | | `support_request_id` | `string` | ✓ | | | ```tsx interface SupportMessage ``` --- ### `SupportMessageInput` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `attachments` | `SupportUploadFile[]` | | | | | `content` | `string` | ✓ | | | ```tsx interface SupportMessageInput ``` --- ### `SupportMessageResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `attachments` | `SupportAttachment[]` | | | | | `content` | `string` | ✓ | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | ```tsx interface SupportMessageResponse ``` --- ### `SupportRequest` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `assignee_id` | `string \| null` | | | | | `attachments` | `SupportAttachment[]` | | | | | `category` | `SupportRequestCategory \| null` | | | | | `created_at` | `string` | ✓ | | | | `description` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `message_count` | `number` | ✓ | | | | `messages` | `SupportMessage[]` | | | | | `priority` | `SupportRequestPriority \| null` | | | | | `project_id` | `string` | ✓ | | | | `resolved_at` | `string \| null` | | | | | `status` | `SupportRequestStatus` | ✓ | | | | `subject` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `user_email` | `string` | ✓ | | | | `user_name` | `string \| null` | | | | ```tsx interface SupportRequest ``` --- ### `SupportRequestInput` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `attachments` | `SupportUploadFile[]` | | | | | `category` | `SupportRequestCategory` | | | | | `description` | `string` | ✓ | | | | `external_user_id` | `string` | | | | | `subject` | `string` | ✓ | | | | `user_email` | `string` | ✓ | | | | `user_name` | `string` | | | | ```tsx interface SupportRequestInput ``` --- ### `SupportSubmitData` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `attachments` | `SupportUploadFile[]` | | Files to upload and attach to the support ticket | | | `category` | `SupportRequestCategory` | | Ticket category (optional) | | | `description` | `string` | ✓ | Ticket description/body | | | `external_user_id` | `string` | | External user ID for tracking (optional) | | | `subject` | `string` | ✓ | Ticket subject | | | `user_email` | `string` | ✓ | User's email address | | | `user_name` | `string` | | User's name (optional) | | ```tsx interface SupportSubmitData ``` --- ### `SupportUploadFile` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `mime_type` | `string` | | | | | `name` | `string` | ✓ | | | | `size` | `number` | | | | | `type` | `string` | | | | | `uri` | `string` | | | | ```tsx interface SupportUploadFile ``` --- ### `Survey` interface Survey **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `created_at` | `string` | ✓ | | | | `description` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_active` | `boolean` | ✓ | | | | `name` | `string` | ✓ | | | | `nodes` | `SurveyNode[]` | | | | | `number_of_questions` | `number` | | | | | `number_of_responses` | `number` | | | | | `project_id` | `string` | ✓ | | | | `responses` | `SurveyResponse[]` | | | | | `slug` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface Survey ``` --- ### `SurveyAnswer` interface Survey Answer **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `answer` | `boolean` | | | | | `answer_options` | `string[]` | | | | | `answer_rating` | `number` | | | | | `answer_text` | `string` | | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `node` | `object` | | | | | `node_id` | `string` | ✓ | | | | `response_id` | `string` | ✓ | | | ```tsx interface SurveyAnswer ``` --- ### `SurveyFormProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `autoAdvance` | `boolean` | | | | | `fingerprint` | `string` | | | | | `onError` | `(error: string) => void` | | | | | `onSuccess` | `() => void` | | | | | `slug` | `string` | ✓ | | | ```tsx interface SurveyFormProps ``` --- ### `SurveyNode` interface Survey Node Individual questions or result nodes in a survey decision tree. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `answer_no_node_id` | `string \| null` | ✓ | | | | `answer_yes_node_id` | `string \| null` | ✓ | | | | `branches` | `SurveyNodeBranch[]` | | | | | `created_at` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `is_required` | `boolean` | | | | | `max_rating` | `number` | | | | | `min_rating` | `number` | | | | | `next_node_id` | `string \| null` | | | | | `options` | `SurveyNodeOption[]` | | | | | `parent_id` | `string \| null` | ✓ | | | | `question` | `string` | ✓ | | | | `question_type` | `SurveyQuestionType` | ✓ | | | | `result_message` | `string \| null` | ✓ | | | | `sort_order` | `number` | ✓ | | | | `survey_id` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | ```tsx interface SurveyNode ``` --- ### `SurveyNodeOption` interface Survey Node Option **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `label` | `string` | ✓ | | | | `value` | `string` | ✓ | | | ```tsx interface SurveyNodeOption ``` --- ### `SurveyResponse` interface Survey Response **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `answers` | `SurveyAnswer[]` | | | | | `created_at` | `string` | ✓ | | | | `external_user_id` | `string \| null` | ✓ | | | | `fingerprint` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `metadata` | `Record` | ✓ | | | | `survey_id` | `string` | ✓ | | | ```tsx interface SurveyResponse ``` --- ### `SurveySubmitInput` interface Input for submitting a survey response **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `answers` | `object[]` | ✓ | | | | `external_user_id` | `string` | | | | | `fingerprint` | `string` | ✓ | | | | `metadata` | `Record` | | | | ```tsx interface SurveySubmitInput ``` --- ### `UseBlogCategoriesOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseBlogCategoriesOptions ``` --- ### `UseBlogCategoriesResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `categories` | `BlogCategory[]` | ✓ | List of blog categories | | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseBlogCategoriesResult ``` --- ### `UseBlogPostOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `skip` | `boolean` | | Skip initial fetch | | | `slug` | `string` | ✓ | The blog post slug to fetch | | ```tsx interface UseBlogPostOptions ``` --- ### `UseBlogPostResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `post` | `BlogPost \| null` | ✓ | The blog post data | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `relatedPosts` | `BlogPost[]` | ✓ | Related posts | | ```tsx interface UseBlogPostResult ``` --- ### `UseBlogPostsOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `category` | `string` | | Filter by category slug | | | `featured` | `boolean` | | Only featured posts | | | `per_page` | `number` | | Items per page | | | `refreshInterval` | `number` | | Auto-refresh interval in milliseconds | | | `search` | `string` | | Search query | | | `skip` | `boolean` | | Skip initial fetch | | | `tag` | `string` | | Filter by tag | | ```tsx interface UseBlogPostsOptions ``` --- ### `UseBlogPostsResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `page` | `number` | ✓ | Current page number | | | `posts` | `BlogPost[]` | ✓ | List of blog posts | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `setFilters` | `(filters: Partial) => void` | ✓ | Update filters (resets to page 1) | | | `setPage` | `(page: number) => void` | ✓ | Set the current page | | | `total` | `number` | ✓ | Total number of posts | | | `totalPages` | `number` | ✓ | Total number of pages | | ```tsx interface UseBlogPostsResult ``` --- ### `UseCommentsOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `autoFetch` | `boolean` | | Whether to fetch comments automatically on mount | | | `wishId` | `string \| null` | ✓ | The wish ID to fetch comments for | | ```tsx interface UseCommentsOptions ``` --- ### `UseCommentsResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `addComment` | `(content: string, authorName?: string, authorEmail?: string) => Promise` | ✓ | Add a new comment | | | `comments` | `Comment[]` | ✓ | List of comments | | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state for initial fetch | | | `isSubmitting` | `boolean` | ✓ | Loading state while submitting a comment | | | `refetch` | `() => Promise` | ✓ | Manually refetch comments | | ```tsx interface UseCommentsResult ``` --- ### `UseFeaturedPostsOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseFeaturedPostsOptions ``` --- ### `UseFeaturedPostsResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `posts` | `BlogPost[]` | ✓ | List of featured blog posts | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseFeaturedPostsResult ``` --- ### `UseFormOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `enabled` | `boolean` | | Whether to fetch the form on mount | | ```tsx interface UseFormOptions ``` --- ### `UseFormResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `form` | `Form \| null` | ✓ | The form configuration | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch the form | | ```tsx interface UseFormResult ``` --- ### `UseFormSubmitOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `onError` | `(error: string) => void` | | Callback when submission fails | | | `onSuccess` | `(submission: FormSubmission) => void` | | Callback when form is submitted successfully | | | `rateLimitMs` | `number` | | Minimum time between submissions in milliseconds | | ```tsx interface UseFormSubmitOptions ``` --- ### `UseFormSubmitResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `clearMessages` | `() => void` | ✓ | Clear error and success messages | | | `error` | `string \| null` | ✓ | Error message if submission failed | | | `isRateLimited` | `boolean` | ✓ | Whether the user is rate-limited from submitting | | | `isSubmitting` | `boolean` | ✓ | Loading state during submission | | | `submitForm` | `(projectId: string, formId: string, data: Record) => Promise` | ✓ | Submit the form | | | `successMessage` | `string \| null` | ✓ | Success message after submission | | ```tsx interface UseFormSubmitResult ``` --- ### `UseHelpArticleResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `article` | `HelpArticle \| null` | ✓ | The help article data | | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseHelpArticleResult ``` --- ### `UseHelpCenterResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `collection` | `HelpCollection \| null` | ✓ | The help collection data | | | `error` | `string \| null` | ✓ | Error message if any | | | `flows` | `HelpFlow[]` | ✓ | List of help flows in this collection | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseHelpCenterResult ``` --- ### `UseHelpFlowResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `flow` | `HelpFlow \| null` | ✓ | The help flow data with its articles | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseHelpFlowResult ``` --- ### `UseReleaseOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `releaseSlug` | `string` | ✓ | The release slug to fetch | | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseReleaseOptions ``` --- ### `UseReleaseResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `features` | `ReleaseFeature[]` | ✓ | Features included in this release | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `release` | `Release \| null` | ✓ | The release data | | ```tsx interface UseReleaseResult ``` --- ### `UseReleasesOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `limit` | `number` | | Maximum number of releases to fetch | | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseReleasesOptions ``` --- ### `UseReleasesResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `releases` | `Release[]` | ✓ | List of releases | | ```tsx interface UseReleasesResult ``` --- ### `UseRoadmapOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `refreshInterval` | `number` | | Auto-refresh interval in milliseconds (0 to disable) | | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseRoadmapOptions ``` --- ### `UseRoadmapResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `columns` | `RoadmapColumn[]` | ✓ | Roadmap columns with items | | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `roadmap` | `RoadmapData \| null` | ✓ | Full roadmap data object | | | `totalItems` | `number` | ✓ | Total number of items across all columns | | ```tsx interface UseRoadmapResult ``` --- ### `UseStatusOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `refreshInterval` | `number` | | Auto-refresh interval in milliseconds (0 to disable) | | | `slug` | `string` | | Status page slug | | ```tsx interface UseStatusOptions ``` --- ### `UseStatusResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `StatusPageOverview \| null` | ✓ | Status page data including services and incidents | | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | ```tsx interface UseStatusResult ``` --- ### `UseSupportOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `onError` | `(error: string) => void` | | Callback when an error occurs | | | `onSuccess` | `(ticket: SupportRequest) => void` | | Callback when ticket is submitted successfully | | ```tsx interface UseSupportOptions ``` --- ### `UseSupportResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `clearMessages` | `() => void` | ✓ | Clear error and success messages | | | `clearStoredTickets` | `() => Promise` | ✓ | Clear all locally stored tickets | | | `error` | `string \| null` | ✓ | Error message if any operation failed | | | `isSendingMagicLink` | `boolean` | ✓ | Loading state while sending magic link | | | `isSubmitting` | `boolean` | ✓ | Loading state during submission | | | `isSubmittingMessage` | `boolean` | ✓ | Loading state while submitting a thread message | | | `isVerifying` | `boolean` | ✓ | Loading state while verifying token | | | `loadStoredTickets` | `() => Promise` | ✓ | Reload stored tickets from local storage | | | `requestMagicLink` | `(email: string) => Promise` | ✓ | Request a magic link to be sent to the user's email | | | `storedTickets` | `StoredTicket[]` | ✓ | Locally stored tickets from previous submissions | | | `submitMessage` | `(ticketId: string, token: string, data: string \| SupportMessageInput, attachments?: SupportUploadFile[]) => Promise` | ✓ | Submit a message to an existing support ticket thread | | | `submitTicket` | `(data: SupportSubmitData) => Promise` | ✓ | Submit a support ticket | | | `successMessage` | `string \| null` | ✓ | Success message after successful operations | | | `verifyToken` | `(token: string) => Promise` | ✓ | Verify a magic link token to get user's tickets | | ```tsx interface UseSupportResult ``` --- ### `UseSurveyOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `enabled` | `boolean` | | Whether to fetch the survey on mount | | ```tsx interface UseSurveyOptions ``` --- ### `UseSurveyResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `nodes` | `SurveyNode[]` | ✓ | Survey question nodes | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `survey` | `Survey \| null` | ✓ | The survey data | | ```tsx interface UseSurveyResult ``` --- ### `UseSurveySubmitOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `onError` | `(error: string) => void` | | Callback when submission fails | | | `onSuccess` | `(response: SurveyResponse) => void` | | Callback when survey is submitted successfully | | ```tsx interface UseSurveySubmitOptions ``` --- ### `UseSurveySubmitResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if submission failed | | | `isSubmitting` | `boolean` | ✓ | Loading state during submission | | | `submitResponse` | `(surveyId: string, data: SurveySubmitInput) => Promise` | ✓ | Submit a survey response | | ```tsx interface UseSurveySubmitResult ``` --- ### `UseVoteOptions` interface useVote Hook Manages voting state and actions for wishes. Provides imperative vote/unvote/check methods for custom implementations. **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `onError` | `(error: string) => void` | | Callback when a vote action fails | | | `onVote` | `(wishId: string, hasVoted: boolean, newCount: number) => void` | | Callback when a vote action completes successfully | | ```tsx interface UseVoteOptions ``` **Example** ```tsx import { useVote } from '@appgram/react-native' function CustomVoteButton({ wish }) { const { vote, unvote, checkVote, isVoting } = useVote({ onVote: (wishId, hasVoted, newCount) => { console.log('Vote changed:', { wishId, hasVoted, newCount }) }, }) const [hasVoted, setHasVoted] = useState(wish.has_voted) const [count, setCount] = useState(wish.vote_count) const [voteId, setVoteId] = useState() const handlePress = async () => { if (hasVoted && voteId) { const success = await unvote(wish.id, voteId, count) if (success) { setHasVoted(false) setCount(c => c - 1) } } else { const success = await vote(wish.id, count) if (success) { setHasVoted(true) setCount(c => c + 1) } } } return ( {hasVoted ? '✓' : '▲'} {count} ) } // Check vote status on mount useEffect(() => { checkVote(wish.id).then(({ hasVoted, voteId }) => { setHasVoted(hasVoted) setVoteId(voteId) }) }, [wish.id]) ``` --- ### `UseVoteResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `checkVote` | `(wishId: string) => Promise` | ✓ | Check if the current user has voted on a wish | | | `error` | `string \| null` | ✓ | Error message if any | | | `isVoting` | `boolean` | ✓ | Loading state for vote operations | | | `unvote` | `(wishId: string, voteId: string, currentVoteCount: number) => Promise` | ✓ | Remove a vote from a wish | | | `vote` | `(wishId: string, currentVoteCount: number) => Promise` | ✓ | Cast a vote on a wish | | ```tsx interface UseVoteResult ``` --- ### `UseWishesOptions` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `filters` | `WishFilters` | | Initial filters for the wishes query | | | `refreshInterval` | `number` | | Auto-refresh interval in milliseconds (0 to disable) | | | `skip` | `boolean` | | Skip initial fetch | | ```tsx interface UseWishesOptions ``` --- ### `UseWishesResult` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `error` | `string \| null` | ✓ | Error message if any | | | `isLoading` | `boolean` | ✓ | Loading state | | | `page` | `number` | ✓ | Current page | | | `refetch` | `() => Promise` | ✓ | Manually refetch data | | | `setFilters` | `(filters: WishFilters) => void` | ✓ | Update filters (resets to page 1) | | | `setPage` | `(page: number) => void` | ✓ | Go to a specific page | | | `total` | `number` | ✓ | Total number of wishes | | | `totalPages` | `number` | ✓ | Total pages | | | `wishes` | `Wish[]` | ✓ | List of wishes | | ```tsx interface UseWishesResult ``` --- ### `Vote` interface Vote Types **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `created_at` | `string` | ✓ | | | | `fingerprint` | `string` | ✓ | | | | `id` | `string` | ✓ | | | | `user_id` | `string \| null` | | | | | `voter_email` | `string \| null` | | | | | `wish_id` | `string` | ✓ | | | ```tsx interface Vote ``` --- ### `VoteButtonProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `initialHasVoted` | `boolean` | | | | | `initialVoteCount` | `number` | ✓ | | | | `initialVoteId` | `string` | | | | | `onVoteChange` | `(hasVoted: boolean, newCount: number) => void` | | | | | `size` | `"sm" \| "md" \| "lg"` | | | | | `style` | `any` | | | | | `wishId` | `string` | ✓ | | | ```tsx interface VoteButtonProps ``` --- ### `VoteCheckResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `has_voted` | `boolean` | ✓ | | | | `vote_id` | `string` | | | | ```tsx interface VoteCheckResponse ``` --- ### `Wish` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `author` | `WishAuthor` | | | | | `author_email` | `string \| null` | | | | | `author_name` | `string \| null` | | | | | `author_type` | `"user" \| "anonymous" \| "team_member"` | ✓ | | | | `category` | `Category \| null` | | | | | `category_id` | `string \| null` | | | | | `comment_count` | `number` | ✓ | | | | `completed_at` | `string \| null` | | | | | `created_at` | `string` | ✓ | | | | `description` | `string` | ✓ | | | | `has_voted` | `boolean` | | | | | `id` | `string` | ✓ | | | | `is_pinned` | `boolean` | | | | | `priority` | `WishPriority \| null` | | | | | `project_id` | `string` | ✓ | | | | `slug` | `string` | ✓ | | | | `status` | `WishStatus` | ✓ | | | | `title` | `string` | ✓ | | | | `updated_at` | `string` | ✓ | | | | `vote_count` | `number` | ✓ | | | ```tsx interface Wish ``` --- ### `WishAuthor` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `avatar_url` | `string \| null` | | | | | `email` | `string \| null` | | | | | `name` | `string` | ✓ | | | ```tsx interface WishAuthor ``` --- ### `WishCardProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `onCommentPress` | `(wish: Wish) => void` | | | | | `onPress` | `(wish: Wish) => void` | | | | | `onVote` | `(wishId: string) => void` | | | | | `style` | `any` | | | | | `wish` | `Wish` | ✓ | | | ```tsx interface WishCardProps ``` --- ### `WishDetailModalProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `onClose` | `() => void` | ✓ | | | | `onVote` | `(wishId: string) => void` | | | | | `visible` | `boolean` | ✓ | | | | `wish` | `Wish \| null` | ✓ | | | ```tsx interface WishDetailModalProps ``` --- ### `WishesResponse` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `data` | `Wish[]` | ✓ | | | | `page` | `number` | ✓ | | | | `per_page` | `number` | ✓ | | | | `total` | `number` | ✓ | | | | `total_pages` | `number` | ✓ | | | ```tsx interface WishesResponse ``` --- ### `WishFilters` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `category_id` | `string` | | | | | `fingerprint` | `string` | | | | | `page` | `number` | | | | | `per_page` | `number` | | | | | `priority` | `WishPriority \| WishPriority[]` | | | | | `search` | `string` | | | | | `sort_by` | `"votes" \| "created_at" \| "updated_at"` | | | | | `sort_order` | `"asc" \| "desc"` | | | | | `status` | `WishStatus \| WishStatus[]` | | | | ```tsx interface WishFilters ``` --- ### `WishListProps` interface **Properties** | Name | Type | Required | Description | Default | | --- | --- | --- | --- | --- | | `contentContainerStyle` | `any` | | | | | `customFormId` | `string` | | Custom form ID for the submit sheet | | | `description` | `string` | | | | | `emptyText` | `string` | | | | | `filters` | `WishFilters` | | | | | `onAddWish` | `() => void` | | | | | `onCommentPress` | `(wish: Wish) => void` | | | | | `onVote` | `(wishId: string) => void` | | | | | `onWishPress` | `(wish: Wish) => void` | | | | | `onWishSubmitted` | `(wish: Wish) => void` | | Callback when a wish is successfully submitted | | | `refreshInterval` | `number` | | | | | `showSubmitButton` | `boolean` | | Show the submit idea button (defaults to true) | | | `style` | `any` | | | | | `submitButtonText` | `string` | | Submit button text | | | `submitSheetDescription` | `string` | | Submit sheet description | | | `submitSheetTitle` | `string` | | Submit sheet title | | | `title` | `string` | | | | ```tsx interface WishListProps ``` ## ApiResponse ### `ApiResponse.data` property ```tsx data: T ``` --- ### `ApiResponse.error` property ```tsx error: object ``` --- ### `ApiResponse.success` property ```tsx success: boolean ``` ## AppgramClientConfig ### `AppgramClientConfig.baseUrl` property ```tsx baseUrl: string ``` --- ### `AppgramClientConfig.orgSlug` property ```tsx orgSlug: string ``` --- ### `AppgramClientConfig.projectId` property ```tsx projectId: string ``` --- ### `AppgramClientConfig.projectSlug` property ```tsx projectSlug: string ``` ## AppgramColors ### `AppgramColors.accent` property ```tsx accent: string ``` --- ### `AppgramColors.background` property ```tsx background: string ``` --- ### `AppgramColors.border` property ```tsx border: string ``` --- ### `AppgramColors.card` property ```tsx card: string ``` --- ### `AppgramColors.cardForeground` property ```tsx cardForeground: string ``` --- ### `AppgramColors.error` property ```tsx error: string ``` --- ### `AppgramColors.errorSubtle` property ```tsx errorSubtle: string ``` --- ### `AppgramColors.foreground` property ```tsx foreground: string ``` --- ### `AppgramColors.info` property ```tsx info: string ``` --- ### `AppgramColors.infoSubtle` property ```tsx infoSubtle: string ``` --- ### `AppgramColors.muted` property ```tsx muted: string ``` --- ### `AppgramColors.mutedForeground` property ```tsx mutedForeground: string ``` --- ### `AppgramColors.primary` property ```tsx primary: string ``` --- ### `AppgramColors.secondary` property ```tsx secondary: string ``` --- ### `AppgramColors.success` property ```tsx success: string ``` --- ### `AppgramColors.successSubtle` property ```tsx successSubtle: string ``` --- ### `AppgramColors.warning` property ```tsx warning: string ``` --- ### `AppgramColors.warningSubtle` property ```tsx warningSubtle: string ``` ## AppgramConfig ### `AppgramConfig.apiUrl` property Custom API URL (defaults to https://api.appgram.dev) ```tsx apiUrl: string ``` --- ### `AppgramConfig.enableFingerprinting` property Enable device fingerprinting for anonymous voting ```tsx enableFingerprinting: boolean ``` --- ### `AppgramConfig.orgSlug` property Organization slug for API routing ```tsx orgSlug: string ``` --- ### `AppgramConfig.projectId` property Your Appgram project ID (required) ```tsx projectId: string ``` --- ### `AppgramConfig.projectSlug` property Project slug for API routing ```tsx projectSlug: string ``` --- ### `AppgramConfig.theme` property Theme configuration ```tsx theme: object ``` ## AppgramProviderProps ### `AppgramProviderProps.children` property Child components ```tsx children: ReactNode ``` --- ### `AppgramProviderProps.config` property SDK configuration ```tsx config: AppgramConfig ``` ## AppgramTheme ### `AppgramTheme.colors` property Color palette ```tsx colors: AppgramColors ``` --- ### `AppgramTheme.isDark` property Whether dark mode is active ```tsx isDark: boolean ``` --- ### `AppgramTheme.mode` property Current theme mode ```tsx mode: ThemeMode ``` --- ### `AppgramTheme.radius` property Border radius scale (sm, md, lg, xl, full) ```tsx radius: object ``` --- ### `AppgramTheme.spacing` property Spacing scale (xs, sm, md, lg, xl, 2xl) ```tsx spacing: object ``` --- ### `AppgramTheme.typography` property Typography scale (xs, sm, base, lg, xl, 2xl, 3xl) ```tsx typography: object ``` ## BadgeProps ### `BadgeProps.action` property ```tsx action: "muted" | "success" | "warning" | "info" | "error" ``` --- ### `BadgeProps.children` property ```tsx children: ReactNode ``` --- ### `BadgeProps.size` property ```tsx size: "sm" | "md" | "lg" ``` --- ### `BadgeProps.style` property ```tsx style: any ``` ## BlogCardProps ### `BlogCardProps.isBookmarked` property ```tsx isBookmarked: boolean ``` --- ### `BlogCardProps.onBookmark` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onBookmark(post: BlogPost): void ``` --- ### `BlogCardProps.onPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onPress(post: BlogPost): void ``` --- ### `BlogCardProps.post` property ```tsx post: BlogPost ``` --- ### `BlogCardProps.style` property ```tsx style: any ``` --- ### `BlogCardProps.variant` property ```tsx variant: "default" | "compact" | "large" ``` ## BlogCategory ### `BlogCategory.color` property ```tsx color: string | null ``` --- ### `BlogCategory.description` property ```tsx description: string | null ``` --- ### `BlogCategory.id` property ```tsx id: string ``` --- ### `BlogCategory.name` property ```tsx name: string ``` --- ### `BlogCategory.post_count` property ```tsx post_count: number ``` --- ### `BlogCategory.slug` property ```tsx slug: string ``` ## BlogFilters ### `BlogFilters.category_slug` property ```tsx category_slug: string ``` --- ### `BlogFilters.is_featured` property ```tsx is_featured: boolean ``` --- ### `BlogFilters.page` property ```tsx page: number ``` --- ### `BlogFilters.per_page` property ```tsx per_page: number ``` --- ### `BlogFilters.search` property ```tsx search: string ``` --- ### `BlogFilters.tag` property ```tsx tag: string ``` ## BlogListProps ### `BlogListProps.bookmarkedIds` property ```tsx bookmarkedIds: string[] ``` --- ### `BlogListProps.cardVariant` property ```tsx cardVariant: "default" | "compact" | "large" ``` --- ### `BlogListProps.description` property ```tsx description: string ``` --- ### `BlogListProps.initialCategory` property ```tsx initialCategory: string ``` --- ### `BlogListProps.initialSearch` property ```tsx initialSearch: string ``` --- ### `BlogListProps.onBookmark` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onBookmark(post: BlogPost): void ``` --- ### `BlogListProps.onFilterPress` property **Returns** — `void` ```tsx onFilterPress(): void ``` --- ### `BlogListProps.onPostPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onPostPress(post: BlogPost): void ``` --- ### `BlogListProps.postsPerPage` property ```tsx postsPerPage: number ``` --- ### `BlogListProps.renderEmpty` property **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `BlogListProps.renderError` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `BlogListProps.renderLoading` property **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `BlogListProps.showCategories` property ```tsx showCategories: boolean ``` --- ### `BlogListProps.showSearch` property ```tsx showSearch: boolean ``` --- ### `BlogListProps.style` property ```tsx style: any ``` --- ### `BlogListProps.title` property ```tsx title: string ``` ## BlogPost ### `BlogPost.author_name` property ```tsx author_name: string | null ``` --- ### `BlogPost.category` property ```tsx category: object ``` --- ### `BlogPost.category_id` property ```tsx category_id: string | null ``` --- ### `BlogPost.content` property ```tsx content: string ``` --- ### `BlogPost.created_at` property ```tsx created_at: string ``` --- ### `BlogPost.excerpt` property ```tsx excerpt: string | null ``` --- ### `BlogPost.id` property ```tsx id: string ``` --- ### `BlogPost.is_featured` property ```tsx is_featured: boolean ``` --- ### `BlogPost.meta_description` property ```tsx meta_description: string | null ``` --- ### `BlogPost.og_image_url` property ```tsx og_image_url: string | null ``` --- ### `BlogPost.project_id` property ```tsx project_id: string ``` --- ### `BlogPost.published_at` property ```tsx published_at: string ``` --- ### `BlogPost.slug` property ```tsx slug: string ``` --- ### `BlogPost.tags` property ```tsx tags: string[] ``` --- ### `BlogPost.title` property ```tsx title: string ``` --- ### `BlogPost.updated_at` property ```tsx updated_at: string ``` --- ### `BlogPost.view_count` property ```tsx view_count: number ``` ## BlogPostDetailProps ### `BlogPostDetailProps.isBookmarked` property ```tsx isBookmarked: boolean ``` --- ### `BlogPostDetailProps.onBookmark` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onBookmark(post: BlogPost): void ``` --- ### `BlogPostDetailProps.onRelatedPostPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onRelatedPostPress(post: BlogPost): void ``` --- ### `BlogPostDetailProps.post` property ```tsx post: BlogPost ``` --- ### `BlogPostDetailProps.postSlug` property ```tsx postSlug: string ``` --- ### `BlogPostDetailProps.renderError` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `BlogPostDetailProps.renderLoading` property **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `BlogPostDetailProps.showRelatedPosts` property ```tsx showRelatedPosts: boolean ``` --- ### `BlogPostDetailProps.style` property ```tsx style: any ``` ## BlogPostsResponse ### `BlogPostsResponse.data` property ```tsx data: BlogPost[] ``` --- ### `BlogPostsResponse.page` property ```tsx page: number ``` --- ### `BlogPostsResponse.per_page` property ```tsx per_page: number ``` --- ### `BlogPostsResponse.total` property ```tsx total: number ``` --- ### `BlogPostsResponse.total_pages` property ```tsx total_pages: number ``` ## BlogProps ### `BlogProps.bookmarkedIds` property ```tsx bookmarkedIds: string[] ``` --- ### `BlogProps.cardVariant` property ```tsx cardVariant: "default" | "compact" | "large" ``` --- ### `BlogProps.description` property ```tsx description: string ``` --- ### `BlogProps.initialCategory` property ```tsx initialCategory: string ``` --- ### `BlogProps.initialSearch` property ```tsx initialSearch: string ``` --- ### `BlogProps.onBackToList` property **Returns** — `void` ```tsx onBackToList(): void ``` --- ### `BlogProps.onBookmark` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onBookmark(post: BlogPost): void ``` --- ### `BlogProps.onFilterPress` property **Returns** — `void` ```tsx onFilterPress(): void ``` --- ### `BlogProps.onPostView` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `post` | `BlogPost` | ✓ | | **Returns** — `void` ```tsx onPostView(post: BlogPost): void ``` --- ### `BlogProps.postsPerPage` property ```tsx postsPerPage: number ``` --- ### `BlogProps.renderEmpty` property **Returns** — `ReactNode` ```tsx renderEmpty(): ReactNode ``` --- ### `BlogProps.renderError` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | | `retry` | `() => void` | ✓ | | **Returns** — `ReactNode` ```tsx renderError(error: string, retry: () => void): ReactNode ``` --- ### `BlogProps.renderLoading` property **Returns** — `ReactNode` ```tsx renderLoading(): ReactNode ``` --- ### `BlogProps.showCategories` property ```tsx showCategories: boolean ``` --- ### `BlogProps.showRelatedPosts` property ```tsx showRelatedPosts: boolean ``` --- ### `BlogProps.showSearch` property ```tsx showSearch: boolean ``` --- ### `BlogProps.style` property ```tsx style: any ``` --- ### `BlogProps.title` property ```tsx title: string ``` ## ButtonProps ### `ButtonProps.children` property ```tsx children: ReactNode ``` --- ### `ButtonProps.disabled` property ```tsx disabled: boolean ``` --- ### `ButtonProps.loading` property ```tsx loading: boolean ``` --- ### `ButtonProps.onPress` property **Returns** — `void` ```tsx onPress(): void ``` --- ### `ButtonProps.size` property ```tsx size: "sm" | "md" | "lg" ``` --- ### `ButtonProps.style` property ```tsx style: any ``` --- ### `ButtonProps.textStyle` property ```tsx textStyle: any ``` --- ### `ButtonProps.variant` property ```tsx variant: "solid" | "outline" | "ghost" ``` ## CardProps ### `CardProps.children` property ```tsx children: ReactNode ``` --- ### `CardProps.style` property ```tsx style: any ``` --- ### `CardProps.variant` property ```tsx variant: "default" | "elevated" | "outlined" ``` ## Category ### `Category.color` property ```tsx color: string ``` --- ### `Category.description` property ```tsx description: string | null ``` --- ### `Category.icon` property ```tsx icon: string | null ``` --- ### `Category.id` property ```tsx id: string ``` --- ### `Category.name` property ```tsx name: string ``` --- ### `Category.slug` property ```tsx slug: string ``` --- ### `Category.wish_count` property ```tsx wish_count: number ``` ## ChatScreenProps ### `ChatScreenProps.accentColor` property Accent color override ```tsx accentColor: string ``` --- ### `ChatScreenProps.agentName` property Name of the chat agent ```tsx agentName: string ``` --- ### `ChatScreenProps.greeting` property Initial greeting message ```tsx greeting: string ``` --- ### `ChatScreenProps.onArticlePress` property Callback when an article source is tapped. Provides the article slug and full source data for flexible routing. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `slug` | `string` | ✓ | | | `source` | `ChatSource` | ✓ | | **Returns** — `void` ```tsx onArticlePress(slug: string, source: ChatSource): void ``` **Example** ```tsx // Simple slug-based routing onArticlePress={(slug) => navigation.navigate('HelpArticle', { slug })} // Using flow context for nested routes onArticlePress={(slug, source) => { if (source.flow_slug) { navigation.navigate('HelpArticle', { flowSlug: source.flow_slug, slug }) } else { navigation.navigate('HelpArticle', { slug }) } }} ``` --- ### `ChatScreenProps.onSupportPress` property Callback when support button is tapped **Returns** — `void` ```tsx onSupportPress(): void ``` --- ### `ChatScreenProps.options` property Quick reply options shown initially ```tsx options: QuickOption[] ``` --- ### `ChatScreenProps.placeholder` property Input placeholder text ```tsx placeholder: string ``` --- ### `ChatScreenProps.style` property Custom style for container ```tsx style: any ``` --- ### `ChatScreenProps.subtitle` property Subtitle shown below greeting ```tsx subtitle: string ``` ## ChatSource ### `ChatSource.article_id` property ```tsx article_id: string ``` --- ### `ChatSource.flow_id` property ```tsx flow_id: string ``` --- ### `ChatSource.flow_slug` property ```tsx flow_slug: string ``` --- ### `ChatSource.similarity` property ```tsx similarity: number ``` --- ### `ChatSource.slug` property ```tsx slug: string ``` --- ### `ChatSource.title` property ```tsx title: string ``` --- ### `ChatSource.type` property Source type - determines routing behavior ```tsx type: "help_article" | "blog_post" ``` ## Comment ### `Comment.author_avatar_url` property ```tsx author_avatar_url: string | null ``` --- ### `Comment.author_name` property ```tsx author_name: string ``` --- ### `Comment.author_type` property ```tsx author_type: "user" | "anonymous" | "team_member" ``` --- ### `Comment.author_user_id` property ```tsx author_user_id: string | null ``` --- ### `Comment.content` property ```tsx content: string ``` --- ### `Comment.created_at` property ```tsx created_at: string ``` --- ### `Comment.id` property ```tsx id: string ``` --- ### `Comment.is_deleted` property ```tsx is_deleted: boolean ``` --- ### `Comment.is_official` property ```tsx is_official: boolean ``` --- ### `Comment.parent_id` property ```tsx parent_id: string | null ``` --- ### `Comment.replies` property ```tsx replies: Comment[] ``` --- ### `Comment.reply_count` property ```tsx reply_count: number ``` --- ### `Comment.updated_at` property ```tsx updated_at: string ``` --- ### `Comment.wish_id` property ```tsx wish_id: string ``` ## CommentAuthor ### `CommentAuthor.avatar_url` property ```tsx avatar_url: string | null ``` --- ### `CommentAuthor.name` property ```tsx name: string ``` ## CommentCreateInput ### `CommentCreateInput.author_email` property ```tsx author_email: string ``` --- ### `CommentCreateInput.author_name` property ```tsx author_name: string ``` --- ### `CommentCreateInput.content` property ```tsx content: string ``` --- ### `CommentCreateInput.parent_id` property ```tsx parent_id: string ``` --- ### `CommentCreateInput.wish_id` property ```tsx wish_id: string ``` ## CommentsResponse ### `CommentsResponse.data` property ```tsx data: Comment[] ``` --- ### `CommentsResponse.page` property ```tsx page: number ``` --- ### `CommentsResponse.per_page` property ```tsx per_page: number ``` --- ### `CommentsResponse.total` property ```tsx total: number ``` --- ### `CommentsResponse.total_pages` property ```tsx total_pages: number ``` ## Form ### `Form.createdAt` property ```tsx createdAt: string ``` --- ### `Form.description` property ```tsx description: string ``` --- ### `Form.emailRecipient` property ```tsx emailRecipient: string ``` --- ### `Form.emailSubject` property ```tsx emailSubject: string ``` --- ### `Form.enabled` property ```tsx enabled: boolean ``` --- ### `Form.fields` property ```tsx fields: FormField[] ``` --- ### `Form.id` property ```tsx id: string ``` --- ### `Form.integration` property Integration settings for form submission ```tsx integration: FormIntegration ``` --- ### `Form.name` property ```tsx name: string ``` --- ### `Form.submitButtonText` property ```tsx submitButtonText: string ``` --- ### `Form.successMessage` property ```tsx successMessage: string ``` --- ### `Form.updatedAt` property ```tsx updatedAt: string ``` ## FormField ### `FormField.id` property ```tsx id: string ``` --- ### `FormField.label` property ```tsx label: string ``` --- ### `FormField.options` property ```tsx options: string[] ``` --- ### `FormField.placeholder` property ```tsx placeholder: string ``` --- ### `FormField.required` property ```tsx required: boolean ``` --- ### `FormField.type` property ```tsx type: FormFieldType ``` --- ### `FormField.validation` property ```tsx validation: FormFieldValidation ``` ## FormRendererProps ### `FormRendererProps.description` property ```tsx description: string ``` --- ### `FormRendererProps.formId` property ```tsx formId: string ``` --- ### `FormRendererProps.onError` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `FormRendererProps.onSuccess` property **Returns** — `void` ```tsx onSuccess(): void ``` --- ### `FormRendererProps.projectId` property ```tsx projectId: string ``` --- ### `FormRendererProps.style` property ```tsx style: any ``` --- ### `FormRendererProps.title` property ```tsx title: string ``` ## FormSubmission ### `FormSubmission.data` property ```tsx data: Record ``` --- ### `FormSubmission.form_id` property ```tsx form_id: string ``` --- ### `FormSubmission.id` property ```tsx id: string ``` --- ### `FormSubmission.project_id` property ```tsx project_id: string ``` --- ### `FormSubmission.submitted_at` property ```tsx submitted_at: string ``` ## HelpArticle ### `HelpArticle.article_type` property ```tsx article_type: ArticleType ``` --- ### `HelpArticle.content` property ```tsx content: string ``` --- ### `HelpArticle.created_at` property ```tsx created_at: string ``` --- ### `HelpArticle.excerpt` property ```tsx excerpt: string | null ``` --- ### `HelpArticle.flow_id` property ```tsx flow_id: string ``` --- ### `HelpArticle.id` property ```tsx id: string ``` --- ### `HelpArticle.is_published` property ```tsx is_published: boolean ``` --- ### `HelpArticle.published_at` property ```tsx published_at: string | null ``` --- ### `HelpArticle.slug` property ```tsx slug: string ``` --- ### `HelpArticle.sort_order` property ```tsx sort_order: number ``` --- ### `HelpArticle.title` property ```tsx title: string ``` --- ### `HelpArticle.updated_at` property ```tsx updated_at: string ``` ## HelpArticleCardProps ### `HelpArticleCardProps.article` property ```tsx article: HelpArticle ``` --- ### `HelpArticleCardProps.onPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `article` | `HelpArticle` | ✓ | | **Returns** — `void` ```tsx onPress(article: HelpArticle): void ``` --- ### `HelpArticleCardProps.style` property ```tsx style: any ``` ## HelpArticleDetailProps ### `HelpArticleDetailProps.article` property ```tsx article: HelpArticle ``` --- ### `HelpArticleDetailProps.contentContainerStyle` property ```tsx contentContainerStyle: any ``` --- ### `HelpArticleDetailProps.style` property ```tsx style: any ``` ## HelpCenterProps ### `HelpCenterProps.contentContainerStyle` property ```tsx contentContainerStyle: any ``` --- ### `HelpCenterProps.description` property ```tsx description: string ``` --- ### `HelpCenterProps.emptyText` property ```tsx emptyText: string ``` --- ### `HelpCenterProps.numColumns` property ```tsx numColumns: number ``` --- ### `HelpCenterProps.onFlowPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `flow` | `HelpFlow` | ✓ | | **Returns** — `void` ```tsx onFlowPress(flow: HelpFlow): void ``` --- ### `HelpCenterProps.style` property ```tsx style: any ``` --- ### `HelpCenterProps.title` property ```tsx title: string ``` ## HelpCollection ### `HelpCollection.created_at` property ```tsx created_at: string ``` --- ### `HelpCollection.description` property ```tsx description: string | null ``` --- ### `HelpCollection.flows` property ```tsx flows: HelpFlow[] ``` --- ### `HelpCollection.id` property ```tsx id: string ``` --- ### `HelpCollection.is_live` property ```tsx is_live: boolean ``` --- ### `HelpCollection.name` property ```tsx name: string ``` --- ### `HelpCollection.project_id` property ```tsx project_id: string ``` --- ### `HelpCollection.updated_at` property ```tsx updated_at: string ``` --- ### `HelpCollection.version` property ```tsx version: string ``` ## HelpFlow ### `HelpFlow.articles` property ```tsx articles: HelpArticle[] ``` --- ### `HelpFlow.collection_id` property ```tsx collection_id: string ``` --- ### `HelpFlow.color` property ```tsx color: string | null ``` --- ### `HelpFlow.created_at` property ```tsx created_at: string ``` --- ### `HelpFlow.description` property ```tsx description: string | null ``` --- ### `HelpFlow.display_type` property ```tsx display_type: FlowDisplayType ``` --- ### `HelpFlow.icon` property ```tsx icon: string | null ``` --- ### `HelpFlow.id` property ```tsx id: string ``` --- ### `HelpFlow.name` property ```tsx name: string ``` --- ### `HelpFlow.slug` property ```tsx slug: string ``` --- ### `HelpFlow.sort_order` property ```tsx sort_order: number ``` --- ### `HelpFlow.updated_at` property ```tsx updated_at: string ``` ## HelpFlowCardProps ### `HelpFlowCardProps.flow` property ```tsx flow: HelpFlow ``` --- ### `HelpFlowCardProps.onPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `flow` | `HelpFlow` | ✓ | | **Returns** — `void` ```tsx onPress(flow: HelpFlow): void ``` --- ### `HelpFlowCardProps.style` property ```tsx style: any ``` ## HelpFlowDetailProps ### `HelpFlowDetailProps.contentContainerStyle` property ```tsx contentContainerStyle: any ``` --- ### `HelpFlowDetailProps.emptyText` property ```tsx emptyText: string ``` --- ### `HelpFlowDetailProps.flow` property ```tsx flow: HelpFlow ``` --- ### `HelpFlowDetailProps.onArticlePress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `article` | `HelpArticle` | ✓ | | **Returns** — `void` ```tsx onArticlePress(article: HelpArticle): void ``` --- ### `HelpFlowDetailProps.style` property ```tsx style: any ``` ## InputProps ### `InputProps.containerStyle` property ```tsx containerStyle: any ``` --- ### `InputProps.error` property ```tsx error: string ``` --- ### `InputProps.inputStyle` property ```tsx inputStyle: any ``` --- ### `InputProps.label` property ```tsx label: string ``` --- ### `InputProps.labelStyle` property ```tsx labelStyle: any ``` ## PaginatedResponse ### `PaginatedResponse.data` property ```tsx data: T[] ``` --- ### `PaginatedResponse.page` property ```tsx page: number ``` --- ### `PaginatedResponse.per_page` property ```tsx per_page: number ``` --- ### `PaginatedResponse.total` property ```tsx total: number ``` --- ### `PaginatedResponse.total_pages` property ```tsx total_pages: number ``` ## Release ### `Release.author_user_id` property ```tsx author_user_id: string ``` --- ### `Release.content` property ```tsx content: string ``` --- ### `Release.cover_image_url` property ```tsx cover_image_url: string | null ``` --- ### `Release.created_at` property ```tsx created_at: string ``` --- ### `Release.excerpt` property ```tsx excerpt: string | null ``` --- ### `Release.features` property ```tsx features: ReleaseFeature[] ``` --- ### `Release.id` property ```tsx id: string ``` --- ### `Release.is_published` property ```tsx is_published: boolean ``` --- ### `Release.items` property ```tsx items: ReleaseItem[] ``` --- ### `Release.labels` property ```tsx labels: string[] ``` --- ### `Release.project_id` property ```tsx project_id: string ``` --- ### `Release.published_at` property ```tsx published_at: string | null ``` --- ### `Release.slug` property ```tsx slug: string ``` --- ### `Release.title` property ```tsx title: string ``` --- ### `Release.updated_at` property ```tsx updated_at: string ``` --- ### `Release.version` property ```tsx version: string | null ``` --- ### `Release.wish_ids` property ```tsx wish_ids: string[] ``` ## ReleaseDetailProps ### `ReleaseDetailProps.release` property ```tsx release: Release ``` --- ### `ReleaseDetailProps.releaseSlug` property ```tsx releaseSlug: string ``` ## ReleaseFeature ### `ReleaseFeature.description` property ```tsx description: string ``` --- ### `ReleaseFeature.id` property ```tsx id: string ``` --- ### `ReleaseFeature.image_url` property ```tsx image_url: string | null ``` --- ### `ReleaseFeature.release_id` property ```tsx release_id: string ``` --- ### `ReleaseFeature.sort_order` property ```tsx sort_order: number ``` --- ### `ReleaseFeature.title` property ```tsx title: string ``` ## ReleaseListProps ### `ReleaseListProps.description` property ```tsx description: string ``` --- ### `ReleaseListProps.limit` property ```tsx limit: number ``` --- ### `ReleaseListProps.onReleasePress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `release` | `Release` | ✓ | | **Returns** — `void` ```tsx onReleasePress(release: Release): void ``` --- ### `ReleaseListProps.title` property ```tsx title: string ``` ## ReleasesProps ### `ReleasesProps.description` property ```tsx description: string ``` --- ### `ReleasesProps.limit` property ```tsx limit: number ``` --- ### `ReleasesProps.onReleasePress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `release` | `Release` | ✓ | | **Returns** — `void` ```tsx onReleasePress(release: Release): void ``` --- ### `ReleasesProps.title` property ```tsx title: string ``` ## RoadmapBoardProps ### `RoadmapBoardProps.description` property ```tsx description: string ``` --- ### `RoadmapBoardProps.onItemPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `item` | `RoadmapItem` | ✓ | | **Returns** — `void` ```tsx onItemPress(item: RoadmapItem): void ``` --- ### `RoadmapBoardProps.showVoteCounts` property ```tsx showVoteCounts: boolean ``` --- ### `RoadmapBoardProps.title` property ```tsx title: string ``` ## RoadmapColumn ### `RoadmapColumn.color` property ```tsx color: string ``` --- ### `RoadmapColumn.created_at` property ```tsx created_at: string ``` --- ### `RoadmapColumn.id` property ```tsx id: string ``` --- ### `RoadmapColumn.items` property ```tsx items: RoadmapItem[] ``` --- ### `RoadmapColumn.name` property ```tsx name: string ``` --- ### `RoadmapColumn.roadmap_id` property ```tsx roadmap_id: string ``` --- ### `RoadmapColumn.sort_order` property ```tsx sort_order: number ``` --- ### `RoadmapColumn.updated_at` property ```tsx updated_at: string ``` --- ### `RoadmapColumn.wip_limit` property ```tsx wip_limit: number | null ``` ## RoadmapData ### `RoadmapData.columns` property ```tsx columns: RoadmapColumn[] ``` --- ### `RoadmapData.customization` property ```tsx customization: object | null ``` --- ### `RoadmapData.roadmap` property ```tsx roadmap: Roadmap | null ``` --- ### `RoadmapData.total_items` property ```tsx total_items: number ``` ## RoadmapItem ### `RoadmapItem.color` property ```tsx color: string | null ``` --- ### `RoadmapItem.column_id` property ```tsx column_id: string ``` --- ### `RoadmapItem.comment_count` property ```tsx comment_count: number ``` --- ### `RoadmapItem.created_at` property ```tsx created_at: string ``` --- ### `RoadmapItem.description` property ```tsx description: string | null ``` --- ### `RoadmapItem.id` property ```tsx id: string ``` --- ### `RoadmapItem.roadmap_id` property ```tsx roadmap_id: string ``` --- ### `RoadmapItem.sort_order` property ```tsx sort_order: number ``` --- ### `RoadmapItem.target_date` property ```tsx target_date: string | null ``` --- ### `RoadmapItem.title` property ```tsx title: string ``` --- ### `RoadmapItem.updated_at` property ```tsx updated_at: string ``` --- ### `RoadmapItem.vote_count` property ```tsx vote_count: number ``` --- ### `RoadmapItem.wish` property ```tsx wish: Wish | null ``` --- ### `RoadmapItem.wish_id` property ```tsx wish_id: string | null ``` ## StatusBoardProps ### `StatusBoardProps.onIncidentPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `incidentId` | `string` | ✓ | | **Returns** — `void` ```tsx onIncidentPress(incidentId: string): void ``` --- ### `StatusBoardProps.onSubscribe` property **Returns** — `void` ```tsx onSubscribe(): void ``` --- ### `StatusBoardProps.refreshInterval` property ```tsx refreshInterval: number ``` --- ### `StatusBoardProps.slug` property ```tsx slug: string ``` --- ### `StatusBoardProps.style` property ```tsx style: any ``` --- ### `StatusBoardProps.subtitle` property ```tsx subtitle: string ``` --- ### `StatusBoardProps.title` property ```tsx title: string ``` ## StatusPage ### `StatusPage.created_at` property ```tsx created_at: string ``` --- ### `StatusPage.description` property ```tsx description: string | null ``` --- ### `StatusPage.id` property ```tsx id: string ``` --- ### `StatusPage.is_active` property ```tsx is_active: boolean ``` --- ### `StatusPage.name` property ```tsx name: string ``` --- ### `StatusPage.project_id` property ```tsx project_id: string ``` --- ### `StatusPage.slug` property ```tsx slug: string ``` --- ### `StatusPage.updated_at` property ```tsx updated_at: string ``` ## StatusPageOverview ### `StatusPageOverview.active_count` property ```tsx active_count: number ``` --- ### `StatusPageOverview.active_updates` property ```tsx active_updates: StatusUpdate[] ``` --- ### `StatusPageOverview.current_status` property ```tsx current_status: StatusType ``` --- ### `StatusPageOverview.recent_updates` property ```tsx recent_updates: StatusUpdate[] ``` --- ### `StatusPageOverview.resolved_count` property ```tsx resolved_count: number ``` --- ### `StatusPageOverview.services` property ```tsx services: StatusPageService[] ``` --- ### `StatusPageOverview.services_status` property ```tsx services_status: Record ``` --- ### `StatusPageOverview.status_breakdown` property ```tsx status_breakdown: Record ``` --- ### `StatusPageOverview.status_page` property ```tsx status_page: StatusPage ``` --- ### `StatusPageOverview.total_updates` property ```tsx total_updates: number ``` ## StatusPageService ### `StatusPageService.color` property ```tsx color: string | null ``` --- ### `StatusPageService.created_at` property ```tsx created_at: string ``` --- ### `StatusPageService.description` property ```tsx description: string | null ``` --- ### `StatusPageService.group_name` property ```tsx group_name: string | null ``` --- ### `StatusPageService.id` property ```tsx id: string ``` --- ### `StatusPageService.is_active` property ```tsx is_active: boolean ``` --- ### `StatusPageService.name` property ```tsx name: string ``` --- ### `StatusPageService.sort_order` property ```tsx sort_order: number ``` --- ### `StatusPageService.status_page_id` property ```tsx status_page_id: string ``` --- ### `StatusPageService.updated_at` property ```tsx updated_at: string ``` ## StoredTicket ### `StoredTicket.access_token` property Access token for viewing the ticket ```tsx access_token: string ``` --- ### `StoredTicket.created_at` property Creation timestamp ```tsx created_at: string ``` --- ### `StoredTicket.id` property Ticket ID ```tsx id: string ``` --- ### `StoredTicket.magic_link` property Magic link for authentication (optional) ```tsx magic_link: string ``` --- ### `StoredTicket.status` property Ticket status ```tsx status: string ``` --- ### `StoredTicket.subject` property Ticket subject ```tsx subject: string ``` --- ### `StoredTicket.user_email` property User email ```tsx user_email: string ``` ## SubmitWishSheetProps ### `SubmitWishSheetProps.customFormId` property Custom form ID to use instead of default form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'wish' to create feature requests. ```tsx customFormId: string ``` --- ### `SubmitWishSheetProps.description` property Form description ```tsx description: string ``` --- ### `SubmitWishSheetProps.onClose` property Callback when visibility changes **Returns** — `void` ```tsx onClose(): void ``` --- ### `SubmitWishSheetProps.onError` property Callback when submission fails **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `SubmitWishSheetProps.onSuccess` property Callback when wish is successfully submitted **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wish` | `Wish` | ✓ | | **Returns** — `void` ```tsx onSuccess(wish: Wish): void ``` --- ### `SubmitWishSheetProps.submitButtonText` property Submit button text ```tsx submitButtonText: string ``` --- ### `SubmitWishSheetProps.title` property Form title ```tsx title: string ``` --- ### `SubmitWishSheetProps.visible` property Whether the sheet is visible ```tsx visible: boolean ``` ## SupportAttachment ### `SupportAttachment.mime_type` property ```tsx mime_type: string ``` --- ### `SupportAttachment.name` property ```tsx name: string ``` --- ### `SupportAttachment.size` property ```tsx size: number ``` --- ### `SupportAttachment.url` property ```tsx url: string ``` ## SupportFormProps ### `SupportFormProps.checkDescription` property Check status section description ```tsx checkDescription: string ``` --- ### `SupportFormProps.checkTitle` property Check status section title ```tsx checkTitle: string ``` --- ### `SupportFormProps.customFormId` property Custom contact form ID to use instead of default support form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'support' to create tickets. ```tsx customFormId: string ``` --- ### `SupportFormProps.description` property Page description ```tsx description: string ``` --- ### `SupportFormProps.externalUserId` property External user ID for tracking ```tsx externalUserId: string ``` --- ### `SupportFormProps.heading` property Page heading ```tsx heading: string ``` --- ### `SupportFormProps.onCheckStatus` property Callback when checking status **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | ✓ | | **Returns** — `void` ```tsx onCheckStatus(email: string): void ``` --- ### `SupportFormProps.onError` property Callback when submission fails **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `SupportFormProps.onStoredTicketClick` property Callback when a locally stored recent ticket is clicked **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticket` | `StoredTicket` | ✓ | | **Returns** — `void` ```tsx onStoredTicketClick(ticket: StoredTicket): void ``` --- ### `SupportFormProps.onSuccess` property Callback when ticket is successfully submitted **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticket` | `SupportRequest` | | | **Returns** — `void` ```tsx onSuccess(ticket?: SupportRequest): void ``` --- ### `SupportFormProps.onTicketClick` property Callback when a ticket is clicked **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticket` | `SupportRequest` | ✓ | | **Returns** — `void` ```tsx onTicketClick(ticket: SupportRequest): void ``` --- ### `SupportFormProps.showCategory` property Show category selector ```tsx showCategory: boolean ``` --- ### `SupportFormProps.showCheckStatus` property Show check status tab ```tsx showCheckStatus: boolean ``` --- ### `SupportFormProps.showName` property Show name field ```tsx showName: boolean ``` --- ### `SupportFormProps.submitButtonText` property Submit button text ```tsx submitButtonText: string ``` --- ### `SupportFormProps.submitDescription` property Submit section description ```tsx submitDescription: string ``` --- ### `SupportFormProps.submitTitle` property Submit section title ```tsx submitTitle: string ``` --- ### `SupportFormProps.userEmail` property Pre-filled user email ```tsx userEmail: string ``` --- ### `SupportFormProps.userName` property Pre-filled user name ```tsx userName: string ``` ## SupportMessage ### `SupportMessage.attachments` property ```tsx attachments: SupportAttachment[] ``` --- ### `SupportMessage.author_email` property ```tsx author_email: string | null ``` --- ### `SupportMessage.author_name` property ```tsx author_name: string | null ``` --- ### `SupportMessage.author_type` property ```tsx author_type: "user" | "team_member" ``` --- ### `SupportMessage.author_user_id` property ```tsx author_user_id: string | null ``` --- ### `SupportMessage.content` property ```tsx content: string ``` --- ### `SupportMessage.created_at` property ```tsx created_at: string ``` --- ### `SupportMessage.id` property ```tsx id: string ``` --- ### `SupportMessage.is_internal` property ```tsx is_internal: boolean ``` --- ### `SupportMessage.support_request_id` property ```tsx support_request_id: string ``` ## SupportMessageInput ### `SupportMessageInput.attachments` property ```tsx attachments: SupportUploadFile[] ``` --- ### `SupportMessageInput.content` property ```tsx content: string ``` ## SupportMessageResponse ### `SupportMessageResponse.attachments` property ```tsx attachments: SupportAttachment[] ``` --- ### `SupportMessageResponse.content` property ```tsx content: string ``` --- ### `SupportMessageResponse.created_at` property ```tsx created_at: string ``` --- ### `SupportMessageResponse.id` property ```tsx id: string ``` ## SupportRequest ### `SupportRequest.assignee_id` property ```tsx assignee_id: string | null ``` --- ### `SupportRequest.attachments` property ```tsx attachments: SupportAttachment[] ``` --- ### `SupportRequest.category` property ```tsx category: SupportRequestCategory | null ``` --- ### `SupportRequest.created_at` property ```tsx created_at: string ``` --- ### `SupportRequest.description` property ```tsx description: string ``` --- ### `SupportRequest.id` property ```tsx id: string ``` --- ### `SupportRequest.message_count` property ```tsx message_count: number ``` --- ### `SupportRequest.messages` property ```tsx messages: SupportMessage[] ``` --- ### `SupportRequest.priority` property ```tsx priority: SupportRequestPriority | null ``` --- ### `SupportRequest.project_id` property ```tsx project_id: string ``` --- ### `SupportRequest.resolved_at` property ```tsx resolved_at: string | null ``` --- ### `SupportRequest.status` property ```tsx status: SupportRequestStatus ``` --- ### `SupportRequest.subject` property ```tsx subject: string ``` --- ### `SupportRequest.updated_at` property ```tsx updated_at: string ``` --- ### `SupportRequest.user_email` property ```tsx user_email: string ``` --- ### `SupportRequest.user_name` property ```tsx user_name: string | null ``` ## SupportRequestInput ### `SupportRequestInput.attachments` property ```tsx attachments: SupportUploadFile[] ``` --- ### `SupportRequestInput.category` property ```tsx category: SupportRequestCategory ``` --- ### `SupportRequestInput.description` property ```tsx description: string ``` --- ### `SupportRequestInput.external_user_id` property ```tsx external_user_id: string ``` --- ### `SupportRequestInput.subject` property ```tsx subject: string ``` --- ### `SupportRequestInput.user_email` property ```tsx user_email: string ``` --- ### `SupportRequestInput.user_name` property ```tsx user_name: string ``` ## SupportSubmitData ### `SupportSubmitData.attachments` property Files to upload and attach to the support ticket ```tsx attachments: SupportUploadFile[] ``` --- ### `SupportSubmitData.category` property Ticket category (optional) ```tsx category: SupportRequestCategory ``` --- ### `SupportSubmitData.description` property Ticket description/body ```tsx description: string ``` --- ### `SupportSubmitData.external_user_id` property External user ID for tracking (optional) ```tsx external_user_id: string ``` --- ### `SupportSubmitData.subject` property Ticket subject ```tsx subject: string ``` --- ### `SupportSubmitData.user_email` property User's email address ```tsx user_email: string ``` --- ### `SupportSubmitData.user_name` property User's name (optional) ```tsx user_name: string ``` ## SupportUploadFile ### `SupportUploadFile.mime_type` property ```tsx mime_type: string ``` --- ### `SupportUploadFile.name` property ```tsx name: string ``` --- ### `SupportUploadFile.size` property ```tsx size: number ``` --- ### `SupportUploadFile.type` property ```tsx type: string ``` --- ### `SupportUploadFile.uri` property ```tsx uri: string ``` ## Survey ### `Survey.created_at` property ```tsx created_at: string ``` --- ### `Survey.description` property ```tsx description: string ``` --- ### `Survey.id` property ```tsx id: string ``` --- ### `Survey.is_active` property ```tsx is_active: boolean ``` --- ### `Survey.name` property ```tsx name: string ``` --- ### `Survey.nodes` property ```tsx nodes: SurveyNode[] ``` --- ### `Survey.number_of_questions` property ```tsx number_of_questions: number ``` --- ### `Survey.number_of_responses` property ```tsx number_of_responses: number ``` --- ### `Survey.project_id` property ```tsx project_id: string ``` --- ### `Survey.responses` property ```tsx responses: SurveyResponse[] ``` --- ### `Survey.slug` property ```tsx slug: string ``` --- ### `Survey.updated_at` property ```tsx updated_at: string ``` ## SurveyAnswer ### `SurveyAnswer.answer` property ```tsx answer: boolean ``` --- ### `SurveyAnswer.answer_options` property ```tsx answer_options: string[] ``` --- ### `SurveyAnswer.answer_rating` property ```tsx answer_rating: number ``` --- ### `SurveyAnswer.answer_text` property ```tsx answer_text: string ``` --- ### `SurveyAnswer.created_at` property ```tsx created_at: string ``` --- ### `SurveyAnswer.id` property ```tsx id: string ``` --- ### `SurveyAnswer.node` property ```tsx node: object ``` --- ### `SurveyAnswer.node_id` property ```tsx node_id: string ``` --- ### `SurveyAnswer.response_id` property ```tsx response_id: string ``` ## SurveyFormProps ### `SurveyFormProps.autoAdvance` property ```tsx autoAdvance: boolean ``` --- ### `SurveyFormProps.fingerprint` property ```tsx fingerprint: string ``` --- ### `SurveyFormProps.onError` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `SurveyFormProps.onSuccess` property **Returns** — `void` ```tsx onSuccess(): void ``` --- ### `SurveyFormProps.slug` property ```tsx slug: string ``` ## SurveyNode ### `SurveyNode.answer_no_node_id` property ```tsx answer_no_node_id: string | null ``` --- ### `SurveyNode.answer_yes_node_id` property ```tsx answer_yes_node_id: string | null ``` --- ### `SurveyNode.branches` property ```tsx branches: SurveyNodeBranch[] ``` --- ### `SurveyNode.created_at` property ```tsx created_at: string ``` --- ### `SurveyNode.id` property ```tsx id: string ``` --- ### `SurveyNode.is_required` property ```tsx is_required: boolean ``` --- ### `SurveyNode.max_rating` property ```tsx max_rating: number ``` --- ### `SurveyNode.min_rating` property ```tsx min_rating: number ``` --- ### `SurveyNode.next_node_id` property ```tsx next_node_id: string | null ``` --- ### `SurveyNode.options` property ```tsx options: SurveyNodeOption[] ``` --- ### `SurveyNode.parent_id` property ```tsx parent_id: string | null ``` --- ### `SurveyNode.question` property ```tsx question: string ``` --- ### `SurveyNode.question_type` property ```tsx question_type: SurveyQuestionType ``` --- ### `SurveyNode.result_message` property ```tsx result_message: string | null ``` --- ### `SurveyNode.sort_order` property ```tsx sort_order: number ``` --- ### `SurveyNode.survey_id` property ```tsx survey_id: string ``` --- ### `SurveyNode.updated_at` property ```tsx updated_at: string ``` ## SurveyNodeOption ### `SurveyNodeOption.label` property ```tsx label: string ``` --- ### `SurveyNodeOption.value` property ```tsx value: string ``` ## SurveyResponse ### `SurveyResponse.answers` property ```tsx answers: SurveyAnswer[] ``` --- ### `SurveyResponse.created_at` property ```tsx created_at: string ``` --- ### `SurveyResponse.external_user_id` property ```tsx external_user_id: string | null ``` --- ### `SurveyResponse.fingerprint` property ```tsx fingerprint: string ``` --- ### `SurveyResponse.id` property ```tsx id: string ``` --- ### `SurveyResponse.metadata` property ```tsx metadata: Record ``` --- ### `SurveyResponse.survey_id` property ```tsx survey_id: string ``` ## SurveySubmitInput ### `SurveySubmitInput.answers` property ```tsx answers: object[] ``` --- ### `SurveySubmitInput.external_user_id` property ```tsx external_user_id: string ``` --- ### `SurveySubmitInput.fingerprint` property ```tsx fingerprint: string ``` --- ### `SurveySubmitInput.metadata` property ```tsx metadata: Record ``` ## UseBlogCategoriesOptions ### `UseBlogCategoriesOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseBlogCategoriesResult ### `UseBlogCategoriesResult.categories` property List of blog categories ```tsx categories: BlogCategory[] ``` --- ### `UseBlogCategoriesResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseBlogCategoriesResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseBlogCategoriesResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseBlogPostOptions ### `UseBlogPostOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` --- ### `UseBlogPostOptions.slug` property The blog post slug to fetch ```tsx slug: string ``` ## UseBlogPostResult ### `UseBlogPostResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseBlogPostResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseBlogPostResult.post` property The blog post data ```tsx post: BlogPost | null ``` --- ### `UseBlogPostResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseBlogPostResult.relatedPosts` property Related posts ```tsx relatedPosts: BlogPost[] ``` ## UseBlogPostsOptions ### `UseBlogPostsOptions.category` property Filter by category slug ```tsx category: string ``` --- ### `UseBlogPostsOptions.featured` property Only featured posts ```tsx featured: boolean ``` --- ### `UseBlogPostsOptions.per_page` property Items per page ```tsx per_page: number ``` --- ### `UseBlogPostsOptions.refreshInterval` property Auto-refresh interval in milliseconds ```tsx refreshInterval: number ``` --- ### `UseBlogPostsOptions.search` property Search query ```tsx search: string ``` --- ### `UseBlogPostsOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` --- ### `UseBlogPostsOptions.tag` property Filter by tag ```tsx tag: string ``` ## UseBlogPostsResult ### `UseBlogPostsResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseBlogPostsResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseBlogPostsResult.page` property Current page number ```tsx page: number ``` --- ### `UseBlogPostsResult.posts` property List of blog posts ```tsx posts: BlogPost[] ``` --- ### `UseBlogPostsResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseBlogPostsResult.setFilters` property Update filters (resets to page 1) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `filters` | `Partial` | ✓ | | **Returns** — `void` ```tsx setFilters(filters: Partial): void ``` --- ### `UseBlogPostsResult.setPage` property Set the current page **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `page` | `number` | ✓ | | **Returns** — `void` ```tsx setPage(page: number): void ``` --- ### `UseBlogPostsResult.total` property Total number of posts ```tsx total: number ``` --- ### `UseBlogPostsResult.totalPages` property Total number of pages ```tsx totalPages: number ``` ## UseCommentsOptions ### `UseCommentsOptions.autoFetch` property Whether to fetch comments automatically on mount ```tsx autoFetch: boolean ``` --- ### `UseCommentsOptions.wishId` property The wish ID to fetch comments for ```tsx wishId: string | null ``` ## UseCommentsResult ### `UseCommentsResult.addComment` property Add a new comment **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `content` | `string` | ✓ | | | `authorName` | `string` | | | | `authorEmail` | `string` | | | **Returns** — `Promise` ```tsx addComment(content: string, authorName?: string, authorEmail?: string): Promise ``` --- ### `UseCommentsResult.comments` property List of comments ```tsx comments: Comment[] ``` --- ### `UseCommentsResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseCommentsResult.isLoading` property Loading state for initial fetch ```tsx isLoading: boolean ``` --- ### `UseCommentsResult.isSubmitting` property Loading state while submitting a comment ```tsx isSubmitting: boolean ``` --- ### `UseCommentsResult.refetch` property Manually refetch comments **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseFeaturedPostsOptions ### `UseFeaturedPostsOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseFeaturedPostsResult ### `UseFeaturedPostsResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseFeaturedPostsResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseFeaturedPostsResult.posts` property List of featured blog posts ```tsx posts: BlogPost[] ``` --- ### `UseFeaturedPostsResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseFormOptions ### `UseFormOptions.enabled` property Whether to fetch the form on mount ```tsx enabled: boolean ``` ## UseFormResult ### `UseFormResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseFormResult.form` property The form configuration ```tsx form: Form | null ``` --- ### `UseFormResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseFormResult.refetch` property Manually refetch the form **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseFormSubmitOptions ### `UseFormSubmitOptions.onError` property Callback when submission fails **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `UseFormSubmitOptions.onSuccess` property Callback when form is submitted successfully **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `submission` | `FormSubmission` | ✓ | | **Returns** — `void` ```tsx onSuccess(submission: FormSubmission): void ``` --- ### `UseFormSubmitOptions.rateLimitMs` property Minimum time between submissions in milliseconds ```tsx rateLimitMs: number ``` ## UseFormSubmitResult ### `UseFormSubmitResult.clearMessages` property Clear error and success messages **Returns** — `void` ```tsx clearMessages(): void ``` --- ### `UseFormSubmitResult.error` property Error message if submission failed ```tsx error: string | null ``` --- ### `UseFormSubmitResult.isRateLimited` property Whether the user is rate-limited from submitting ```tsx isRateLimited: boolean ``` --- ### `UseFormSubmitResult.isSubmitting` property Loading state during submission ```tsx isSubmitting: boolean ``` --- ### `UseFormSubmitResult.submitForm` property Submit the form **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `projectId` | `string` | ✓ | | | `formId` | `string` | ✓ | | | `data` | `Record` | ✓ | | **Returns** — `Promise` ```tsx submitForm(projectId: string, formId: string, data: Record): Promise ``` --- ### `UseFormSubmitResult.successMessage` property Success message after submission ```tsx successMessage: string | null ``` ## UseHelpArticleResult ### `UseHelpArticleResult.article` property The help article data ```tsx article: HelpArticle | null ``` --- ### `UseHelpArticleResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseHelpArticleResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseHelpArticleResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseHelpCenterResult ### `UseHelpCenterResult.collection` property The help collection data ```tsx collection: HelpCollection | null ``` --- ### `UseHelpCenterResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseHelpCenterResult.flows` property List of help flows in this collection ```tsx flows: HelpFlow[] ``` --- ### `UseHelpCenterResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseHelpCenterResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseHelpFlowResult ### `UseHelpFlowResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseHelpFlowResult.flow` property The help flow data with its articles ```tsx flow: HelpFlow | null ``` --- ### `UseHelpFlowResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseHelpFlowResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseReleaseOptions ### `UseReleaseOptions.releaseSlug` property The release slug to fetch ```tsx releaseSlug: string ``` --- ### `UseReleaseOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseReleaseResult ### `UseReleaseResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseReleaseResult.features` property Features included in this release ```tsx features: ReleaseFeature[] ``` --- ### `UseReleaseResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseReleaseResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseReleaseResult.release` property The release data ```tsx release: Release | null ``` ## UseReleasesOptions ### `UseReleasesOptions.limit` property Maximum number of releases to fetch ```tsx limit: number ``` --- ### `UseReleasesOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseReleasesResult ### `UseReleasesResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseReleasesResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseReleasesResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseReleasesResult.releases` property List of releases ```tsx releases: Release[] ``` ## UseRoadmapOptions ### `UseRoadmapOptions.refreshInterval` property Auto-refresh interval in milliseconds (0 to disable) ```tsx refreshInterval: number ``` --- ### `UseRoadmapOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseRoadmapResult ### `UseRoadmapResult.columns` property Roadmap columns with items ```tsx columns: RoadmapColumn[] ``` --- ### `UseRoadmapResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseRoadmapResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseRoadmapResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseRoadmapResult.roadmap` property Full roadmap data object ```tsx roadmap: RoadmapData | null ``` --- ### `UseRoadmapResult.totalItems` property Total number of items across all columns ```tsx totalItems: number ``` ## UseStatusOptions ### `UseStatusOptions.refreshInterval` property Auto-refresh interval in milliseconds (0 to disable) ```tsx refreshInterval: number ``` --- ### `UseStatusOptions.slug` property Status page slug ```tsx slug: string ``` ## UseStatusResult ### `UseStatusResult.data` property Status page data including services and incidents ```tsx data: StatusPageOverview | null ``` --- ### `UseStatusResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseStatusResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseStatusResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` ## UseSupportOptions ### `UseSupportOptions.onError` property Callback when an error occurs **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `UseSupportOptions.onSuccess` property Callback when ticket is submitted successfully **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticket` | `SupportRequest` | ✓ | | **Returns** — `void` ```tsx onSuccess(ticket: SupportRequest): void ``` ## UseSupportResult ### `UseSupportResult.clearMessages` property Clear error and success messages **Returns** — `void` ```tsx clearMessages(): void ``` --- ### `UseSupportResult.clearStoredTickets` property Clear all locally stored tickets **Returns** — `Promise` ```tsx clearStoredTickets(): Promise ``` --- ### `UseSupportResult.error` property Error message if any operation failed ```tsx error: string | null ``` --- ### `UseSupportResult.isSendingMagicLink` property Loading state while sending magic link ```tsx isSendingMagicLink: boolean ``` --- ### `UseSupportResult.isSubmitting` property Loading state during submission ```tsx isSubmitting: boolean ``` --- ### `UseSupportResult.isSubmittingMessage` property Loading state while submitting a thread message ```tsx isSubmittingMessage: boolean ``` --- ### `UseSupportResult.isVerifying` property Loading state while verifying token ```tsx isVerifying: boolean ``` --- ### `UseSupportResult.loadStoredTickets` property Reload stored tickets from local storage **Returns** — `Promise` ```tsx loadStoredTickets(): Promise ``` --- ### `UseSupportResult.requestMagicLink` property Request a magic link to be sent to the user's email **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `email` | `string` | ✓ | | **Returns** — `Promise` ```tsx requestMagicLink(email: string): Promise ``` --- ### `UseSupportResult.storedTickets` property Locally stored tickets from previous submissions ```tsx storedTickets: StoredTicket[] ``` --- ### `UseSupportResult.submitMessage` property Submit a message to an existing support ticket thread **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `ticketId` | `string` | ✓ | | | `token` | `string` | ✓ | | | `data` | `string \| SupportMessageInput` | ✓ | | | `attachments` | `SupportUploadFile[]` | | | **Returns** — `Promise` ```tsx submitMessage(ticketId: string, token: string, data: string | SupportMessageInput, attachments?: SupportUploadFile[]): Promise ``` --- ### `UseSupportResult.submitTicket` property Submit a support ticket **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `data` | `SupportSubmitData` | ✓ | | **Returns** — `Promise` ```tsx submitTicket(data: SupportSubmitData): Promise ``` --- ### `UseSupportResult.successMessage` property Success message after successful operations ```tsx successMessage: string | null ``` --- ### `UseSupportResult.verifyToken` property Verify a magic link token to get user's tickets **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `token` | `string` | ✓ | | **Returns** — `Promise` ```tsx verifyToken(token: string): Promise ``` ## UseSurveyOptions ### `UseSurveyOptions.enabled` property Whether to fetch the survey on mount ```tsx enabled: boolean ``` ## UseSurveyResult ### `UseSurveyResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseSurveyResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseSurveyResult.nodes` property Survey question nodes ```tsx nodes: SurveyNode[] ``` --- ### `UseSurveyResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseSurveyResult.survey` property The survey data ```tsx survey: Survey | null ``` ## UseSurveySubmitOptions ### `UseSurveySubmitOptions.onError` property Callback when submission fails **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `UseSurveySubmitOptions.onSuccess` property Callback when survey is submitted successfully **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `response` | `SurveyResponse` | ✓ | | **Returns** — `void` ```tsx onSuccess(response: SurveyResponse): void ``` ## UseSurveySubmitResult ### `UseSurveySubmitResult.error` property Error message if submission failed ```tsx error: string | null ``` --- ### `UseSurveySubmitResult.isSubmitting` property Loading state during submission ```tsx isSubmitting: boolean ``` --- ### `UseSurveySubmitResult.submitResponse` property Submit a survey response **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `surveyId` | `string` | ✓ | | | `data` | `SurveySubmitInput` | ✓ | | **Returns** — `Promise` ```tsx submitResponse(surveyId: string, data: SurveySubmitInput): Promise ``` ## UseVoteOptions ### `UseVoteOptions.onError` property Callback when a vote action fails **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `error` | `string` | ✓ | | **Returns** — `void` ```tsx onError(error: string): void ``` --- ### `UseVoteOptions.onVote` property Callback when a vote action completes successfully **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | | `hasVoted` | `boolean` | ✓ | | | `newCount` | `number` | ✓ | | **Returns** — `void` ```tsx onVote(wishId: string, hasVoted: boolean, newCount: number): void ``` ## UseVoteResult ### `UseVoteResult.checkVote` property Check if the current user has voted on a wish **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | **Returns** — `Promise` ```tsx checkVote(wishId: string): Promise ``` --- ### `UseVoteResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseVoteResult.isVoting` property Loading state for vote operations ```tsx isVoting: boolean ``` --- ### `UseVoteResult.unvote` property Remove a vote from a wish **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | | `voteId` | `string` | ✓ | | | `currentVoteCount` | `number` | ✓ | | **Returns** — `Promise` ```tsx unvote(wishId: string, voteId: string, currentVoteCount: number): Promise ``` --- ### `UseVoteResult.vote` property Cast a vote on a wish **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | | `currentVoteCount` | `number` | ✓ | | **Returns** — `Promise` ```tsx vote(wishId: string, currentVoteCount: number): Promise ``` ## UseWishesOptions ### `UseWishesOptions.filters` property Initial filters for the wishes query ```tsx filters: WishFilters ``` --- ### `UseWishesOptions.refreshInterval` property Auto-refresh interval in milliseconds (0 to disable) ```tsx refreshInterval: number ``` --- ### `UseWishesOptions.skip` property Skip initial fetch ```tsx skip: boolean ``` ## UseWishesResult ### `UseWishesResult.error` property Error message if any ```tsx error: string | null ``` --- ### `UseWishesResult.isLoading` property Loading state ```tsx isLoading: boolean ``` --- ### `UseWishesResult.page` property Current page ```tsx page: number ``` --- ### `UseWishesResult.refetch` property Manually refetch data **Returns** — `Promise` ```tsx refetch(): Promise ``` --- ### `UseWishesResult.setFilters` property Update filters (resets to page 1) **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `filters` | `WishFilters` | ✓ | | **Returns** — `void` ```tsx setFilters(filters: WishFilters): void ``` --- ### `UseWishesResult.setPage` property Go to a specific page **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `page` | `number` | ✓ | | **Returns** — `void` ```tsx setPage(page: number): void ``` --- ### `UseWishesResult.total` property Total number of wishes ```tsx total: number ``` --- ### `UseWishesResult.totalPages` property Total pages ```tsx totalPages: number ``` --- ### `UseWishesResult.wishes` property List of wishes ```tsx wishes: Wish[] ``` ## Vote ### `Vote.created_at` property ```tsx created_at: string ``` --- ### `Vote.fingerprint` property ```tsx fingerprint: string ``` --- ### `Vote.id` property ```tsx id: string ``` --- ### `Vote.user_id` property ```tsx user_id: string | null ``` --- ### `Vote.voter_email` property ```tsx voter_email: string | null ``` --- ### `Vote.wish_id` property ```tsx wish_id: string ``` ## VoteButtonProps ### `VoteButtonProps.initialHasVoted` property ```tsx initialHasVoted: boolean ``` --- ### `VoteButtonProps.initialVoteCount` property ```tsx initialVoteCount: number ``` --- ### `VoteButtonProps.initialVoteId` property ```tsx initialVoteId: string ``` --- ### `VoteButtonProps.onVoteChange` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `hasVoted` | `boolean` | ✓ | | | `newCount` | `number` | ✓ | | **Returns** — `void` ```tsx onVoteChange(hasVoted: boolean, newCount: number): void ``` --- ### `VoteButtonProps.size` property ```tsx size: "sm" | "md" | "lg" ``` --- ### `VoteButtonProps.style` property ```tsx style: any ``` --- ### `VoteButtonProps.wishId` property ```tsx wishId: string ``` ## VoteCheckResponse ### `VoteCheckResponse.has_voted` property ```tsx has_voted: boolean ``` --- ### `VoteCheckResponse.vote_id` property ```tsx vote_id: string ``` ## Wish ### `Wish.author` property ```tsx author: WishAuthor ``` --- ### `Wish.author_email` property ```tsx author_email: string | null ``` --- ### `Wish.author_name` property ```tsx author_name: string | null ``` --- ### `Wish.author_type` property ```tsx author_type: "user" | "anonymous" | "team_member" ``` --- ### `Wish.category` property ```tsx category: Category | null ``` --- ### `Wish.category_id` property ```tsx category_id: string | null ``` --- ### `Wish.comment_count` property ```tsx comment_count: number ``` --- ### `Wish.completed_at` property ```tsx completed_at: string | null ``` --- ### `Wish.created_at` property ```tsx created_at: string ``` --- ### `Wish.description` property ```tsx description: string ``` --- ### `Wish.has_voted` property ```tsx has_voted: boolean ``` --- ### `Wish.id` property ```tsx id: string ``` --- ### `Wish.is_pinned` property ```tsx is_pinned: boolean ``` --- ### `Wish.priority` property ```tsx priority: WishPriority | null ``` --- ### `Wish.project_id` property ```tsx project_id: string ``` --- ### `Wish.slug` property ```tsx slug: string ``` --- ### `Wish.status` property ```tsx status: WishStatus ``` --- ### `Wish.title` property ```tsx title: string ``` --- ### `Wish.updated_at` property ```tsx updated_at: string ``` --- ### `Wish.vote_count` property ```tsx vote_count: number ``` ## WishAuthor ### `WishAuthor.avatar_url` property ```tsx avatar_url: string | null ``` --- ### `WishAuthor.email` property ```tsx email: string | null ``` --- ### `WishAuthor.name` property ```tsx name: string ``` ## WishCardProps ### `WishCardProps.onCommentPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wish` | `Wish` | ✓ | | **Returns** — `void` ```tsx onCommentPress(wish: Wish): void ``` --- ### `WishCardProps.onPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wish` | `Wish` | ✓ | | **Returns** — `void` ```tsx onPress(wish: Wish): void ``` --- ### `WishCardProps.onVote` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | **Returns** — `void` ```tsx onVote(wishId: string): void ``` --- ### `WishCardProps.style` property ```tsx style: any ``` --- ### `WishCardProps.wish` property ```tsx wish: Wish ``` ## WishDetailModalProps ### `WishDetailModalProps.onClose` property **Returns** — `void` ```tsx onClose(): void ``` --- ### `WishDetailModalProps.onVote` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | **Returns** — `void` ```tsx onVote(wishId: string): void ``` --- ### `WishDetailModalProps.visible` property ```tsx visible: boolean ``` --- ### `WishDetailModalProps.wish` property ```tsx wish: Wish | null ``` ## WishesResponse ### `WishesResponse.data` property ```tsx data: Wish[] ``` --- ### `WishesResponse.page` property ```tsx page: number ``` --- ### `WishesResponse.per_page` property ```tsx per_page: number ``` --- ### `WishesResponse.total` property ```tsx total: number ``` --- ### `WishesResponse.total_pages` property ```tsx total_pages: number ``` ## WishFilters ### `WishFilters.category_id` property ```tsx category_id: string ``` --- ### `WishFilters.fingerprint` property ```tsx fingerprint: string ``` --- ### `WishFilters.page` property ```tsx page: number ``` --- ### `WishFilters.per_page` property ```tsx per_page: number ``` --- ### `WishFilters.priority` property ```tsx priority: WishPriority | WishPriority[] ``` --- ### `WishFilters.search` property ```tsx search: string ``` --- ### `WishFilters.sort_by` property ```tsx sort_by: "votes" | "created_at" | "updated_at" ``` --- ### `WishFilters.sort_order` property ```tsx sort_order: "asc" | "desc" ``` --- ### `WishFilters.status` property ```tsx status: WishStatus | WishStatus[] ``` ## WishListProps ### `WishListProps.contentContainerStyle` property ```tsx contentContainerStyle: any ``` --- ### `WishListProps.customFormId` property Custom form ID for the submit sheet ```tsx customFormId: string ``` --- ### `WishListProps.description` property ```tsx description: string ``` --- ### `WishListProps.emptyText` property ```tsx emptyText: string ``` --- ### `WishListProps.filters` property ```tsx filters: WishFilters ``` --- ### `WishListProps.onAddWish` property > **Deprecated**: Use showSubmitButton instead. Custom handler for add wish button. **Returns** — `void` ```tsx onAddWish(): void ``` --- ### `WishListProps.onCommentPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wish` | `Wish` | ✓ | | **Returns** — `void` ```tsx onCommentPress(wish: Wish): void ``` --- ### `WishListProps.onVote` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wishId` | `string` | ✓ | | **Returns** — `void` ```tsx onVote(wishId: string): void ``` --- ### `WishListProps.onWishPress` property **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wish` | `Wish` | ✓ | | **Returns** — `void` ```tsx onWishPress(wish: Wish): void ``` --- ### `WishListProps.onWishSubmitted` property Callback when a wish is successfully submitted **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `wish` | `Wish` | ✓ | | **Returns** — `void` ```tsx onWishSubmitted(wish: Wish): void ``` --- ### `WishListProps.refreshInterval` property ```tsx refreshInterval: number ``` --- ### `WishListProps.showSubmitButton` property Show the submit idea button (defaults to true) ```tsx showSubmitButton: boolean ``` --- ### `WishListProps.style` property ```tsx style: any ``` --- ### `WishListProps.submitButtonText` property Submit button text ```tsx submitButtonText: string ``` --- ### `WishListProps.submitSheetDescription` property Submit sheet description ```tsx submitSheetDescription: string ``` --- ### `WishListProps.submitSheetTitle` property Submit sheet title ```tsx submitSheetTitle: string ``` --- ### `WishListProps.title` property ```tsx title: string ``` ## Types ### `ArticleType` type Help Center Types ```tsx type ArticleType ``` --- ### `FlowDisplayType` type ```tsx type FlowDisplayType ``` --- ### `FormFieldType` type Form Types Configurable forms for collecting user submissions. ```tsx type FormFieldType ``` --- ### `StatusState` type ```tsx type StatusState ``` --- ### `StatusType` type Status Page Types Types for status page API responses. ```tsx type StatusType ``` --- ### `SupportRequestCategory` type ```tsx type SupportRequestCategory ``` --- ### `SupportRequestPriority` type ```tsx type SupportRequestPriority ``` --- ### `SupportRequestStatus` type Support Types ```tsx type SupportRequestStatus ``` --- ### `SurveyQuestionType` type Survey Question Types ```tsx type SurveyQuestionType ``` --- ### `ThemeMode` type Theme mode options ```tsx type ThemeMode ``` --- ### `WishStatus` type Wish (Feature Request) Types ```tsx type WishStatus ``` ## Symbols ### `darkColors` variable ```tsx darkColors: AppgramColors ``` --- ### `lightColors` variable ```tsx lightColors: AppgramColors ``` --- ### `radius` variable ```tsx radius: object ``` --- ### `spacing` variable ```tsx spacing: object ``` --- ### `typography` variable ```tsx typography: object ``` ## Components ### `AppgramProvider` function @appgram/react-native React Native SDK for Appgram - feature voting, roadmaps, changelogs, help center, support, surveys, blog, and status pages. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `AppgramProviderProps` | ✓ | | **Returns** — `ReactElement` ```tsx AppgramProvider(__namedParameters: AppgramProviderProps): ReactElement ``` **Example** ```tsx import { AppgramProvider, WishList, SupportForm } from '@appgram/react-native' function App() { return ( ) } function FeedbackScreen() { return console.log(wish)} /> } function SupportScreen() { return Alert.alert('Submitted!')} /> } // Using headless hooks for custom UI import { useWishes, useVote } from '@appgram/react-native' function CustomWishList() { const { wishes, isLoading, refetch } = useWishes({ filters: { status: 'pending', sort_by: 'votes' }, }) const { vote, unvote, checkVote } = useVote() // Build your own UI... } ``` --- ### `Badge` function Badge Component A small status indicator with variant support. Supports muted, success, warning, error, and info actions. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `BadgeProps` | ✓ | | **Returns** — `ReactElement` ```tsx Badge(__namedParameters: BadgeProps): ReactElement ``` **Example** ```tsx import { Badge } from '@appgram/react-native' function StatusBadge({ status }) { const action = status === 'active' ? 'success' : 'muted' return ( {status} ) } // Different action types Active Pending Failed New ``` --- ### `Blog` function Blog Component Full-featured blog with list and detail views. Note: For app navigation, use BlogList and BlogPostDetail separately. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `BlogProps` | ✓ | | **Returns** — `ReactElement` ```tsx Blog(__namedParameters: BlogProps): ReactElement ``` **Example** ```tsx import { Blog } from '@appgram/react-native' function BlogScreen() { return ( console.log('Viewing:', post.title)} /> ) } // With bookmarks const [bookmarks, setBookmarks] = useState([]) { setBookmarks(prev => prev.includes(post.id) ? prev.filter(id => id !== post.id) : [...prev, post.id] ) }} /> ``` --- ### `BlogCard` function BlogCard Component Modern card with image overlay text. Supports default, compact, and large variants. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `BlogCardProps` | ✓ | | **Returns** — `ReactElement` ```tsx BlogCard(__namedParameters: BlogCardProps): ReactElement ``` **Example** ```tsx import { BlogCard } from '@appgram/react-native' function FeaturedPost({ post }) { return ( navigation.navigate('BlogPost', { slug: p.slug })} onBookmark={(p) => toggleBookmark(p.id)} isBookmarked={bookmarks.includes(post.id)} /> ) } // Compact variant for sidebars or lists ``` --- ### `BlogList` function BlogList Component Blog list with search, filter, and category pills. Use this for custom navigation instead of the full Blog component. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `BlogListProps` | ✓ | | **Returns** — `ReactElement` ```tsx BlogList(__namedParameters: BlogListProps): ReactElement ``` **Example** ```tsx import { BlogList } from '@appgram/react-native' function BlogScreen({ navigation }) { return ( { navigation.navigate('BlogPost', { slug: post.slug }) }} /> ) } // With bookmarks and filters toggleBookmark(post.id)} onFilterPress={() => setShowFilters(true)} /> ``` --- ### `BlogPostDetail` function BlogPostDetail Component Blog detail view with full-width hero image. Can receive post data directly or fetch by slug. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `BlogPostDetailProps` | ✓ | | **Returns** — `any` ```tsx BlogPostDetail(__namedParameters: BlogPostDetailProps): any ``` **Example** ```tsx import { BlogPostDetail } from '@appgram/react-native' function BlogPostScreen({ route }) { return ( { navigation.push('BlogPost', { slug: post.slug }) }} /> ) } // With pre-fetched post data and bookmarks toggleBookmark(post.id)} isBookmarked={bookmarks.includes(selectedPost.id)} /> ``` --- ### `Button` function Button Component A styled button with variant support. Supports solid, outline, and ghost variants with sm, md, lg sizes. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ButtonProps` | ✓ | | **Returns** — `ReactElement` ```tsx Button(__namedParameters: ButtonProps): ReactElement ``` **Example** ```tsx import { Button } from '@appgram/react-native' function SubmitButton() { return ( ) } // Outline and ghost variants ``` --- ### `Card` function Card Component A styled container with variant support. Supports default, elevated, and outlined variants. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `CardProps` | ✓ | | **Returns** — `ReactElement` ```tsx Card(__namedParameters: CardProps): ReactElement ``` **Example** ```tsx import { Card } from '@appgram/react-native' function FeatureCard({ title, description }) { return ( {title} {description} ) } // Outlined variant Content here ``` --- ### `ChatScreen` function ChatScreen Component Full-screen AI-powered chat for help center integration. Queries the help center API and displays responses with sources. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ChatScreenProps` | ✓ | | **Returns** — `ReactElement` ```tsx ChatScreen(__namedParameters: ChatScreenProps): ReactElement ``` **Example** ```tsx import { ChatScreen } from '@appgram/react-native' function HelpChatScreen({ navigation }) { return ( { navigation.navigate('HelpArticle', { slug }) }} onSupportPress={() => navigation.navigate('Support')} /> ) } // With custom accent color setShowSupport(true)} /> ``` --- ### `FormRenderer` function FormRenderer Component Renders a dynamic form based on form configuration. Supports text, email, textarea, checkbox, select, and radio fields. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `FormRendererProps` | ✓ | | **Returns** — `ReactElement` ```tsx FormRenderer(__namedParameters: FormRendererProps): ReactElement ``` **Example** ```tsx import { FormRenderer } from '@appgram/react-native' function FormScreen() { return ( { Alert.alert('Success', 'Message sent!') navigation.goBack() }} onError={(error) => Alert.alert('Error', error)} /> ) } // With custom project ID setShowThankYou(true)} /> ``` --- ### `HelpArticleCard` function HelpArticleCard Component A card displaying a help article preview. Use to build custom help article lists. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `HelpArticleCardProps` | ✓ | | **Returns** — `ReactElement` ```tsx HelpArticleCard(__namedParameters: HelpArticleCardProps): ReactElement ``` **Example** ```tsx import { HelpArticleCard } from '@appgram/react-native' function ArticleList({ articles }) { return ( {articles.map(article => ( navigation.navigate('HelpArticle', { article: a })} /> ))} ) } ``` --- ### `HelpArticleDetail` function HelpArticleDetail Component Displays help article content with HTML rendering. Use with your app's navigation. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `HelpArticleDetailProps` | ✓ | | **Returns** — `ReactElement` ```tsx HelpArticleDetail(__namedParameters: HelpArticleDetailProps): ReactElement ``` **Example** ```tsx import { HelpArticleDetail } from '@appgram/react-native' function HelpArticleScreen({ route }) { const { article } = route.params return ( ) } ``` --- ### `HelpCenter` function HelpCenter Component Displays help center flows/collections list. Use onFlowPress to navigate to flow detail in your app. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `HelpCenterProps` | ✓ | | **Returns** — `ReactElement` ```tsx HelpCenter(__namedParameters: HelpCenterProps): ReactElement ``` **Example** ```tsx import { HelpCenter } from '@appgram/react-native' function HelpScreen() { return ( { navigation.navigate('HelpFlow', { slug: flow.slug }) }} /> ) } // With grid layout ``` --- ### `HelpFlowCard` function HelpFlowCard Component A card displaying a help flow/collection. Use to build custom help center navigation. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `HelpFlowCardProps` | ✓ | | **Returns** — `ReactElement` ```tsx HelpFlowCard(__namedParameters: HelpFlowCardProps): ReactElement ``` **Example** ```tsx import { HelpFlowCard } from '@appgram/react-native' function HelpFlowList({ flows }) { return ( {flows.map(flow => ( navigation.navigate('HelpFlow', { flow: f })} /> ))} ) } ``` --- ### `HelpFlowDetail` function HelpFlowDetail Component Displays articles within a help flow/collection. Use with your app's navigation. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `HelpFlowDetailProps` | ✓ | | **Returns** — `ReactElement` ```tsx HelpFlowDetail(__namedParameters: HelpFlowDetailProps): ReactElement ``` **Example** ```tsx import { HelpFlowDetail } from '@appgram/react-native' function HelpFlowScreen({ route }) { const { flow } = route.params return ( { navigation.navigate('HelpArticle', { article }) }} emptyText="No articles available" /> ) } ``` --- ### `Input` function Input Component A styled text input with label and error support. Automatically shows focus and error states. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `InputProps` | ✓ | | **Returns** — `ReactElement` ```tsx Input(__namedParameters: InputProps): ReactElement ``` **Example** ```tsx import { Input } from '@appgram/react-native' function EmailInput({ value, onChange, error }) { return ( ) } // With validation error ``` --- ### `ReleaseDetail` function ReleaseDetail Component Displays a single release with its description, features, and changelog items. Can receive release data directly or fetch by slug. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ReleaseDetailProps` | ✓ | | **Returns** — `any` ```tsx ReleaseDetail(__namedParameters: ReleaseDetailProps): any ``` **Example** ```tsx import { ReleaseDetail } from '@appgram/react-native' function ReleaseDetailScreen({ route }) { return ( ) } // With pre-fetched release data ``` --- ### `ReleaseList` function ReleaseList Component A list of product releases with version badges and dates. Use this for custom navigation instead of the full Releases component. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ReleaseListProps` | ✓ | | **Returns** — `any` ```tsx ReleaseList(__namedParameters: ReleaseListProps): any ``` **Example** ```tsx import { ReleaseList } from '@appgram/react-native' function ChangelogScreen() { return ( { navigation.navigate('ReleaseDetail', { slug: release.slug }) }} /> ) } ``` --- ### `Releases` function Releases Component A timeline-style changelog displaying product releases with features, improvements, and bugfixes. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `ReleasesProps` | ✓ | | **Returns** — `any` ```tsx Releases(__namedParameters: ReleasesProps): any ``` **Example** ```tsx import { Releases } from '@appgram/react-native' function ChangelogScreen() { return ( { navigation.navigate('ReleaseDetail', { slug: release.slug }) }} /> ) } // Minimal usage console.log(r.version)} /> ``` --- ### `RoadmapBoard` function RoadmapBoard Component A horizontal scrollable Kanban-style roadmap displaying columns and items. Tapping an item opens the WishDetailModal for voting and comments. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `RoadmapBoardProps` | ✓ | | **Returns** — `any` ```tsx RoadmapBoard(__namedParameters: RoadmapBoardProps): any ``` **Example** ```tsx import { RoadmapBoard } from '@appgram/react-native' function RoadmapScreen() { return ( console.log('Selected:', item.title)} /> ) } // Minimal usage ``` --- ### `StatusBoard` function StatusBoard Component Displays system status with services and incidents. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `StatusBoardProps` | ✓ | | **Returns** — `ReactElement` ```tsx StatusBoard(__namedParameters: StatusBoardProps): ReactElement ``` **Example** ```tsx import { StatusBoard } from '@appgram/react-native' function StatusScreen() { return ( setShowSubscribe(true)} /> ) } // Minimal status badge ``` --- ### `SubmitWishSheet` function SubmitWishSheet Component Bottom sheet/modal for submitting new feature requests. Supports auto-detection of custom forms from project customization. **Parameters** | Name | Type | Required | Description | | --- | --- | --- | --- | | `__namedParameters` | `SubmitWishSheetProps` | ✓ | | **Returns** — `ReactElement` ```tsx SubmitWishSheet(__namedParameters: SubmitWishSheetProps): ReactElement ``` **Example** ```tsx import { SubmitWishSheet } from '@appgram/react-native' function FeedbackScreen() { const [visible, setVisible] = useState(false) return ( <>