Get Profile
curl --request GET \
--url https://agentgate.mynewapi.com/api/v1/profiles/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://agentgate.mynewapi.com/api/v1/profiles/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agentgate.mynewapi.com/api/v1/profiles/{name}', 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://agentgate.mynewapi.com/api/v1/profiles/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://agentgate.mynewapi.com/api/v1/profiles/{name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://agentgate.mynewapi.com/api/v1/profiles/{name}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/profiles/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"name": "<string>",
"description": "<string>",
"extends": "<string>",
"isBuiltIn": true,
"loopStrategy": {},
"verification": {},
"gitOps": {},
"executionLimits": {},
"resolved": {
"inheritanceChain": [
{}
],
"configHash": "<string>"
}
}
}Profiles
Get Profile
Get detailed information about a specific profile
GET
/
api
/
v1
/
profiles
/
{name}
Get Profile
curl --request GET \
--url https://agentgate.mynewapi.com/api/v1/profiles/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://agentgate.mynewapi.com/api/v1/profiles/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agentgate.mynewapi.com/api/v1/profiles/{name}', 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://agentgate.mynewapi.com/api/v1/profiles/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://agentgate.mynewapi.com/api/v1/profiles/{name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://agentgate.mynewapi.com/api/v1/profiles/{name}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/profiles/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"name": "<string>",
"description": "<string>",
"extends": "<string>",
"isBuiltIn": true,
"loopStrategy": {},
"verification": {},
"gitOps": {},
"executionLimits": {},
"resolved": {
"inheritanceChain": [
{}
],
"configHash": "<string>"
}
}
}Get Profile
Returns detailed information about a specific profile, including its full configuration.Request
The profile name
If true, resolves the full configuration including inherited values
curl "https://agentgate.mynewapi.com/api/v1/profiles/my-profile?resolve=true" \
-H "Authorization: Bearer YOUR_API_KEY"
Response
Indicates if the request was successful
Profile detail
Show properties
Show properties
Profile name
Profile description
Parent profile name
Whether this is a built-in profile
Loop strategy configuration
Verification configuration
Git operations configuration
Execution limits configuration
Example Response
{
"success": true,
"data": {
"name": "my-custom-profile",
"description": "Custom profile for production",
"extends": "ci-focused",
"isBuiltIn": false,
"loopStrategy": {
"type": "hybrid",
"baseIterations": 5,
"bonusIterations": 3
},
"verification": {
"levels": ["L0", "L1", "L2"]
},
"gitOps": {
"autoCommit": true,
"autoPush": true,
"createPR": true
},
"executionLimits": {
"maxIterations": 20,
"maxWallClockSeconds": 7200
},
"resolved": {
"inheritanceChain": ["default", "ci-focused", "my-custom-profile"],
"configHash": "sha256:abc123..."
}
},
"requestId": "req_abc123"
}
Error Responses
Profile Not Found
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Profile not found: unknown-profile"
}
}
⌘I