Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Orchestration Executions [Beta]

Get Activity Execution Inputs

get

Retrieve input values for a specific activity execution

Path parameters
activityIdstringRequired

The activity execution ID

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response containing list of activity execution input values

application/json
get/orchestration/execution/activity/{activityId}/input
GET /api/orchestration/execution/activity/{activityId}/input HTTP/1.1
Harness-Account: text
Accept: */*
{
  "inputs": [
    {
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "name": "text",
      "optional": true,
      "readOnly": true,
      "type": "string",
      "value": "text"
    }
  ]
}

Submit Activity Execution Outputs

post

Submit outputs for a manual activity execution that is waiting for outputs

Path parameters
activityIdstringRequired

The activity execution ID

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
Responses
200

Outputs accepted

No content

post/orchestration/execution/activity/{activityId}/output
POST /api/orchestration/execution/activity/{activityId}/output HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 98

{
  "outputs": [
    {
      "description": "text",
      "items": "string",
      "name": "text",
      "type": "string",
      "value": "text"
    }
  ]
}

No content

Perform a phase action (resume or restart)

post

Process actions for a paused phase. 'resume' advances the DAG; 'restart' re-runs with changed inputs.

Path parameters
phaseExecutionIdstringRequired

The ID of the phase execution

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
actionstring · enumRequired

The action to perform on the paused phase. 'resume' proceeds the DAG; 'restart' re-runs the phase (optionally with changed inputs).

Possible values:
Responses
200

Successful phase action response

application/json
actionstringOptional

The action that was performed

phaseExecutionIdstringOptional

The ID of the phase execution

post/orchestration/execution/phase/{phaseExecutionId}/action
POST /api/orchestration/execution/phase/{phaseExecutionId}/action HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 77

{
  "action": "resume",
  "inputs": [
    {
      "name": "text",
      "type": "string",
      "value": "text"
    }
  ]
}
{
  "action": "text",
  "phaseExecutionId": "text"
}

Get artifact update availability for a paused phase

get

For a paused phase, compares the tag stored in each release-artifact input against the latest ingested tag for that service mapping. Returns a list of inputs where a newer tag is available.

Path parameters
phaseExecutionIdstringRequired

The ID of the phase execution

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Artifact update availability for a paused phase

application/json
hasUpdatesbooleanRequired

True if at least one release-artifact input has a newer tag available

get/orchestration/execution/phase/{phaseExecutionId}/artifact-updates
GET /api/orchestration/execution/phase/{phaseExecutionId}/artifact-updates HTTP/1.1
Harness-Account: text
Accept: */*
{
  "hasUpdates": true,
  "updates": [
    {
      "currentTag": "text",
      "inputName": "text",
      "latestTag": "text",
      "serviceMappingIdentifier": "text"
    }
  ]
}

Get Activity Execution Outputs

get

Retrieve output values for a specific activity execution

Path parameters
releaseIdstringRequired

The ID of the release

phaseIdentifierstringRequired

The identifier of the phase

activityIdentifierstringRequired

The identifier of the activity

Query parameters
activityExecutionIdstringOptional

The ID of the activity execution

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response containing list of phase execution output values

application/json
get/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/output
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/output HTTP/1.1
Harness-Account: text
Accept: */*
{
  "outputs": [
    {
      "description": "text",
      "items": "string",
      "name": "text",
      "type": "string",
      "value": "text"
    }
  ]
}

Get Activity Execution Outputs (v2)

get

Retrieve grouped output values for a specific activity execution (v2 format)

Path parameters
releaseIdstringRequired

The ID of the release

phaseIdentifierstringRequired

The identifier of the phase

activityIdentifierstringRequired

The identifier of the activity

Query parameters
activityExecutionIdstringOptional

The ID of the activity execution

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response containing grouped output values (v2)

application/json
get/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/output/v2
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/output/v2 HTTP/1.1
Harness-Account: text
Accept: */*
{
  "values": [
    {
      "output": [
        {
          "name": "text",
          "value": "text"
        }
      ]
    }
  ]
}

Get Activity Retry History By Identifiers

get

Retrieve the retry history for a specific activity by release ID, phase identifier, and activity identifier

Path parameters
releaseIdstringRequired

The ID of the release

phaseIdentifierstringRequired

The identifier of the phase

