Connect GitHub with the code from its redirect
POST
/v1/github/connect
const url = 'https://app.skillpouch.net/v1/github/connect';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"code":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.skillpouch.net/v1/github/connect \ --header 'Content-Type: application/json' \ --data '{ "code": "example" }'Keeps only installations GitHub lists for the authorizing user: their own account or organizations they administer.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
code
required
string
Example generated
{ "code": "example"}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
ok
required
boolean
data
required
object
connections
required
Array<object>
object
installation_id
required
integer
account
required
string
type
required
string
meta
required
object
request_id
required
string
next_cursor
string | null
Example
{ "ok": true, "data": { "connections": [ { "type": "User" } ] }}