---
title: "Import an image from a URL"
url: https://docs.gleap.ai/en/reference/rest-api/upload-image-from-url
method: POST
path: "/uploads/from-url"
api: "API Reference"
tag: "Uploads"
operationId: "UploadImageFromUrl"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Import an image from a URL

`POST https://api.gleap.io/v3/uploads/from-url`

Import an image that is already hosted at a publicly reachable http(s) URL. The server downloads the image, verifies it really is one (PNG, JPEG, GIF, WebP, SVG or BMP; maximum 100 MB), stores a copy on the Gleap CDN, and returns the new permanent `fileUrl`. Useful for migrating help center article images in bulk when the files are already hosted elsewhere — import each image, then reference the returned URLs in the article `content`. URLs that resolve to private or internal network addresses are rejected.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Headers

- `project` (string, required)

## Request body (`application/json`, required)

- `url` (string, required): Publicly reachable http(s) URL of the image to import.

## Example request

```bash
curl --request POST \
  --url https://api.gleap.io/v3/uploads/from-url \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<url>"
}'
```

## Responses

### 200 (`application/json`)

Ok

- `success` (boolean, required)
- `fileUrl` (string, required): Permanent public URL of the stored file on the Gleap CDN.

```json
{
  "success": true,
  "fileUrl": "string"
}
```
