Action testing is the fastest way to validate a payload before placing it into a workflow graph. Use it to debug schema errors, connector requirements, and provider failures without running the full workflow.

Action test loop
selectshape inputvalidated Discover action GET /v1/actions or action reference Inspect schema Required fields, connector, output shape Test payload POST /v1/actions/:type/test Add to workflow Use validated payload and output paths

Inspect Available Actions

bash
curl "https://api.b3os.org/v1/actions" \ -H "Authorization: Bearer YOUR_API_KEY"

To inspect one action:

bash
curl "https://api.b3os.org/v1/actions/send-email" \ -H "Authorization: Bearer YOUR_API_KEY"

Test an Action

bash
curl -X POST "https://api.b3os.org/v1/actions/send-email/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "to": "alerts@example.com", "subject": "B3OS test", "text": "This is a test action payload." } }'

Connector-Aware Test

Actions that need account or wallet access should receive a connector reference. The connector holds the credentials; the action input stays focused on the business payload.

bash
curl -X POST "https://api.b3os.org/v1/actions/send-telegram-message/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "connector": { "type": "telegram-bot", "id": "conn_telegram_bot" }, "inputs": { "chatId": "123456789", "text": "B3OS action test" } }'

For actions that can move funds, start with simulation, dust-size amounts, or a controlled test wallet. Confirm chain ID, token decimals, recipient, and approval behavior before publishing a live workflow.

When to Use Each Endpoint

EndpointUse it for
GET /v1/actionsDiscover catalog actions and high-level details.
GET /v1/actions/{type}Fetch one action schema.
GET /v1/logic-actionsDiscover workflow-native control-flow actions.
POST /v1/actions/{type}/testValidate inputs and connector requirements before adding a node.
POST /v1/actions/{type}/runExecute a single action intentionally outside a workflow run.

Read the Action Reference

Action catalog

Schema-level reference for catalog actions.

Learn More
Built-in actions

Utility actions such as logging, webhook delivery, formatting, delay, and managed data queries.

Learn More
Ask a question... ⌘I