---
title: "POST /api/rpc/uploadAssetFromBase64"
method: POST
path: "/api/rpc/uploadAssetFromBase64"
tags: ["public"]
---

# POST /api/rpc/uploadAssetFromBase64

`POST /api/rpc/uploadAssetFromBase64`

## Request

- Base URL: `https://21risk.com`
- URL: `https://21risk.com/api/rpc/uploadAssetFromBase64`
- Auth: OAuth 2 (client credentials, token URL `/api/v1/oauth/token`)

Upload base64-encoded file content into 21RISK file storage and return the internal asset link.

## Request body

- object
  - `tenant` unknown, required
  - `base64` string, required: Base64-encoded file content. The data URI prefix is optional and will be stripped if provided.
  - `fileName` string, required: File name including extension, for example page-1.png or extracted.jpg.

## Response `200`

Successful response

---

[API](https://skmtc.dev/21risk/apis/21risk-api.md) · [All operations](https://skmtc.dev/21risk/apis/21risk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/21risk/apis/21risk-api/revisions/273a727dfd49?raw)
