docs
EnglishChatigram website ↗Open Chatigram
Recipes

Return a JSON response

Create a protected HTTP Endpoint workflow with a single HTTP Response node and inspect the real response.

HTTP response starter Expand a node to see its configuration
  • TRIGGERHTTP Endpoint

    Example configuration

    {
      "secretKey": "",
      "authEnabled": true,
      "extractors": []
    }
      • respondHTTP Response

        Example configuration

        {
          "statusCode": 200,
          "headers": [],
          "body": {
            "$tag": "Json",
            "value": {
              "$tag": "Object",
              "properties": [
                {
                  "key": "message",
                  "value": {
                    "$tag": "String",
                    "value": [
                      {
                        "$tag": "Constant",
                        "value": "Hello from Chatigram."
                      }
                    ]
                  }
                }
              ]
            }
          }
        }

This diagram follows the downloadable workflow. Edit and run it in Chatigram.

Plan availability #

Feature Free Starter Pro Enterprise
Active workflows 3 10 45 Unlimited

Allowances follow the published Chatigram pricing page. Your organization’s Billing & Plans screen confirms its subscription and current usage. Plans can change. Plan information reviewed 2026-11-10.

What this workflow does #

The HTTP Endpoint trigger accepts the configured request. HTTP Response returns status 200 and a small JSON object containing a message.

The example deliberately leaves the trigger secret empty and keeps request protection enabled. Set a fresh secret in the inspector before enabling the workflow; do not disable protection just to bypass the required setup.

Configure your endpoint #

Import the example, open the trigger, and generate or set your own secret. Save to obtain the endpoint URL. Keep the URL and secret private where appropriate for your use case.

Open respond to inspect the status and JSON body. The body is built with Chatigram’s structured JSON editor, so the downloadable definition contains the editor’s JSON-value structure rather than a raw string.

Test the result #

Enable the reviewed workflow and copy the request example shown in your own trigger inspector. Send the request with its required header and verify the response:

JSON example
{
  "message": "Hello from Chatigram."
}

Check Workflow Activity as well as the caller’s response. If an error occurs, confirm that you used your own saved endpoint and current secret.

Extend the response #

Add response extraction to the trigger if you need request data as variables. Add your work before the response node and return only the fields the caller needs.

For waiting or long-running tasks, read HTTP request behavior before assuming the caller receives a synchronous final result.

READY TO CUSTOMIZE

Try this in Chatigram

Keep request protection enabled. Generate or set a fresh secret in the trigger inspector before enabling, save, and use your own endpoint URL and secret. The sample contains no usable credential.

Download JSON
View workflow JSON
Workflow JSON
{
  "format": "chatigram-workflow",
  "version": 1,
  "metadata": {
    "sourceName": "HTTP response starter",
    "importHelp": {
      "note": "Keep request protection enabled. Generate or set a fresh secret in the trigger inspector before enabling, save, and use your own endpoint URL and secret. The sample contains no usable credential."
    }
  },
  "workflow": {
    "instruction": null,
    "multiLanguageSupport": null,
    "properties": [],
    "trigger": {
      "$tag": "Trigger",
      "type": "HTTP_ENDPOINT",
      "data": {
        "secretKey": "",
        "authEnabled": true,
        "extractors": []
      }
    },
    "nodes": [
      {
        "$tag": "Node",
        "id": "d0c00000-0000-4000-8000-000000000001",
        "name": "respond",
        "parentId": null,
        "branchIndex": 0,
        "type": "HTTP_RESPONSE",
        "data": {
          "statusCode": 200,
          "headers": [],
          "body": {
            "$tag": "Json",
            "value": {
              "$tag": "Object",
              "properties": [
                {
                  "key": "message",
                  "value": {
                    "$tag": "String",
                    "value": [
                      {
                        "$tag": "Constant",
                        "value": "Hello from Chatigram."
                      }
                    ]
                  }
                }
              ]
            }
          }
        }
      }
    ],
    "gotos": []
  }
}
Keep building.Need help with this? Explore troubleshooting ↗

Find an answer. Try “welcome workflow”, “database”, or “Telegram”.