CreateVideoUpload
POST
header
X-API-Key<token>API key for protected endpoints, supplied in the X-API-Key header.
project_id*project_idIdempotency-Key?stringOptional key (1-255 visible ASCII characters) that makes the request safe to retry. The first successful response is stored for 24 hours and a retry with the same key and payload is replayed verbatim — same IDs, URLs and expiry — with the response header Idempotent-Replayed: true. Reusing the key with a different payload fails with 400; while the first request is still in flight a retry fails with 409 and a Retry-After header. A request that fails stores nothing, so the key can be reused. Replayed responses still count as billed API requests.
Length
1 <= length <= 255Request Body
requiredapplication/json{
"type": "object",
"properties": {
"org_id": {
"type": "string",
"examples": [
"OR98234j23"
],
"title": "org_id"
},
"name": {
"type": "string",
"examples": [
"My Video"
],
"title": "name",
"maxLength": 64
},
"video_quality": {
"examples": [
"VIDEO_QUALITY_PRO"
],
"title": "video_quality",
"$ref": "#/components/schemas/common.v1.VideoQuality",
"$ref-value": {
"type": "string",
"title": "VideoQuality",
"enum": [
"VIDEO_QUALITY_UNSPECIFIED",
"VIDEO_QUALITY_BASIC",
"VIDEO_QUALITY_SHORTS",
"VIDEO_QUALITY_PRO"
]
}
}
},
"title": "CreateVideoUploadRequest",
"additionalProperties": false
}org_id?string
name?string
video_quality?unknown
Response Body
200application/json
Success
type: unknown
{
"$ref": "#/components/schemas/videos.v1.VideoUpload",
"$ref-value": {
"type": "object",
"properties": {
"video_id": {
"type": "string",
"examples": [
"FpzVPNx1cG"
],
"title": "video_id"
},
"poster_id": {
"type": "string",
"examples": [
"LmNoPqR678"
],
"title": "poster_id"
},
"video_upload_url": {
"type": "string",
"examples": [
"https://cdn.example.com/video.mp4"
],
"title": "video_upload_url"
},
"poster_upload_url": {
"type": "string",
"examples": [
"https://cdn.example.com/poster.jpg"
],
"title": "poster_upload_url"
},
"expires_at": {
"examples": [
"2026-01-15T10:30:00Z"
],
"title": "expires_at",
"$ref": "#/components/schemas/google.protobuf.Timestamp",
"$ref-value": {
"type": "string",
"examples": [
"2023-01-15T01:30:15.01Z",
"2024-12-25T12:00:00Z"
],
"format": "date-time",
"description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
}
}
},
"title": "VideoUpload",
"additionalProperties": false,
"description": "VideoUpload carries the upload URLs for a video and its poster. On renewal a\n URL is empty when that object has already been received."
}
}default
curl -X POST 'https://api.rixl.com/media/v1/projects/Bq4y3QB38S/videos/upload'Success
application/json
{
"$ref": "#/components/schemas/videos.v1.VideoUpload",
"$ref-value": {
"type": "object",
"properties": {
"video_id": {
"type": "string",
"examples": [
"FpzVPNx1cG"
],
"title": "video_id"
},
"poster_id": {
"type": "string",
"examples": [
"LmNoPqR678"
],
"title": "poster_id"
},
"video_upload_url": {
"type": "string",
"examples": [
"https://cdn.example.com/video.mp4"
],
"title": "video_upload_url"
},
"poster_upload_url": {
"type": "string",
"examples": [
"https://cdn.example.com/poster.jpg"
],
"title": "poster_upload_url"
},
"expires_at": {
"examples": [
"2026-01-15T10:30:00Z"
],
"title": "expires_at",
"$ref": "#/components/schemas/google.protobuf.Timestamp",
"$ref-value": {
"type": "string",
"examples": [
"2023-01-15T01:30:15.01Z",
"2024-12-25T12:00:00Z"
],
"format": "date-time",
"description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
}
}
},
"title": "VideoUpload",
"additionalProperties": false,
"description": "VideoUpload carries the upload URLs for a video and its poster. On renewal a\n URL is empty when that object has already been received."
}
}