New260+ blocks and 240+ tools are now fully documented
Tool

Convex

Run Convex query and mutation functions via the HTTP API

Call Convex query and mutation functions through the Convex HTTP API. Use this integration to read data from your Convex backend with queries or write data with mutations — directly from a workflow block.

Overview

PropertyValue
Typeconvex
CategoryTool — Database
AuthAPI Key (Authorization: Convex <adminKey>, optional)

Operations

OperationTool IDDescription
Run Queryconvex_run_queryCall a Convex query function and return its result
Run Mutationconvex_run_mutationCall a Convex mutation function to write or update data

Configuration

SettingTypeRequiredDescription
deploymentUrlstringYesYour Convex deployment URL, e.g. https://xxx.convex.cloud
adminKeystring (secret)NoAdmin key for your deployment — required only for admin-only functions. Store as a secret and reference with {{CONVEX_ADMIN_KEY}}
pathstringYesDot/colon-separated function path, e.g. messages:list or tasks:getByUser
argsjsonNoJSON arguments object passed to the function, e.g. { "channel": "general" }

Outputs

Both operations return the same output shape:

FieldTypeDescription
datajsonThe full Convex response object, containing status and value fields
metadatajsonResponse metadata object
metadata.statusstringConvex execution status — "success" or "error"

Example

[Starter] → [Convex: Run Query] → [Agent: summarise the results]

Connect a Convex block configured with {{CONVEX_DEPLOYMENT_URL}} and {{CONVEX_ADMIN_KEY}}, set the function path to messages:list, and pass { "channel": "{{starter.channel}}" } as arguments. The query result lands in {{convex.data}} — pass that to an Agent block to summarise or act on the returned records.

Tips

  • Admin key is optional — omit it if your query or mutation function is publicly accessible. Only include adminKey for functions guarded by Convex admin-only access.
  • Function path format follows Convex conventions: <module>:<exportName>, e.g. tasks:create or users:getById. Check your Convex dashboard or source files for exact paths.
  • Use Run Query for reads, Run Mutation for writes — Convex enforces this distinction at the API level; calling a mutation via the query endpoint (or vice versa) will return an error.
  • Pass structured args as JSON — the args field accepts any valid JSON object. Reference upstream block outputs with {{blockName.field}} to build dynamic argument payloads.