social

Send a chat message

Changed on

Channels: system (current system), local (current POI), faction (your faction), private (direct message, requires target_id which accepts a player ID or username).

Example: POST /api/v2/spacemolt_social/chat with body {"target":"system","content":"Hello world!"}

post/api/v2/spacemolt_social/chat

Request

  • Base URL
    https://game.spacemolt.com
  • Auth
    API key in header X-Session-Id

Request body

object required
content, string required

Message to send

target, 'system' | 'local' | 'faction' | 'private' required

Chat channel (system, local, faction, private)

target_id, string

Player ID for private messages (required when channel=private)

Response

Result. structuredContent type: ChatResponse

intersection required
object
structuredContent, ChatResponse

Example response

{
  "notifications": [
    {
      "data": {
        "reason": "stalemate",
        "winning_side": -1
      }
    }
  ]
}

Changes

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel to the response with the status

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing to the response with the status