uptime-robot-v3
    Preparing search index...

    Class PSPs

    Client for the Public Status Pages (PSPs) API.

    Announcements for a status page are on PSPs.announcements.

    https://uptimerobot.com/api/v3 Official API Documentation

    1.0.0

    Index

    Other

    announcements: PSPAnnouncements

    Public Status Pages

    • Creates a new public status page in your UptimeRobot account. The status page will be live immediately after creation.

      Parameters

      • payload: PSPPayload

        PSP configuration object (see PSPPayload interface for all options)

      Returns Promise<PSP>

      Promise that resolves to the created PSP object with assigned ID

      When required fields are missing or validation fails

      When conditional requirements are not met (e.g., provided image is wrong size)

      When API request fails or returns an error response

      // Create a password-protected status page with two monitors
      const httpMonitor = await service.psps.create({
      friendlyName: 'My PSP',
      monitorIds: ['id-1', 'id-2'],
      logo: './images/logo.png',
      password: 'securepassword'
      });

      https://uptimerobot.com/api/v3/#post-/psps Official API Documentation

      1.0.0

    • Removes a public status page completely from your UptimeRobot account. This action cannot be undone. The status page URL will become inaccessible immediately.

      Parameters

      • id: idField

        PSP ID (number or string)

      Returns Promise<boolean>

      Promise that resolves to true when deletion is successful

      When PSP ID is not found

      When API request fails

      // Delete a status page
      const success = await service.psps.delete(12345);
      if (success) {
      console.log('Status page deleted successfully');
      }

      1.0.0

    • Fetches complete configuration and current information for an individual public status page by ID. Returns all PSP properties including friendly name, monitors, customization settings, and access details.

      Parameters

      • id: idField

        PSP ID (number or string)

      Returns Promise<PSP>

      Promise that resolves to the PSP object

      When PSP ID is not found

      When API request fails

      // Get PSP details
      const psp = await service.psps.get(12345);
      console.log(`Status page "${psp.friendlyName}" has ${psp.monitorIds.length} monitors`);

      https://uptimerobot.com/api/v3/#get-/psps/-id- Official API Documentation

      1.0.0

    • Retrieves a list of public status pages (PSPs) from your UptimeRobot account. Results are paginated using cursor-based pagination.

      Parameters

      • Optionaloptions: { cursor?: number }

        Query string parameters passed to the API

        • Optionalcursor?: number

          Pagination cursor for next page

      • OptionalreturnFullResponse: false

      Returns Promise<PSP[]>

      Returns PSP[] by default, or URFullResponse<PSP> if returnFullResponse is true.

      When cursor is negative

      // Get status pages
      const psps = await service.psps.list();

      // Paginate through results
      const page1 = await service.psps.list();
      const page2 = await service.psps.list({ cursor: 123456789 });

      // Get full response for pagination
      const response = await service.psps.list({}, true);
      const nextUrl = new URL(response.nextLink);
      const nextCursorVal = nextUrl.searchParams.get('cursor');
      console.log(nextCursorVal);

      https://uptimerobot.com/api/v3/#get-/psps Official API Documentation

      1.0.0

    • Retrieves a list of public status pages (PSPs) from your UptimeRobot account. Results are paginated using cursor-based pagination.

      Parameters

      • options: { cursor?: number }

        Query string parameters passed to the API

        • Optionalcursor?: number

          Pagination cursor for next page

      • returnFullResponse: true

      Returns Promise<URFullResponse<PSP>>

      Returns PSP[] by default, or URFullResponse<PSP> if returnFullResponse is true.

      When cursor is negative

      // Get status pages
      const psps = await service.psps.list();

      // Paginate through results
      const page1 = await service.psps.list();
      const page2 = await service.psps.list({ cursor: 123456789 });

      // Get full response for pagination
      const response = await service.psps.list({}, true);
      const nextUrl = new URL(response.nextLink);
      const nextCursorVal = nextUrl.searchParams.get('cursor');
      console.log(nextCursorVal);

      https://uptimerobot.com/api/v3/#get-/psps Official API Documentation

      1.0.0

    • Modifies the settings of an existing public status page. Only provided fields will be updated; omitted fields retain their current values. Changes take effect immediately on the live status page.

      Parameters

      • id: idField

        PSP ID (number or string)

      • payload: PSPPayload

        PSP configuration updates (partial PSPPayload object)

      Returns Promise<PSP>

      Promise that resolves to the updated PSP object

      When PSP ID is not found

      When payload validation fails

      When conditional requirements are not met (e.g., invalid image format)

      // Update status page name and add monitors
      const updatedPSP = await service.psps.update(12345, {
      friendlyName: 'Updated Status Page',
      monitorIds: ['monitor1', 'monitor2', 'monitor3']
      });

      // Update with new logo image
      const pspWithLogo = await service.psps.update(12345, {
      logo: './images/new-logo.png'
      });

      https://uptimerobot.com/api/v3/#post-/psps Official API Documentation

      1.0.0