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

# Get conversation event

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

Retrieves a single system-initiated event from a conversation.

The event must belong to the given conversation. `"-"` is not accepted as the `conversation_id`; to read events across all conversations, use the list endpoint.

For a `CONVERSATION_RESPONSE_RECEIVED` outbound webhook, `data.conversation_id` is the public Conversations API conversation identifier (`conv_` prefix), and the envelope's `id` is the event identifier (`evt_` prefix). Use these values as this endpoint's `conversation_id` and `event_id`, with credentials for the user identified by `data.user_id`, to retrieve the notified event. See the [webhook payload contract](/api-reference/conversations-api/proactive-notifications/receive-via-outbound-webhook#webhook-payload) for the envelope and field definitions.

Reference: https://docs.moveworks.com/api-reference/conversations-api/conversations-api/conversations/get-event

## 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) — A base-62 identifier prefixed by a short resource type
- `event_id` (string, required) — A base-62 identifier prefixed by a short resource type

### Headers

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

## Response

### 200

Event retrieved successfully

- `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. An event carries a `message`, category-specific details, or both. Read `message` when present, and the details member that matches the event's `category` when present.
- `category` (enum, optional) — Where the event came from, so you can apply a consistent treatment per category without parsing the message. Absent when the event is unclassified. Treat an absent or unrecognized value as an ordinary assistant message. New values are added over time and existing values are never renamed or repurposed. The same value is sent as `data.category` on the matching `CONVERSATION_RESPONSE_RECEIVED` webhook.
  - Allowed values: `USER_CONSENT_AUTH`, `LIVE_AGENT`

## Errors

### 400 Bad Request Error

Bad request - A malformed conversation or event identifier, or "-" as the conversation_id

- `error` (InvalidEventRequestErrorResponseError, required)

### 401 Unauthorized Error

Unauthorized - Invalid or missing authentication

- `error` (UnauthorizedErrorResponseError, required)

### 403 Forbidden Error

Forbidden - Invalid assistant

- `error` (ForbiddenErrorResponseError, required)

### 404 Not Found Error

Not found - The event does not exist in this conversation

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

### EventPayload

Event payload. An event carries a `message`, category-specific details, or both. Read `message` when present, and the details member that matches the event's `category` when present.

- `message` (Message, optional) — The message the event carries. Absent for events that only carry category details, for example a live agent session that ends without a message.
- `live_agent_details` (LiveAgentDetails, optional) — Details for an event in the `LIVE_AGENT` category, such as the session ending. May accompany a `message` or arrive on its own. At most one category details member is set on an event, and it matches the event's `category`.
- `user_consent_auth_details` (UserConsentAuthDetails, optional) — Details for an event in the `USER_CONSENT_AUTH` category: which consent operation the event reports. Present on the confirmation, the resumed request and the revoked connection notice. Absent on the message that asks the user to consent, so `AUTHORIZE` always means consent completed.
- `type` (enum, optional, deprecated) — Deprecated. Still set to `MESSAGE_EVENT` whenever `message` is present, for existing clients, and absent for events that carry no message. Check whether `message` is present instead.
  - Allowed values: `MESSAGE_EVENT`

### InvalidEventRequestErrorResponseError

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

### UnauthorizedErrorResponseError

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

### ForbiddenErrorResponseError

- `code` (enum, required)
  - Allowed values: `FORBIDDEN`
- `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)

### 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) — Who authored a message. `USER` is the employee, `ASSISTANT` is the AI Assistant, and `LIVE_AGENT` is a human support agent replying while the conversation is handed off to live chat. `LIVE_AGENT` is the only signal that separates an agent's reply from the assistant's: agent replies arrive through the same message and event resources, so a reader that does not recognise the value keeps working and simply attributes those messages to the assistant.
  - Allowed values: `USER`, `ASSISTANT`, `LIVE_AGENT`
