> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.moveworks.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.moveworks.com/_mcp/server.

# List conversation events

GET https://api.moveworks.ai/assistant/v1/conversations/{conversation_id}/events

Returns system-initiated messages (async responses and proactive notifications) for a conversation. Only final messages are returned, not transient or reasoning messages.

Use `conversation_id = "-"` to query across all conversations. This is useful for reconciliation after receiving a webhook event, to fetch the full set of messages that may have been missed.

Results are ordered chronologically. Use `starting_after` and `ending_at` to define a time range based on previously seen event IDs.

Reference: https://help.moveworks.com/api-reference/conversations-api/deprecated-conversations-api/conversations/list-events

## Authentication

- `Authorization` header (bearer token, required) — JWT bearer token authentication. Obtain an access token from the Moveworks auth endpoint and include it in the Authorization header as 'Bearer \<token>'.

## Request

### Path parameters

- `conversation_id` (string, required) — Conversation identifier. Use "-" to read events across all conversations.

### Query parameters

- `starting_after` (string, optional) — Exclusive lower bound. Only events after this event ID are returned. Typically the last event ID from a previous poll. A base-62 identifier prefixed by a short resource type.
- `ending_at` (string, optional) — Inclusive upper bound. Only events up to and including this event ID are returned. Must be greater than starting_after. A base-62 identifier prefixed by a short resource type.
- `cursor` (string, optional) — Pagination cursor from a previous response.
- `limit` (integer, optional, default: 20) — Maximum number of events to return per page (1-100, default: 20).

### Headers

- `Assistant-Name` (string, required) — The Moveworks assistant identifier that was configured for your organization.

## Response

### 200

List of events

- `events` (list of object, required) — Array of event objects, ordered chronologically
  - `event_id` (string, required) — A base-62 identifier prefixed by a short resource type
  - `conversation_id` (string, required) — Parent conversation identifier
  - `created_at` (datetime, required) — Time when this event was created (ISO 8601). Events are ordered chronologically by this value.
  - `event_payload` (object, required) — Event payload. Currently only message events are supported.
    - `type` (enum, required) — Event type discriminator for event payloads.
      - Allowed values: `MESSAGE_EVENT`
    - `message` (object, optional) — Present when the event type is MESSAGE_EVENT
      - `message_id` (string, required) — A base-62 identifier prefixed by a short resource type
      - `conversation_id` (string, required) — A base-62 identifier prefixed by a short resource type
      - `response_id` (string, required) — A base-62 identifier prefixed by a short resource type
      - `actor` (enum, required) — Message actor type
        - Allowed values: `USER`, `ASSISTANT`
      - `content` (object, required) — Message content with type discriminator
        - `type`: `PLAIN_TEXT` (PLAIN_TEXT)
          - `plain_text` (object, required)
            - `text` (string, required) — Plain text content
        - `type`: `COMMONMARK_TEXT` (COMMONMARK_TEXT)
          - `commonmark_text` (object, required)
            - `text` (string, required) — Commonmark-formatted text content
        - `type`: `MARKDOWN_TEXT` (MARKDOWN_TEXT)
          - `markdown_text` (object, required)
            - `text` (string, required) — Raw markdown text content. Used when Minerva's chat response `is_commonmark` is not set.
        - `type`: `CALLBACK_ACTION_CONTENT` (CALLBACK_ACTION_CONTENT)
          - `callback_action` (object, required)
            - `callback_id` (string, required) — Opaque callback id for the action the user triggered. Submit this via `input.callback_id` on the create response endpoint to trigger the action.
      - `created_at` (datetime, required) — Creation timestamp (ISO 8601)
      - `citations` (list of object, optional, nullable) — Unique citation references in the assistant message. Use `content_references` to determine where in the message text each citation is referenced.
        - `citation_id` (string, optional) — Unique citation identifier (format: `cite_<base62>`). Use this to join with `content_references` on the Message object.
        - `url` (string, optional) — URL to the entity
        - `display` (object, optional)
          - `title` (object, optional) — Primary heading/identifier with type discriminator
            - `type`: `PLAIN_TEXT` (PLAIN_TEXT)
              - `plain_text` (object, required)
            - `type`: `COMMONMARK_TEXT` (COMMONMARK_TEXT)
              - `commonmark_text` (object, required)
            - `type`: `MARKDOWN_TEXT` (MARKDOWN_TEXT)
              - `markdown_text` (object, required)
            - `type`: `CALLBACK_ACTION_CONTENT` (CALLBACK_ACTION_CONTENT)
              - `callback_action` (object, required)
          - `body` (object, optional) — Body/description content with type discriminator
            - `type`: `PLAIN_TEXT` (PLAIN_TEXT)
              - `plain_text` (object, required)
            - `type`: `COMMONMARK_TEXT` (COMMONMARK_TEXT)
              - `commonmark_text` (object, required)
            - `type`: `MARKDOWN_TEXT` (MARKDOWN_TEXT)
              - `markdown_text` (object, required)
            - `type`: `CALLBACK_ACTION_CONTENT` (CALLBACK_ACTION_CONTENT)
              - `callback_action` (object, required)
          - `attributes` (list of object, optional) — Opaque key-value metadata for citation display. These attributes contain implementation-specific rendering hints and should be treated as a black-box by clients. The structure and values may vary between citations and should not be relied upon for business logic.
            - `key` (string, required) — Attribute name
            - `value` (string, required) — Attribute value
      - `content_references` (list of object, optional, nullable) — Ordered positions in the message text where citations appear (ascending by offset). Each entry references a `Citation` via `citation_id`. Only populated on assistant messages.
        - `citation_id` (string, required) — References `Citation.citation_id` to link this position to a citation entity.
        - `offset` (integer, required) — Zero-based character position in the assistant message where the citation appears.
      - `feedback` (object, optional, nullable) — Feedback options for this message. Present only on final assistant messages that support feedback. Use the callback IDs to submit a rating via the feedback endpoint.
        - `helpful` (object, optional) — Positive feedback option. Use this callback_id to rate the response as helpful.
          - `callback_id` (string, required) — Opaque callback identifier. Pass this value to the feedback endpoint to submit this rating.
        - `unhelpful` (object, optional) — Negative feedback option. Use this callback_id to rate the response as unhelpful.
          - `callback_id` (string, required) — Opaque callback identifier. Pass this value to the feedback endpoint to submit this rating.
      - `actions` (list of object, optional) — Actions a user can take in response to this message (e.g. buttons or links). Absent on messages with no actions.
        - `type`: `CALLBACK_ACTION` (CALLBACK_ACTION)
          - `callback_action` (object, required)
            - `callback_id` (string, required) — Opaque callback identifier for the action. Submit this via `input.callback_id` on the create response endpoint to trigger the action.
          - `label` (string, required) — Label associated with the action (e.g., button text).
        - `type`: `URL_ACTION` (URL_ACTION)
          - `label` (string, required) — Label associated with the action (e.g., link text).
          - `url_action` (object, required)
            - `url` (string, required) — URL to open when the action is triggered.
