Streamio API Documentation

Images - Create

Create a image on your account with the specified parameters. Don't forget to specify POST as the request method as GET will call the list action rather than create.

Request

Url

https://streamio.com/api/v1/images.format

Request Method

POST

Parameters

  • file The image file you want to upload. This is the only required parameter.
  • title The title of the image. If you don't specify this the filename of the file parameter will be used.
  • tags The tags you wish to set for the image. Multiple tags are separated by comma.

Response

Code

201

Body

{
"account_id": "5d00b3796f8d8d4d7d000002",
"codec": "PNG",
"created_at": "2019-06-12T08:59:19.509Z",
"height": 41,
"size": 7047,
"tags": [],
"title": "streamio vattenstämpel",
"updated_at": "2021-05-12T11:45:14.563Z",
"width": 150,
"id": "5d00bee76f8d8de062000011",
"transcodings": [
{
"progress": 1.0,
"size": 1570,
"state": "ready",
"title": "thumb",
"http_uri": "cdn0-70011-odedge0.dna.ip-only.net/70011-odedge0/images/5d00b3796f8d8d4d7d000002_5d00bee76f8d8de062000011_thumb.jpg?r=0",
"width": 150,
"height": 41
},
{
"progress": 1.0,
"size": 1570,
"state": "ready",
"title": "original",
"http_uri": "cdn0-70011-odedge0.dna.ip-only.net/70011-odedge0/images/5d00b3796f8d8d4d7d000002_5d00bee76f8d8de062000011_original.jpg?r=0",
"width": 150,
"height": 41
},
{
"progress": 1.0,
"size": 1570,
"state": "ready",
"title": "normal",
"http_uri": "cdn0-70011-odedge0.dna.ip-only.net/70011-odedge0/images/5d00b3796f8d8d4d7d000002_5d00bee76f8d8de062000011_normal.jpg?r=0",
"width": 150,
"height": 41
}
]
}
view raw image.json hosted with ❤ by GitHub

Examples

A simple create

Simplest case scenario is to just post with the file parameter set to a image file on your hard drive.

curl -u username:password \
     -F file=@path/to/image.jpg \
     https://streamio.com/api/v1/images.json