- `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. Absent on `LIVE_AGENT` messages, which are not rated.
- `actions` (list of Action, optional) — Actions a user can take in response to this message, such as buttons or links, in display order. Each entry's `type` selects its payload: `CALLBACK_ACTION` submits `callback_action.callback_id` through the create-response endpoint, `URL_ACTION` opens `url_action.url`, `MODAL_ACTION` carries `modal_action.modal_id`, which you pass to the modal endpoints to render a modal natively, and `HANDOFF_ACTION` opens a client-rendered menu using this message's `handoff` options. Render its `label` as the trigger and keep its position in the actions array. Omit the trigger if the message has no handoff options. Absent on messages with no actions. A `LIVE_AGENT` message carries the action that ends the live chat. Submitting its callback returns the conversation to the assistant and closes the session with the provider.
- `sender_info` (SenderInfo, optional, nullable) — Who to attribute the message to, when that is neither the employee nor the assistant. Present only on messages whose `actor` is `LIVE_AGENT`, for live agent chats through the ServiceNow integration, when agent identity display is enabled for your Moveworks instance and ServiceNow reports the agent's identity. Absent otherwise, including on every agent reply from other live chat providers. When it is absent, the agent's name, if any, arrives inside `content`.
- `handoff` (HandOff, optional, nullable) — Handoff options offered alongside this message: every way the user can reach a human or a ticketing system from this point in the conversation, grouped into the categories a Get Help menu shows as sections. Present only on assistant messages that carry handoff options, such as the Get Help menu or a smart handoff. A `HANDOFF_ACTION` in `actions` opens a menu populated from these options; handoff options can also be present without an inline menu trigger. Absent otherwise.

### LiveAgentDetails

Details for an event in the `LIVE_AGENT` category.

- `session_state` (enum, optional) — State of the live agent session when the event was produced.
  - Allowed values: `ENDED`

### UserConsentAuthDetails

Details for an event in the `USER_CONSENT_AUTH` category.

- `operation_type` (enum, optional) — Which consent operation the event reports.
  - Allowed values: `AUTHORIZE`, `REVOKE`

### 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)
- `type`: `MODAL_ACTION` (MODAL_ACTION)
  - `label` (string, required) — Label associated with the action (e.g., button text).
  - `modal_action` (ModalAction, required)
- `type`: `HANDOFF_ACTION` (HANDOFF_ACTION)
  - `handoff_action` (HandoffAction, required) — Empty payload for a handoff menu trigger. The menu options are carried on the enclosing Message.handoff; this payload contains no URL, callback identifier, or modal identifier.
  - `label` (string, required) — Label to render as the handoff menu trigger.

### SenderInfo

Display identity of a message's author, for an author the API models as neither the employee nor the assistant. Today that is a human support agent on a live chat handoff.

- `display_name` (string, required) — Name to show as the author of the message, as reported by the live chat provider.
- `avatar_url` (string, optional, nullable) — Picture to show beside the name. Absent when the provider reports no image for the agent.

### HandOff

The handoff options attached to an assistant message, grouped into the categories a chat client renders as sections of its Get Help menu.

- `handoff_categories` (list of HandOffCategory, required) — Categories in display order, each carrying the handoff items that belong to it. Render each category as one section of a Get Help menu.

### PlainTextContent

- `text` (string, required) — Plain text content
- `files` (list of File, optional) — Files the user attached to this turn, in the order they were sent. Absent on an assistant message: a file the assistant or a live agent sends arrives as a link inside the text itself.

### 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.
- `purpose` (enum, optional) — Classification of the URL's purpose. USER_CONSENT_AUTH opens a User Consent Authorization flow for a connector. After the user consents, the original request resumes automatically; the client should listen on the events endpoint or webhook for the resumed message in the same conversation, without resending the request. This does not distinguish the underlying authentication mechanism. If purpose is absent, no classification is available. This does not establish that the URL is unrelated to authentication. Clients should treat unknown future values as unclassified. Clients may ignore purpose and continue opening the URL normally.
  - Allowed values: `USER_CONSENT_AUTH`

### ModalAction

- `modal_id` (string, required) — Opaque modal identifier, carried on an assistant message whose action `type` is `MODAL_ACTION`. Pass it to the modal endpoints to render, refresh, and submit the modal.

### HandoffAction

Empty payload for a handoff menu trigger. The menu options are carried on the enclosing Message.handoff; this payload contains no URL, callback identifier, or modal identifier.

### HandOffCategory

A group of handoff items rendered as one section of a Get Help menu.

- `category_id` (string, required) — Opaque identifier for the handoff category, unique within the message.
- `name` (string, required) — Display name for the handoff category.
- `handoff_items` (list of HandOffItem, required) — Handoff items in display order.
- `description` (string, optional, nullable) — Optional description for the handoff category. Absent when the category has none.

### File

A file carried on a message.

- `file_id` (string, required) — Id of the upload, exactly as it was submitted in `chat.files`. Echoed back so a caller can tell which of its own uploads a turn carried; it is not resolvable on its own, which is why `file_name` is returned beside it.
- `file_name` (string, optional) — Name the file was uploaded under. Resolved from the upload rather than from anything the caller submitted, so a replayed conversation reads as the user's turn did.

### 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

### HandOffItem

A single way to hand the conversation off. The `type` field determines which payload is present: `TEXT` carries a block of content the client shows as-is, `ACTION` carries an action the user takes.

- `type`: `TEXT` (TEXT)
  - `item_id` (string, required) — Opaque identifier for the handoff item, unique within the message.
  - `text` (Content, required) — Message content with type discriminator
  - `title` (string, required) — Display name for the handoff item.
- `type`: `ACTION` (ACTION)
  - `action` (Action, required) — An action a user can take in response to a message. The `type` field determines which action payload is present.
  - `item_id` (string, required) — Opaque identifier for the handoff item, unique within the message.
  - `title` (string, required) — Display name for the handoff item.

## Examples

**Response**

```json
{
  "event_id": "evt_32bt9zRkHcN4tUqYmLd8w",
  "conversation_id": "conv_32bt7BMLhLyVzTUjfi35N",
  "created_at": "2025-01-20T10:02:00Z",
  "event_payload": {
    "message": {
      "message_id": "msg_32bt9yQpVB7fKsEoHr3Tc",
      "conversation_id": "conv_32bt7BMLhLyVzTUjfi35N",
      "response_id": "resp_32bt9xNwGA2dJrCmFq6Sb",
      "actor": "ASSISTANT",
      "content": {
        "type": "COMMONMARK_TEXT",
        "commonmark_text": {
          "text": "You granted me access to **GitHub**. I may be able to search and perform actions in GitHub on your behalf."
        }
      },
      "created_at": "2025-01-20T10:02:00Z",
      "citations": []
    },
    "user_consent_auth_details": {
      "operation_type": "AUTHORIZE"
    },
    "type": "MESSAGE_EVENT"
  },
  "category": "USER_CONSENT_AUTH"
}
```

**SDK Code**

```python Conversations_getEvent_example
import requests

url = "https://api.moveworks.ai/rest/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/events/evt_32bt9WkPqRnEtYsLmXc4v"

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

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

print(response.json())
```

```javascript Conversations_getEvent_example
const url = 'https://api.moveworks.ai/rest/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/events/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_getEvent_example
package main

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

func main() {

	url := "https://api.moveworks.ai/rest/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/events/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_getEvent_example
require 'uri'
require 'net/http'

url = URI("https://api.moveworks.ai/rest/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/events/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_getEvent_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp Conversations_getEvent_example
using RestSharp;

var client = new RestClient("https://api.moveworks.ai/rest/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/events/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_getEvent_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.moveworks.ai/rest/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/events/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()
```