REST API v2¶
TrustSource provides a REST API for programmatic access to scans, components, modules, projects and compliance data. Use it to automate your software supply chain security from CI/CD pipelines, release tooling and your own portals.
| Page | What it covers |
|---|---|
| Authentication | API key format, header usage, scopes. |
| Errors & Responses | HTTP status codes, error bodies, rate limits. |
| Endpoint Reference | Where to find the specification, and the endpoint pages. |
| Example: curl | End-to-end workflow via curl. |
| Public Routes | Release keys and CSAF feed keys. |
| API Structure | How the API is organised, base URL, limits. |
| Endpoint groups | One page per group of operations. |
Base URL and header¶
The version belongs to the base URL only. Endpoint paths never contain it, for example /core/projects. Send your key in the x-api-key header:
All requests and responses are JSON unless an endpoint says otherwise. CORS is enabled (Access-Control-Allow-Origin: *).
Start here¶
- Create an API key and choose a scope.
- Call
GET /account/authorizationto check that the key works. - Pick the operations you need on the endpoint pages and try them in the interactive API documentation.
Further sources¶
- API Structure - the five building blocks of the API.
- API keys and API usage - manage and monitor your keys.
- API scopes - which scope may call which operation.
- Recipe: CI/CD integration - scan from GitHub Actions.
- Support - questions about the API.