Resolve File

POST {{protocol}}://{{media_resolver_url}}/resolve

Execute and save modifications done on a file. Response will contain the public URL of the file with the the applied modifications on the file.

This API only allows Service to Service consumption. A zesty user cannot use this API.

X-Service-Auth-Content and X-Service-Auth-Sig custom headers are used to consume this API via Service to Service token.

Format: raw JSON

{
    "items": [
                {    
                    "id": {{file_id}},
                    "actions" : [
                        {
                            "type": "getimage",
                            "options": {
                                "width" : 300,
                                "height" : 300,
                                "type" : "crop"
                            }
                        }
                    ],
                    "property" : "url"
                }
        ]
}

Body:

namedescriptionchild description
id[id] Required. File ID in ZUID Format.
actions[json] Required. Actions done on the File.[string] Required. action
property[string] Required. File URL

HEADERS

KeyDatatypeRequiredDescription
X-Service-Auth-Contentstring
X-Service-Auth-Sigstring

RESPONSES

status: OK

{"data":[{"id":"3-34b0d8e-u5wtc","actions":[{"type":"getimage","options":{"width":300,"height":300,"type":"crop"}}],"property":"url","value":"https://media-resolver.api.dev.zesty.io/resource/096bc045caebfc36f6bc5440825380016ca1ee36","message":"temp url"}]}