The following API allow you to upload a single photo and generate a photo object.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params multipart/form-data
photo
file
required
pass the photo data. Can be a Buffer object or a ReadableStream depending on your client library. While testing in postman you can directly select a file for this formdata parameter
filename
string
optional
name of the photo being uploaded
Example:
IMG_00001
filetype
string
optional
filetype of the file being uploaded
Example:
png
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST '/v1/ext/photo' \
--form'photo=@""' \
--form'filename="IMG_00001"' \
--form'filetype="png"'