---
title: "Dashboard base64 asset upload"
method: POST
path: "/v1/dashboard/assets/upload"
tags: ["Dashboard Browser API"]
---

# Dashboard base64 asset upload

`POST /v1/dashboard/assets/upload`

## Request

- Base URL: `https://getsocialclaw.com`
- URL: `https://getsocialclaw.com/v1/dashboard/assets/upload`
- Auth: API key in cookie `socialclaw_dash_session`

Uploads a small dashboard asset as base64.

## Request body

- AssetUploadRequest: Base64 upload request for small media files.
  - `filename` string, required: Original file name.
  - `name` string, nullable: Alias for filename.
  - `mime` string, nullable: MIME type. Inferred from filename when omitted.
  - `contentBase64` string, required: Base64-encoded file content.
  - `content_base64` string, nullable: Snake-case alias for contentBase64.
  - `duration` number, nullable
  - `width` integer, nullable
  - `height` integer, nullable
  - `deleteAfter` string, date-time, nullable: Optional retention timestamp.

## Response `201`

Successful response.

- AssetResponse: Single asset response.
  - `ok` unknown, required
  - `asset` Asset, required: SocialClaw-managed media asset.
    - `id` string, required: Asset id.
    - `tenantId` string, nullable: Workspace id.
    - `storage` string, nullable: Storage driver.
    - `objectKey` string, nullable: Internal object key.
    - `originalFilename` string, nullable: Original file name.
    - `mime` string, required: MIME type.
    - `kind` 'image' | 'video' | 'audio' | 'other', required
    - `size` integer: Size in bytes.
    - `status` string, nullable: ready, uploading, draft, pending_delete, or provider-specific state.
    - `publicUrl` string, uri, nullable: Public delivery URL.
    - `preview` object, nullable: Thumbnail, poster, or preview URLs.
    - `createdAt` string, date-time, nullable: Creation time.

## Other responses

- `400`: Invalid request.
- `401`: Missing, invalid, or unauthorized credentials.
- `404`: Requested resource was not found.
- `422`: Request body or semantic validation failed.

---

[API](https://skmtc.dev/getsocialclaw/apis/socialclaw-api.md) · [All operations](https://skmtc.dev/getsocialclaw/apis/socialclaw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getsocialclaw/apis/socialclaw-api/revisions/a11a6a5b9bc6?raw)
