API Reference
Trunk APIs for building custom integrations.
REST API Overview
Available APIs
Authentication
Finding your API token
Example
curl \
-i \
-X POST https://api.trunk.io/v1/metrics/trackEvents \
-H "Content-Type: application/json" \
-H "x-source: curl-sample" \
-H "x-api-token: {REDACTED}" \
-d '{
"repo": {
"host": "github.com",
"owner": "trunk-io",
"name": "jenkins-plugin"
},
"events":[]
}'Last updated

