Skip to main content
POST
https://agentgate.mynewapi.com
/
api
/
v1
/
profiles
Create Profile
curl --request POST \
  --url https://agentgate.mynewapi.com/api/v1/profiles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "extends": "<string>",
  "loopStrategy": {},
  "verification": {},
  "gitOps": {},
  "executionLimits": {}
}
'
{
  "success": true,
  "data": {
    "name": "<string>",
    "description": "<string>",
    "extends": "<string>",
    "isBuiltIn": true,
    "message": "<string>"
  }
}

Create Profile

Creates a new harness profile with the specified configuration.
This endpoint requires authentication.

Request

name
string
required
Unique profile name (1-128 characters, alphanumeric and hyphens)
description
string
Profile description
extends
string
Parent profile to inherit from
loopStrategy
object
Loop strategy configuration
verification
object
Verification configuration
gitOps
object
Git operations configuration
executionLimits
object
Execution limits configuration
curl -X POST https://agentgate.mynewapi.com/api/v1/profiles \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-custom-profile",
    "description": "Custom profile for production",
    "extends": "ci-focused",
    "loopStrategy": {
      "type": "hybrid",
      "baseIterations": 5,
      "bonusIterations": 3
    },
    "verification": {
      "levels": ["L0", "L1", "L2"]
    },
    "executionLimits": {
      "maxIterations": 20
    }
  }'

Response

success
boolean
required
Indicates if the request was successful
data
object
required
Created profile info

Example Response

{
  "success": true,
  "data": {
    "name": "my-custom-profile",
    "description": "Custom profile for production",
    "extends": "ci-focused",
    "isBuiltIn": false,
    "message": "Profile created successfully"
  },
  "requestId": "req_abc123"
}

Error Responses

Profile Already Exists

{
  "success": false,
  "error": {
    "code": "CONFLICT",
    "message": "Profile already exists: my-custom-profile"
  }
}

Parent Profile Not Found

{
  "success": false,
  "error": {
    "code": "BAD_REQUEST",
    "message": "Parent profile not found: unknown-parent"
  }
}