Skip to content
FacebookYouTubeX (Twitter)

Images

You can use the API to get or upload images.

POST https://api.pingstreams.com/v3/images/users

Allows to upload an image with autentication

HeaderTypeDescription
Authorizationstringauthorization token. Basic Auth or JWT
Content-Typestringuse “multipart/form-data” value
FieldTypeDescription
filebinarythe image binary file
{
"message":"File uploded successfully",
"filename":"uploads/users/5ebd890292befe0019054973/images/392224bb-0b1e-46b7-a131-183353be7645/test.jpg"
}
curl -v -X POST -H 'Content-Type: multipart/form-data' -u user@example.com:123456 -F "file=@/Users/andrealeo/dev/chat21/pingstreams-server-dev-org/test.jpg" https://api.pingstreams.com/v3/images/users

GET https://api.pingstreams.com/v3/images

ParameterTypeDescription
pathstringthe image path in the repository
HeaderTypeDescription
Authorizationstringauthorization token. Basic Auth or JWT

Returns binary image data.

curl -v -X GET -H -u user@example.com:123456 https://api.pingstreams.com/v3/images?path=uploads/users/5ebd890292befe0019054973/images/392224bb-0b1e-46b7-a131-183353be7645/test.jpg