POST
/
api
/
v1
/
assets
Upload an asset
const form = new FormData();
form.append('file', '<string>');

const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

options.body = form;

fetch('https://realtimeavatar.ai/api/v1/assets', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": "<string>",
  "tenantId": "<string>",
  "contentType": "<string>",
  "sizeBytes": 1,
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "sha256": "<string>",
  "publicUrl": "<string>"
}

Authorizations

Authorization
string
header
required

TIC API key as a bearer token: Authorization: Bearer tic_live_... or tic_test_.... Create keys in the dashboard at /platform/dashboard or via POST /api/v1/api-keys.

Body

multipart/form-data
file
file
required
kind
enum<string>
Available options:
image,
video,
audio

Response

Asset stored

id
string
required
tenantId
string
required
kind
enum<string>
required
Available options:
image,
video,
audio
status
enum<string>
required
Available options:
pending_upload,
uploaded,
processing,
ready,
failed,
deleted
contentType
string
required
sizeBytes
integer
required
Required range: x >= 0
createdAt
string
required
updatedAt
string
required
sha256
string | null
publicUrl
string<uri> | null