Start authorizing the deployment's GitHub App for this person
curl --request POST \
--url https://app.trustivan.com/api/v1/code-integrations/github/authorize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"return_path": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/code-integrations/github/authorize"
payload = { "return_path": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({return_path: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/code-integrations/github/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/code-integrations/github/authorize"
payload := strings.NewReader("{\n \"return_path\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"authorize_url": "<string>"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Start authorizing the GitHub App for this person
Requires credentials:manage and a person (not an API key). Answers
the GitHub address to send the browser to, and sets the cookie that
ties the flow to this browser. GitHub returns to the App’s existing
callback, /api/v1/auth/github-app/callback, which stores the token and
goes back to the dashboard at return_path with
github_authorization=ok, declined or failed. It does not make the
GitHub account a way to sign in.
POST
/
code-integrations
/
github
/
authorize
Start authorizing the deployment's GitHub App for this person
curl --request POST \
--url https://app.trustivan.com/api/v1/code-integrations/github/authorize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"return_path": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/code-integrations/github/authorize"
payload = { "return_path": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({return_path: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/code-integrations/github/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/code-integrations/github/authorize"
payload := strings.NewReader("{\n \"return_path\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"authorize_url": "<string>"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Body
application/json