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

# Message

> Response type in the GraphQL API.

| Field | Type | Description |
| - | - | - |
| `id` | [`ID!`](/docs/cloud/graphql/types/id) | |
| `conversationId` | [`ID!`](/docs/cloud/graphql/types/id) | |
| `parentId` | [`ID`](/docs/cloud/graphql/types/id) | |
| `seq` | [`Int!`](/docs/cloud/graphql/types/int) | |
| `role` | [`String!`](/docs/cloud/graphql/types/string) | |
| `createdBy` | [`ID`](/docs/cloud/graphql/types/id) | |
| `senderType` | [`String!`](/docs/cloud/graphql/types/string) | Sender kind: user, webhook, service\_account, integration, agent or system. |
| `senderId` | [`ID`](/docs/cloud/graphql/types/id) | Identifier of the sender: the participant or agent for an agent message, otherwise the author. |
| `senderDisplayName` | [`String`](/docs/cloud/graphql/types/string) | |
| `parts` | [`JSON!`](/docs/cloud/graphql/types/json) | |
| `model` | [`String`](/docs/cloud/graphql/types/string) | |
| `runUsage` | [`MessageRunUsage`](/docs/cloud/graphql/types/messagerunusage) | Token usage and cost of the whole run that produced an assistant message, or null when none is recorded. |
| `tokenUsage` | [`JSON`](/docs/cloud/graphql/types/json) | |
| `finishReason` | [`String`](/docs/cloud/graphql/types/string) | |
| `costCredits` | [`String`](/docs/cloud/graphql/types/string) | |
| `status` | [`String!`](/docs/cloud/graphql/types/string) | |
| `editedAt` | [`String`](/docs/cloud/graphql/types/string) | |
| `idempotencyKey` | [`String`](/docs/cloud/graphql/types/string) | |
| `metadata` | [`JSON`](/docs/cloud/graphql/types/json) | |
| `createdAt` | [`String!`](/docs/cloud/graphql/types/string) | |
| `updatedAt` | [`String`](/docs/cloud/graphql/types/string) | |

[All GraphQL types](/docs/cloud/graphql/schema) · [Operations](/docs/cloud/graphql)


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