> This page is for API Reference & Tools.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.moveworks.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.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.

Without `starting_after`, events are returned newest first (descending creation order). With `starting_after`, events are returned oldest first (ascending creation order). `ending_at` limits the range but does not change the order. Use `starting_after` and `ending_at` to define a time range based on previously seen event IDs.

Reference: https://docs.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. When supplied, results are returned oldest first; when omitted, results are returned newest first.
- `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 Event, required) — Array of event objects in creation order: newest first without starting_after, oldest first with starting_after.
- `metadata` (Metadata, required)

## Errors

### 401 Unauthorized Error

Unauthorized - Invalid or missing authentication

- `error` (UnauthorizedErrorResponseError, required)

### 404 Not Found Error

Not found - Conversation does not exist

- `error` (NotFoundErrorResponseError, required)

### 429 Too Many Requests Error

Rate limit exceeded

- `error` (RateLimitExceededErrorResponseError, required)

### 500 Internal Server Error

Internal server error

- `error` (InternalErrorResponseError, required)

## Types

### Event

- `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). List results are returned newest first without starting_after and oldest first with starting_after.
- `event_payload` (EventPayload, required) — Event payload. Currently only message events are supported.

### Metadata

- `next_cursor` (string, optional, nullable) — Opaque cursor for next page (null if no more results)

### UnauthorizedErrorResponseError

- `code` (enum, required)
  - Allowed values: `UNAUTHORIZED`
- `message` (string, required)

### NotFoundErrorResponseError

- `code` (enum, required)
  - Allowed values: `NOT_FOUND`
- `message` (string, required)

### RateLimitExceededErrorResponseError

- `code` (enum, required)
  - Allowed values: `RATE_LIMIT_EXCEEDED`
- `message` (string, required)

### InternalErrorResponseError

- `code` (enum, required)
  - Allowed values: `INTERNAL_ERROR`
- `message` (string, required)

### EventPayload

Event payload. Currently only message events are supported.

- `type` (enum, required) — Event type discriminator for event payloads.
  - Allowed values: `MESSAGE_EVENT`
- `message` (Message, optional) — Present when the event type is MESSAGE_EVENT

### Message

- `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` (Content, required) — Message content with type discriminator
- `created_at` (datetime, required) — Creation timestamp (ISO 8601)
- `citations` (list of Citation, optional, nullable) — Unique citation references in the assistant message. Use `content_references` to determine where in the message text each citation is referenced.
- `content_references` (list of CitationContentReference, 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.
- `feedback` (MessageFeedback, 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.
- `actions` (list of Action, optional) — Actions a user can take in response to this message (e.g. buttons or links). Absent on messages with no actions.

### Content

Message content with type discriminator

- `type`: `PLAIN_TEXT` (PLAIN_TEXT)
  - `plain_text` (PlainTextContent, required)
- `type`: `COMMONMARK_TEXT` (COMMONMARK_TEXT)
  - `commonmark_text` (CommonmarkTextContent, required)
- `type`: `MARKDOWN_TEXT` (MARKDOWN_TEXT)
  - `markdown_text` (MarkdownTextContent, required)
- `type`: `CALLBACK_ACTION_CONTENT` (CALLBACK_ACTION_CONTENT)
  - `callback_action` (CallbackActionContent, required)

### Citation

- `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` (Display, optional)

### CitationContentReference

- `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.

### MessageFeedback

Feedback options available on an assistant message. When present, this message supports feedback and the callback IDs can be used to submit a rating.

- `helpful` (FeedbackOption, optional) — Positive feedback option. Use this callback_id to rate the response as helpful.
- `unhelpful` (FeedbackOption, optional) — Negative feedback option. Use this callback_id to rate the response as unhelpful.

### Action

An action a user can take in response to a message. The `type` field determines which action payload is present.

- `type`: `CALLBACK_ACTION` (CALLBACK_ACTION)
  - `callback_action` (CallbackAction, required)
  - `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` (URLAction, required)

### PlainTextContent

- `text` (string, required) — Plain text content

### CommonmarkTextContent

- `text` (string, required) — Commonmark-formatted text content

### MarkdownTextContent

- `text` (string, required) — Raw markdown text content. Used when Minerva's chat response `is_commonmark` is not set.

### CallbackActionContent

- `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.

### Display

- `title` (Content, optional) — Primary heading/identifier with type discriminator
- `body` (Content, optional) — Body/description content with type discriminator
- `attributes` (list of Attribute, 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.

### FeedbackOption

- `callback_id` (string, required) — Opaque callback identifier. Pass this value to the feedback endpoint to submit this rating.

### CallbackAction

- `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.

### URLAction

- `url` (string, required) — URL to open when the action is triggered.

### Attribute

Key-value pair for citation display metadata. This is an opaque structure that contains rendering hints specific to each citation. Clients should not make assumptions about the keys or values present, as they may vary based on citation type and context.

- `key` (string, required) — Attribute name
- `value` (string, required) — Attribute value

## 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()
```