NOTE: the GraphQL API is still under heavy development and is subject to change
Sleuth's GraphQL endpoint is:
1
https://app.sleuth.io/graphql
Copied!
We expose the GraphiQL client so you can explore and query the API.
‌Authentication‌
The Sleuth REST API requires authentication using the API key from your Sleuth organization.
Provisioning Sleuth with Terraform
For Organizations with many Projects, Code Deployments and Impact Sources configuring Sleuth via the UI can be cumbersome. The Sleuth API can be used to provision resources directly. However, many teams already rely on Terraform to provision their infrastructure and other resources.
Instead of using the API directly to provision Sleuth resources, you can use Terraform and our terraform provider.
Organization and Deployment Slugs‌
Note that the organization and deployment slugs are not the semantic name of your organization and deployment as shown in the organization settings, which can contain spaces and capitalized characters.
The slugs displayed are the URL of your organization and deployment, with spaces replaced by a hyphen (-) and non-alphabetical characters (e.g., ()@#$%^, etc.) ignored.For example, if you're viewing a deployment called plugin picker (dev) and your organization is called Amazing Software, the URL will display as https://app.sleuth.io/amazing-software/deployments/plugin-picker-dev. Thus, the organization slug is amazing-software, the deployment slug is plugin-picker-dev.
Errors
Codes in the 2xx range indicate success
Codes in the 4xx range indicate incorrect or incomplete parameters
Codes in the 5xx range indicate an error with Sleuth servers