Procy Docs
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeProcy home API GitHub Sign in

API reference

Everything the web interface does goes through the Procy REST API, so you can automate it too. The full reference of endpoints, parameters and responses is generated from the OpenAPI description:

Open the API reference

Basics

Base URL
https://procy.sh/api/v1 on hosted Procy. On a self-hosted server, https://<your server>/api/v1.
Authentication
HTTP basic authentication with your username and an API token. On hosted Procy the username is the email address you sign in with. A token acts in the organization it was created in.
Format
Requests and responses are JSON, except file uploads (multipart form). Results are in data, lists also carry meta.count; errors are a list in errors, each with code, title and detail.
Lists
Most list endpoints take sort=<field> (-<field> for descending), filter[<field>]=<value> (comma-separate values to match any of them) and page[limit] / page[offset]. With curl, pass -g so the brackets are sent as they are.
Live output
Commands, scripts, library entries and uploads also have WebSocket endpoints under /api/v1/ws/ that stream results as devices report them.
Limits
Request bodies are limited to 10 KB (file uploads to 10 MB) by default. After several failed sign-ins the server answers 429 for a while.
curl -s -u 'you@example.com:<api-token>' https://procy.sh/api/v1/clients | jq '.data[].name'

Where to start

TaskGuide
Open, list and close tunnelsManaging tunnels
Run commands on devicesRunning commands
Library entries and scriptsScripts and the library
SchedulesSchedules
Send filesSending files
Vault entriesVault
From the shellprocy-cli