The API reference moved here from eksis.io/developers.
Media

Finish an upload

POST
/v1/media/{mediaId}/complete

Marks the media ready so a post may use it. Send the dimensions if you know them: several platforms reject media whose aspect ratio they cannot check ahead of time.

Authorization

headerAuthorizationBearer <token>

Send your key as Authorization: Bearer eksis_sk_....

Path Parameters

mediaId*string

Request Body

application/json
  1. body
width?integer
Range1 <= value
height?integer
Range1 <= value
durationMs?integer

Video only.

Range0 <= value

Response Body

The media is ready.

application/json
  1. response
data?
curl -X POST 'https://api.eksis.io/v1/media/string/complete' \  -H 'Authorization: Bearer eksis_sk_...' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "id": "string",    "filename": "string",    "url": "http://example.com",    "kind": "image",    "mime": "string",    "size": 0,    "width": 0,    "height": 0,    "durationMs": 0,    "status": "uploading",    "createdAt": "2019-08-24T14:15:22Z"  }}