Dayli Docs

Get a fresh download URL for one attached photo or video

GET
/api/v1/posts/{postId}/media/{mediaId}

Returns a new private download URL, valid for 5 minutes, when an earlier one has expired. The same rules as reading the post apply, and the media must still be attached to it.

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

postId*string
Length1 <= length <= 128
mediaId*string
Length1 <= length <= 128

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/posts/post-1/media/media-1"
{  "id": "post_01K4Y6P8K2",  "contentType": "image/jpeg",  "order": 0,  "url": "http://example.com",  "expiresAt": "2026-09-09T12:00:00Z"}