app_ticket
Creates a one-time 60-second URL that opens a sandbox's non-public app as its owner, returning a ticket that sets a one-hour sign-in cookie for that app.
Instructions
A one-time URL that opens one of the sandbox's own non-public apps
For an app labelled p9m.access: domain or owner, which otherwise sends you to the browser sign-in. Body: { app: the app's address, e.g. https://shop-web.example.com/path }. Answers { url, expires_in: 60 }: the URL works once, for 60 seconds, and sets a cookie for that app's address that lasts 1 hour. Open it with a cookie file outside the project folder, never inside it (it opens the app as its owner for an hour and must not end up in a commit): jar=$(mktemp); curl -sf -c "$jar" -L "<url>" >/dev/null, then call the app with curl -b "$jar" …, and rm -f "$jar" when done (or open the URL in a browser). The app sees the sandbox's owner in X-P9m-User. Only the sandbox's owner may ask, for its own apps; a public app needs no ticket (404).
HTTP POST /sandboxes/{name}/app-ticket
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"app": "<app>"
},
"name": "app_ticket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app's address (or its host) | |
| name | Yes |