API
/
File Upload
API
/
File Upload
API
/
File Upload

API

File Upload

Written by

Toni Barthel

Published

Oct 13, 2024

API

File Upload

Written by

Toni Barthel

Published

Oct 13, 2024

API

File Upload

Written by

Toni Barthel

Published

Oct 13, 2024

Request

The upload endpoint is used to upload files and then scan them for violations. Currently, only image file types are supported. You can use image/png, image/jpeg, image/tiff, image/jp2, image/gif, image/webp, or image/bmp.


POST /api/v1/upload HTTP/1.1
Host: api.1protection.ai
Content-Type: multipart/form-data
Authorization: Bearer {token}
Form: file={file}


Response


RESPONSE

{
  "ID": "...",
  "OriginalFileName": "...",
  "FilePath": "...",
  "FileName": "...",
  "MimeType": "...",
  "Location": "...",
  "Size": ...,
  "CreatedAt": "...",
  "UpdatedAt": "..."
}