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:

Code example
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.

Code example
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:

Code example
{
  "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.

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 and Flutter SDK APIs.