> For the complete documentation index, see [llms.txt](https://docs.api.animemoe.us/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.api.animemoe.us/discord/refresh-url.md).

# Refresh URL

<figure><img src="https://2627163838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlhqinvArnHxpxj15lTp1%2Fuploads%2FXondJsyWoKqYmhdHH3YB%2Fimage.png?alt=media&amp;token=99869122-4e6a-405f-847f-35630707f11b" alt=""><figcaption></figcaption></figure>

## Overview

This API provides a simple redirection service that utilizes the Discord API to refresh URLs. If the URL is successfully refreshed, the user will be redirected to the new URL; otherwise, they will be redirected to a default fallback URL.

## Endpoints

`GET` [`https://api.animemoe.us/discord/refresh/`](https://api.animemoe.us/discord/refresh/)

This endpoint handles the redirection based on the provided URL.

### Request Parameters

* `url` (string): The original URL that needs to be refreshed. This parameter is required.

### Response

* **Success**: Redirects to the refreshed URL.
* **Failure**: If the URL cannot be refreshed, redirects to the default fallback URL.

## Example Request

```ini
https://api.animemoe.us/discord/refresh?url=https://cdn.discordapp.com/attachments/858938620425404426/1275631907933261897/animemoeus-waifu.jpg
```

## Example Response

### **Success:**

* Redirects to the refreshed URL

### **Failure**:

* Redirects to the fallback URL
