For the complete documentation index, see llms.txt. This page is also available as Markdown.

Subscriptions

Subscriptions endpoints

List subscriptions

get
/status_pages/{subdomain}/subscriptions
Authorizations
AuthorizationstringRequired
Path parameters
subdomainstringRequired

The subdomain of your status page.

You can find this under your status page settings, the Subdomain field is found under the "Domain name" section. Alternatively find it in the URL of your admin dashboard (e.g. statuspal.io/admin/subdomain).

Query parameters
filterstringOptional

Filters by email address or phone number.

In order to search by phone number, the following is supported:

  1. Full phone number. Ensure the country code is prefixed by a + sign and include a space between the country code and phone number (e.g. +49 000000000 or +49 000 000 000)
  2. Country code (e.g. +49)
  3. Phone number without country code (e.g. 000000000)
beforestringOptional

Used as a cursor for pagination.

afterstringOptional

Used as a cursor for pagination.

limitintegerOptional

Set the number of subscriptions to return in the response. This defaults to 20 items, and can be a maximum of 100.

Responses
200

The list of subscriptions

application/json
get/status_pages/{subdomain}/subscriptions
GET /api/v2/status_pages/{subdomain}/subscriptions HTTP/1.1
Host: statuspal.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "subscriptions": [
    {
      "type": "email",
      "filter": "services",
      "service_ids": [
        1
      ],
      "incident_types": [
        "major"
      ],
      "incident_id": 123,
      "email": "jane@doe.com",
      "confirm": true,
      "country_dial_code": "49",
      "phone_number": "12345678900",
      "webhook_url": "https://discordapp.com/api/webhooks/channelId/token",
      "locale": "en",
      "inserted_at": "2022-01-01T00:00:00",
      "updated_at": "2022-01-01T00:00:00",
      "metadata": {
        "data": "some data"
      },
      "subscription_group_ids": [
        1,
        2
      ]
    }
  ],
  "links": {
    "next": "{STATUSPAL_HOST}/api/v2/status_pages/subdomain/subscriptions?after=cUrSoR",
    "prev": "text"
  },
  "meta": {
    "total_count": 100
  }
}

Adds a new subscription email, SMS or discord subscription

post
/status_pages/{subdomain}/subscriptions
Authorizations
AuthorizationstringRequired
Path parameters
subdomainstringRequired

The subdomain of your status page.

You can find this under your status page settings, the Subdomain field is found under the "Domain name" section. Alternatively find it in the URL of your admin dashboard (e.g. statuspal.io/admin/subdomain).

Body
Responses
200

The subscription was created

application/json
post/status_pages/{subdomain}/subscriptions
POST /api/v2/status_pages/{subdomain}/subscriptions HTTP/1.1
Host: statuspal.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 353

{
  "subscription": {
    "type": "email",
    "filter": "services",
    "service_ids": [
      1
    ],
    "incident_types": [
      "major"
    ],
    "incident_id": 123,
    "email": "jane@doe.com",
    "confirm": true,
    "country_dial_code": "49",
    "phone_number": "12345678900",
    "webhook_url": "https://discordapp.com/api/webhooks/channelId/token",
    "locale": "en",
    "metadata": {
      "data": "some data"
    },
    "subscription_group_ids": [
      1,
      2
    ]
  }
}
{
  "subscription": {
    "type": "email",
    "filter": "services",
    "service_ids": [
      1
    ],
    "incident_types": [
      "major"
    ],
    "incident_id": 123,
    "email": "jane@doe.com",
    "confirm": true,
    "country_dial_code": "49",
    "phone_number": "12345678900",
    "webhook_url": "https://discordapp.com/api/webhooks/channelId/token",
    "locale": "en",
    "inserted_at": "2022-01-01T00:00:00",
    "updated_at": "2022-01-01T00:00:00",
    "metadata": {
      "data": "some data"
    },
    "subscription_group_ids": [
      1,
      2
    ]
  }
}

Get a subscription

