File/Image download path

Hi, welcome to the SeaTable Forum.

Did you mean you followed this documentation: Get A Base’s File Download Link via API Token?

If so, I guess you must have confused the base’s API token with your auth token, or the base’s access token. Here’s how to Create A Base API Token.

With the base API token (not the auth token, not the access token), you can make such a call

curl -X GET 'https://cloud.seatable.io/api/v2.1/dtable/app-download-link/?path=<your path after the UUID>' \
--header 'Authorization: Token <the base API token got from the call above>' \
--header 'Accept: application/json; indent=4' \

and then, you’ll get the following response:

{
    "download_link": "https://table.seafile.com/seafhttp/files/<base_uuid>/<file_name>"
}

Download your file with this download link then.

1 Like