cURL
curl --request POST \ --url https://agentgate.mynewapi.com/api/v1/profiles/{name}/validate \ --header 'Authorization: Bearer <token>'
{ "success": true, "data": { "valid": true, "errors": [ { "path": "<string>", "message": "<string>" } ], "warnings": [ { "path": "<string>", "message": "<string>" } ], "resolved": {} } }
Validate a profile configuration
curl -X POST https://agentgate.mynewapi.com/api/v1/profiles/my-profile/validate \ -H "Authorization: Bearer YOUR_API_KEY"
Show properties
{ "success": true, "data": { "valid": true, "errors": [], "warnings": [], "resolved": { "name": "my-profile", "description": "My custom profile", "extends": "default", "isBuiltIn": false, "loopStrategy": { "type": "hybrid" }, "resolved": { "inheritanceChain": ["default", "my-profile"], "configHash": "sha256:abc123..." } } }, "requestId": "req_abc123" }
{ "success": true, "data": { "valid": false, "errors": [ { "path": "extends", "message": "Circular inheritance detected: my-profile -> parent-profile -> my-profile" } ], "warnings": [] }, "requestId": "req_abc123" }
{ "success": true, "data": { "valid": true, "errors": [], "warnings": [ { "path": "extends", "message": "Parent profile 'deprecated-profile' is deprecated" } ], "resolved": { "name": "my-profile", "resolved": { "inheritanceChain": ["deprecated-profile", "my-profile"], "configHash": "sha256:def456..." } } }, "requestId": "req_abc123" }