---
title: "Register asset"
method: POST
path: "/v1/assets"
tags: ["Assets and Media Delivery"]
---

# Register asset

`POST /v1/assets`

## Request

- Base URL: `https://getsocialclaw.com`
- URL: `https://getsocialclaw.com/v1/assets`
- Auth: HTTP bearer

Registers an existing object or externally managed asset in the workspace.

## Request body

- AssetRegistrationRequest: Registers an already-stored asset or externally managed object for the workspace.
  - `objectKey` string, required: Storage object key.
  - `originalFilename` string, nullable: Original filename. Also accepted as filename.
  - `publicUrl` string, nullable: Public URL if already available.
  - `mime` string, nullable: MIME type.
  - `kind` 'image' | 'video' | 'audio' | 'other' | 'null', nullable
  - `size` integer, nullable
  - `status` string, nullable: Asset status. Defaults to draft.

## 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)
