trigger urls
A trigger URL lets something outside PosKit start a script on a specific device — a monitoring tool, a ticketing system, a scheduled job on another platform, or a button on the POS itself.
generating one
Generate URL appears on a script's detail page, and only when the script is approved.
The dialog has two steps:
- Pick a target device. The list is searchable and shows whether each device is online or offline.
- Generate URL.
You are then given two copy-able forms of the same call.
| Form | Use it when |
|---|---|
| A URL with a key parameter | The calling system cannot set HTTP headers |
A curl command using an Authorization: Bearer header | The calling system can set headers |
The key-in-the-URL form exists specifically for systems that only let you configure a plain URL. Oracle Simphony buttons are the example the product names — you paste the URL into the button configuration and pressing it runs the script.
A trigger URL that carries the key as a parameter is a working credential in plain text. It may be written into browser history, proxy logs and the configuration of whatever system you paste it into. Prefer the header form wherever the calling system supports it, and treat the URL form as a secret in its own right.
the API key
A trigger call authenticates with an API key, and that key must hold the automation:execute permission.
API keys are created under Organization Settings → API Keys.
The key carries the permission, so anyone holding the trigger URL can run that script on that device. Scope the key to automation:execute only, and issue a separate key per integration so you can revoke one without disrupting the others.
what a trigger produces
A trigger call creates a normal execution with a trigger type of API, so it appears in the executions list alongside manual and scheduled runs and can be filtered out by trigger.
The same rules apply as for any other run:
- The script must be approved.
- The target device must be online and connected, or the call has nothing to dispatch to.
- Dispatch is asynchronous — the call returns as soon as the execution is created.
triggering from the device itself
A device's own agent can trigger a script on that same device.
This is how a POS terminal kicks off a local job without anyone opening the portal — the button on the till calls the trigger, the agent on that till runs the script, and the result lands in the executions list like any other run.
This is the pattern to reach for when venue staff need a self-service fix — a printer reset, a cache clear, a service restart — without giving them portal access. Head office writes and approves the script; the venue only ever presses a button.