Skip to main content
GET
https://agentgate.mynewapi.com
/
api
/
v1
/
profiles
/
{name}
Get Profile
curl --request GET \
  --url https://agentgate.mynewapi.com/api/v1/profiles/{name} \
  --header 'Authorization: Bearer <token>'
{
  "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

name
string
required
The profile name
resolve
boolean
default:"false"
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

success
boolean
required
Indicates if the request was successful
data
object
required
Profile detail

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"
  }
}