> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/developer-tools-and-resources/api-reference/send-data-using-the-external-data-apis/sends-data-from-an-external-source.md).

# Sends Data from an External Source

{% openapi src="/files/kftHxZWtXnpkSYtUDQzF" path="/external/{policyId}/{blockTag}" method="post" %}
[swagger (2).yaml](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-44dc706612e302ac5e67081da4884ee3912115f7%2Fswagger%20\(2\).yaml?alt=media)
{% endopenapi %}

<mark style="color:green;">`POST`</mark> `/external/{policyId}/{blockTag}/sync-events`

Sends Data from an external source

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

<table><thead><tr><th width="248.7265625">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>policyId</td><td>string</td><td>Policy ID</td></tr><tr><td>blockTag</td><td>string</td><td>Block Tag</td></tr><tr><td>history</td><td>string</td><td>History</td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="200" %}

```json5
description: Successful operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseDTOWithSyncEvents'
```

{% endtab %}

{% tab title="500" %}

```json5
description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorDTO'
```

{% endtab %}
{% endtabs %}

<mark style="color:green;">`POST`</mark> `/external/sync-events`

Sends Data from External Source

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| `history` | string | History     |

**Response**

{% tabs %}
{% tab title="200" %}

```json5
description: Successful operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseDTOWithSyncEvents'
```

{% endtab %}

{% tab title="500" %}

```json5
description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorDTO'
```

{% endtab %}
{% endtabs %}
