Start connecting GitHub (returns the GitHub sign-in address)
curl --request POST \
--url https://pria.praxislxp.com/api/user/agents/connect/github/start \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/user/agents/connect/github/start"
headers = {"x-access-token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/user/agents/connect/github/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/user/agents/connect/github/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/agents/connect/github/start"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pria.praxislxp.com/api/user/agents/connect/github/start")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/agents/connect/github/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"authorizeUrl": "https://github.com/login/oauth/authorize?client_id=…"
}{
"success": false,
"code": "GIT_NOT_CONFIGURED",
"message": "<string>"
}{
"success": false,
"code": "GIT_NOT_CONFIGURED",
"message": "<string>"
}Git connections
Start connecting GitHub (returns the GitHub sign-in address)
Returns GitHub’s authorize address (scopes repo workflow read:org gist, PKCE S256, a single-use state that expires in 10 minutes); the app navigates there. GitHub sends the person back to /api/auth/agent-git/github/callback, which stores the connection and returns to /pria/agents?connections=connectors (adding git_error=<code> on failure). Only a person signed in themselves can do this — API-key, agent and consent-link tokens get 403 HUMAN_SIGN_IN_REQUIRED.
POST
/
api
/
user
/
agents
/
connect
/
github
/
start
Start connecting GitHub (returns the GitHub sign-in address)
curl --request POST \
--url https://pria.praxislxp.com/api/user/agents/connect/github/start \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/user/agents/connect/github/start"
headers = {"x-access-token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/user/agents/connect/github/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/user/agents/connect/github/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/agents/connect/github/start"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pria.praxislxp.com/api/user/agents/connect/github/start")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/agents/connect/github/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"authorizeUrl": "https://github.com/login/oauth/authorize?client_id=…"
}{
"success": false,
"code": "GIT_NOT_CONFIGURED",
"message": "<string>"
}{
"success": false,
"code": "GIT_NOT_CONFIGURED",
"message": "<string>"
}Was this page helpful?