AgentM Chat

AgentM: Expand the individual API operations to test calls.

API Explorer
GET /api/data/:table
This operation retrieves all rows from the specified table. The response is an array of JSON objects, each representing a row in the table.
GET /api/data/:table/:id
This operation retrieves a single row from the specified table using the provided ID. The response is a JSON object representing the row.
POST /api/data/:table/:id
This operation saves a single row to the specified table. The request should include a JSON object representing the row. The response indicates success.
DELETE /api/data/:table/:id
This operation deletes a single row from the specified table using the provided ID. The response indicates success.
GET /api/pages
This operation retrieves a list of all available pages. The response is an array of page names.
POST /api/generate/image
This operation generates an image based on a prompt. You can specify the shape and style of the image.
POST /api/generate/completion
This operation generates a text completion based on a prompt. You can optionally specify the temperature for controlling randomness.
POST /api/scripts/:id
This operation executes a script with the specified ID and passes in the provided variables. The response contains the output of the script execution.