Hosting: NodeJS

List NodeJS builds

Changed on

Retrieve a paginated list of Node.js build processes for a specific website.

Each build represents a single run of the Node.js build pipeline. Use the states query parameter to filter results by build state (pending, running, completed, failed). Use the uuid from a build to poll its output via the Get Node.js Build Logs endpoint.

get/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds

Request

  • Base URL: https://developers.hostinger.com
  • URL: https://developers.hostinger.com/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds
  • Auth: HTTP bearer

Path parameters

usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld

Domain name

Query parameters

pageinteger
Example:1

Page number

per_pageinteger
Example:25

Number of items per page

statesstring[]

Build states to filter by

Response

Success response

Example response

{
  "data": [
    {
      "uuid": "69f07fe2-197a-4fb3-9dae-606f965ad13d",
      "state": "pending",
      "options": {
        "node_version": 24,
        "app_type": "vite",
        "root_directory": "src",
        "output_directory": "dist",
        "build_script": "build",
        "entry_file": "server.js",
        "package_manager": "npm",
        "source_type": "archive",
        "source_options": {
          "archive_path": "archive.zip",
          "owner": "octocat",
          "repository": "my-site",
          "branch": "main",
          "installation_uuid": "018f5e2a-1234-7890-abcd-1234567890ab",
          "commit": {
            "hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
            "message": "Initial commit",
            "author": {
              "name": "Jane Doe",
              "avatar_url": "https://avatars.githubusercontent.com/u/583231"
            }
          }
        }
      },
      "created_at": "2024-05-29T05:49:49.067239Z",
      "updated_at": "2024-05-29T05:49:49.067239Z"
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 15,
    "total": 100
  }
}

Changes

    • warning

      added the new git enum value to the /////// response property for the response status

    • info

      added the required property //////////// to the response with the status

    • info

      added the required property //////////// to the response with the status

    • info

      added the required property //////////// to the response with the status

    • info

      added the required property //////////// to the response with the status

    • info

      added the required property //////////// to the response with the status

    • warning

      added the new astro enum value to the /////// response property for the response status

    • warning

      added the new express enum value to the /////// response property for the response status

    • warning

      added the new fastify enum value to the /////// response property for the response status

    • warning

      added the new gatsby enum value to the /////// response property for the response status

    • warning

      added the new hono enum value to the /////// response property for the response status

    • warning

      added the new nest enum value to the /////// response property for the response status

    • warning

      added the new next enum value to the /////// response property for the response status

    • warning

      added the new nitro enum value to the /////// response property for the response status

    • warning

      added the new nuxt enum value to the /////// response property for the response status

    • warning

      added the new other enum value to the /////// response property for the response status

    • warning

      added the new react-router enum value to the /////// response property for the response status

    • warning

      added the new svelte enum value to the /////// response property for the response status

    • warning

      added the new svelte-kit enum value to the /////// response property for the response status