Apps

Read the server code of an app

Read-only. main_module and the modules of the running version, or of a kept earlier version with version. Use it to continue building after a break or in a new chat: read the code, change what is needed, and deploy only the changed modules with keep_existing_modules: true. One answer holds at most about 200,000 characters of code; a module that does not fit comes without content (truncated: true) and can be read alone with module.

get/apps/{id}/code

Request

  • Base URL: https://api.hypamoon.com/api/v1
  • URL: https://api.hypamoon.com/api/v1/apps/{id}/code
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.hypamoon.com/oauth/authorize, token URL https://api.hypamoon.com/oauth/token, scopes: sites:read)

Path parameters

idstring uuid required

The id of the app.

Query parameters

versioninteger

A kept version (get_app lists them). Leave it out for the running version.

modulestring

Only this module, like index.js.

Response

The code.

object'app_code' required
app_idstring uuid required
versioninteger required

The version these modules belong to.

running_versioninteger required

The version that runs now.

main_modulestring required

The module with export default { fetch }.

Changes

No recorded changes to this operation across all 1 revision of this API.