# Example 1 - Node with Transaction Mode (HTTP)

This example demonstrates a basic FlowSync configuration using an HTTP node. The service is configured to use `transaction` mode. Since no MQTT messages are published to the `/tres` topic in this setup, requests will time out after the default timeout period.

* To call the HttpNode in the example below, run the following command:

{% code lineNumbers="true" %}

```yaml
curl --insecure \
--location 'https://127.0.0.1/data/flowsync/example1' \
--header 'Authorization: Bearer <replace with your token>'
```

{% endcode %}

For more information on the FlowSync configuration properties, see [Cybus:Node](https://docs.cybus.io/documentation/service-commissioning-files/resources/cybus-node#operation).

<figure><img src="https://2355450750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGzXPesVecsUM1eHBfwea%2Fuploads%2Fgit-blob-d721de3fd21aa4dca450859a17d8d0d1fd817242%2Fflowsync-example-1.png?alt=media" alt=""><figcaption></figcaption></figure>

{% file src="<https://2355450750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGzXPesVecsUM1eHBfwea%2Fuploads%2Fgit-blob-c88c0a94951893de241d3c479a294fbe8248af84%2Fflowsync-example-1-node-with-transaction-mode-http.yaml?alt=media>" %}

{% code title="flowsync-example-1-node-with-transaction-mode-http.yaml" lineNumbers="true" %}

```yaml
description: FlowSync - Example 1

metadata:
  name: example 1
  version: 1.0.0

resources:
  testServer:
    type: Cybus::Server::Http
    properties:
      basePath: /FlowSync

  exampleNode:
    type: Cybus::Node::Http
    properties:
      parent: !ref testServer
      method: GET
      route: /example1
      operation: transaction
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cybus.io/documentation/services/flowsync/flowsync-example-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