activityIdentifierstringRequired

The identifier of the activity

Query parameters
activityExecutionIdstringOptional

The ID of the activity execution

cursorstringOptional

Cursor Based Pagination

limitnumber · max: 500Optional

The number of records expected

Default: 500
maxRetryIndexintegerOptional

Maximum retry index to include (optional filter)

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Successfully retrieved activity retry history

application/json

Response containing the retry history for an activity execution

lastbooleanRequired

Whether this is the last page of results

get/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/retry-history
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/retry-history HTTP/1.1
Harness-Account: text
Accept: */*
{
  "last": true,
  "nextRequest": {
    "cursor": "text",
    "limit": 1
  },
  "retries": [
    {
      "activityExecutionId": "text",
      "activityName": "text",
      "canRetry": true,
      "createdAt": 1,
      "endTs": 1,
      "failureInfo": {
        "code": "text",
        "msg": "text"
      },
      "identifier": "text",
      "phaseId": "text",
      "pipeline": {
        "executionId": "text",
        "identifier": "text"
      },
      "retryIndex": 1,
      "startTs": 1,
      "status": "SCHEDULED",
      "subprocess": {
        "identifier": "text",
        "releaseId": "text"
      },
      "triggerInfo": {
        "email": "text",
        "identifier": "text",
        "name": "text"
      },
      "yaml": "text"
    }
  ]
}

Get Phase Execution Inputs

get

Retrieve input values for a specific phase execution. If phaseExecutionId is provided it is used directly; otherwise the latest execution for the given release/phase is returned.

Path parameters
releaseIdstringRequired

The ID of the release

phaseIdentifierstringRequired

The identifier of the phase

Query parameters
phaseExecutionIdstringOptional

The ID of the phase execution (optional fast-path)

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response containing list of activity execution input values

application/json
get/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/input
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/input HTTP/1.1
Harness-Account: text
Accept: */*
{
  "inputs": [
    {
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "name": "text",
      "optional": true,
      "readOnly": true,
      "type": "string",
      "value": "text"
    }
  ]
}

Get Phase Execution Outputs

get

Retrieve output values for a specific phase execution

Path parameters
releaseIdstringRequired

The ID of the release

phaseIdentifierstringRequired

The identifier of the phase

Query parameters
phaseExecutionIdstringOptional

The ID of the phase execution

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response containing list of phase execution output values

application/json
get/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/output
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/output HTTP/1.1
Harness-Account: text
Accept: */*
{
  "outputs": [
    {
      "description": "text",
      "items": "string",
      "name": "text",
      "type": "string",
      "value": "text"
    }
  ]
}

Get Phase Execution Outputs (v2)

get

Retrieve grouped output values for a specific phase execution (v2 format)

Path parameters
releaseIdstringRequired

The ID of the release

phaseIdentifierstringRequired

The identifier of the phase

Query parameters
phaseExecutionIdstringOptional

The ID of the phase execution

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response containing grouped output values (v2)

application/json
get/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/output/v2
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/output/v2 HTTP/1.1
Harness-Account: text
Accept: */*
{
  "values": [
    {
      "output": [
        {
          "name": "text",
          "value": "text"
        }
      ]
    }
  ]
}

Get Phase Retry History By Identifiers

get

Retrieve the retry history for a specific phase by release ID and phase identifier

Path parameters
releaseIdstringRequired

The ID of the release

phaseIdentifierstringRequired

The identifier of the phase

Query parameters
cursorstringOptional

Cursor Based Pagination

limitnumber · max: 500Optional

The number of records expected

Default: 500
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Successfully retrieved phase retry history

application/json

Response containing the retry history for a phase execution

lastbooleanRequired

Whether this is the last page of results

get/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/retry-history
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/retry-history HTTP/1.1
Harness-Account: text
Accept: */*
{
  "last": true,
  "nextRequest": {
    "cursor": "text",
    "limit": 1
  },
  "retries": [
    {
      "createdAt": 1,
      "endTs": 1,
      "identifier": "text",
      "phaseExecutionId": "text",
      "phaseName": "text",
      "retryIndex": 1,
      "startTs": 1,
      "status": "SCHEDULED",
      "statusInfo": {
        "code": "text",
        "msg": "text"
      }
    }
  ]
}

Get Latest Release Input by Release ID

get

Retrieve the latest release input for a specific release ID

Path parameters
releaseIdstringRequired

The ID of the release

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Successfully retrieved release input

application/json
process_execution_idstringRequired

ID of the process execution

release_idstringRequired

ID of the release

yamlstringRequired

YAML content of the release input

get/orchestration/execution/releaseInput/{releaseId}
GET /api/orchestration/execution/releaseInput/{releaseId} HTTP/1.1
Harness-Account: text
Accept: */*
{
  "process_execution_id": "text",
  "release_id": "text",
  "yaml": "text"
}

