🖼️Images
To upload an image to the Image API, send a POST request to the API endpoint.
API Endpoint
URL: https://api.fivemerr.com/v1/media/images
Authorization
You can access the API using one of the following methods:
Include the
Authorizationheader with your API key.Include the
apiKeyas a query parameter in the URL.
Supported Request Formats
The API supports the following request formats:
form-data
json
x-www-form-urlencoded
Each request must include the appropriate header to be accepted.
Form Data Requests
Body
The request body should be a form-data object containing a file named file or data.
Response
The response JSON body takes the following shape:
Example with Node.js (with Axios)
Example with Python
JSON Requests
Body
The request body should be a JSON string containing a key named file or data. Data should be encoded as base64 in the following format.
Example with Node.js (with Axios)
x-www-form-urlencoded Requests
Body
The request body should be x-www-form-urlencoded containing a key named file or data. Data should be encoded as base64 in the following format.
Example with Node.js (with Axios)
Supported Image Extensions
If you need any other added, let us know.
JPEG -
.jpegPNG -
.pngWEBP-
.webpGIF -
.gifBMP -
.bmpTIFF -
.tifor.tiffHEIC -
.heicSVG -
.svgICO -
.ico
FiveM Integration
Last updated