POST
/
api
/
v1
/
assets
/
remote
Ingest an asset from a URL
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({remoteUrl: '<string>'})
};

fetch('https://realtimeavatar.ai/api/v1/assets/remote', 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

application/json
kind
enum<string>
required
Available options:
image,
video,
audio
remoteUrl
string<uri>
required
originalFilename
string
Required string length: 1 - 240
metadata
object

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