Start Release Execution

post

Start a new release execution for the given identifier

Path parameters
idstringRequired

Unique id of the release to execute

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
releaseInputYamlstringRequired

YAML configuration for release input

Responses
200

Execution started successfully

application/json

Response for starting a release or process execution

executionIdstringOptional

Navigation slug for the started process execution (on-the-go process execute only)

identifierstringRequired

Identifier of the started release or orchestration process

yamlstringRequired

YAML content of the release or execution input

post/orchestration/execution/startRelease/{id}
POST /api/orchestration/execution/startRelease/{id} HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 27

{
  "releaseInputYaml": "text"
}
{
  "executionId": "text",
  "governanceMetadata": {
    "accountId": "text",
    "action": "text",
    "created": "text",
    "deny": true,
    "details": [
      {
        "accountId": "text",
        "created": "text",
        "deny": true,
        "description": "text",
        "identifier": "text",
        "orgId": "text",
        "policyMetadata": [
          {
            "accountId": "text",
            "created": "text",
            "denyMessages": [
              "text"
            ],
            "error": "text",
            "identifier": "text",
            "orgId": "text",
            "policyId": "text",
            "policyName": "text",
            "projectId": "text",
            "severity": "text",
            "status": "text",
            "updated": "text"
          }
        ],
        "policySetId": "text",
        "policySetName": "text",
        "projectId": "text",
        "status": "text"
      }
    ],
    "entity": "text",
    "id": "text",
    "message": "text",
    "orgId": "text",
    "projectId": "text",
    "status": "text",
    "timestamp": "text",
    "type": "text"
  },
  "identifier": "text",
  "yaml": "text"
}

Update Task Comment

put

Update an existing task comment

Path parameters
commentIdstringRequired

ID of the comment to update

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
commentstringRequired

The updated comment text

Responses
200

Response for successful task comment update

application/json
commentIdstringRequired

UUID of the updated comment

put/orchestration/execution/task/comment/{commentId}
PUT /api/orchestration/execution/task/comment/{commentId} HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "comment": "text"
}
{
  "commentId": "text"
}

Delete Task Comment

delete

Delete a specific task comment

Path parameters
commentIdstringRequired

ID of the comment to delete

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
204

Comment deleted successfully

No content

delete/orchestration/execution/task/comment/{commentId}
DELETE /api/orchestration/execution/task/comment/{commentId} HTTP/1.1
Harness-Account: text
Accept: */*

No content

Create Task Comment

post

Create a new comment for a specific execution task

Path parameters
taskExecutionIdstringRequired

ID of the execution task

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
commentstringRequired

The comment text

Responses
200

Response for successful task comment creation

application/json
commentIdstringRequired

UUID of the created comment

post/orchestration/execution/task/{taskExecutionId}/comment
POST /api/orchestration/execution/task/{taskExecutionId}/comment HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "comment": "text"
}
{
  "commentId": "text"
}

Get Task Comments Summary

get

Retrieve a cursor based paginated list of comments for a specific execution task

Path parameters
taskExecutionIdstringRequired

ID of the execution task

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

cursorstringOptional

Cursor Based Pagination

limitnumber · max: 500Optional

The number of records expected

Default: 500
Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Paginated list of task comments

application/json

Paginated response containing task comments

lastbooleanRequired

Whether this is the last page of results

get/orchestration/execution/task/{taskExecutionId}/comment/summary
GET /api/orchestration/execution/task/{taskExecutionId}/comment/summary HTTP/1.1
Harness-Account: text
Accept: */*
{
  "comments": [
    {
      "comment": "text",
      "commentId": "text",
      "commentedBy": {
        "email": "text",
        "name": "text"
      },
      "createdAt": 1,
      "isEdited": true,
      "lastUpdatedAt": 1
    }
  ],
  "last": true,
  "nextRequest": {
    "cursor": "text",
    "limit": 1
  }
}