get
/status_pages/{subdomain}/subscriptions/{subscriptionId}
Authorizations
AuthorizationstringRequired
Path parameters
subdomainstringRequired

The subdomain of your status page.

You can find this under your status page settings, the Subdomain field is found under the "Domain name" section. Alternatively find it in the URL of your admin dashboard (e.g. statuspal.io/admin/subdomain).

subscriptionIdstringRequired

The ID of a subscription

Responses
200

The subscription

application/json
get/status_pages/{subdomain}/subscriptions/{subscriptionId}
GET /api/v2/status_pages/{subdomain}/subscriptions/{subscriptionId} HTTP/1.1
Host: statuspal.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "subscription": {
    "type": "email",
    "filter": "services",
    "service_ids": [
      1
    ],
    "incident_types": [
      "major"
    ],
    "incident_id": 123,
    "email": "jane@doe.com",
    "confirm": true,
    "country_dial_code": "49",
    "phone_number": "12345678900",
    "webhook_url": "https://discordapp.com/api/webhooks/channelId/token",
    "locale": "en",
    "inserted_at": "2022-01-01T00:00:00",
    "updated_at": "2022-01-01T00:00:00",
    "metadata": {
      "data": "some data"
    },
    "subscription_group_ids": [
      1,
      2
    ]
  }
}

Update the subscription

put
/status_pages/{subdomain}/subscriptions/{subscriptionId}
Authorizations
AuthorizationstringRequired
Path parameters
subdomainstringRequired

The subdomain of your status page.

You can find this under your status page settings, the Subdomain field is found under the "Domain name" section. Alternatively find it in the URL of your admin dashboard (e.g. statuspal.io/admin/subdomain).

subscriptionIdstringRequired

The ID of a subscription

Body
Responses
200

The subscription was updated

application/json
put/status_pages/{subdomain}/subscriptions/{subscriptionId}
PUT /api/v2/status_pages/{subdomain}/subscriptions/{subscriptionId} HTTP/1.1
Host: statuspal.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 353

{
  "subscription": {
    "type": "email",
    "filter": "services",
    "service_ids": [
      1
    ],
    "incident_types": [
      "major"
    ],
    "incident_id": 123,
    "email": "jane@doe.com",
    "confirm": true,
    "country_dial_code": "49",
    "phone_number": "12345678900",
    "webhook_url": "https://discordapp.com/api/webhooks/channelId/token",
    "locale": "en",
    "metadata": {
      "data": "some data"
    },
    "subscription_group_ids": [
      1,
      2
    ]
  }
}
{
  "subscription": {
    "type": "email",
    "filter": "services",
    "service_ids": [
      1
    ],
    "incident_types": [
      "major"
    ],
    "incident_id": 123,
    "email": "jane@doe.com",
    "confirm": true,
    "country_dial_code": "49",
    "phone_number": "12345678900",
    "webhook_url": "https://discordapp.com/api/webhooks/channelId/token",
    "locale": "en",
    "inserted_at": "2022-01-01T00:00:00",
    "updated_at": "2022-01-01T00:00:00",
    "metadata": {
      "data": "some data"
    },
    "subscription_group_ids": [
      1,
      2
    ]
  }
}

Deletes the subscription

delete
/status_pages/{subdomain}/subscriptions/{subscriptionId}
Authorizations
AuthorizationstringRequired
Path parameters
subdomainstringRequired

The subdomain of your status page.

You can find this under your status page settings, the Subdomain field is found under the "Domain name" section. Alternatively find it in the URL of your admin dashboard (e.g. statuspal.io/admin/subdomain).

subscriptionIdstringRequired

The ID of a subscription

Responses
204

Subscription deleted successfully

delete/status_pages/{subdomain}/subscriptions/{subscriptionId}
DELETE /api/v2/status_pages/{subdomain}/subscriptions/{subscriptionId} HTTP/1.1
Host: statuspal.io
Authorization: YOUR_API_KEY
Accept: */*

No content

Last updated