Spaces

Create a node in a space (canvas)

Create a node in a space (canvas). For AI generator nodes (ai-image-gen, ai-text-gen, ai-video-gen, ai-static-gen) you can preload the prompt/params in config; the node stays in draft and generation is triggered later. For type email pass config.email = {kind: "campaign"|"flow_message", id}; title and content are filled from that email. Returns the created node id (use it in connect_space_nodes).

post/api/v1/create_space_node

Request

  • Base URL: https://api.pymaia.com
  • URL: https://api.pymaia.com/api/v1/create_space_node
  • Auth: HTTP bearer

Request body

space_idstring required
type'brief' | 'text' | 'image' | 'video' | 'audio' | 'document' | 'note' | 'group' | 'ai-text-gen' | 'ai-image-gen' | 'ai-video-gen' | 'ai-static-gen' | 'ai-upscaler' | 'ai-assistant' | 'ai-audio-gen' | 'ai-adapt' | 'ai-avatar-gen' | 'ai-video-postprod' | 'ai-variants' | 'publish' | 'transcriptor' | 'remotion-render' | 'reel-project' | 'video-composer' | 'outreach-wait' | 'outreach-email' | 'outreach-dm' | 'outreach-condition' | 'ad-reference' | 'audience' | 'product' | 'signal' | 'post' | 'email' required
titlestring
contentstring
position_xnumber
position_ynumber
configobject
platformstring
source'manual' | 'ai_text' | 'ai_image' | 'ai_video' | 'ai_compose' | 'ai_audio' | 'ai_decompose' | 'remotion' | 'higgsfield' | 'heygen' | 'canva' | 'freepik' | 'upload' | 'ad_library' | 'ad_reference' | 'audience' | 'template' | 'product'

Response

Tool executed successfully

okboolean
resultunknown
duration_msnumber

Changes

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