Get all repositories for a company.
curl --request GET \
--url https://api.example.com/api/v0/companies/{company_id}/repositories{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"currencyCode": "<string>",
"kycRequired": true,
"totalFindings": 123,
"createdAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"url": "<string>",
"company": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"handle": "<string>",
"logo": "<string>",
"website": "<string>",
"github": "<string>",
"twitter": "<string>"
},
"timeframe": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
},
"totalRewardPot": "<string>",
"submissionFee": "<string>",
"assetGroups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"outOfScope": true,
"rewards": [
{
"minReward": "<string>",
"maxReward": "<string>"
}
],
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"reference": "<string>"
}
],
"subGroups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"reference": "<string>"
}
],
"description": "<string>"
}
]
}
],
"safeHarbor": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"reward": "<string>",
"returnAddresses": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"address": "<string>"
}
],
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>"
}
],
"cap": "<string>"
},
"instructions": "<string>",
"requiredCtfAddress": "<string>",
"reward": "<string>",
"rank": 123,
"rankTotal": 123,
"allowedSeverities": []
}
]
}Companies
Get all repositories for a company.
Returns a list of all repositories associated with the specified company the user has joined or can join.
Access control rules
- Company user of the company.
- Admins can list all companies. Requires
read_all_companiespermissions.
GET
/
api
/
v0
/
companies
/
{company_id}
/
repositories
Get all repositories for a company.
curl --request GET \
--url https://api.example.com/api/v0/companies/{company_id}/repositories{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"currencyCode": "<string>",
"kycRequired": true,
"totalFindings": 123,
"createdAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"url": "<string>",
"company": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"handle": "<string>",
"logo": "<string>",
"website": "<string>",
"github": "<string>",
"twitter": "<string>"
},
"timeframe": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
},
"totalRewardPot": "<string>",
"submissionFee": "<string>",
"assetGroups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"outOfScope": true,
"rewards": [
{
"minReward": "<string>",
"maxReward": "<string>"
}
],
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"reference": "<string>"
}
],
"subGroups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"reference": "<string>"
}
],
"description": "<string>"
}
]
}
],
"safeHarbor": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"reward": "<string>",
"returnAddresses": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"address": "<string>"
}
],
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>"
}
],
"cap": "<string>"
},
"instructions": "<string>",
"requiredCtfAddress": "<string>",
"reward": "<string>",
"rank": 123,
"rankTotal": 123,
"allowedSeverities": []
}
]
}Endpoint to list the GitHub repositories the Cantina App has access to for a given account.Webhook endpoint called by GitHub on events related to Cantina GitHub App.
⌘I