🗃️

Uploads

Created
Jun 7, 2021 11:15 AM
Tags
Description
Documentation regarding the retrieval of uploads
The uploads API allows you to retrieve upload info

Base URL

All of the routes to follow will be based on the base URL:
https://api2.pixelchat.tv/public

List Scenes

Route

/uploads

Methods

GET

Response

[
  {
    "_id": "60919570ec0bbc7c44f904d6",
    "key": "V3Uploads/85878/58453319-8db0-4eac-8f9b-4f3f6b8838cf.ttf",
		//this is the upload key, if you would like to retrieve the asset, append this key to
		//https://cdn.pixelchat.tv/
    "name": "Exo-VariableFont_wght",
    "type": "font"//available types are: font | image | audio
  }
	//other uploads
]

JavaScript Fetch Example

const req = await fetch(`https://api2.pixelchat.tv/public/uploads`, 
	{
		headers: {
			"x-api-key": "asdf12344321fdsa"
		}
	}
)

const res = await req.json();

console.log(res)