- `metadata` (object, required)
  - `next_cursor` (string, optional, nullable) — Opaque cursor for next page (null if no more results)

## Examples

**Response**

```json
{
  "events": [
    {
      "event_id": "evt_32bt9WkPqRnEtYsLmXc4v",
      "conversation_id": "conv_32bt7BMLhLyVzTUjfi35N",
      "created_at": "2025-01-20T10:00:01Z",
      "event_payload": {
        "type": "MESSAGE_EVENT",
        "message": {
          "message_id": "msg_32bt8vagXAoRwRLIdI2Oj",
          "conversation_id": "conv_32bt7BMLhLyVzTUjfi35N",
          "response_id": "resp_32bt7rXXugeJjvE3pQzOk",
          "actor": "ASSISTANT",
          "content": {
            "type": "COMMONMARK_TEXT",
            "commonmark_text": {
              "text": "Your password has been reset successfully."
            }
          },
          "created_at": "2025-01-20T10:00:01Z",
          "citations": []
        }
      }
    }
  ],
  "metadata": {
    "next_cursor": "eyJvZmZzZXQiOjIwfQ=="
  }
}
```

**SDK Code**

```python Conversations_listEvents_example
import requests

url = "https://api.moveworks.ai/assistant/v1/conversations/-/events"

querystring = {"ending_at":"evt_32btAxRmJdWpKqZnTb7Lf","starting_after":"evt_32bt9WkPqRnEtYsLmXc4v"}

headers = {
    "Assistant-Name": "acmecorp-conversations-rest-api",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Conversations_listEvents_example
const url = 'https://api.moveworks.ai/assistant/v1/conversations/-/events?ending_at=evt_32btAxRmJdWpKqZnTb7Lf&starting_after=evt_32bt9WkPqRnEtYsLmXc4v';
const options = {
  method: 'GET',
  headers: {
    'Assistant-Name': 'acmecorp-conversations-rest-api',
    Authorization: 'Bearer <token>'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Conversations_listEvents_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.moveworks.ai/assistant/v1/conversations/-/events?ending_at=evt_32btAxRmJdWpKqZnTb7Lf&starting_after=evt_32bt9WkPqRnEtYsLmXc4v"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Assistant-Name", "acmecorp-conversations-rest-api")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Conversations_listEvents_example
require 'uri'
require 'net/http'

url = URI("https://api.moveworks.ai/assistant/v1/conversations/-/events?ending_at=evt_32btAxRmJdWpKqZnTb7Lf&starting_after=evt_32bt9WkPqRnEtYsLmXc4v")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Assistant-Name"] = 'acmecorp-conversations-rest-api'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Conversations_listEvents_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.moveworks.ai/assistant/v1/conversations/-/events?ending_at=evt_32btAxRmJdWpKqZnTb7Lf&starting_after=evt_32bt9WkPqRnEtYsLmXc4v")
  .header("Assistant-Name", "acmecorp-conversations-rest-api")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Conversations_listEvents_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.moveworks.ai/assistant/v1/conversations/-/events?ending_at=evt_32btAxRmJdWpKqZnTb7Lf&starting_after=evt_32bt9WkPqRnEtYsLmXc4v', [
  'headers' => [
    'Assistant-Name' => 'acmecorp-conversations-rest-api',
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Conversations_listEvents_example
using RestSharp;

var client = new RestClient("https://api.moveworks.ai/assistant/v1/conversations/-/events?ending_at=evt_32btAxRmJdWpKqZnTb7Lf&starting_after=evt_32bt9WkPqRnEtYsLmXc4v");
var request = new RestRequest(Method.GET);
request.AddHeader("Assistant-Name", "acmecorp-conversations-rest-api");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Conversations_listEvents_example
import Foundation

let headers = [
  "Assistant-Name": "acmecorp-conversations-rest-api",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.moveworks.ai/assistant/v1/conversations/-/events?ending_at=evt_32btAxRmJdWpKqZnTb7Lf&starting_after=evt_32bt9WkPqRnEtYsLmXc4v")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```