Emoji V1
Upload Emoji V1
Upload an image and add it as a custom emoji. Send base64-encoded image data (JPG or PNG, 128x128 px, 64KB max). Requires mod permissions.
POST /api/v1/communities/{name}/upload-emoji
Upload an image and add it as a custom emoji. Send base64-encoded image data (JPG or PNG, 128x128 px, 64KB max). Requires mod permissions.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Subreddit name. |
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
image_data | string | Yes | Base64-encoded image data (128x128 px, JPG or PNG). Can include data URI prefix (data:image/png;base64,...) or raw base64. |
emoji_name | string | Yes | Emoji name (max 24 chars, no spaces, alphanumeric/hyphens/underscores only). |
proxy | string | No | Proxy. Optional if stored in Token Vault. |
post_flair_allowed | string | No | Allow in post flairs. true or false (default: true). |
mod_flair_only | string | No | Restrict to mod-only flairs. true or false (default: false). |
user_flair_allowed | string | No | Allow in user flairs. true or false (default: true). |
bearer | string | No | Bearer token. Optional if stored in Token Vault. |
Authentication
| Header | Value |
|---|---|
X-RapidAPI-Key | Your RapidAPI key |
X-RapidAPI-Host | red-crawler1.p.rapidapi.com |
Example request
cURL
curl -X POST "https://red-crawler1.p.rapidapi.com/api/v1/communities/SpaceX_Starship_News/upload-emoji" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: red-crawler1.p.rapidapi.com" \
-H "Content-Type: application/json" \
--data '{"image_data": "<image_data>", "emoji_name": "my_emoji", "proxy": "<proxy>", "post_flair_allowed": "true", "mod_flair_only": "false", "user_flair_allowed": "true", "bearer": "<bearer>"}'JavaScript
const res = await fetch("https://red-crawler1.p.rapidapi.com/api/v1/communities/SpaceX_Starship_News/upload-emoji", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "red-crawler1.p.rapidapi.com"
},
body: JSON.stringify({
"image_data": "<image_data>",
"emoji_name": "my_emoji",
"proxy": "<proxy>",
"post_flair_allowed": "true",
"mod_flair_only": "false",
"user_flair_allowed": "true",
"bearer": "<bearer>"
})
});
const data = await res.json();
console.log(data);Python
import requests
url = "https://red-crawler1.p.rapidapi.com/api/v1/communities/SpaceX_Starship_News/upload-emoji"
headers = {
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "red-crawler1.p.rapidapi.com",
"Content-Type": "application/json"
}
payload = {
"image_data": "<image_data>",
"emoji_name": "my_emoji",
"proxy": "<proxy>",
"post_flair_allowed": "true",
"mod_flair_only": "false",
"user_flair_allowed": "true",
"bearer": "<bearer>"
}
resp = requests.post(url, headers=headers, json=payload)
print(resp.json())Example response
HTTP 200 — captured from a live call to the gateway.
{
"success": true,
"data": {
"json": {
"errors": []
}
},
"error": null,
"timestamp": "2026-04-29T10:10:34.510641+00:00"
}