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
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
- Select the intended organization in the AppGram dashboard.
- Open Developer tools → API keys and select Create API key. The key manager is also available in Settings → Organization → Developer.
- 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. - Select the permissions needed by your documented operations and choose Expiration. An organization-wide key still needs the appropriate operation scopes.
- 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:
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.
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:
- Create a replacement with the intended project access, scopes, and expiration. Give it a name that distinguishes it from the old key.
- Update the secret in every backend that uses the old key, and deploy or restart those consumers as required.
- 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.
- 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.
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.
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 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-Afterwhen 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 or monitor reference.