{ "info": { "_postman_id": "37529096-3d8e-486a-97f6-28fbda103051", "name": "Amigo Account Functions API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "createdAt": "2026-07-28T01:00:59.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "lastUpdatedBy": "35240", "uid": "35240-37529096-3d8e-486a-97f6-28fbda103051" }, "item": [ { "name": "v1", "item": [ { "name": "{workspace_id}", "item": [ { "name": "functions", "item": [ { "name": "{function_name}", "item": [ { "name": "invoke", "item": [ { "name": "Execute a registered platform function", "id": "4cc9a99f-0c9f-4915-bd90-5aa74974498c", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"input\": {\n \"id08\": \"in\",\n \"esse_171\": 67312569\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name/invoke", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name", "invoke" ], "variable": [ { "id": "f9e0a4bd-c903-45c7-a6f1-91f5f56bcfed", "key": "workspace_id", "value": "", "description": "(Required) " }, { "id": "2081213a-7e77-4da2-9249-2e91d9ca7b25", "key": "function_name", "value": "", "description": "(Required) " } ] }, "description": "Execute a registered function and return its rows.\n\nBound parameters are validated against the stored schema; ``ws_id``\nis auto-injected from the request context. Returns the executor's\nshaped response (``rows`` for ``returns=table``, scalar value for\n``returns=scalar``).\n\nPermissions: ``Workspace.view`` (read role and above). Read-only\nkeys are intentionally allowed \u2014 invocation runs a stored,\npre-validated SELECT against catalogs the workspace SP already has\nSELECT on; the gate on what can run is the deploy-time validator\n(read-only invariant), not the per-call permission." }, "response": [ { "id": "927c4e0b-d03f-4a3e-9a40-374c82af9a78", "name": "Successful Response", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"input\": {\n \"id08\": \"in\",\n \"esse_171\": 67312569\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name/invoke", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name", "invoke" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"result\": {\n \"title\": \"Result\"\n },\n \"duration_ms\": 0,\n \"row_count\": 0\n}", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-927c4e0b-d03f-4a3e-9a40-374c82af9a78" }, { "id": "5868490f-2143-41c4-8082-cef6fc3d9630", "name": "Function not found", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"input\": {\n \"id08\": \"in\",\n \"esse_171\": 67312569\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name/invoke", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name", "invoke" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-5868490f-2143-41c4-8082-cef6fc3d9630" }, { "id": "d8b7a3cf-da56-4160-b667-8a3ebd056322", "name": "Bind validation failure", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"input\": {\n \"id08\": \"in\",\n \"esse_171\": 67312569\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name/invoke", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name", "invoke" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-d8b7a3cf-da56-4160-b667-8a3ebd056322" }, { "id": "1f283209-0234-42f1-8d45-cb5733d0c7e6", "name": "Rate limited", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"input\": {\n \"id08\": \"in\",\n \"esse_171\": 67312569\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name/invoke", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name", "invoke" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-1f283209-0234-42f1-8d45-cb5733d0c7e6" } ], "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-4cc9a99f-0c9f-4915-bd90-5aa74974498c" } ], "id": "931f2160-4f49-4e37-abce-0ca05c9a1f69", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-931f2160-4f49-4e37-abce-0ca05c9a1f69" }, { "name": "test", "item": [ { "name": "Test invoke + persist last_test_* telemetry on the row", "id": "6a5e95bf-bb25-4304-8443-4baac7470f15", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"input\": {\n \"id08\": \"in\",\n \"esse_171\": 67312569\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name/test", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name", "test" ], "variable": [ { "id": "dc812758-0f82-409f-ae99-74ce3d75b37a", "key": "workspace_id", "value": "", "description": "(Required) " }, { "id": "b78593ee-c3dc-4221-866f-19b22ff1dd94", "key": "function_name", "value": "", "description": "(Required) " } ] }, "description": "Test invoke \u2014 same as invoke + persists last_test_* on the row.\n\nReturns 200 with ``status=\"fail\"`` + populated ``error`` on\nexecution failure (instead of a 5xx) so the DC has a single\nhappy-path rendering.\n\nPermissions: admin, owner." }, "response": [ { "id": "cc368a86-b998-46d2-a8b6-35980c9f4cf7", "name": "Successful Response", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"input\": {\n \"id08\": \"in\",\n \"esse_171\": 67312569\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name/test", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name", "test" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"result\": {\n \"title\": \"Result\"\n },\n \"duration_ms\": 0,\n \"row_count\": 0,\n \"status\": \"pass\",\n \"error\": \"\",\n \"test_duration_ms\": \"\"\n}", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-cc368a86-b998-46d2-a8b6-35980c9f4cf7" }, { "id": "7dcd6f19-2854-4ebc-88a0-1a71a451d6e0", "name": "Function not found", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"input\": {\n \"id08\": \"in\",\n \"esse_171\": 67312569\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name/test", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name", "test" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-7dcd6f19-2854-4ebc-88a0-1a71a451d6e0" }, { "id": "50a4fc0d-319a-4ede-83a0-c0d910661c63", "name": "Validation Error", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"input\": {\n \"id08\": \"in\",\n \"esse_171\": 67312569\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name/test", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name", "test" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\",\n \"input\": {\n \"title\": \"Input\"\n },\n \"ctx\": {}\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\",\n \"input\": {\n \"title\": \"Input\"\n },\n \"ctx\": {}\n }\n ]\n}", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-50a4fc0d-319a-4ede-83a0-c0d910661c63" }, { "id": "2e687154-c110-4191-8a4a-27ee9c6b8757", "name": "Rate limited", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"input\": {\n \"id08\": \"in\",\n \"esse_171\": 67312569\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name/test", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name", "test" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-2e687154-c110-4191-8a4a-27ee9c6b8757" } ], "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-6a5e95bf-bb25-4304-8443-4baac7470f15" } ], "id": "39421daf-381a-4ad2-b3a0-82881dba1b33", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-39421daf-381a-4ad2-b3a0-82881dba1b33" }, { "name": "Get a registered platform function by name", "id": "13e02825-e2ff-4050-be19-0cc6060792a8", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "id": "0e187648-b496-4ab7-a5e1-df1d862191bc", "key": "workspace_id", "value": "", "description": "(Required) " }, { "id": "49632893-beec-4d46-b2fc-d9b15e48eb2d", "key": "function_name", "value": "", "description": "(Required) " } ] }, "description": "Resolve a function by name.\n\nPermissions: ``Workspace.view`` (read role and above)." }, "response": [ { "id": "8649442b-3701-488b-99a6-b77fdbc60e73", "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"name\": \"\",\n \"function_type\": \"\",\n \"returns_kind\": \"\",\n \"sql_template\": \"\",\n \"description\": \"\",\n \"when_to_use\": \"\",\n \"parameters\": [\n {\n \"deserunt__e8\": false,\n \"doloree\": true\n },\n {\n \"dolore_7\": 45521363,\n \"Excepteur_15\": 44914510\n }\n ],\n \"input_schema\": {\n \"occaecat44\": \"est elit magna\",\n \"ad5\": false,\n \"pariaturc4\": 24844333.2097068,\n \"occaecat_3\": \"mollit enim esse\",\n \"elit0\": true\n },\n \"examples\": [\n {\n \"sed_3\": 48370512\n },\n {\n \"cupidatat_788\": true\n }\n ],\n \"timeout_ms\": 30000,\n \"last_test_at\": \"\",\n \"last_test_status\": \"\",\n \"last_test_error\": \"\",\n \"last_test_duration_ms\": \"\",\n \"deployed_at\": \"\",\n \"deployed_by\": \"\"\n}", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-8649442b-3701-488b-99a6-b77fdbc60e73" }, { "id": "375fb272-10ca-4e00-9262-39f1bbbbeeee", "name": "Function not found", "originalRequest": { "method": "GET", "header": [ { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-375fb272-10ca-4e00-9262-39f1bbbbeeee" }, { "id": "631c808f-5ee5-4080-a5ef-12656d00ebc0", "name": "Validation Error", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\",\n \"input\": {\n \"title\": \"Input\"\n },\n \"ctx\": {}\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\",\n \"input\": {\n \"title\": \"Input\"\n },\n \"ctx\": {}\n }\n ]\n}", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-631c808f-5ee5-4080-a5ef-12656d00ebc0" }, { "id": "4f12b77d-bf47-497b-8e20-3120cf1789c4", "name": "Rate limited", "originalRequest": { "method": "GET", "header": [ { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-4f12b77d-bf47-497b-8e20-3120cf1789c4" } ], "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-13e02825-e2ff-4050-be19-0cc6060792a8" }, { "name": "Deploy (validate + upsert) a platform function", "id": "4a1fedb8-fba5-48a0-b6fe-9c80401e2385", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"xvd3n\",\n \"description\": \"\",\n \"body\": \"\",\n \"when_to_use\": \"\",\n \"function_type\": \"sql\",\n \"returns\": \"table\",\n \"returns_type\": \"string\",\n \"parameters\": [\n {\n \"name\": \"v\",\n \"type\": \"boolean\",\n \"description\": \"\",\n \"default\": \"\"\n },\n {\n \"name\": \"f1j\",\n \"type\": \"number\",\n \"description\": \"\",\n \"default\": \"\"\n }\n ],\n \"returns_columns\": [\n {\n \"name\": \"m91kk\",\n \"type\": \"number\",\n \"description\": \"\"\n },\n {\n \"name\": \"sj26b\",\n \"type\": \"boolean\",\n \"description\": \"\"\n }\n ],\n \"timeout_ms\": 30000,\n \"examples\": [\n {\n \"input\": {\n \"occaecat_cd\": 2965610\n },\n \"output\": {\n \"title\": \"Output\"\n },\n \"description\": \"\"\n },\n {\n \"input\": {\n \"dolor_d\": \"ullamco dolor\",\n \"ad0\": -28207049,\n \"Duis7\": -31161291,\n \"labore_9cc\": -23291260,\n \"aliqua_48c\": \"incididunt\"\n },\n \"output\": {\n \"title\": \"Output\"\n },\n \"description\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "id": "b17718af-a5e3-4fdf-b438-b664e1023294", "key": "workspace_id", "value": "", "description": "(Required) " }, { "id": "53a59023-f2a9-4121-b983-94f3c68db050", "key": "function_name", "value": "", "description": "(Required) " } ] }, "description": "Validate + upsert a platform function row.\n\nAtomic: validation + (python/udtf only) UC UDF materialization +\nupsert into ``platform.functions`` happen as one logical operation.\nRepeat deploys against the same ``(workspace, name)`` replace the\nrow in place and clear stale ``last_test_*`` telemetry.\n\nThe function name comes from the URL path; the request body's\n``name`` field must match or a 400 is raised. The URL is the\nauthoritative source.\n\nPermissions: admin, owner." }, "response": [ { "id": "3f103100-e286-4f12-b6a4-8a551749e4a7", "name": "Successful Response", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"xvd3n\",\n \"description\": \"\",\n \"body\": \"\",\n \"when_to_use\": \"\",\n \"function_type\": \"sql\",\n \"returns\": \"table\",\n \"returns_type\": \"string\",\n \"parameters\": [\n {\n \"name\": \"v\",\n \"type\": \"boolean\",\n \"description\": \"\",\n \"default\": \"\"\n },\n {\n \"name\": \"f1j\",\n \"type\": \"number\",\n \"description\": \"\",\n \"default\": \"\"\n }\n ],\n \"returns_columns\": [\n {\n \"name\": \"m91kk\",\n \"type\": \"number\",\n \"description\": \"\"\n },\n {\n \"name\": \"sj26b\",\n \"type\": \"boolean\",\n \"description\": \"\"\n }\n ],\n \"timeout_ms\": 30000,\n \"examples\": [\n {\n \"input\": {\n \"occaecat_cd\": 2965610\n },\n \"output\": {\n \"title\": \"Output\"\n },\n \"description\": \"\"\n },\n {\n \"input\": {\n \"dolor_d\": \"ullamco dolor\",\n \"ad0\": -28207049,\n \"Duis7\": -31161291,\n \"labore_9cc\": -23291260,\n \"aliqua_48c\": \"incididunt\"\n },\n \"output\": {\n \"title\": \"Output\"\n },\n \"description\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"name\": \"\",\n \"function_type\": \"\",\n \"returns_kind\": \"\",\n \"sql_template\": \"\",\n \"description\": \"\",\n \"when_to_use\": \"\",\n \"parameters\": [\n {\n \"deserunt__e8\": false,\n \"doloree\": true\n },\n {\n \"dolore_7\": 45521363,\n \"Excepteur_15\": 44914510\n }\n ],\n \"input_schema\": {\n \"occaecat44\": \"est elit magna\",\n \"ad5\": false,\n \"pariaturc4\": 24844333.2097068,\n \"occaecat_3\": \"mollit enim esse\",\n \"elit0\": true\n },\n \"examples\": [\n {\n \"sed_3\": 48370512\n },\n {\n \"cupidatat_788\": true\n }\n ],\n \"timeout_ms\": 30000,\n \"last_test_at\": \"\",\n \"last_test_status\": \"\",\n \"last_test_error\": \"\",\n \"last_test_duration_ms\": \"\",\n \"deployed_at\": \"\",\n \"deployed_by\": \"\"\n}", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-3f103100-e286-4f12-b6a4-8a551749e4a7" }, { "id": "4c126df0-cb99-4288-8f2c-1d83ff9220ae", "name": "URL function_name does not match body name", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"xvd3n\",\n \"description\": \"\",\n \"body\": \"\",\n \"when_to_use\": \"\",\n \"function_type\": \"sql\",\n \"returns\": \"table\",\n \"returns_type\": \"string\",\n \"parameters\": [\n {\n \"name\": \"v\",\n \"type\": \"boolean\",\n \"description\": \"\",\n \"default\": \"\"\n },\n {\n \"name\": \"f1j\",\n \"type\": \"number\",\n \"description\": \"\",\n \"default\": \"\"\n }\n ],\n \"returns_columns\": [\n {\n \"name\": \"m91kk\",\n \"type\": \"number\",\n \"description\": \"\"\n },\n {\n \"name\": \"sj26b\",\n \"type\": \"boolean\",\n \"description\": \"\"\n }\n ],\n \"timeout_ms\": 30000,\n \"examples\": [\n {\n \"input\": {\n \"occaecat_cd\": 2965610\n },\n \"output\": {\n \"title\": \"Output\"\n },\n \"description\": \"\"\n },\n {\n \"input\": {\n \"dolor_d\": \"ullamco dolor\",\n \"ad0\": -28207049,\n \"Duis7\": -31161291,\n \"labore_9cc\": -23291260,\n \"aliqua_48c\": \"incididunt\"\n },\n \"output\": {\n \"title\": \"Output\"\n },\n \"description\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-4c126df0-cb99-4288-8f2c-1d83ff9220ae" }, { "id": "cbfb4a7c-aa19-4924-9a23-787a30f3fcf8", "name": "Validation failure (read-only / bind / parity)", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"xvd3n\",\n \"description\": \"\",\n \"body\": \"\",\n \"when_to_use\": \"\",\n \"function_type\": \"sql\",\n \"returns\": \"table\",\n \"returns_type\": \"string\",\n \"parameters\": [\n {\n \"name\": \"v\",\n \"type\": \"boolean\",\n \"description\": \"\",\n \"default\": \"\"\n },\n {\n \"name\": \"f1j\",\n \"type\": \"number\",\n \"description\": \"\",\n \"default\": \"\"\n }\n ],\n \"returns_columns\": [\n {\n \"name\": \"m91kk\",\n \"type\": \"number\",\n \"description\": \"\"\n },\n {\n \"name\": \"sj26b\",\n \"type\": \"boolean\",\n \"description\": \"\"\n }\n ],\n \"timeout_ms\": 30000,\n \"examples\": [\n {\n \"input\": {\n \"occaecat_cd\": 2965610\n },\n \"output\": {\n \"title\": \"Output\"\n },\n \"description\": \"\"\n },\n {\n \"input\": {\n \"dolor_d\": \"ullamco dolor\",\n \"ad0\": -28207049,\n \"Duis7\": -31161291,\n \"labore_9cc\": -23291260,\n \"aliqua_48c\": \"incididunt\"\n },\n \"output\": {\n \"title\": \"Output\"\n },\n \"description\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-cbfb4a7c-aa19-4924-9a23-787a30f3fcf8" }, { "id": "cedbf0d5-de9c-450e-afe1-3c283e9eace2", "name": "Rate limited", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"xvd3n\",\n \"description\": \"\",\n \"body\": \"\",\n \"when_to_use\": \"\",\n \"function_type\": \"sql\",\n \"returns\": \"table\",\n \"returns_type\": \"string\",\n \"parameters\": [\n {\n \"name\": \"v\",\n \"type\": \"boolean\",\n \"description\": \"\",\n \"default\": \"\"\n },\n {\n \"name\": \"f1j\",\n \"type\": \"number\",\n \"description\": \"\",\n \"default\": \"\"\n }\n ],\n \"returns_columns\": [\n {\n \"name\": \"m91kk\",\n \"type\": \"number\",\n \"description\": \"\"\n },\n {\n \"name\": \"sj26b\",\n \"type\": \"boolean\",\n \"description\": \"\"\n }\n ],\n \"timeout_ms\": 30000,\n \"examples\": [\n {\n \"input\": {\n \"occaecat_cd\": 2965610\n },\n \"output\": {\n \"title\": \"Output\"\n },\n \"description\": \"\"\n },\n {\n \"input\": {\n \"dolor_d\": \"ullamco dolor\",\n \"ad0\": -28207049,\n \"Duis7\": -31161291,\n \"labore_9cc\": -23291260,\n \"aliqua_48c\": \"incididunt\"\n },\n \"output\": {\n \"title\": \"Output\"\n },\n \"description\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-cedbf0d5-de9c-450e-afe1-3c283e9eace2" } ], "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-4a1fedb8-fba5-48a0-b6fe-9c80401e2385" }, { "name": "Remove a registered platform function", "id": "4fce7a43-2387-4a8e-8484-0bb720eda6f9", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "id": "20319eb0-e1e3-4385-984d-2009d023552f", "key": "workspace_id", "value": "", "description": "(Required) " }, { "id": "552f1167-d87a-4e7b-a44e-5aa597b316cd", "key": "function_name", "value": "", "description": "(Required) " } ] }, "description": "Remove a registered function row.\n\nPermissions: admin, owner." }, "response": [ { "id": "2dc1cdd5-a774-409e-a2a8-649134e462a3", "name": "Successful Response", "originalRequest": { "method": "DELETE", "header": [ { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-2dc1cdd5-a774-409e-a2a8-649134e462a3" }, { "id": "046b737f-5e71-4498-b0f1-a2721e3be3af", "name": "Function not found", "originalRequest": { "method": "DELETE", "header": [ { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-046b737f-5e71-4498-b0f1-a2721e3be3af" }, { "id": "0d32e1d4-6fae-49b6-83a0-0e0cf1c66559", "name": "Validation Error", "originalRequest": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\",\n \"input\": {\n \"title\": \"Input\"\n },\n \"ctx\": {}\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\",\n \"input\": {\n \"title\": \"Input\"\n },\n \"ctx\": {}\n }\n ]\n}", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-0d32e1d4-6fae-49b6-83a0-0e0cf1c66559" }, { "id": "f62f2d11-9c25-4797-a4b6-53c323c36f0d", "name": "Rate limited", "originalRequest": { "method": "DELETE", "header": [ { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions/:function_name", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions", ":function_name" ], "variable": [ { "key": "workspace_id" }, { "key": "function_name" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-f62f2d11-9c25-4797-a4b6-53c323c36f0d" } ], "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-4fce7a43-2387-4a8e-8484-0bb720eda6f9" } ], "id": "0b4475cf-7374-440f-bfae-53a2af4bc7e9", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-0b4475cf-7374-440f-bfae-53a2af4bc7e9" }, { "name": "List every platform function registered in the workspace", "id": "67605b05-d7bb-49df-b8af-34b265093b38", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions" ], "variable": [ { "id": "fbd57ebc-e040-44cf-94f6-b479086899d8", "key": "workspace_id", "value": "", "description": "(Required) " } ] }, "description": "List every platform function registered in the workspace.\n\nPermissions: ``Workspace.view`` (read role and above)." }, "response": [ { "id": "eace269f-53eb-4df1-990c-d1d80c41f657", "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions" ], "variable": [ { "key": "workspace_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"items\": [\n {\n \"name\": \"\",\n \"function_type\": \"\",\n \"returns_kind\": \"\",\n \"sql_template\": \"\",\n \"description\": \"\",\n \"when_to_use\": \"\",\n \"parameters\": [\n {\n \"consequat4df\": true,\n \"dolor_4\": 84603942\n },\n {\n \"id_de\": 96935747,\n \"irure2\": false\n }\n ],\n \"input_schema\": {\n \"ullamco4_4\": true\n },\n \"examples\": [\n {\n \"dolore8b\": -39550504,\n \"eu3\": \"dolore commodo Excepteur ess\"\n },\n {\n \"nona5c\": -31271866.63118255\n }\n ],\n \"timeout_ms\": 30000,\n \"last_test_at\": \"\",\n \"last_test_status\": \"\",\n \"last_test_error\": \"\",\n \"last_test_duration_ms\": \"\",\n \"deployed_at\": \"\",\n \"deployed_by\": \"\"\n },\n {\n \"name\": \"\",\n \"function_type\": \"\",\n \"returns_kind\": \"\",\n \"sql_template\": \"\",\n \"description\": \"\",\n \"when_to_use\": \"\",\n \"parameters\": [\n {\n \"animc\": false\n },\n {\n \"idc\": false\n }\n ],\n \"input_schema\": {\n \"elit668\": true,\n \"eu2a\": 84486720.06983885\n },\n \"examples\": [\n {\n \"aliqua95\": true,\n \"quis9d\": 92512902,\n \"do_3ae\": true\n },\n {\n \"dolor_19\": -22934245,\n \"cupidatatf98\": -41582807.83013093,\n \"proident_ad9\": -69527354\n }\n ],\n \"timeout_ms\": 30000,\n \"last_test_at\": \"\",\n \"last_test_status\": \"\",\n \"last_test_error\": \"\",\n \"last_test_duration_ms\": \"\",\n \"deployed_at\": \"\",\n \"deployed_by\": \"\"\n }\n ],\n \"count\": \"\"\n}", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-eace269f-53eb-4df1-990c-d1d80c41f657" }, { "id": "63a262c6-d15f-48cd-b32c-b6fc52aee2ee", "name": "Rate limited", "originalRequest": { "method": "GET", "header": [ { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/:workspace_id/functions", "host": [ "{{baseUrl}}" ], "path": [ "v1", ":workspace_id", "functions" ], "variable": [ { "key": "workspace_id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-63a262c6-d15f-48cd-b32c-b6fc52aee2ee" } ], "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-67605b05-d7bb-49df-b8af-34b265093b38" } ], "id": "50e8dfeb-0190-4108-b4df-77f76b2ed50d", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-50e8dfeb-0190-4108-b4df-77f76b2ed50d" } ], "id": "3a4fb9ac-bce5-4884-8cdd-50a9ec28242a", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-3a4fb9ac-bce5-4884-8cdd-50a9ec28242a" } ], "id": "d1ea1c45-266c-43d0-8b2e-ce8f64d6f333", "createdAt": "2026-07-28T01:01:00.000Z", "updatedAt": "2026-07-28T01:01:00.000Z", "uid": "35240-d1ea1c45-266c-43d0-8b2e-ce8f64d6f333" } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "variable": [ { "key": "baseUrl", "value": "https://api.amigo.ai" } ] }