Get your free beta license ↗
API operation · php group
POST

/php/domains/notify

First published 14 Oct 20260.2.0Unchanged since publication

Email domain owners about PHP security support end dates

Who may call it
AdministratorResellerCustomer
Token scope, any of
settingsall
Answers200 OK

This operation requires an administrator and a token with the settings scope.

Use domains to select domains by name, php_version to select domains running a version such as 8.2, follows_default to select domains that follow the server's default PHP version, or all to select every domain. The q filter matches part of a domain name or alias, or the owner's full username. The owner filter selects domains owned by the specified account.

The operation returns 400 if no selection is provided, domains contains more than 5000 names, or q exceeds 200 characters or contains a character from U+0000 through U+001F.

UrbeStack notifies owners of selected domains running PHP versions whose security support has ended or ends in fewer than 120 days. The result counts domains skipped because their PHP version falls outside this window. Each owner receives one message at the email address on their account. It lists their affected domains and the date security support ends or ended for each version. It also explains how to switch to the server's default PHP version in the Domains section of the web interface.

If preview is true, the operation returns 200 with the messages that would be sent and sends no email. Otherwise, it queues a php-notify job and returns 202 with the job ID in the job field. The job records each owner's delivery result and updates its progress in the Jobs section.

When the job has owners to notify, UrbeStack sends one summary to administrators subscribed to php.version_ending. The summary shows each owner's delivery status, including missing email addresses and sending failures.

As commands

Run as root on the server

Request body

JSON ·PhpDomainsNotify· 7 fields
allboolean
Whether to select every domain from the unfiltered list.
domainsarray of string, up to 253 characters
Domain names to select explicitly.
follows_defaultboolean
Whether to select every domain that follows the server's default PHP version.
Owner username used to restrict the selection to that owner's domains.
php_versionstring, matching ^[5-9]\.[0-9]$
PHP version in major.minor format used to select every domain running that version.
previewboolean
Whether to return a preview of the emails as they would be sent, without sending them.
qstring, up to 200 characters
Text to match within the domain name or the owner's username.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/php/domains/notify" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "all": true,
    "domains": [
      "text"
    ],
    "follows_default": true,
    "owner": "alice",
    "php_version": "8.4",
    "preview": true,
    "q": "text"
  }'
Response · 200 OK
{}

Errors

21 errors, each a status and a sentence
400A new job is queued or running
400Domain name required
400Domain name too long
400Invalid <what>:
400Invalid <what>: expected a non-negative integer
400Invalid PHP version, expected e.g. 8.2
400Invalid domain name
400Invalid setting key
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Job parameters must be an object
400Name the domains (--domain), give the filter that picks them (--version, --follows-default, --q, --owner), or --all
400Name the domains, give the filter that picks them (php_version, follows_default, q, owner), or all
400Unknown PHP version '<version>'
400Unknown job type
400Username '<value>' is reserved
400domains is a list of up to 5000 names
400per_page is a number from 1 to 1000
400q is a text of up to 200 characters
401Authentication required
404Setting '<key>' not found
404User '<user>' not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/post-php-domains-notify/