# POST /plugins/{name}/tickets

First published 29 Oct 2026 (release 0.2.19) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the plugins group.

Issue a ticket for the caller to open a plugin page

- Who may call it: administrator, reseller, customer
- Token scope: any
- Answers: 201 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

- [urbestack-plugin-ticket](https://urbestack.com/docs/commands/urbestack-plugin-ticket.md): Issues a one-hour ticket that the UrbeStack web interface passes to a plugin's page in a frame.

## Parameters

- `name` (path, PluginName, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
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

- 400: --name and --viewer are required
- 400: A <kind> token needs the client's address
- 400: A plugin's token names its scopes
- 400: A session is opened by a panel user: name one with --actor
- 400: A session opened for a user is a session
- 400: Invalid <what>: expected a non-negative integer
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid id
- 400: Invalid label: 1 to 64 printable ASCII characters
- 400: Invalid user agent: 1 to 255 printable ASCII characters
- 400: Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
- 400: Unknown scope '<s>'; the scopes are 
- 400: Username '<value>' is reserved
- 401: Authentication required
- 403: <opener.name> may not open the panel of <owner>
- 403: A plugin page is opened from the panel: only a session asks for a ticket
- 403: Only a customer's panel is opened: <owner> is an administrator
- 403: User '<owner>' is suspended
- 404: User '
