# Refresh URL

<figure><img src="/files/3KMq0QJ3m1KmVYGuyH2s" 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


---

# Agent Instructions: 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:

```
GET https://docs.api.animemoe.us/discord/refresh-url.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
