# External

## Sends data from an external source.

> Sends data from an external source.

```json
{"openapi":"3.0.0","info":{"title":"Guardian","version":"3.6.0-rc"},"servers":[{"url":"/api/v1","description":"version 1.0"}],"paths":{"/external/{policyId}/{blockTag}":{"post":{"description":"Sends data from an external source.","operationId":"ExternalApi_receiveExternalDataCustom","parameters":[{"name":"policyId","required":true,"in":"path","description":"Target policy identifier","schema":{"type":"string"}},{"name":"blockTag","required":true,"in":"path","description":"Target block tag in policy","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Object that contains a VC Document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalDocumentDTO"}}}},"responses":{"200":{"description":"Successful operation.","content":{"application/json":{"schema":{"type":"boolean"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorDTO"}}}}},"summary":"Sends data from an external source.","tags":["external"]}}},"components":{"schemas":{"ExternalDocumentDTO":{"type":"object","properties":{"owner":{"type":"string"},"policyTag":{"type":"string"},"document":{"nullable":false,"allOf":[{"$ref":"#/components/schemas/VcDTO"}]}},"required":["owner","policyTag","document"]},"VcDTO":{"type":"object","properties":{"id":{"type":"string","nullable":true},"@context":{"type":"array","items":{"type":"string"}},"type":{"type":"array","items":{"type":"string"}},"credentialSubject":{"additionalProperties":true,"type":"array","items":{"type":"object"}},"issuer":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":true}]},"issuanceDate":{"type":"string"},"proof":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ProofDTO"}]}},"required":["id","@context","type","credentialSubject","issuer","issuanceDate","proof"]},"ProofDTO":{"type":"object","properties":{"type":{"type":"string"},"created":{"type":"string"},"verificationMethod":{"type":"string"},"proofPurpose":{"type":"string"},"jws":{"type":"string"}},"required":["type","created","verificationMethod","proofPurpose","jws"]},"InternalServerErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]}}}}
```

## Sends data from an external source.

> Sends data from an external source.

```json
{"openapi":"3.0.0","info":{"title":"Guardian","version":"3.6.0-rc"},"servers":[{"url":"/api/v1","description":"version 1.0"}],"paths":{"/external":{"post":{"description":"Sends data from an external source.","operationId":"ExternalApi_receiveExternalData","parameters":[],"requestBody":{"required":true,"description":"Object that contains a VC Document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalDocumentDTO"}}}},"responses":{"200":{"description":"Successful operation.","content":{"application/json":{"schema":{"type":"boolean"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorDTO"}}}}},"summary":"Sends data from an external source.","tags":["external"]}}},"components":{"schemas":{"ExternalDocumentDTO":{"type":"object","properties":{"owner":{"type":"string"},"policyTag":{"type":"string"},"document":{"nullable":false,"allOf":[{"$ref":"#/components/schemas/VcDTO"}]}},"required":["owner","policyTag","document"]},"VcDTO":{"type":"object","properties":{"id":{"type":"string","nullable":true},"@context":{"type":"array","items":{"type":"string"}},"type":{"type":"array","items":{"type":"string"}},"credentialSubject":{"additionalProperties":true,"type":"array","items":{"type":"object"}},"issuer":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":true}]},"issuanceDate":{"type":"string"},"proof":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ProofDTO"}]}},"required":["id","@context","type","credentialSubject","issuer","issuanceDate","proof"]},"ProofDTO":{"type":"object","properties":{"type":{"type":"string"},"created":{"type":"string"},"verificationMethod":{"type":"string"},"proofPurpose":{"type":"string"},"jws":{"type":"string"}},"required":["type","created","verificationMethod","proofPurpose","jws"]},"InternalServerErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]}}}}
```

## Sends data from an external source.

> Sends data from an external source.

