Help AccessDenied Video!

I have a problem, I generated some videos a few days ago and the url was saved in my own database.
Now it turns out that those videos throw error 403 access denied

json response

{

"success": true,

"message": "OK",

"response": {

    "id": "bb8f29b2-287a-4cb4-b2bd-bb80f3c248d1",

    "owner": "uqo5yx8lma",

    "plan": "basic",

    "status": "done",

    "error": "",

    "duration": 25,

    "billable": 25,

    "renderTime": 10915.68,

    "url": "https://shotstack-api-v1-output.s3-ap-southeast-2.amazonaws.com/uqo5yx8lma/bb8f29b2-287a-4cb4-b2bd-bb80f3c248d1.mp4",

    "poster": null,

    "thumbnail": null,

    "data": {

        "output": {

            "format": "mp4",

            "size": {

                "width": 800,

                "height": 800

            },

            "aspectRatio": "1:1"

        },

        "timeline": {

            "soundtrack": {

                "src": "https://assets-diadelconsultornatura.s3.sa-east-1.amazonaws.com/musica.mp3",

                "effect": "fadeOut"

            },

            "fonts": [

                {

                    "src": "https://assets-diadelconsultornatura.s3.sa-east-1.amazonaws.com/HELVETICANOWDISPLAY_0.TTF"

                }

            ],

            "background": "#e2c12d",

            "tracks": [

                {

                    "clips": [

                        {

                            "start": 0,

                            "length": 25,

                            "fit": "none",

                            "position": "topRight",

                            "asset": {

                                "type": "image",

                                "src": "https://assets-diadelconsultornatura.s3.sa-east-1.amazonaws.com/LOGO+NATURA+MOSCA+v2.png"

                            }

                        }

                    ]

                },

                {

                    "clips": [

                        {

                            "asset": {

                                "color": "#000000",

                                "size": "x-small",

                                "offset": {

                                    "y": -0.4

                                },

                                "background": "#e2c12d",

                                "style": "subtitle",

                                "text": " Cada Consultor y Consultora de Belleza Natura \n es una persona apasionada por el poder transformador de los cosméticos ",

                                "position": "bottom",

                                "type": "title"

                            },

                            "start": 0.2,

                            "length": 4.8

                        },

                        {

                            "asset": {

                                "color": "#000000",

                                "size": "x-small",

                                "offset": {

                                    "y": -0.4

                                },

                                "background": "#e2c12d",

                                "style": "subtitle",

                                "text": " ... y las relaciones ",

                                "position": "bottom",

                                "type": "title"

                            },

                            "start": 5.2,

                            "length": 4.8

                        },

                        {

                            "asset": {

                                "color": "#000000",

                                "size": "x-small",

                                "offset": {

                                    "y": -0.4

                                },

                                "background": "#e2c12d",

                                "style": "subtitle",

                                "text": " Yaritza Sahyli Ramos Becerra (Shay) transforma su mundo día a día ",

                                "position": "bottom",

                                "type": "title"

                            },

                            "start": 10.2,

                            "length": 4.8

                        },

                        {

                            "asset": {

                                "color": "#000000",

                                "size": "x-small",

                                "offset": {

                                    "y": -0.4

                                },

                                "background": "#e2c12d",

                                "style": "subtitle",

                                "text": " \"Yo soy aplicadora de Uñas y siempre al \nterminar uso las pulpas para manos para cuidar sus piel.\" ",

                                "position": "bottom",

                                "type": "title"

                            },

                            "start": 15.2,

                            "length": 4.8

                        },

                        {

                            "asset": {

                                "color": "#000000",

                                "size": "x-small",

                                "offset": {

                                    "y": -0.4

                                },

                                "background": "#e2c12d",

                                "style": "subtitle",

                                "text": "  ¡Gracias por ser parte de nuestra red transformadora \n y construir un mundo más bonito! ",

                                "position": "bottom",

                                "type": "title"

                            },

                            "start": 20.2,

                            "length": 4.8

                        }

                    ]

                },

                {

                    "clips": [

                        {

                            "start": 0,

                            "length": 5,

                            "fit": "contain",

                            "asset": {

                                "type": "image",

                                "src": "https://assets-diadelconsultornatura.s3.sa-east-1.amazonaws.com/VIDEO+ENTREGABLE+1er+frame_mx.jpg"

                            },

                            "transition": {

                                "out": "fade"

                            }

                        },

                        {

                            "start": 5,

                            "length": 5,

                            "fit": "contain",

                            "asset": {

                                "type": "image",

                                "src": "https://diadelconsultornatura-images.s3-sa-east-1.amazonaws.com/BOqCNRNEzPRGsvn.jpeg"

                            },

                            "transition": {

                                "in": "fade",

                                "out": "fade"

                            },

                            "effect": "zoomIn"

                        },

                        {

                            "start": 10,

                            "length": 5,

                            "fit": "contain",

                            "asset": {

                                "type": "image",

                                "src": "https://diadelconsultornatura-images.s3-sa-east-1.amazonaws.com/A0hPVgSa-ydh8bv.jpeg"

                            },

                            "transition": {

                                "in": "fade",

                                "out": "fade"

                            },

                            "effect": "zoomIn"

                        },

                        {

                            "start": 15,

                            "length": 5,

                            "fit": "contain",

                            "asset": {

                                "type": "image",

                                "src": "https://diadelconsultornatura-images.s3-sa-east-1.amazonaws.com/VJyuXnUybIsjC5J.jpeg"

                            },

                            "transition": {

                                "in": "fade",

                                "out": "fade"

                            },

                            "effect": "zoomIn"

                        },

                        {

                            "start": 20,

                            "length": 5,

                            "fit": "contain",

                            "asset": {

                                "type": "image",

                                "src": "https://diadelconsultornatura-images.s3-sa-east-1.amazonaws.com/f-toNUa9TJuPE7q.jpeg"

                            },

                            "transition": {

                                "in": "fade",

                                "out": "fade"

                            },

                            "effect": "zoomIn"

                        }

                    ]

                }

            ]

        }

    },

    "created": "2021-08-16T18:23:39.367Z",

    "updated": "2021-08-16T18:23:59.885Z"

}

}

