API
API security
What the API, OAuth and the MCP server guarantee, and what is left to you.
Who a call acts as#
- Every call acts as one member of one account. An API key acts as the member who created it; an OAuth connection, as the member who connected it, in the account they picked.
- The member’s role caps it, with the same checks as the app: a viewer’s key can read but not resolve a signal, and only admins activate or archive monitors.
- Permissions narrow it further: a key or connection reaches only what its permissions name.
- When the member is deactivated, their keys stop working and their connected apps are disconnected. Apps don’t come back if the member is reactivated; keys do.
- Records of another account answer
404, never403, so ids can’t be probed. - Every change is in the audit log under the member’s name, with the key or app it came through.
Keys and tokens#
- API keys are stored as a SHA-256 digest; the key itself is shown once. Admins can set an expiry, regenerate and revoke them.
- OAuth is the authorization code flow with PKCE (
S256only). There are no client secrets or other grant types. - Codes last 5 minutes and work once. Access tokens last an hour. Refresh tokens are replaced on use. All of them are stored hashed.
- Codes, verifiers and tokens are filtered from the logs.
- Redirect URIs must match exactly and be
https, a loopback address (127.0.0.1,localhost) or an app’s own scheme.javascript:,data:andfile:are refused. - Apps register themselves, so the consent screen is never skipped. It says the app named itself and shows where it sends the member back. The account picked there is checked against the member’s own.
- An account being deleted takes no new connections, and its tokens stop working.
- Only admins connect apps unless the account lets every member. Turning that off, or a member losing the admin role, stops their connections at once.
Limits#
- 60 requests a minute per key or token, for the API and MCP each, and 300 a minute per address.
- Lists return 25 records by default and 100 at most. An MCP result longer than 60,000 characters is cut.
- At most 2 schema reads or queries, and 2 script trials, run at once per account; more answer
429.
Queries on your database#
run_query and the data source explorer run your SQL:
- in a read-only transaction, with a 15-second timeout through the API;
- as one statement only, so a query can’t end the transaction or change its own timeout;
- with at most 200 rows, and each query in the audit log;
- with account variables quoted by the database’s own connection, so a value can’t break out of its string.
On MySQL and MariaDB the whole session is read-only, and the timeout is max_execution_time (max_statement_time on MariaDB).
The database user is still what decides what Pulso can read. Give it SELECT on the tables monitors need and nothing more. On PostgreSQL, also set ALTER ROLE pulso SET default_transaction_read_only = on, so that even a bug on Pulso’s side couldn’t write; on MySQL, grant SELECT alone, which has the same effect.
Playbook scripts#
A script step, and run_script, run JavaScript written by your members on Pulso’s servers, so it runs apart from them:
- in an isolated sandbox, outside the memory of the server that runs it;
- with no network, files, environment variables or clock to sleep on: none is given to it;
- for a fixed amount of work (about a second of CPU), with 64 MB of memory, 20 KB of code and a 64 KB result;
- on a job queue of their own, so a slow script can’t hold up monitor checks or notifications.
A script reads the signal, earlier steps and the account’s variables, and only returns data to the playbook: it can’t change anything itself.
Outgoing requests#
HTTP request steps and outgoing webhooks call servers your members choose. On Pulso’s cloud they only reach public addresses: a host that resolves to this machine, a private network or the cloud’s metadata service is refused, every time a request is sent, and the request goes to the address that was checked. Redirects aren’t followed.
HTTP request steps run on a job queue of their own, two at a time per account. A request has 5 seconds to connect, 10 for each read and 20 in all; it sends 64 KB at most, and only the first 64 KB of the response are read, after decompressing it. Test requests from the editor are 10 a minute per member. Values from variables, such as tokens, go in the request but not on the signal, which shows the request as written in the playbook. If an error or the response holds a variable’s value, as when a server echoes the token back, it shows as [vars.name]. Each Send a test request from the editor is in the account’s audits.
AI assistants#
An assistant reads what signals carry: webhook payloads, rows from your database and comments. Someone who controls that text can try to instruct it, which is called prompt injection.
- Pulso tells the assistant to treat this data as data, never as instructions.
- Tools that are hard to undo (completing a task, deactivating or archiving a monitor) are marked destructive, so the client asks first.
- Leave that confirmation on. Connect only the permissions the assistant needs:
signals:readandtasks:readcover triage.
The MCP server refuses requests that a web page on another site sends from a browser.
Reporting a problem#
Write to hi@pulso.run. Please don’t test against other people’s accounts.