```json
{"openapi":"3.0.0","info":{"title":"Guardian","version":"3.6.0-rc"},"servers":[{"url":"/api/v1","description":"version 1.0"}],"paths":{"/external/{policyId}/{blockTag}/sync-events":{"post":{"description":"Sends data from an external source.","operationId":"ExternalApi_receiveExternalDataCustomWithSyncEvents","parameters":[{"name":"policyId","required":true,"in":"path","description":"Target policy identifier","schema":{"type":"string"}},{"name":"blockTag","required":true,"in":"path","description":"Target block tag in policy","schema":{"type":"string"}},{"name":"history","required":false,"in":"query","description":"Include execution history in sync events response","schema":{"type":"boolean"}}],"requestBody":{"required":true,"description":"Object that contains a VC Document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalDocumentDTO"}}}},"responses":{"200":{"description":"Successful operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseDTOWithSyncEvents"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorDTO"}}}}},"summary":"Sends data from an external source.","tags":["external"]}}},"components":{"schemas":{"ExternalDocumentDTO":{"type":"object","properties":{"owner":{"type":"string"},"policyTag":{"type":"string"},"document":{"nullable":false,"allOf":[{"$ref":"#/components/schemas/VcDTO"}]}},"required":["owner","policyTag","document"]},"VcDTO":{"type":"object","properties":{"id":{"type":"string","nullable":true},"@context":{"type":"array","items":{"type":"string"}},"type":{"type":"array","items":{"type":"string"}},"credentialSubject":{"additionalProperties":true,"type":"array","items":{"type":"object"}},"issuer":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":true}]},"issuanceDate":{"type":"string"},"proof":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ProofDTO"}]}},"required":["id","@context","type","credentialSubject","issuer","issuanceDate","proof"]},"ProofDTO":{"type":"object","properties":{"type":{"type":"string"},"created":{"type":"string"},"verificationMethod":{"type":"string"},"proofPurpose":{"type":"string"},"jws":{"type":"string"}},"required":["type","created","verificationMethod","proofPurpose","jws"]},"ResponseDTOWithSyncEvents":{"type":"object","properties":{"response":{"type":"object","nullable":true,"additionalProperties":true},"result":{"type":"object","nullable":true,"additionalProperties":true},"steps":{"additionalProperties":true,"type":"array","items":{"type":"object"}}},"required":["response","result","steps"]},"InternalServerErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]}}}}
```

## Sends data from an external source.

> Sends data from an external source.

```json
{"openapi":"3.0.0","info":{"title":"Guardian","version":"3.6.0-rc"},"servers":[{"url":"/api/v1","description":"version 1.0"}],"paths":{"/external/sync-events":{"post":{"description":"Sends data from an external source.","operationId":"ExternalApi_receiveExternalDataWithSyncEvents","parameters":[{"name":"history","required":false,"in":"query","description":"History","schema":{"type":"boolean"}}],"requestBody":{"required":true,"description":"Object that contains a VC Document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalDocumentDTO"}}}},"responses":{"200":{"description":"Successful operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseDTOWithSyncEvents"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorDTO"}}}}},"summary":"Sends data from an external source.","tags":["external"]}}},"components":{"schemas":{"ExternalDocumentDTO":{"type":"object","properties":{"owner":{"type":"string"},"policyTag":{"type":"string"},"document":{"nullable":false,"allOf":[{"$ref":"#/components/schemas/VcDTO"}]}},"required":["owner","policyTag","document"]},"VcDTO":{"type":"object","properties":{"id":{"type":"string","nullable":true},"@context":{"type":"array","items":{"type":"string"}},"type":{"type":"array","items":{"type":"string"}},"credentialSubject":{"additionalProperties":true,"type":"array","items":{"type":"object"}},"issuer":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":true}]},"issuanceDate":{"type":"string"},"proof":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ProofDTO"}]}},"required":["id","@context","type","credentialSubject","issuer","issuanceDate","proof"]},"ProofDTO":{"type":"object","properties":{"type":{"type":"string"},"created":{"type":"string"},"verificationMethod":{"type":"string"},"proofPurpose":{"type":"string"},"jws":{"type":"string"}},"required":["type","created","verificationMethod","proofPurpose","jws"]},"ResponseDTOWithSyncEvents":{"type":"object","properties":{"response":{"type":"object","nullable":true,"additionalProperties":true},"result":{"type":"object","nullable":true,"additionalProperties":true},"steps":{"additionalProperties":true,"type":"array","items":{"type":"object"}}},"required":["response","result","steps"]},"InternalServerErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]}}}}
```


---

# 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://dev.guardian.hedera.com/api-reference-guardian/external.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.
