--- title: Scripted REST API examples description: Mutliple examples are available demonstrating how to create and use scripted REST APIs. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/rest-api-explorer/c\_ScriptedRESTAPIExamples.html release: australia product: REST API Explorer classification: rest-api-explorer topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Scripted REST APIs, REST APIs, Web services, API implementation, API implementation and reference] --- # Scripted REST API examples Mutliple examples are available demonstrating how to create and use scripted REST APIs. - **[Scripted REST API example - script samples](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/r_ScriptedRESTServiceScriptExamples.md)** These examples demonstrate how to create various resource scripts for a scripted REST API. - **[Scripted REST API example - streaming vs object serialization](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/r_ScriptedRESTExampleStreamVsLO.md)** These examples demonstrate how to send a JSON response using streaming and using default object serialization. - **[Scripted REST API example - streaming file attachments](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/r_ScriptedRESTExampleStreamAttach.md)** This example demonstrates how to send an image attachment to a requesting user as a binary stream. **Parent Topic:**[Scripted REST APIs](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_CustomWebServices.md)