Skip to main content
GET
Get an activity

Authorizations

Authorization
string
header
required

Use an API key or OAuth access token. Enter only the token in the authorization dialog; requests send it as Authorization: Bearer <TOKEN>.

Create an API key in your workspace's Settings → API keys. Keys start with wm_api_ and only work in the workspace where they were created. Read-only keys can read data; creating, updating, or deleting data requires a read-write key.

OAuth access tokens are issued for connected Windmill applications.

Both token types use the authenticated user's workspace permissions. Each endpoint's permission requirements and the sharing settings of the requested items still apply.

Path Parameters

companyId
string
required

Company ID. A URL slug is also accepted. The caller must have access to this company.

Required string length: 1 - 128
Example:

"company-acme"

activityId
string
required

Windmill's identifier for the activity, as returned by PUT /c/{companyId}/activities or POST /c/{companyId}/activities/search.

Example:

"019a2f7c-8842-7e3f-9a4b-5c6d7e8f9a0b"

Response

The activity.

id
string
required

Windmill's identifier for the activity.

Example:

"019a2f7c-8842-7e3f-9a4b-5c6d7e8f9a0b"

type
string
required

The externalId of the activity's type.

Example:

"call-score"

externalId
string
required

Your identifier for the event, unique within its type.

Example:

"call-8842"

employees
object[]
required

Every employee the activity is about.

title
string
required

A short summary of the event.

body
string | null
required

Longer text about the event, or null.

url
string | null
required

A URL to the event in its source system, or null.

occurredAt
string<date-time>
required

When the event happened.

properties
object
required

Structured details of the event as a flat object. Each value is a string, number, boolean, or null, or an array of those. An object value, or an array that holds an object or an array, fails validation. To group related details, put a . in the key, for example account.name; the whole key is one name.

Example:
tags
string[]
required

Tag names, in ascending order.

integrationId
string | null
required

The integration the event came from, or null.

access
object
required

Who can read and edit the activity, as grants. A preset comes back as the grants it stands for, and shareWithEmployees as a read grant for each employee on the activity. Access always includes write access for members with permission to manage activities (activities.manage) and, when known, for the employee who created the activity.

createdByEmployeeId
string | null
required

The employee who created the activity, or null when unknown.

lastUpdatedByEmployeeId
string | null
required

The employee who last changed the activity, or null when unknown.

createdAt
string<date-time>
required

When the activity was first written.

updatedAt
string<date-time>
required

When the activity was last written.