> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get one AdminAgentMessage

> Retrieve a single AdminAgentMessage record by its Id.

An individual message within an admin agent session conversation. Messages can be from the user, assistant, system, or tool calls/results. Each message tracks its role, content, and any tool interactions including tool name, arguments, and results. Token usage is tracked per message for cost monitoring.

## Authentication

> [!NOTE]
>
> This endpoint requires OAuth2 authentication. Include a valid bearer token in the `Authorization` header.
> The authenticated user must be a full unrestricted administrator or have the **`AdminAgentMessage-Read`** role.

## Path Parameters

**id** `integer` *required*

The Id of the AdminAgentMessage record to retrieve.

## Code Examples

```bash cURL theme={null}
curl -X GET \
  "https://spaces.nexudus.com/api/sys/adminagentmessages/87654321" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

```javascript JavaScript theme={null}
const response = await fetch(
  'https://spaces.nexudus.com/api/sys/adminagentmessages/87654321',
  {
    headers: {
      'Authorization': 'Bearer YOUR_TOKEN'
    }
  }
);

const record = await response.json();
```

```python Python theme={null}
import requests

response = requests.get(
    'https://spaces.nexudus.com/api/sys/adminagentmessages/87654321',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN'
    }
)

record = response.json()
```

## Response

### 200

**AdminAgentSessionId** `integer`

ID of the admin agent session linked to this message.

**Role** `integer`

Role of the message sender: User, Assistant, System, ToolCall, or ToolResult.

**Content** `string`

The text content of the message.

**ToolName** `string`

Name of the tool that was called or produced a result.

**ToolArguments** `string`

JSON-formatted arguments passed to the tool.

**ToolResult** `string`

JSON-formatted result returned by the tool.

**TokensUsed** `integer`

Number of LLM tokens consumed by this message.

**AuthorId** `integer`

User who wrote the message (people only).

**AuthorFullName** `string`

Display value for Author.FullName..

**AuthorEmail** `string`

Display value for Author.Email..

**Target** `integer`

Agent when the assistant was asked to answer, Chat when the message was for the people in the conversation.

**Mentions** `string`

JSON with the users and/or agent mentioned in the message.

**Id** `integer`

Unique record identifier.

**UniqueId** `string`

UUID of the record.

**CreatedOn** `string`

Date and time the record was created (ISO 8601).

**UpdatedOn** `string`

Date and time the record was last updated (ISO 8601).

**UpdatedBy** `string`

Email of the user who last updated this record.

**IsNew** `boolean`

Whether the record was recently created.

**SystemId** `string`

External system identifier.

```json Example Response theme={null}
{
  "AdminAgentSessionId": 0,
  "Role": 0,
  "Content": null,
  "ToolName": null,
  "ToolArguments": null,
  "ToolResult": null,
  "TokensUsed": 0,
  "AuthorId": null,
  "AuthorFullName": null,
  "AuthorEmail": null,
  "Target": 0,
  "Mentions": null,
  "Id": 87654321,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "CreatedOn": "2025-01-10T08:00:00Z",
  "UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "UpdatedBy": "admin@example.com",
  "IsNew": false,
  "SystemId": null,
  "ToStringText": "AdminAgentMessage Example",
  "LocalizationDetails": null,
  "CustomFields": null
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.