Update Execution Task Metadata

put

Update the metadata (name and description) of a specific execution task

Path parameters
taskExecutionIdstringRequired

ID of the execution task

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
descriptionstringOptional

Updated description for the task

namestringOptional

Updated name for the task

Responses
200

Response for successful task metadata update

application/json
taskExecutionIdstringRequired

UUID of the updated task

put/orchestration/execution/task/{taskExecutionId}/metadata
PUT /api/orchestration/execution/task/{taskExecutionId}/metadata HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "description": "text",
  "name": "text"
}
{
  "taskExecutionId": "text"
}

Update Execution Task Status

put

Update the status of a specific execution task

Path parameters
taskExecutionIdstringRequired

ID of the execution task

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
statusstring · enumRequired

Current status of the execution task

Possible values:
Responses
200

Response for successful task status update

application/json
statusstring · enumRequired

Current status of the execution task

Possible values:
taskExecutionIdstringRequired

UUID of the updated task

put/orchestration/execution/task/{taskExecutionId}/status
PUT /api/orchestration/execution/task/{taskExecutionId}/status HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 17

{
  "status": "TODO"
}
{
  "status": "TODO",
  "taskExecutionId": "text"
}

Get Activities by Release and Phase ID

get

Retrieve all activities for a specific release and phase execution. If no activities exist in the database, it will fetch them from the phase YAML configuration.

Path parameters
releaseIdstringRequired

The ID of the release

phaseIdentifierstringRequired

The identifier of the phase execution

Query parameters
phaseExecutionIdstringOptional

The ID of the phase execution

statusstring[]Optional
parentExecutionIdstringOptional

The activity execution ID of the parent (loop container) to fetch child iterations for

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Orchestration execution phase activities for graph view

application/json
phase_execution_idstringOptional

ID of the phase execution

process_execution_idstringOptional

ID or slug of the process execution

release_idstringOptional

ID of the release

total_running_activitiesintegerRequired

Total number of currently running activities

get/orchestration/execution/{releaseId}/phase/{phaseIdentifier}/activities
GET /api/orchestration/execution/{releaseId}/phase/{phaseIdentifier}/activities HTTP/1.1
Harness-Account: text
Accept: */*
{
  "activities": [
    {
      "activity_execution_id": "text",
      "depends_on": [
        "text"
      ],
      "description": "text",
      "end_ts": 1,
      "failureInfo": {
        "code": "text",
        "msg": "text"
      },
      "group_type": "SINGLE",
      "identifier": "text",
      "name": "text",
      "pipeline": {
        "executionId": "text",
        "identifier": "text"
      },
      "retry_index": 1,
      "start_ts": 1,
      "status": "SCHEDULED",
      "subprocess": {
        "identifier": "text",
        "releaseId": "text"
      },
      "yaml": "text"
    }
  ],
  "phase_execution_id": "text",
  "process_execution_id": "text",
  "release_id": "text",
  "total_running_activities": 1
}

Get Orchestration Execution Tasks by Activity

get

Retrieve all orchestration execution tasks for a specific activity in a release phase

Path parameters
releaseIdstringRequired

The ID of the release

phaseIdentifierstringRequired

The identifier of the phase

activityIdentifierstringRequired

The identifier of the activity

Query parameters
activityExecutionIdstringOptional

The ID of the activity execution

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response containing list of execution tasks

application/json
get/orchestration/execution/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/tasks
GET /api/orchestration/execution/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/tasks HTTP/1.1
Harness-Account: text
Accept: */*
{
  "tasks": [
    {
      "actualDuration": "text",
      "createdAt": 1,
      "description": "text",
      "execute": {
        "processes": "all"
      },
      "expectedDuration": "text",
      "failureInfo": {
        "code": "text",
        "msg": "text"
      },
      "identifier": "text",
      "lastUpdatedAt": 1,
      "name": "text",
      "required": true,
      "status": "TODO",
      "taskExecutionId": "text",
      "userGroups": "text"
    }
  ]
}

Get Phases by Release ID

get

Retrieve all phases for a specific release. Returns phase details including their YAML configurations.

Path parameters
releaseIdstringRequired

The ID of the release

