Skip to content

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

https://api.trustsource.io/v2

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:

curl -H "x-api-key: YOUR_KEY" https://api.trustsource.io/v2/account/authorization

All requests and responses are JSON unless an endpoint says otherwise. CORS is enabled (Access-Control-Allow-Origin: *).

Start here

  1. Create an API key and choose a scope.
  2. Call GET /account/authorization to check that the key works.
  3. Pick the operations you need on the endpoint pages and try them in the interactive API documentation.

Further sources