Skip to main content

Assets - Get Asset File

Route URL​

GET https://playcanvas.com/api/assets/:assetId/file/:filename?branchId=:branchId

Description​

Get the details of a single asset

Example​

curl -H "Authorization: Bearer {accessToken}" "https://playcanvas.com/api/assets/{assetId}/file/{filename}?branchId={branchId}"

HTTP Request

GET https://playcanvas.com/api/assets/{assetId}/file/{filename}?branchId={branchId}
Authorization: Bearer {accessToken}

Parameters​

NameTypeRequiredDescription
assetIdnumber✔️The id of the asset.
branchIdstring✔️The id of the branch.
filenamestring✔️The filename of the asset.

Response Schema​

Status: 200
{fileContents}

Errors​

CodeDescription
401Unauthorized
403Forbidden
404Project or Asset not found
429Too many requests

Rate Limiting​

This route uses a normal rate limit.