---
sourceDocument: Australia API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/api-reference

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Scripted REST API examples

# Scripted REST API examples {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Mutliple examples are available demonstrating how to create and use scripted REST
APIs.
* **[Scripted REST API example - script samples](https://servicenow-prod.fluidtopics.net/ZRVDjx_tmOa81zMZ~HAyYw)**   
  These examples demonstrate how to create various resource scripts for a scripted REST API.
* **[Scripted REST API example - streaming vs object serialization](https://servicenow-prod.fluidtopics.net/Mgxx1Fcl9rWe6i0_kXLA5Q)**   
  These examples demonstrate how to send a JSON response using streaming and using default object serialization.
* **[Scripted REST API example - streaming file attachments](https://servicenow-prod.fluidtopics.net/CJrnwQWHTJHK4M6VHztPxQ)**   
  This example demonstrates how to send an image attachment to a requesting user as a binary stream.

