> For the complete documentation index, see [llms.txt](https://docs.cosmocloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cosmocloud.io/templates/fetch-upload-media-apis.md).

# Fetch / Upload Media APIs

You can quickly start creating the APIs and models with the bucket name, utilising the starter Template. This helps you in auto generating convention based APIs and models for your object storage with greater productivity

### Steps to create APIs from Template

* &#x20;Navigate to the APIs listing page from Application Layer -> APIs.&#x20;
* &#x20;Click on the **Create API** button on the top right corner.
* Select the **Browse Template** option from the dialogue box.
* Select the **Fetch / Upload Media APIs** option.
* &#x20;Enter the **Storage account name**.
* Click on finish to generate the starter APIs and models.

{% hint style="info" %}
You can then customise and edit any APIs that are created via Templates

[*How to customise APIs*](/resources/apis.md)
{% endhint %}

The starter template that Cosmocloud provides contains three methods and models.

Initially, APIs and models will be created in ‘Draft’ state. You can edit them in the Workflow builder to add more customisations.

### UPLOAD

* This method allows you to upload your files in your object storage and returns a URL with fields to validate your file.
* This method also contains an optional expiresIn | Expiration time for presigned URL (in seconds)
* This internally uses a *Create Presigned URL node* in the API, which you can go and tweak if needed.

### GET

* This method allows you to retrieve your files from your object storage and returns a URL
* This method also contains an optional expiresIn | Expiration time for presigned URL (in seconds)

### DELETE

* This method allows you to delete your files from your object storage.

### Conclusion

If you want to know more about utilizing object storage APIs check out :

* [Using Object storage API to store file](/examples-how-to/how-to-upload-download-media-in-object-storage.md#using-object-storage-api-to-store-file)  &#x20;
* [Retrieving files from Object storage](/examples-how-to/how-to-upload-download-media-in-object-storage.md#retrieving-files-from-object-storage)
* [Deleting files from Object storage](/examples-how-to/how-to-upload-download-media-in-object-storage.md#deleting-files-from-object-storage)

<br>

<br>

\ <br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.cosmocloud.io/templates/fetch-upload-media-apis.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
