Query ScriptRunner Connect's logs with the Public REST API

Rich Birks
25 March 2025
Read in 2 min
An initial set of REST API endpoints have been released that allow you to query script execution and audit logs of ScriptRunner Connect.
If you would like to store logs for longer than 6 months or would like to push logs to your third-party systems for analytical or monitoring and alerting purposes, you now have this option.
A template to help get you started
To illustrate how to go about querying our logs, we have an accompanying template that periodically creates a backup of script execution logs in AWS S3.
What you need to know
You can create new API keys and access existing ones from the app by clicking your name at the bottom-left corner of the UI (see screenshot below) and then clicking 'API Keys'. From there, you can generate a new API key.
Once you have the API key, send it along with the Authorisation header as follows: Basic base64Encoded(UserName:ApiKey). When you generate the API Key, you will also receive the base64 encoded Authorisation header value, which you can use directly.
The base URL is https://docs.api.scriptrunnerconnect.com/
Calling the API from ScriptRunner Connect
Although we currently don't offer a connector or a managed API for our own API, you can call API endpoints from a workspace with the generic connector.
Rate limiting
API endpoints are rate-limited; see Limits and Quotas to review the exact limits. If throttled, you'll see a 429 HTTP status code; retry the API call at a later time.
Single key per activity
We recommend generating a new key for each activity. This makes it easier to deactivate the activity by deleting the associated API key.
API keys are not retrievable
Once the key is generated, make a copy and store it securely. Once you have closed the window that exposed the API key, you won't be able to retrieve it again.
Get in touch
API coverage is currently limited, but it is expected to grow over time. Feel free to contact our support team to request more capabilities or fill in the form below.
The new Public REST API
