# Images API

The Images API: upload, read, edit and delete images, one by one or in bulk, with every endpoint's fields, who may call it, its rate limit and a curl example.

## Upload an image. An API key made with a folder or a visibility (`constraints`) puts every upload there, whatever the body says.

`POST /images`

Needs a session token or an upload token. Rate limit: 60 a minute, per address. An app's token or an API key needs the `images:write` scope.

### Form data

Sent as `multipart/form-data`, the file as `file` (image/png, image/jpeg, image/webp, image/gif), at most 16777216 bytes.

| Field | Type | Required | Notes |
|---|---|---|---|
| `p` | `enum` |  | The platform the upload is coming from: the website, or the uploader whose config, script or Shortcut sent it. One of `website`, `sharex`, `ishare`, `flameshot`, `ksnip`, `greenshot`, `shortcut`, `http-shortcuts`. |
| `v` | `integer` |  | The version of the platform or the platform configuration. More than 0. |
| `t` | `integer` |  | The timestamp of the platform configuration. More than 0. |
| `visibility` | `enum` |  | Who sees the image. Left out, the uploader's default visibility (Settings → Upload). One of `Unlisted`, `Public`, `Private`. |
| `folderId` | `number \| null` |  | The id of a folder of yours to put the image in. |
| `autoDeleteAt` | `date-time \| null` |  | When the image deletes itself: a time in the future. Left out, the uploader's auto-delete setting counts from the upload. |

### Response

