Pepvote Support Center

Upload Image

POST
/uploads

Send the image as multipart/form-data with a file field. A raw request body with an image Content-Type (image/png, image/jpeg, image/webp, image/gif) is also accepted; it is not listed as a separate media type here because the rendered reference only supports form and JSON bodies. Maximum size 5 MB.

Authorization

bearerAuth
AuthorizationBearer <token>

A key in the form pepvote_api_ followed by 32 hexadecimal characters.

In: header

Header Parameters

User-Agentstringrequired

Name and version of the calling integration. Required on every request.

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

filestringrequired
  • Format: binary

Response Body

application/json

application/json

curl -X POST "https://example.com/uploads" \  -H "User-Agent: my-app/1.0" \  -F file="string"
{
  "data": {
    "storageId": "string",
    "url": "http://example.com",
    "contentType": "image/png",
    "size": 1
  }
}
{
  "error": {
    "code": "bad_request",
    "message": "string",
    "details": {
      "field": "string",
      "parameter": "string",
      "limit": 0,
      "retryAfterSeconds": 0,
      "feature": "string",
      "plan": "string"
    }
  }
}
Was this helpful?

Last updated September 6, 2026