User Manual

Assets - Get Asset

Route URL

GET https://playcanvas.com/api/assets/:assetId

Description

Get the details of a single asset

Example

curl -H "Authorization: Bearer {accessToken}" https://playcanvas.com/api/assets/{assetId}

HTTP Request

GET https://playcanvas.com/api/assets/{assetId}
Authorization: Bearer {accessToken}

Parameters

assetId: number

The id of the asset.

Response Schema

Status: 200
{
    "id": int,
    "modifiedAt": date,
    "createdAt": date,
    "state": "ready" or "processing" or "error",
    "name": string,
    "type": string,
    "scope":{
        "type": string,
        "id": int
    },
    "source": bool,
    "sourceId": bool,
    "tags": list of strings,
    "preload": bool,
    "file": {
        "hash": string,
        "filename": string,
        "size": int,
        "url": string
    },
    "parent": int
}

Errors

401

Unauthorized

403

Forbidden

404

Project or Asset not found

429

Too many requests

Rate Limiting

This route uses a normal rate limit.