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

/plugins/{name}/tickets

First published 29 Oct 20260.2.19Unchanged since publication

Issue a ticket for the caller to open a plugin page

Who may call it
AdministratorResellerCustomer
Token scope
Any
Answers201 Created

The 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 server

Parameters

namepath ·PluginNameRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/plugins/alice/tickets" \
  -H "Authorization: Bearer $TOKEN"
Response · 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 sentence
400--name and --viewer are required
400A <kind> token needs the client's address
400A plugin's token names its scopes
400A session is opened by a panel user: name one with --actor
400A session opened for a user is a session
400Invalid <what>: expected a non-negative integer
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid id
400Invalid label: 1 to 64 printable ASCII characters
400Invalid user agent: 1 to 255 printable ASCII characters
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Unknown scope '<s>'; the scopes are
400Username '<value>' is reserved
401Authentication required
403<opener.name> may not open the panel of <owner>
403A plugin page is opened from the panel: only a session asks for a ticket
403Only a customer's panel is opened: <owner> is an administrator
403User '<owner>' is suspended
404User '
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.19 on 29 Oct 2026.
urbestack.com/docs/api/post-plugins-name-tickets/