Query parameters
statusstring[]Optional

Filter phases by status (can specify multiple statuses)

parentExecutionIdstringOptional

The phase execution ID of the parent (loop container) to fetch child iterations for

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Successfully retrieved phases

application/json

Response containing phases for a release or process execution

process_execution_idstringOptional

ID of the process execution

release_idstringRequired

ID of the release or process execution

total_running_phasesintegerRequired

Total number of currently running phases

get/orchestration/execution/{releaseId}/phases
GET /api/orchestration/execution/{releaseId}/phases HTTP/1.1
Harness-Account: text
Accept: */*
{
  "phases": [
    {
      "activityCounts": {
        "manual": {
          "running": 0,
          "userAction": 0
        },
        "pipeline": {
          "running": 0,
          "userAction": 0
        },
        "subprocess": {
          "running": 0,
          "userAction": 0
        }
      },
      "completed_activities": 1,
      "depends_on": [
        "text"
      ],
      "description": "text",
      "end_ts": 1,
      "failureInfo": {
        "code": "text",
        "msg": "text"
      },
      "group_type": "SINGLE",
      "identifier": "text",
      "is_restartable": true,
      "name": "text",
      "owners": [
        "text"
      ],
      "parent_execution_id": "text",
      "phase_execution_id": "text",
      "retry_index": 1,
      "start_ts": 1,
      "status": "SCHEDULED",
      "total_activities": 1
    }
  ],
  "process_execution_id": "text",
  "release_id": "text",
  "total_running_phases": 1
}

Get Activity Execution Detail

get

Retrieve detailed information about an activity execution including phase info, yaml, and pipeline/subprocess execution details. If activityExecutionId is provided, filters by it directly. Otherwise, filters by releaseId, phaseIdentifier, activityIdentifier, and retryIndex (defaults to 0 if not provided).

Path parameters
releaseIdstringRequired

The ID of the release

phaseIdentifierstringRequired

The identifier of the phase

activityIdentifierstringRequired

The identifier of the activity

Query parameters
activityExecutionIdstringOptional

Optional activity execution ID. If provided, filters by this ID directly.

retryIndexinteger · int32Optional

Optional retry index. Used when activityExecutionId is not provided. Defaults to 0 if not specified.

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Successfully retrieved activity execution details

application/json

Detailed information about an activity execution

activity_execution_idstringRequired

ID of the activity execution

end_tsinteger · int64Optional

End timestamp in milliseconds

group_typestring · enumOptional

Whether this activity is a single execution or a loop container

Possible values:
identifierstringRequired

Identifier of the activity

namestringRequired

Name of the activity

phaseIdentifierstringRequired

Identifier of the phase

phaseNamestringRequired

Name of the phase

phase_execution_idstringRequired

ID of the phase execution

process_execution_idstringRequired

ID of the process execution

retry_idstringOptional

Retry ID of the activity execution

retry_indexinteger · int32Optional

Retry index of the activity execution

root_retry_idstringOptional

Root retry ID of the activity execution

start_tsinteger · int64Optional

Start timestamp in milliseconds

statusstring · enumRequired

Status of orchestration execution activities

Possible values:
yamlstringRequired

YAML configuration of the activity

get/orchestration/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}
GET /api/orchestration/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier} HTTP/1.1
Harness-Account: text
Accept: */*
{
  "activity_execution_id": "text",
  "end_ts": 1,
  "failureInfo": {
    "code": "text",
    "msg": "text"
  },
  "group_type": "SINGLE",
  "identifier": "text",
  "name": "text",
  "phaseIdentifier": "text",
  "phaseName": "text",
  "phase_execution_id": "text",
  "pipeline": {
    "executionId": "text",
    "identifier": "text"
  },
  "process_execution_id": "text",
  "retry_id": "text",
  "retry_index": 1,
  "root_retry_id": "text",
  "start_ts": 1,
  "status": "SCHEDULED",
  "subprocess": {
    "identifier": "text",
    "releaseId": "text"
  },
  "triggerInfo": {
    "email": "text",
    "identifier": "text",
    "name": "text"
  },
  "yaml": "text"
}

Get Events by Entity Type and Entity ID

get

Retrieve a cursor-based paginated list of events for a specific entity type and entity ID, sorted by created_at in descending order

