GET
https://api.myidvirtual.com
/
file
/
{dir}
Get File Image
curl --request GET \
  --url https://api.myidvirtual.com/file/{dir}
{
  "404": {},
  "response": "<string>"
}

Path Parameters

dir
string
required
The file directory and name. Can include ‘banner’ or ‘logos’ prefix, or just the filename.
  • For banners: banners/filename.png or banner-filename.png
  • For logos: logos/filename.png or just filename.png

Response

response
string
Base64 encoded image file content

Example Request

curl -X GET "http://localhost:3333/file/logos/myimage.png"

Response Example

iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==

Error Responses

404
object
File not found error
{
  "statusCode": 404,
  "message": "Arquivo não encontrado.",
  "error": "Not Found"
}