/v1/workspaces/{workspace_id}/integrations/github/appAuthWhether the ProductCraft Mail GitHub App is available, and what it asks for.
Path parameters
workspace_id*string · uuidId of the workspace.
Response · 200
available*booleanTrue once the ProductCraft Mail GitHub App is set up; until then only the older OAuth Connect exists.
slug*stringThe App's slug on GitHub; null until it is set up.
Example: "productcraft-mail"
html_url*string · uriThe App's public page on GitHub; null until it is set up.
permissions*objectRepository permissions the App asks for when installed.
Example: {"contents":"read","metadata":"read","pull_requests":"read","checks":"write"}
events*arrayWebhook events the App receives.
Example: ["push","pull_request"]
Example
Request
GET https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/integrations/github/app
Authorization: Bearer YOUR_TOKENResponse
{
"available": false,
"slug": "productcraft-mail",
"html_url": "string",
"permissions": {
"contents": "read",
"metadata": "read",
"pull_requests": "read",
"checks": "write"
},
"events": [
"push",
"pull_request"
]
}