Projects
Projects
Projects are containers for organizing your videos. Each project has its own settings for transcoding, player options, and regional storage.
Base URL
example
https://api.dyntube.com/v1Available Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /projects | Create a new project |
| GET | /projects | Get list of projects |
| GET | /projects/{id} | Get a single project |
| PUT | /projects/{id} | Update a project |
| DELETE | /projects/{id} | Delete a project and all its videos |
Project Settings
When creating or updating a project, you can configure:
- Transcoding options: HLS conversion, MP4 output, encryption
- Bitrate settings: Custom bitrates for each quality level (240p-2160p)
- Player options: Autoplay, controls, colors, and more
- Region: Storage location for videos
Plan Types
| Type | Value | Description |
|---|---|---|
| Standard | 1 | Standard plan storage |
Quick Example
javascript
// Create a new project
const response = await fetch('https://api.dyntube.com/v1/projects', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'My Videos',
region: 'use-s',
planType: 1,
options: {
convertToHls: true
}
})
});
const projectId = await response.text();
console.log('Created project:', projectId);Something missing or wrong here? Tell us and we will correct it. New to DynTube? Start with uploading and embedding.