GET /v1/public/workflows/{id}/widget
Get public widget configuration for a workflow (no auth required)

Path Parameters

id string required path
Workflow ID

Responses

200 OK
application/json
code integer
data object
widget object
Widget contains the public widget configuration with derived trigger values
buttonLabel string
ButtonLabel is the text displayed on the trigger button
chainId integer
ChainID is derived from the trigger's chainId
description string
Description explains what the workflow does
enabled boolean
Enabled controls whether the public widget is active
maxAmount string
MaxAmount is the maximum amount allowed per trigger (in smallest unit)
minAmount string
MinAmount is the minimum amount required to trigger (in smallest unit)
recipientAddress string
RecipientAddress is derived from the trigger's toAddress/contractAddress
title string
Title is the display title for the widget
tokenAddress string
TokenAddress is derived from the trigger's tokenAddress (empty for native token)
workflowId string
WorkflowID is the workflow identifier
workflowName string
WorkflowName is the display name of the workflow
message string
requestId string
404 Not Found
curl -X GET 'https://api.example.com/v1/public/workflows/string/widget' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://api.example.com/v1/public/workflows/string/widget', {  method: 'GET',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://api.example.com/v1/public/workflows/string/widget', headers=headers)print(response.json())
package mainimport (	"fmt"	"io"	"net/http")func main() {	req, _ := http.NewRequest("GET", "https://api.example.com/v1/public/workflows/string/widget", nil)	req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")	resp, _ := http.DefaultClient.Do(req)	defer resp.Body.Close()	result, _ := io.ReadAll(resp.Body)	fmt.Println(string(result))}
200 Response
{  "code": 200,  "data": {    "widget": {      "buttonLabel": "<string>",      "chainId": 123,      "description": "<string>",      "enabled": true,      "maxAmount": "<string>",      "minAmount": "<string>",      "recipientAddress": "<string>",      "title": "<string>",      "tokenAddress": "<string>"    },    "workflowId": "<string>",    "workflowName": "<string>"  },  "message": "success",  "requestId": "abc-123"}
Ask a question... ⌘I