# Native Update Public Management API

Authenticate with a personal access token from Settings, Developers, Access tokens: `Authorization: Bearer nu_pat_…`. A token reaches only the apps of the account that made it. Counts against the plan's API requests a day (reset at 00:00 UTC). Errors share one envelope: `{"error": {"code", "message", "details"?}}`.

Base URL: `https://nativeupdatebe.aoneahsan.com/api/public/v1`

## GET /token

What this access token is: its name, permissions and apps.

Answers: 200, 401, 403, 404, 422, 429.

## GET /apps

Lists the apps this token manages (paginated, at most 50 a page).

Answers: 200, 401, 403, 404, 422, 429.

## POST /apps

Creates an app; a scoped token gains it automatically.

Answers: 201, 401, 403, 404, 422, 429.

## GET /apps/{app}

Shows one app by app id or numeric id.

Answers: 200, 401, 403, 404, 422, 429.

## PATCH /apps/{app}

Changes an app's name, bundle id, platform, description or channels.

Answers: 200, 401, 403, 404, 422, 429.

## DELETE /apps/{app}

Deletes an app with its builds and keys. Needs the opt-in `apps.delete` token permission.

Answers: 200, 401, 403, 404, 422, 429.

## GET /apps/{app}/builds

Lists an app's builds, newest first.

Answers: 200, 401, 403, 404, 422, 429.

## POST /apps/{app}/builds

Uploads a bundle (multipart). Signing and storage run as a job.

Answers: 201, 401, 403, 404, 422, 429.

## GET /apps/{app}/builds/{build}

Shows one build.

Answers: 200, 401, 403, 404, 422, 429.

## PATCH /apps/{app}/builds/{build}

Changes a build's release notes, mandatory flag or status.

Answers: 200, 401, 403, 404, 422, 429.

## DELETE /apps/{app}/builds/{build}

Deletes a build. Needs the opt-in `builds.delete` token permission.

Answers: 200, 401, 403, 404, 422, 429.

## POST /apps/{app}/builds/{build}/promote

Copies a build to another channel.

Answers: 201, 401, 403, 404, 422, 429.

## PATCH /apps/{app}/builds/{build}/rollout

Sets the rollout percentage, or pauses and resumes it.

Answers: 200, 401, 403, 404, 422, 429.

## GET /apps/{app}/api-keys

Lists an app's keys (never the key itself).

Answers: 200, 401, 403, 404, 422, 429.

## POST /apps/{app}/api-keys

Makes an nu_app_ key; the key is in this answer.

Answers: 201, 401, 403, 404, 422, 429.

## GET /apps/{app}/api-keys/{key}

Shows one app key.

Answers: 200, 401, 403, 404, 422, 429.

## DELETE /apps/{app}/api-keys/{key}

Deletes an app key for good. Needs the opt-in `keys.delete` token permission.

Answers: 200, 401, 403, 404, 422, 429.

## POST /apps/{app}/api-keys/{key}/rotate

Rotates an app key; the new key is in this answer.

Answers: 201, 401, 403, 404, 422, 429.

## POST /apps/{app}/api-keys/{key}/reveal

Shows a recoverable app key again.

Answers: 201, 401, 403, 404, 422, 429.

## PATCH /apps/{app}/api-keys/{key}/restrictions

Sets an app key's client restrictions.

Answers: 200, 401, 403, 404, 422, 429.

## POST /apps/{app}/api-keys/{key}/revoke

Revokes an app key at once.

Answers: 200, 401, 403, 404, 422, 429.

## POST /apps/{app}/api-keys/{key}/deprecate

Marks an app key deprecated.

Answers: 200, 401, 403, 404, 422, 429.

## GET /apps/{app}/signing-key

Shows the app's bundle signing public key and fingerprint.

Answers: 200, 401, 403, 404, 422, 429.

## POST /apps/{app}/signing-key

Makes the app's bundle signing key.

Answers: 200, 401, 403, 404, 422, 429.

## POST /apps/{app}/signing-key/rotate

Rotates the bundle signing key.

Answers: 200, 401, 403, 404, 422, 429.

## GET /apps/{app}/keystore/download

Downloads the private keystore backup.

Answers: 200, 401, 403, 404, 422, 429.

## GET /apps/{app}/keystore

Shows whether a keystore backup is stored.

Answers: 200, 401, 403, 404, 422, 429.

## POST /apps/{app}/keystore

Stores a keystore backup (multipart .zip).

Answers: 200, 401, 403, 404, 422, 429.

## DELETE /apps/{app}/keystore

Deletes the keystore backup.

Answers: 200, 401, 403, 404, 422, 429.

## GET /jobs/{job}

Shows a queued job (an upload or AI request).

Answers: 200, 401, 403, 404, 422, 429.
