/plugins/{name}/tickets
0.2.19Unchanged since publicationIssue a ticket for the caller to open a plugin page
AnyThe ticket is a one-hour API token of kind plugin. It belongs to the caller and carries only the plugin's API scopes. The plugin daemon can present the ticket only over loopback. Ending the session that requested the ticket revokes it.
The caller must have an active account, and the API returns 403 unless the caller authenticates with a session token. The plugin must be enabled and have a page in the caller's panel. Customers can access the page by default unless their package disables it. The API returns 400 if name is invalid. A valid name is 2 to 32 characters long, starts with a lowercase ASCII letter, and contains only lowercase ASCII letters, digits, or hyphens.
The API returns the ticket only once, along with the page's port and path, the ticket's expiration time, and the plugin's health check result. The web interface posts the ticket once to the plugin's frame along with the theme and language.
As a command
Run as root on the serverParameters
namepath ·PluginNameRequiredExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/plugins/alice/tickets" \ -H "Authorization: Bearer $TOKEN"
201 Created{
"expires_at": "2026-09-16T10:15:00Z",
"health_check": {
"answering": true,
"error": "Domain 'example.com' already exists",
"status": 1
},
"panel": "text",
"path": "public_html/index.php",
"plugin": "text",
"port": 8443,
"scopes": [
"*"
],
"ticket": "text"
}Errors
20 errors, each a status and a sentence400--name and --viewer are required400A <kind> token needs the client's address400A plugin's token names its scopes400A session is opened by a panel user: name one with --actor400A session opened for a user is a session400Invalid <what>: expected a non-negative integer400Invalid IPv4 address400Invalid IPv6 address400Invalid id400Invalid label: 1 to 64 printable ASCII characters400Invalid user agent: 1 to 255 printable ASCII characters400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Unknown scope '<s>'; the scopes are 400Username '<value>' is reserved401Authentication required403<opener.name> may not open the panel of <owner>403A plugin page is opened from the panel: only a session asks for a ticket403Only a customer's panel is opened: <owner> is an administrator403User '<owner>' is suspended404User 'urbestack.com/docs/api/post-plugins-name-tickets/