{"openapi":"3.1.0","info":{"title":"Native Update Public Management API","version":"v1","summary":"Apps, builds, rollouts, app keys and signing keys of your own Native Update account.","description":"Authenticate with a personal access token from Settings, Developers, Access tokens: `Authorization: Bearer nu_pat_\u2026`. 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\"?}}`."},"servers":[{"url":"https://nativeupdatebe.aoneahsan.com/api/public/v1"}],"security":[{"accessToken":[]}],"paths":{"/token":{"get":{"operationId":"get_token","summary":"What this access token is: its name, permissions and apps.","tags":["Token"],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Token"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps":{"get":{"operationId":"get_apps","summary":"Lists the apps this token manages (paginated, at most 50 a page).","tags":["Apps"],"parameters":[{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/App"}},"links":{"type":"object"},"meta":{"type":"object","properties":{"current_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"last_page":{"type":"integer"}}}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_apps","summary":"Creates an app; a scoped token gains it automatically.","tags":["Apps"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/App"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}":{"get":{"operationId":"get_apps_app","summary":"Shows one app by app id or numeric id.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/App"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patch_apps_app","summary":"Changes an app's name, bundle id, platform, description or channels.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/App"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete_apps_app","summary":"Deletes an app with its builds and keys.","description":"Needs the opt-in `apps.delete` token permission.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Deleted"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/builds":{"get":{"operationId":"get_apps_app_builds","summary":"Lists an app's builds, newest first.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Build"}},"links":{"type":"object"},"meta":{"type":"object","properties":{"current_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"last_page":{"type":"integer"}}}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_apps_app_builds","summary":"Uploads a bundle (multipart). Signing and storage run as a job.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Build"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/builds/{build}":{"get":{"operationId":"get_apps_app_builds_build","summary":"Shows one build.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"build","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric build id."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Build"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patch_apps_app_builds_build","summary":"Changes a build's release notes, mandatory flag or status.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"build","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric build id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Build"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete_apps_app_builds_build","summary":"Deletes a build.","description":"Needs the opt-in `builds.delete` token permission.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"build","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric build id."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Deleted"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/builds/{build}/promote":{"post":{"operationId":"post_apps_app_builds_build_promote","summary":"Copies a build to another channel.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"build","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric build id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Build"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/builds/{build}/rollout":{"patch":{"operationId":"patch_apps_app_builds_build_rollout","summary":"Sets the rollout percentage, or pauses and resumes it.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"build","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric build id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Build"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/api-keys":{"get":{"operationId":"get_apps_app_api_keys","summary":"Lists an app's keys (never the key itself).","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}},"links":{"type":"object"},"meta":{"type":"object","properties":{"current_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"last_page":{"type":"integer"}}}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_apps_app_api_keys","summary":"Makes an nu_app_ key; the key is in this answer.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ApiKeySecret"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/api-keys/{key}":{"get":{"operationId":"get_apps_app_api_keys_key","summary":"Shows one app key.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric app key id."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ApiKey"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete_apps_app_api_keys_key","summary":"Deletes an app key for good.","description":"Needs the opt-in `keys.delete` token permission.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric app key id."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Deleted"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/api-keys/{key}/rotate":{"post":{"operationId":"post_apps_app_api_keys_key_rotate","summary":"Rotates an app key; the new key is in this answer.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric app key id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ApiKeySecret"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/api-keys/{key}/reveal":{"post":{"operationId":"post_apps_app_api_keys_key_reveal","summary":"Shows a recoverable app key again.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric app key id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ApiKeySecret"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/api-keys/{key}/restrictions":{"patch":{"operationId":"patch_apps_app_api_keys_key_restrictions","summary":"Sets an app key's client restrictions.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric app key id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ApiKey"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/api-keys/{key}/revoke":{"post":{"operationId":"post_apps_app_api_keys_key_revoke","summary":"Revokes an app key at once.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric app key id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ApiKey"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/api-keys/{key}/deprecate":{"post":{"operationId":"post_apps_app_api_keys_key_deprecate","summary":"Marks an app key deprecated.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The numeric app key id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ApiKey"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/signing-key":{"get":{"operationId":"get_apps_app_signing_key","summary":"Shows the app's bundle signing public key and fingerprint.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_apps_app_signing_key","summary":"Makes the app's bundle signing key.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/signing-key/rotate":{"post":{"operationId":"post_apps_app_signing_key_rotate","summary":"Rotates the bundle signing key.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/keystore/download":{"get":{"operationId":"get_apps_app_keystore_download","summary":"Downloads the private keystore backup.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"responses":{"200":{"description":"Done.","content":{"application/zip":{"schema":{"type":"string","contentMediaType":"application/zip"}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/apps/{app}/keystore":{"get":{"operationId":"get_apps_app_keystore","summary":"Shows whether a keystore backup is stored.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_apps_app_keystore","summary":"Stores a keystore backup (multipart .zip).","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete_apps_app_keystore","summary":"Deletes the keystore backup.","tags":["Apps"],"parameters":[{"name":"app","in":"path","required":true,"schema":{"type":"string"},"description":"The app id (like a UUID) or the numeric id."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Deleted"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/jobs/{job}":{"get":{"operationId":"get_jobs_job","summary":"Shows a queued job (an upload or AI request).","tags":["Jobs"],"parameters":[{"name":"job","in":"path","required":true,"schema":{"type":"string"},"description":"The job id."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Job"}}}}}},"401":{"description":"No token, a mistyped token, or an expired or revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks an opt-in permission this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not an app this token manages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request did not pass validation, or a plan limit was reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: the per-minute limit, or the plan's API requests a day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"accessToken":{"type":"http","scheme":"bearer","bearerFormat":"nu_pat_<64 hex>_<4 hex>"}},"schemas":{"App":{"type":"object","properties":{"id":{"type":"integer"},"app_id":{"type":"string"},"bundle_id":{"type":["string","null"]},"name":{"type":"string"},"description":{"type":["string","null"]},"platform":{"type":["string","null"]},"platforms":{"type":["array","null"]},"channels":{"type":["array","null"]},"created_at":{"type":"string"}}},"Build":{"type":"object","properties":{"id":{"type":"integer"},"version":{"type":"string"},"channel":{"type":"string"},"status":{"type":"string"},"checksum":{"type":["string","null"]},"checksum_algorithm":{"type":["string","null"]},"signature":{"type":["string","null"]},"signature_algorithm":{"type":["string","null"]},"file_size":{"type":["integer","null"]},"release_notes":{"type":["string","null"]},"min_native_version":{"type":["string","null"]},"rollout_percentage":{"type":["integer","null"]},"mandatory":{"type":"boolean"},"payload_type":{"type":"string"},"runtime_keys":{"type":["array","null"]},"promoted_from_id":{"type":["integer","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}}},"ApiKey":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]},"key_preview":{"type":"string"},"status":{"type":"string"},"recoverable":{"type":"boolean"},"restrictions":{"type":["object","null"]},"unrestricted":{"type":"boolean"},"blocked_count":{"type":["integer","null"]},"last_blocked_at":{"type":["string","null"]},"last_blocked_reason":{"type":["string","null"]},"last_used_at":{"type":["string","null"]},"rotated_at":{"type":["string","null"]},"created_at":{"type":"string"}}},"ApiKeySecret":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]},"status":{"type":"string"},"plaintext_key":{"type":"string"}}},"Token":{"type":"object","properties":{"name":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"all_apps":{"type":"boolean"},"apps":{"type":"array"},"last_used_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"created_at":{"type":"string"}}},"Job":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"attempts":{"type":"integer"},"result":{"type":["object","null"]},"error":{"type":["string","null"]},"status_url":{"type":"string"},"queued_at":{"type":["string","null"]},"started_at":{"type":["string","null"]},"finished_at":{"type":["string","null"]}}},"Deleted":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"integer"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object"}}}}}}}}