Api reference
GET Workspaces WorkspaceId Git
GET
/v1/workspaces/{workspaceId}/gitAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workspaceId*string
Query Parameters
pullRequest?boolean
Also look up the branch's GitHub pull request.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/workspaces/string/git"{ "branch": "string", "detachedHead": "string", "pullRequest": { "number": 0, "title": "string", "state": "open", "isDraft": true, "url": "string", "checks": "passing" }}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}