# Custom endpoint output such as XML, JSON or HTML

**URL:** <https://community.integray.com/t/custom-endpoint-output-such-as-xml-json-or-html/67>\
**Category:** Handy solutions\
**Tags:** endpoint, output\
**Created:** [June 8, 2023, 10:49am UTC](https://community.integray.com/t/custom-endpoint-output-such-as-xml-json-or-html/67 "2023-06-08T10:49:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomas](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tomas](https://community.integray.com/u/tomas)\
**Post date:** [June 8, 2023, 10:49am UTC](https://community.integray.com/t/custom-endpoint-output-such-as-xml-json-or-html/67/1 "2023-06-08T10:49:11Z")

</div>

In Integray you can use system or custom data schemas for output. However in this case requests will be always returned as JSON arrays. However we have couple of output schema exceptions for the following schemas:

- Endpoint File Output
- Endpoint JSON (single) Output
- Endpoint JSON Output
- Endpoint XML (single) Output
- Endpoint XML Output
- Endpoint HTML Output

Here is the link to Integray help providing details information on how to use it [Lear Integray](https://learn.integray.app/configurationscreen/endpoints/#endpoint-output-custom-data-types).

---

<div class="post-metadata">

**Author:** ![Michal](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@Michal](https://community.integray.com/u/Michal)\
**Post date:** [June 9, 2023, 7:01am UTC](https://community.integray.com/t/custom-endpoint-output-such-as-xml-json-or-html/67/2 "2023-06-09T07:01:24Z")

</div>

Hi Tomas,

I would like to ask in which format Endpoint File Output returns the concrete file? Is the return format in Base64 represented as text or Integray serves file directly for download within user’s browser?

Thanks

---

<div class="post-metadata">

**Author:** ![tomas](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tomas](https://community.integray.com/u/tomas)\
**Post date:** [June 9, 2023, 7:22am UTC](https://community.integray.com/t/custom-endpoint-output-such-as-xml-json-or-html/67/3 "2023-06-09T07:22:46Z")

</div>

Endpoint File Output is using base64 with definition of filename (including extension).

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/48fadaac03a140211391e580dc074feaedb9568c.png)
