## Get an asset

**get** `/assets/{assetId}`

Returns metadata for one asset when it is accessible to the authenticated public API key. Missing and inaccessible assets both return 404.

### Path Parameters

- `assetId: string`

  Asset identifier

### Returns

- `asset_id: string`

  Asset identifier

- `content_type: string`

  Asset content type

- `created_at: string`

  Asset creation time (ISO 8601 datetime)

- `description: string`

  Asset description

- `failure_message: string`

  Failure message when the asset is in failed status

- `height: number`

- `name: string`

  Asset name

- `size_bytes: number`

- `status: "pending_upload" or "ready" or "failed"`

  - `"pending_upload"`

  - `"ready"`

  - `"failed"`

- `upload_content_type: string`

  Content type provided at upload time

- `uploaded_via: string`

  Asset source

- `url: string`

  Asset URL

- `width: number`

- `workspace_id: string`

  Workspace identifier

### Example

```http
curl https://app.flora.ai/api/v1/assets/$ASSET_ID \
    -H "Authorization: Bearer $FLORA_API_KEY"
```

#### Response

```json
{
  "asset_id": "asset_abc123",
  "content_type": "content_type",
  "created_at": "2019-12-27T18:11:19.117Z",
  "description": "description",
  "failure_message": "failure_message",
  "height": 0,
  "name": "name",
  "size_bytes": 0,
  "status": "pending_upload",
  "upload_content_type": "upload_content_type",
  "uploaded_via": "uploaded_via",
  "url": "url",
  "width": 0,
  "workspace_id": "ws_abc123"
}
```
