{"openapi":"3.1.0","info":{"title":"Viewmax Agent API","version":"1.0.0","description":"Agent-facing MCP transport, OAuth discovery, and scoped authorization for Viewmax."},"servers":[{"url":"https://www.viewmax.io"}],"externalDocs":{"description":"Viewmax developer resources","url":"https://www.viewmax.io/developers"},"paths":{"/api/mcp":{"post":{"summary":"Call the Viewmax MCP server","description":"MCP Streamable HTTP transport. Tool definitions and their input schemas are available through the MCP tools/list method.","operationId":"callViewmaxMcp","security":[{"oauth2":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"A JSON-RPC 2.0 MCP request.","additionalProperties":true}}}},"responses":{"200":{"description":"MCP response or server-sent event stream.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}},"text/event-stream":{"schema":{"type":"string"}}}},"401":{"description":"OAuth authorization is required. Follow the resource_metadata URL in WWW-Authenticate."},"403":{"description":"The access token does not include the scope required by the requested tool."}}}},"/api/chatgpt-mcp":{"post":{"summary":"Call the Viewmax ChatGPT MCP server","description":"MCP Streamable HTTP transport. Tool definitions and their input schemas are available through the MCP tools/list method.","operationId":"callViewmaxChatGptMcp","security":[{"oauth2":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"A JSON-RPC 2.0 MCP request.","additionalProperties":true}}}},"responses":{"200":{"description":"MCP response or server-sent event stream.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}},"text/event-stream":{"schema":{"type":"string"}}}},"401":{"description":"OAuth authorization is required. Follow the resource_metadata URL in WWW-Authenticate."},"403":{"description":"The access token does not include the scope required by the requested tool."}}}}},"components":{"securitySchemes":{"oauth2":{"type":"oauth2","description":"OAuth 2.1 authorization code flow with PKCE. Request the smallest set of tool scopes needed.","flows":{"authorizationCode":{"authorizationUrl":"https://www.viewmax.io/api/auth/mcp/authorize","tokenUrl":"https://www.viewmax.io/api/auth/mcp/token","refreshUrl":"https://www.viewmax.io/api/auth/mcp/token","scopes":{"openid":"Authenticate the Viewmax account.","profile":"Read the basic account profile.","email":"Read the account email address.","offline_access":"Refresh access without another interactive sign-in.","media:upload":"Upload and import media into the Viewmax library.","image:generate":"Generate images with Viewmax.","video:generate":"Generate videos and ads with Viewmax.","voice:change":"Change the voice in existing audio or video.","voiceover:generate":"Generate spoken voiceovers from text.","audio:generate":"Generate music and other audio.","generation:read":"Read generation status, history, models, and credit information."}}}}}}}