Static assets
Assets are powerful tools. Profile images, icons, logos, PDFs, music files, and more! Airtable did allow you to pull static assets easily from their API once upon ago.
However, we're happy to say that now, using Airproxy, we're giving you the power once more!
In order to fetch an asset, you need to make a request in the format of: https://assets.airproxy.app/USER_ID/ASSET_ID-ASSET_NAME
.
An asset ID is made up of its name and its Airtable ID. To find this, make a request to one of your tables; a response should look a little something like this...
{
"Favicon": [
{
"id": "attc1uSXGbvcWODUN",
"width": 128,
"height": 128,
"url": "https://v5.airtableusercontent.com/v1/16/16/...",
"filename": "favicon.jpg",
"size": 8269,
"type": "image/jpeg",
...
}
]
}
To request this resource, concatenate the ID of the asset (i.e. attc1uSXGbvcWODUN
) with the name of the file (i.e. favicon.jpg
), prepended by your unique Airproxy user UUID, which can be found on your dashboard on the top right.
Our request will now look something like: https://assets.airproxy.app/42066a35-978f-4e02-924b-0e80809cabe6/att0zgtLFUL0V0O6Y-favicon.jpg
.