From the command line
One command per operation a key can perform, ready to copy.
Contract version 1.15.0 The reference below is read from the OpenAPI contract, which is written in English. It is not translated on purpose: translating it would mean copying it, and a copy drifts. Download the public contract (OpenAPI, JSON)
There is nothing to install
There is no Postqron program to download, and this page is the reason you do not need one: the API speaks plain HTTP, so a shell and curl reach all of it. Nothing here wraps the API — it is the API.
The commands below are generated from the same contract as the REST reference, which is what makes them worth copying: each one names a route that exists, with the method it really wants.
Your key, and where to keep it
Create a key in the dashboard and give it only the scopes the script needs. Then keep it in the environment rather than in the command: a key typed inline is a key saved in the shell history, and history files get shared.
Set POSTQRON_API_KEY and every command on this page works unchanged. To act inside a workspace that is not your own, add the header X-Postqron-Workspace with the identifier of its owner.
jobs:readcurl \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
'https://api.postqron.com/jobs'One command per operation
These are the operations a key can perform. Anything in braces is yours to replace; where a body is expected, the file name is the schema the contract asks for, and the contract is where its fields are described.
jobs:readcurl \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
'https://api.postqron.com/jobs'jobs:writecurl \
--request POST \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
--header 'Content-Type: application/json' \
--data @job-input.json \
'https://api.postqron.com/jobs'jobs:readcurl \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
'https://api.postqron.com/jobs/{id}'jobs:writecurl \
--request PATCH \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
--header 'Content-Type: application/json' \
--data @job-input.json \
'https://api.postqron.com/jobs/{id}'jobs:writecurl \
--request DELETE \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
'https://api.postqron.com/jobs/{id}'executions:readcurl \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
'https://api.postqron.com/jobs/{id}/executions'executions:triggercurl \
--request POST \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
--header 'Content-Type: application/json' \
--data @trigger-input.json \
'https://api.postqron.com/jobs/{id}/executions'executions:readcurl \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
'https://api.postqron.com/jobs/{id}/executions/stream'executions:readcurl \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
'https://api.postqron.com/executions/export'executions:readcurl \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
'https://api.postqron.com/executions/metrics'secrets:readcurl \
--header "Authorization: Bearer $POSTQRON_API_KEY" \
'https://api.postqron.com/secrets'