ably

Direct Message

Handle direct messages from the plugin, bypassing Ably for large payloads. Supports image attachments for vision-based design generation.

post/ably/directMessage

Request

  • Base URL: https://api.fluvara.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.fluvara.ai/ably/directMessage
  • Auth: HTTP bearer

Request body

contentstring required

The user's message content

xml_datastring nullable

XML context from Figma

conversation_idinteger required

The conversation ID

imagesobject[] nullable

List of attached images with base64 data or URLs

html_fileobject nullable

Attached HTML file with content, filename, and metadata

urlstring nullable

URL to fetch and process for design generation

Example request

{
  "content": "Create a dashboard based on this mockup",
  "conversation_id": 123,
  "html_file": {
    "content": "<html>...</html>",
    "filename": "page.html",
    "size": 5000,
    "type": "html"
  },
  "images": [
    {
      "data": "data:image/png;base64,...",
      "filename": "mockup.png",
      "type": "base64"
    }
  ],
  "url": "https://example.com/design",
  "xml_data": "<xml>...</xml>"
}

Response

Successful Response

statusstring required
messagestring required
conversation_idinteger required
processing_timenumber nullable
metadataobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.