Path parameters
entityTypestring · enumRequired

Type of entity for events

Possible values:
entityIdstringRequired

The ID of the entity

Query parameters
eventTypestringOptional

Optional filter by event type

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

cursorstringOptional

Cursor Based Pagination

limitnumber · max: 500Optional

The number of records expected

Default: 500
Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Successful response for events

application/json
lastbooleanRequired

Whether this is the last page of results

get/orchestration/{entityType}/events/{entityId}
GET /api/orchestration/{entityType}/events/{entityId} HTTP/1.1
Harness-Account: text
Accept: */*
{
  "events": [
    {
      "createdAt": 1,
      "createdBy": {
        "email": "text",
        "identifier": "text",
        "name": "text"
      },
      "entityId": "text",
      "entityType": "Task",
      "eventMetadata": {
        "from": "text",
        "to": "text"
      },
      "type": "Status"
    }
  ],
  "last": true,
  "nextRequest": {
    "cursor": "text",
    "limit": 1
  }
}

Get Paginated Activities by Release ID

get

Retrieve a paginated list of orchestration execution activities for a specific release with optional filters.

Sortable fields: start_ts, startTs, end_ts, endTs, last_updated_at, lastUpdatedAt, created_at, createdAt, name, identifier, status, type. Sort format: sort=field_name&sort=direction where direction is asc or desc. Examples: sort=start_ts&sort=desc or sort=endTs&sort=asc.

Path parameters
releaseIdstringRequired

The ID of the release

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

pageintegerOptional
sizeintegerOptional
sortstring[]Optional

Sort parameters as an array. Format: [field_name, direction] where direction is asc or desc. Supported fields: start_ts, startTs, end_ts, endTs, last_updated_at, lastUpdatedAt, created_at, createdAt, name, identifier, status, type. When used in query params, use format: sort=field_name&sort=direction (e.g., sort=start_ts&sort=desc).

Example: {"value":["created_at","asc"]}
phaseIdentifierstringOptional

Filter activities by phase identifier

startTsinteger · int64Optional

Filter activities that started on or after this timestamp (in milliseconds). Activities with start_ts >= startTs will be included.

endTsinteger · int64Optional

Filter activities that started on or before this timestamp (in milliseconds). Activities with start_ts <= endTs will be included.

taskUserReferenceIdstringOptional

Filter activities that were triggered by tasks with the specified user_reference_id. Only activities linked to tasks via the activity_task_id table will be returned.

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Paginated orchestration execution activities

application/json
emptybooleanRequired

Whether the current page is empty

firstbooleanRequired

Whether this is the first page

lastbooleanRequired

Whether this is the last page

numberintegerRequired

Current page number (0-indexed)

numberOfElementsintegerRequired

Number of items in the current page

sizeintegerRequired

Number of items per page

totalElementsintegerRequired

Total number of activities across all pages

totalPagesintegerRequired

Total number of pages

get/release/{releaseId}/execution/activities
GET /api/release/{releaseId}/execution/activities HTTP/1.1
Harness-Account: text
Accept: */*
{
  "content": [
    {
      "activityExecutionId": "text",
      "endTs": 1,
      "failureInfo": {
        "code": "text",
        "msg": "text"
      },
      "group_type": "SINGLE",
      "identifier": "text",
      "manual": {
        "taskCount": 1
      },
      "name": "text",
      "phaseExecutionId": "text",
      "phaseIdentifier": "text",
      "phaseName": "text",
      "pipeline": {
        "executionId": "text",
        "identifier": "text"
      },
      "processExecutionId": "text",
      "retryId": "text",
      "retryIndex": 1,
      "rootReleaseId": "text",
      "startTs": 1,
      "status": "SCHEDULED",
      "subprocess": {
        "identifier": "text",
        "releaseId": "text"
      },
      "triggerInfo": {
        "email": "text",
        "identifier": "text",
        "name": "text"
      },
      "type": "PIPELINE"
    }
  ],
  "empty": true,
  "first": true,
  "last": true,
  "number": 1,
  "numberOfElements": 1,
  "pageable": {
    "offset": 1,
    "pageNumber": 1,
    "pageSize": 1,
    "paged": true,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "unpaged": true
  },
  "size": 1,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "totalElements": 1,
  "totalPages": 1
}

Last updated

Was this helpful?