Upwork · JSON Structure

Graphql Message Structure

A message in a contract messaging room

Type: object Properties: 6
FreelancingJobsTalentMarketplaceContractsHiring

Message is a JSON Structure definition published by Upwork, describing 6 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id text createdDateTime authorId authorName roomId

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/upwork/refs/heads/main/json-structure/graphql-message-structure.json",
  "name": "Message",
  "description": "A message in a contract messaging room",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the message",
      "example": "msg-abc123"
    },
    "text": {
      "type": "string",
      "description": "The message text content",
      "example": "Hi, let's discuss the project requirements"
    },
    "createdDateTime": {
      "type": "datetime",
      "description": "When the message was sent",
      "example": "2025-03-15T14:30:00Z"
    },
    "authorId": {
      "type": "string",
      "description": "ID of the message author",
      "example": "user-12345"
    },
    "authorName": {
      "type": "string",
      "description": "Name of the message author",
      "example": "Jane Smith"
    },
    "roomId": {
      "type": "string",
      "description": "ID of the messaging room",
      "example": "room-xyz789"
    }
  }
}