Skip to content

myapi-rest/myapi-imageupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

License: MIT Website Discussions myapi.rest Suite

myapi.rest — Image Upload API

Upload and host images instantly via a simple REST API.

Features

  • Upload Base64‑encoded images
  • Automatic content type detection
  • Returns hosted image URL
  • Fast and lightweight

Quick Example

curl --location 'https://api.myapi.rest/api/image/upload'   --header 'Authorization: Bearer <API_KEY>'   --header 'Content-Type: application/json'   --data '{
    "file_base64": "<BASE_64_DATA>",
    "file_name": "logo.png"
  }'

Sample response:

{
  "id": "11",
  "url": "https://myapi.rest/images/11/29086085d6124aeabb7629c013563d3f.png",
  "size": 1592,
  "content_type": "image/png",
  "ms": 67
}

Documentation

See the /docs folder for full usage guides, examples, errors, and endpoint details.

Examples

Language examples are available in the /examples directory, including:

  • C#
  • JavaScript
  • Python
  • PHP
  • Postman Collection

myapi.rest Suite

This API is part of the broader myapi.rest developer suite.
For all APIs, documentation, and examples, visit:

👉 https://github.com/myapi-rest/myapi.rest

About

Image Upload API — upload base64 images and receive a permanent URL, content type, size metadata, and processing time. Part of the myapi.rest suite.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors