Is GitHub connected for this person's agents
curl --request GET \
--url https://pria.praxislxp.com/api/user/agents/connect/github/status \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/user/agents/connect/github/status"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/user/agents/connect/github/status', 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/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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/status"
req, _ := http.NewRequest("GET", 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.get("https://pria.praxislxp.com/api/user/agents/connect/github/status")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/agents/connect/github/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"configured": true,
"connected": true,
"login": "octocat",
"name": "<string>",
"scopes": [
"gist",
"read:org",
"repo",
"workflow"
],
"connectedAt": "2023-11-07T05:31:56Z"
}{
"success": false,
"code": "GIT_NOT_CONFIGURED",
"message": "<string>"
}Git connections
Is GitHub connected for this person's agents
The signed-in person’s GitHub connection, used by git in every shell of their agents (Agents, the persistent daemon, its workflow runs and the desktop) on every twin. configured is false when this Pria has no GitHub app for agents (GITHUB_AGENT_CLIENT_ID/SECRET). Tokens are never returned.
GET
/
api
/
user
/
agents
/
connect
/
github
/
status
Is GitHub connected for this person's agents
curl --request GET \
--url https://pria.praxislxp.com/api/user/agents/connect/github/status \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/user/agents/connect/github/status"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/user/agents/connect/github/status', 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/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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/status"
req, _ := http.NewRequest("GET", 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.get("https://pria.praxislxp.com/api/user/agents/connect/github/status")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/agents/connect/github/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"configured": true,
"connected": true,
"login": "octocat",
"name": "<string>",
"scopes": [
"gist",
"read:org",
"repo",
"workflow"
],
"connectedAt": "2023-11-07T05:31:56Z"
}{
"success": false,
"code": "GIT_NOT_CONFIGURED",
"message": "<string>"
}Authorizations
JWT token passed in x-access-token header
Was this page helpful?