URL error! access denied

https://shotstack-api-v1-output.s3-ap-southeast-2.amazonaws.com/uqo5yx8lma/bb8f29b2-287a-4cb4-b2bd-bb80f3c248d1.mp4

Help mee!

Hey @produccion.sinfintv,

All your videos are automatically moved to our hosting platform, but those come with a different URL. In the case of the video referenced the hosting url is:

https://cdn.shotstack.io/au/v1/uqo5yx8lma/bb8f29b2-287a-4cb4-b2bd-bb80f3c248d1.mp4

The video rendering process

When you use the Edit API the following happens:

  1. The Edit API renders the video and makes the video available for 24 hours.
  2. The video is transferred to your hosting account, unless you opt-out.
  3. Your videos are available via our high performance hosting until you decide to delete these.

Using polling to see retrieve render and hosting status

If you want to query the status of your video render you can call the Edit API using a GET request as follows:

curl -X GET https://api.shotstack.io/{version}/render/{id} \
  -H 'Accept: application/json' \
  -H 'x-api-key: API_KEY'

If you the want to query the status of your hosted asset you can call the Serve API:

curl -X GET https://api.shotstack.io/serve/{version}/assets/render/{id} \
  -H 'Accept: application/json' \
  -H 'x-api-key: API_KEY'

This involves two calls to two different endpoints. As such we recommend using webhooks to be presented with live updates across all services, both the rendering and the hosting.

Using callbacks to get your render and hosting status

You can add webhooks to your render by adding the callback property to the JSON sent to the Edit API:

{
    "timeline": {...},
    "output": {...},
    "callback": "https://my-application.com/status.php"
}

This provides you with two status updates:

Render status update

{
    "type": "edit",
    "action": "render",
    "id": "6d7acbe6-e7c1-4cf8-b8ea-94e7522878cc",
    "owner": "mwipwx4ds3",
    "status": "done",
    "url": "https://shotstack-api-v1-output.s3-ap-southeast-2.amazonaws.com/mwipwx4ds3/6d7acbe6-e7c1-4cf8-b8ea-94e7522878cc.mp4",
    "error": null,
    "completed": "2020-02-24T11:52:20.810Z"
}

Serve status update

{
    "type": "serve",
    "action": "copy",
    "id": "e4433cbf-e501-76a2-ac8b-715d26997540",
    "render": "d2b46ed6-998a-4d6b-9d91-b8cf0193a655",
    "owner": "jwolrq9ms0",
    "status": "ready",
    "url": "https://cdn.shotstack.io/au/v1/jwolrq9ms0/d4697b5a-4d73-4f33-822e-2f8d92db0576.mp4",
    "error": null,
    "completed": "2021-07-12T11:04:44.574Z"
}

You can differentiate between the two callbacks using the type property.