> ## Documentation Index
> Fetch the complete documentation index at: https://developers.effilink.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Resource Images

## Overview

Image resources used for email tasks.

`POST /v5/campaign/mail/uploadImageToGallery`

***

## Request Parameters

**fileData** `string` *required*

Base64 encoded binary image data. The size is no more than 2M and supports formats such as jpeg, jpg, png, bmp, and gif.

***

## Response

**code** `int`

HTTP-style status code. `200` on success.

**message** `string`

A human-readable status message. `null` or empty string on success.

**url** `string`

The access URL of this image on the public network.

***

## Example Request

```bash theme={null}
curl --request POST \
  --url https://api.effilink.co/v5/campaign/mail/uploadImageToGallery \
  --header 'Content-Type: application/json' \
  --header 'ApiKey: YOUR_API_KEY' \
  --data '{
    "fileData": "/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/wAALCAABAAEBAREA/8QAFAABAAAAAAAAAAAAAAAAAAAACf/EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAD8AVN//2Q=="
  }'
```

***

## Example Response

```json theme={null}
{
  "code": 200,
  "message": null,
  "url": "https://service.campaigndelivery.cn/fckattach/marketing/xxxxxx.png"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.