Returns an [Image](https://hematite.gg/docs/developers/models/image), plus these fields:

| Field | Type | Present | Notes |
|---|---|---|---|
| `shareUrl` | `string` |  |  |
| `deleteUrl` | `string` |  |  |

Error `402`: Storage limit reached.

Error `409`.

```bash
curl -X POST 'https://api.hematite.gg/v1/images' \
  -H "Authorization: $HEMATITE_TOKEN" \
  -F "file=@screenshot.png"
```

Example `data`:

```json
{
  "id": 1,
  "userId": 1,
  "createdAt": "2026-11-10T18:24:00.000Z",
  "updatedAt": "2026-11-10T18:24:00.000Z",
  "title": "Clutch on Ascent",
  "description": "1v4 on the last round",
  "visibility": "Unlisted",
  "folderId": 1,
  "views": 0,
  "downloads": 0,
  "favorite": false,
  "application": "VALORANT",
  "filename": "a1b2c3d4e5f6.png",
  "size": 2457600,
  "width": 1920,
  "height": 1080,
  "nsfw": false,
  "storageId": 1,
  "autoDeleteAt": null,
  "hideUser": false,
  "shield": false,
  "nsfwLockedAt": "2026-11-10T18:24:00.000Z",
  "privateLockedAt": "2026-11-10T18:24:00.000Z",
  "offlineAt": "2026-11-10T18:24:00.000Z",
  "storage": {
    "key": "images/a1b2c3d4e5f6.png"
  },
  "shareId": 1,
  "shareCode": "x7Kp2QmA",
  "likeCount": 0,
  "commentCount": 0,
  "meta": {
    "id": 1,
    "blurHash": "string",
    "dominantColor": "string",
    "palette": null,
    "hasAlpha": false,
    "animated": false,
    "orientation": 0
  },
  "treatment": "string",
  "burn": {
    "secondsPerView": 0,
    "viewsEach": 0,
    "viewsInAll": 0,
    "then": "Blur",
    "viewsUsed": 0,
    "burnedAt": "string"
  },
  "shareUrl": "https://hematite.gg/s/x7Kp2QmA",
  "deleteUrl": "https://hematite.gg/images/1/delete?t=hmd_live_…"
}
```

## Get a single image by ID

`GET /images/:imageId`

Needs a session token. Rate limit: 120 a minute, per address. An app's token or an API key needs the `images:read` scope.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `imageId` | `any` | required | The image's id. |

### Response

Returns an [Image](https://hematite.gg/docs/developers/models/image).

```bash
curl 'https://api.hematite.gg/v1/images/1' \
  -H "Authorization: $HEMATITE_TOKEN"
```

Example `data`:

```json
{
  "id": 1,
  "userId": 1,
  "createdAt": "2026-11-10T18:24:00.000Z",
  "updatedAt": "2026-11-10T18:24:00.000Z",
  "title": "Clutch on Ascent",
  "description": "1v4 on the last round",
  "visibility": "Unlisted",
  "folderId": 1,
  "views": 0,
  "downloads": 0,
  "favorite": false,
  "application": "VALORANT",
  "filename": "a1b2c3d4e5f6.png",
  "size": 2457600,
  "width": 1920,
  "height": 1080,
  "nsfw": false,
  "storageId": 1,
  "autoDeleteAt": null,
  "hideUser": false,
  "shield": false,
  "nsfwLockedAt": "2026-11-10T18:24:00.000Z",
  "privateLockedAt": "2026-11-10T18:24:00.000Z",
  "offlineAt": "2026-11-10T18:24:00.000Z",
  "storage": {
    "key": "images/a1b2c3d4e5f6.png"
  },
  "shareId": 1,
  "shareCode": "x7Kp2QmA",
  "likeCount": 0,
  "commentCount": 0,
  "meta": {
    "id": 1,
    "blurHash": "string",
    "dominantColor": "string",
    "palette": null,
    "hasAlpha": false,
    "animated": false,
    "orientation": 0
  },
  "treatment": "string",
  "burn": {
    "secondsPerView": 0,
    "viewsEach": 0,
    "viewsInAll": 0,
    "then": "Blur",
    "viewsUsed": 0,
    "burnedAt": "string"
  }
}
```

## Update an image. One a moderation decision marked NSFW keeps its mark (`403 IMAGE_NSFW_LOCKED`), and one it made private stays private (`403 IMAGE_PRIVATE_LOCKED`).

`PATCH /images/:imageId`

Needs a session token. Rate limit: 120 a minute, per address. An app's token or an API key needs the `images:write` scope.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `imageId` | `any` | required | The image's id. |

### Body

Send at least one field.

| Field | Type | Required | Notes |
|---|---|---|---|
| `title` | `string` |  | At most 64 characters. |
| `description` | `string` |  | At most 1000 characters. |
| `favorite` | `boolean` |  |  |
| `visibility` | `enum` |  | One of `Unlisted`, `Public`, `Private`. |
| `folderId` | `number \| null` |  | The id of a folder of yours, or `null` for none. |
| `nsfw` | `boolean` |  |  |
| `autoDeleteAt` | `date-time \| null` |  | When the image deletes itself: a time in the future, or `null` to keep it. |
| `hideUser` | `boolean` |  |  |
| `shield` | `boolean` |  | Shield: anyone but you sees it only through Shield's view (no download or file link, each view marked with who's looking), never as a file. It can't stop a screenshot. |
| `burn` | `object \| null` |  | Burn, on a shielded image: the seconds each view shows it, the views each person gets, the views it has in all, and what happens after them (Blur, Private, Delete). `null` removes it; setting it needs Shield (`400 BURN_NEEDS_SHIELD`). A change to its limits starts the views in all over; the views each a person has had still count, for 30 days. |
| `burn.secondsPerView` | `integer \| null` | required |  |
| `burn.viewsEach` | `integer \| null` | required |  |
| `burn.viewsInAll` | `integer \| null` | required |  |
| `burn.then` | `enum \| null` | required | One of `Blur`, `Private`, `Delete`. |

### Response

Returns an [Image](https://hematite.gg/docs/developers/models/image).

```bash
curl -X PATCH 'https://api.hematite.gg/v1/images/1' \
  -H "Authorization: $HEMATITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title":"Clutch on Ascent"}'
```

Example `data`:

```json
{
  "id": 1,
  "userId": 1,
  "createdAt": "2026-11-10T18:24:00.000Z",
  "updatedAt": "2026-11-10T18:24:00.000Z",
  "title": "Clutch on Ascent",
  "description": "1v4 on the last round",
  "visibility": "Unlisted",
  "folderId": 1,
  "views": 0,
  "downloads": 0,
  "favorite": false,
  "application": "VALORANT",
  "filename": "a1b2c3d4e5f6.png",
  "size": 2457600,
  "width": 1920,
  "height": 1080,
  "nsfw": false,
  "storageId": 1,
  "autoDeleteAt": null,
  "hideUser": false,
  "shield": false,
  "nsfwLockedAt": "2026-11-10T18:24:00.000Z",
  "privateLockedAt": "2026-11-10T18:24:00.000Z",
  "offlineAt": "2026-11-10T18:24:00.000Z",
  "storage": {
    "key": "images/a1b2c3d4e5f6.png"
  },
  "shareId": 1,
  "shareCode": "x7Kp2QmA",
  "likeCount": 0,
  "commentCount": 0,
  "meta": {
    "id": 1,
    "blurHash": "string",
    "dominantColor": "string",
    "palette": null,
    "hasAlpha": false,
    "animated": false,
    "orientation": 0
  },
  "treatment": "string",
  "burn": {
    "secondsPerView": 0,
    "viewsEach": 0,
    "viewsInAll": 0,
    "then": "Blur",
    "viewsUsed": 0,
    "burnedAt": "string"
  }
}
```

## Delete an image

`DELETE /images/:imageId`

Needs a session token. Rate limit: 120 a minute, per address. An app's token or an API key needs the `images:write` scope.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `imageId` | `any` | required | The image's id. |

### Response

`data` is empty.

```bash
curl -X DELETE 'https://api.hematite.gg/v1/images/1' \
  -H "Authorization: $HEMATITE_TOKEN"
```

## Get comments for an image

`GET /images/:imageId/comments`

Needs no token. Rate limit: 120 a minute, per address. An app's token or an API key needs the `comments:read` scope.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `imageId` | `any` | required | The image's id. |

### Query

| Field | Type | Required | Notes |
|---|---|---|---|
| `shareCode` | `string` | required |  |

### Response

Returns a list of [Comments](https://hematite.gg/docs/developers/models/comment).

```bash
curl 'https://api.hematite.gg/v1/images/1/comments?shareCode=x7Kp2QmA'
```

Example `data`:

```json
[
  {
    "id": 1,
    "userId": 1,
    "createdAt": "2026-11-10T18:24:00.000Z",
    "updatedAt": "2026-11-10T18:24:00.000Z",
    "referenceType": "Image",
    "referenceId": 1,
    "content": "That last round",
    "parentId": null,
    "offlineAt": "2026-11-10T18:24:00.000Z",
    "likeCount": 0
  }
]
```

## Delete an image by token

`POST /images/:imageId/delete-by-token`

Needs no token. Rate limit: 2 a minute, per address. An app's token or an API key needs the `images:write` scope.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `imageId` | `any` | required | The image's id. |

### Body

| Field | Type | Required | Notes |
|---|---|---|---|
| `token` | `string` | required | The `t` of the image's delete link (`deleteUrl`), `hmd_…`. A link works for 24 hours. |

### Response

`data` is empty.

```bash
curl -X POST 'https://api.hematite.gg/v1/images/1/delete-by-token' \
  -H "Content-Type: application/json" \
  -d '{"token":"hms_live_m0plGGtn67kMZy6D_…"}'
```

## Preview the card one of your images' links would show with a style you haven't saved (Settings → Embeds), made exactly as the share page's card is, the floor included: as anyone holding the link sees it, or as it would be marked NSFW, shielded, hiding you as its uploader, or private. Nothing is saved.

`POST /images/:imageId/embed-preview`

Needs a session token. Rate limit: 120 a minute, per address. Not open to apps or API keys: a link preview's style is written in Settings → Embeds, which previews it.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `imageId` | `any` | required | The image's id. |

### Body

| Field | Type | Required | Notes |
|---|---|---|---|
| `style` | `object` | required | The style your links' previews follow: a built-in as it is, or with your own choices and (from Silver) your own words and site line. Your choices are kept as a style of your own; the built-in's again, and its own style is what your links follow. |
| `style.basedOn` | `enum` | required | The built-in it starts from, whose words the card says where it has none of its own. One of `hematite`, `minimal`, `detailed`, `gamer`, `photo-mode`, `quiet`. |
| `style.author` | `enum` | required | Who the card names over its title, in Discord through oEmbed: `Uploader` (the uploader, or a folder's owner) or `None`. Hiding yourself as an image's uploader, or hiding your page, names nobody whatever the style says. One of `Uploader`, `None`. |
| `style.picture` | `enum` | required | How the card shows its picture: `Large` under the words, `Small` beside them (square), `Alone` (Discord shows only the picture; elsewhere the large card), `None`. An image marked NSFW or shielded shows none whatever the style says. One of `Large`, `Small`, `Alone`, `None`. |
| `style.cropToCard` | `boolean` | required | With a large picture: cropped to 1.91 : 1, the shape X, Facebook, LinkedIn and WhatsApp draw, round its busiest part. |
| `style.colour` | `enum` | required | The colour of Discord's bar, the only platform that shows one: `Hematite` (the accent's ice steel), `Picture` (the picture's own, made light enough to read on Discord's grey) or `Custom` (`colourHex`). One of `Hematite`, `Picture`, `Custom`. |
| `style.colourHex` | `string \| null` | required | Your own colour: `#` and six hex digits. Needed with `Custom`; kept otherwise, so choosing `Custom` again finds it. |
| `style.showTime` | `boolean` | required | When it was uploaded, under the card in each reader's own time (Discord). |
| `style.motion` | `boolean` | required | An animated GIF or WebP moves in the card; off, it's its first frame. |
| `style.title` | `string \| null` |  | Its own title, a template (concept 11 §3: `{title\|"A screenshot"}`), at most 300 characters and one line; null or left out says the built-in's. From Silver. |
| `style.description` | `string \| null` |  | Its own description, a template, at most 600 characters, from Silver; `""` leaves it out of the card (every plan); null or left out says the built-in's. |
| `style.site` | `enum` |  | The site line over the title: `Hematite`, `Domain` (the domain your links go to, while it works) or `Custom` (`siteText`). Anything but `Hematite` from Silver. One of `Hematite`, `Domain`, `Custom`. |
| `style.siteText` | `string \| null` |  | Its own site name with `site` `Custom`, a template, at most 32 characters and one line, saying no service, brand or authority. Kept while another site line is chosen. |
| `seenAs` | `enum` | required | `Anyone`: the image as it is. `Nsfw`, `Shielded`, `UploaderHidden`, `Private`: as it would be with that on, whatever it is now. One of `Anyone`, `Nsfw`, `Shielded`, `UploaderHidden`, `Private`. |

### Response

Returns an `object` with these fields:

| Field | Type | Present | Notes |
|---|---|---|---|
| `card` | [`Embed`](https://hematite.gg/docs/developers/models/embed) \| null |  | The card its link would show with the style; null when it would have none (private): the site's name alone. |
| `pictureColor` | `string \| null` |  | The picture's own colour as the bar would take it (`Picture`); null while the picture has none, or shows none (shielded). |

```bash
curl -X POST 'https://api.hematite.gg/v1/images/1/embed-preview' \
  -H "Authorization: $HEMATITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"style":{"basedOn":"hematite","author":"Uploader","picture":"Large","cropToCard":false,"colour":"Hematite","colourHex":"string","showTime":false,"motion":false,"title":"Clutch on Ascent","description":"1v4 on the last round","site":"Hematite","siteText":"string"},"seenAs":"Anyone"}'
```

Example `data`:

```json
{
  "card": {
    "title": "Clutch on Ascent",
    "description": "1v4 on the last round",
    "site": {
      "name": "Ranked",
      "url": "https://cdn.hematite.gg/images/a1b2c3d4e5f6.png"
    },
    "author": {
      "name": "Ranked",
      "url": "https://cdn.hematite.gg/images/a1b2c3d4e5f6.png"
    },
    "color": "#c4d4e0",
    "layout": "large",
    "pictures": [
      {
        "url": "https://cdn.hematite.gg/images/a1b2c3d4e5f6.png",
        "width": 1920,
        "height": 1080,
        "alt": "string",
        "type": "image/jpeg",
        "animated": false
      }
    ],
    "publishedAt": "string",
    "indexable": false
  },
  "pictureColor": "string"
}
```

## Get what each of a link preview's variables says for one of your images (Settings → Embeds), as someone signed out who holds its link gets it: the editor renders your own words with them as you type, with the same template package the card is made with. Null when private: no card.

`GET /images/:imageId/embed-values`

Needs a session token. Rate limit: 60 a minute, per address. Not open to apps or API keys: a link preview's style is written in Settings → Embeds, which previews it.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `imageId` | `any` | required | The image's id. |

### Response

Returns an `object` with these fields:

| Field | Type | Present | Notes |
|---|---|---|---|
| `title` | `string` |  | The image's title; empty when untitled. |
| `description` | `string` |  | Its own description; empty when none. |
| `filename` | `string` |  | The file's name as anyone with the link gets it. |
| `code` | `string` |  | Its link's code. |
| `width` | `integer \| null` |  | In pixels. |
| `height` | `integer \| null` |  | In pixels. |
| `size` | `integer \| null` |  | In bytes. |
| `format` | `string \| null` |  | Its format's name, as `PNG`. |
| `date` | `string` |  | When it was uploaded, ISO 8601. |
| `expires` | `string \| null` |  | When it deletes itself, ISO 8601; null when it doesn't. |
| `views` | `integer` |  |  |
| `likes` | `integer` |  |  |
| `comments` | `integer` |  |  |
| `uploader` | `string \| null` |  | You; null when it hides its uploader. |
| `folder` | `string \| null` |  | Its folder's name where anyone may open the folder; null otherwise. |
| `domain` | `string \| null` |  | The domain your links go to; null on hematite's own, or when it hides its uploader. |
| `game` | `string \| null` |  | Later, with game detection; null until then. |
| `level` | `integer \| null` |  | Later, with levels; null until then. |

```bash
curl 'https://api.hematite.gg/v1/images/1/embed-values' \
  -H "Authorization: $HEMATITE_TOKEN"
```

Example `data`:

```json
{
  "title": "Clutch on Ascent",
  "description": "1v4 on the last round",
  "filename": "a1b2c3d4e5f6.png",
  "code": "x7Kp2QmA",
  "width": 1920,
  "height": 1080,
  "size": 2457600,
  "format": "string",
  "date": "string",
  "expires": "string",
  "views": 0,
  "likes": 0,
  "comments": 0,
  "uploader": "string",
  "folder": "string",
  "domain": "yourdomain.com",
  "game": "string",
  "level": 0
}
```

## Regenerate share identifiers for an image

`POST /images/:imageId/regenerate-share-identifiers`

Needs a session token. Rate limit: 120 a minute, per address. An app's token or an API key needs the `images:write` scope.

### Path parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `imageId` | `any` | required | The image's id. |

### Response

Returns an [Image](https://hematite.gg/docs/developers/models/image).

```bash
curl -X POST 'https://api.hematite.gg/v1/images/1/regenerate-share-identifiers' \
  -H "Authorization: $HEMATITE_TOKEN"
```

Example `data`:

```json
{
  "id": 1,
  "userId": 1,
  "createdAt": "2026-11-10T18:24:00.000Z",
  "updatedAt": "2026-11-10T18:24:00.000Z",
  "title": "Clutch on Ascent",
  "description": "1v4 on the last round",
  "visibility": "Unlisted",
  "folderId": 1,
  "views": 0,
  "downloads": 0,
  "favorite": false,
  "application": "VALORANT",
  "filename": "a1b2c3d4e5f6.png",
  "size": 2457600,
  "width": 1920,
  "height": 1080,
  "nsfw": false,
  "storageId": 1,
  "autoDeleteAt": null,
  "hideUser": false,
  "shield": false,
  "nsfwLockedAt": "2026-11-10T18:24:00.000Z",
  "privateLockedAt": "2026-11-10T18:24:00.000Z",
  "offlineAt": "2026-11-10T18:24:00.000Z",
  "storage": {
    "key": "images/a1b2c3d4e5f6.png"
  },
  "shareId": 1,
  "shareCode": "x7Kp2QmA",
  "likeCount": 0,
  "commentCount": 0,
  "meta": {
    "id": 1,
    "blurHash": "string",
    "dominantColor": "string",
    "palette": null,
    "hasAlpha": false,
    "animated": false,
    "orientation": 0
  },
  "treatment": "string",
  "burn": {
    "secondsPerView": 0,
    "viewsEach": 0,
    "viewsInAll": 0,
    "then": "Blur",
    "viewsUsed": 0,
    "burnedAt": "string"
  }
}
```

## Update many images. If a moderation decision locked any of them (an NSFW mark, Private) and the change would undo it, nothing changes (`403 IMAGE_NSFW_LOCKED` or `IMAGE_PRIVATE_LOCKED`, the locked ones in `data.ids`).

`PATCH /images/bulk`

Needs a session token. Rate limit: 120 a minute, per address. An app's token or an API key needs the `images:write` scope.

### Body

Send at least one field besides `ids`.

| Field | Type | Required | Notes |
|---|---|---|---|
| `ids` | `number[]` | required | Ids of your own images. If any isn't one, the whole request is refused. 1 to 100 items. No repeats. |
| `title` | `string` |  | At most 64 characters. |
| `description` | `string` |  | At most 1000 characters. |
| `favorite` | `boolean` |  |  |
| `visibility` | `enum` |  | One of `Unlisted`, `Public`, `Private`. |
| `folderId` | `number \| null` |  | The id of a folder of yours, or `null` for none. |
| `nsfw` | `boolean` |  |  |
| `autoDeleteAt` | `date-time \| null` |  | When the image deletes itself: a time in the future, or `null` to keep it. |
| `hideUser` | `boolean` |  | Hide you as their uploader: your name and avatar stay off their share pages, and no one else sees them in your folders. |

### Response

Returns a list of [Images](https://hematite.gg/docs/developers/models/image).

```bash
curl -X PATCH 'https://api.hematite.gg/v1/images/bulk' \
  -H "Authorization: $HEMATITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ids":[1],"title":"Clutch on Ascent"}'
```

Example `data`:

```json
[
  {
    "id": 1,
    "userId": 1,
    "createdAt": "2026-11-10T18:24:00.000Z",
    "updatedAt": "2026-11-10T18:24:00.000Z",
    "title": "Clutch on Ascent",
    "description": "1v4 on the last round",
    "visibility": "Unlisted",
    "folderId": 1,
    "views": 0,
    "downloads": 0,
    "favorite": false,
    "application": "VALORANT",
    "filename": "a1b2c3d4e5f6.png",
    "size": 2457600,
    "width": 1920,
    "height": 1080,
    "nsfw": false,
    "storageId": 1,
    "autoDeleteAt": null,
    "hideUser": false,
    "shield": false,
    "nsfwLockedAt": "2026-11-10T18:24:00.000Z",
    "privateLockedAt": "2026-11-10T18:24:00.000Z",
    "offlineAt": "2026-11-10T18:24:00.000Z",
    "storage": {
      "key": "images/a1b2c3d4e5f6.png"
    },
    "shareId": 1,
    "shareCode": "x7Kp2QmA",
    "likeCount": 0,
    "commentCount": 0,
    "meta": {
      "id": 1,
      "blurHash": "string",
      "dominantColor": "string",
      "palette": null,
      "hasAlpha": false,
      "animated": false,
      "orientation": 0
    },
    "treatment": "string",
    "burn": {
      "secondsPerView": 0,
      "viewsEach": 0,
      "viewsInAll": 0,
      "then": "Blur",
      "viewsUsed": 0,
      "burnedAt": "string"
    }
  }
]
```

## Delete many images

`DELETE /images/bulk`

Needs a session token. Rate limit: 120 a minute, per address. An app's token or an API key needs the `images:write` scope.

### Body

| Field | Type | Required | Notes |
|---|---|---|---|
| `ids` | `number[]` | required | Ids of your own images. If any isn't one, the whole request is refused. 1 to 100 items. No repeats. |

### Response

`data` is empty.

```bash
curl -X DELETE 'https://api.hematite.gg/v1/images/bulk' \
  -H "Authorization: $HEMATITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ids":[1]}'
```

## Build a zip of the requested images owned by you and return a short-lived URL to download it.

`POST /images/bulk/download`

Needs a session token. Rate limit: 2 a minute, per address. An app's token or an API key needs the `images:read` scope.

### Body

| Field | Type | Required | Notes |
|---|---|---|---|
| `ids` | `number[]` | required | Ids of your own images. If any isn't one, the whole request is refused. 1 to 100 items. No repeats. |

### Response

Returns an `object` with these fields:

| Field | Type | Present | Notes |
|---|---|---|---|
| `images` | `map of number` |  | A map of image IDs to their new download count. |
| `url` | `string` |  | Presigned URL for the zip (expires shortly). |

```bash
curl -X POST 'https://api.hematite.gg/v1/images/bulk/download' \
  -H "Authorization: $HEMATITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ids":[1]}'
```

Example `data`:

```json
{
  "images": {
    "imagesKey": 0
  },
  "url": "https://cdn.hematite.gg/images/a1b2c3d4e5f6.png"
}
```
