POST
/v1/scm-installations/install-intentsCreate an SCM App installation intent⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
Creates an installation intent for the given workspace. If an existing installation can be proven to belong to the caller it is linked immediately (alreadyLinked); otherwise the response carries a URL the user opens to install the SCM app. Pass repository (owner/name) so an installation that already covers it but cannot be linked automatically is detected and explained in hint. Currently only github is supported.
Request body
application/json
object
providerstringrequiredrepositorystringworkspaceIdstringrequired{
"provider": "github",
"repository": "string",
"workspaceId": "string"
}Responses
object
dataobjectrequiredShow child attributes
accountLoginstringalreadyLinkedbooleanhintstringinstallUrlstring · urirequiredproviderstringrequiredtypestringrequiredworkspaceIdstringrequired{
"data": {
"accountLogin": "string",
"alreadyLinked": true,
"hint": "string",
"installUrl": "https://example.com",
"provider": "github",
"type": "install-intent",
"workspaceId": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}