# Get a script or search template **GET /_scripts/{id}** Retrieves a stored script or search template. ## Required authorization * Cluster privileges: `manage` ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Api key auth - Basic auth - Bearer auth ## Parameters ### Path parameters - **id** (string) The identifier for the stored script or search template. ### Query parameters - **master_timeout** (string) The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. It can also be set to `-1` to indicate that the request should never timeout. ## Responses ### 200 #### Body: application/json (object) - **_id** (string) - **found** (boolean) - **script** (object) [Powered by Bump.sh](https://bump.sh)