For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Timeline

Get an activity's timeline

get
Authorizations
x-api-keystringRequired

API key is a token provided while making the API calls. This is used to authenticate the client at the exposed endpoint.

Path parameters
activityIdstringRequired

Activity ID, e.g. INC-123 or ALERT-456

Query parameters
accountIdstring · min: 1Required

Harness account identifier.

orgIdstring · min: 1Required

Harness organization identifier.

projectIdstring · min: 1Required

Harness project identifier.

cursorstringOptional

Paging cursor value from the previous response.

pageSizeinteger · int32Optional

Page size requested

sortDirectionstring · enumOptional

Sort direction

Possible values:
Responses
200

Timeline events

application/json
nextPageCursorstringOptional
hasMoreResultsbooleanOptional
totalCountinteger · int64Optional
totalCountApproximateinteger · int64Optional
get/api/v1/mc/activities/{activityId}/timeline
GET /gateway/ir/tp/api/v1/mc/activities/{activityId}/timeline?accountId=text&orgId=text&projectId=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Accept: */*
{
  "nextPageCursor": "text",
  "hasMoreResults": true,
  "results": [
    {
      "eventId": "text",
      "eventType": "text",
      "timestamp": 1,
      "actor": "text",
      "message": "text"
    }
  ],
  "totalCount": 1,
  "totalCountApproximate": 1
}

Post a markdown note to an activity's timeline

post

Adds a markdown note to the activity's timeline. A newly posted note may take a moment to appear in a subsequent GET of the same timeline. The message returned here is the markdown exactly as submitted; GET returns it rendered with the author's name.

Authorizations
x-api-keystringRequired

API key is a token provided while making the API calls. This is used to authenticate the client at the exposed endpoint.

Path parameters
activityIdstringRequired

Activity ID, e.g. INC-123 or ALERT-456

Query parameters
accountIdstring · min: 1Required

Harness account identifier.

orgIdstring · min: 1Required

Harness organization identifier.

projectIdstring · min: 1Required

Harness project identifier.

Body

Request body for posting a markdown note to an activity's timeline

messagestringRequired

Markdown note to post to the timeline

Responses
201

Timeline message created

application/json

An event in an activity's timeline

eventIdstringOptional

Unique identifier for this timeline event

eventTypestringOptional

The type of event, e.g. ONCALL_PAGED

timestampinteger · int64Optional

Epoch milliseconds when the event occurred

actorstringOptional

Display name of whoever or whatever produced the event, when known

messagestringOptional

The event's content, rendered as markdown

post/api/v1/mc/activities/{activityId}/timeline
POST /gateway/ir/tp/api/v1/mc/activities/{activityId}/timeline?accountId=text&orgId=text&projectId=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "message": "text"
}
{
  "eventId": "text",
  "eventType": "text",
  "timestamp": 1,
  "actor": "text",
  "message": "text"
}

Last updated

Was this helpful?