API ReferenceRepositories
List repository capability requests
Members can inspect capability requests and their verification state.
Requires repository environments to be enabled for the workspace.
GET
/v1/workspaces/{workspaceId}/repos/{repoId}/capability-requestsAuthorizationBearer <token>
A personal access token, which starts with sntr_. Create one on the dashboard's CLI & API page (https://app.sinatra.dev/tokens). It acts as you in every workspace you belong to, with your role in each, and expires after at most 365 days. The CLI's browser sign-in sends an OAuth access token here instead.
In: header
Path Parameters
workspaceIdstring
The workspace's id, from GET /v1/me.
repoIdstring
The repository id from the repos data in GET /v1/workspaces/{workspaceId}.
Response Body
curl -X GET "https://api.sinatra.dev/v1/workspaces/string/repos/string/capability-requests"{
"requests": [
{
"id": "string",
"workspaceId": "string",
"repoId": "string",
"capability": "string",
"target": "string",
"reason": "string",
"envVarName": "string",
"state": "string",
"evidence": null,
"secretSatisfiable": true,
"suppliedSecretId": "string",
"remediation": {
"summary": "string",
"supplyCommand": "string",
"dismissCommand": "string",
"url": "http://example.com",
"note": "string"
},
"lastReportedAt": "2019-08-24T14:15:22Z",
"expiredAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
}{
"error": "string",
"reason": "string",
"requestId": "string",
"refusal": "string",
"billingUrl": "string",
"settingsUrl": "string",
"plan": "string",
"running": 0,
"queued": 0,
"taskId": "string",
"messageId": "string"
}{
"error": "string",
"reason": "string",
"requestId": "string",
"refusal": "string",
"billingUrl": "string",
"settingsUrl": "string",
"plan": "string",
"running": 0,
"queued": 0,
"taskId": "string",
"messageId": "string"
}{
"error": "string",
"reason": "string",
"requestId": "string",
"refusal": "string",
"billingUrl": "string",
"settingsUrl": "string",
"plan": "string",
"running": 0,
"queued": 0,
"taskId": "string",
"messageId": "string"
}{
"error": "string",
"reason": "string",
"requestId": "string",
"refusal": "string",
"billingUrl": "string",
"settingsUrl": "string",
"plan": "string",
"running": 0,
"queued": 0,
"taskId": "string",
"messageId": "string"
}{
"error": "string",
"reason": "string",
"requestId": "string",
"refusal": "string",
"billingUrl": "string",
"settingsUrl": "string",
"plan": "string",
"running": 0,
"queued": 0,
"taskId": "string",
"messageId": "string"
}