Cloud reference
Artifacts
Authorization
DeveloperCredential AuthorizationBearer <token>
In: header
Header Parameters
Idempotency-Key*string
Length
16 <= length <= 128Request Body
application/json
project_id*OpaqueId
Exactly 16 cryptographically random Base62 characters.
Match
^[A-Za-z0-9]{16}$Length
16 <= length <= 16purpose*string
Value in
- "tts_text"
- "job_input"
- "reference_audio"
- "source_media"
- "subtitle"
- "cover_image"
- "document_import"
media_type*string
Length
length <= 128size_bytes*integer
Range
1 <= valuesha256*string
Match
^[a-f0-9]{64}$declared_duration_seconds?integer
Required for audio when the server cannot measure a trustworthy container duration, and for Dubbing source_media video so audio-second work can reserve against its bounded timeline.
Range
1 <= value <= 14400retention_policy?string
Length
length <= 64Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/artifacts/upload-authorizations" \
-H "Idempotency-Key: stringstringstri" \
-H "Content-Type: application/json" \
-d '{
"project_id": "stringstringstri",
"purpose": "tts_text",
"media_type": "string",
"size_bytes": 1,
"sha256": "string"
}'{
"artifact_id": "stringstringstri",
"method": "PUT",
"url": "http://example.com",
"required_headers": {
"property1": "string",
"property2": "string"
},
"expires_at": "2019-08-24T14:15:22Z"
}Authorization
DeveloperCredential AuthorizationBearer <token>
In: header
Path Parameters
artifact_id*string
Exactly 16 cryptographically random Base62 characters.
Match
^[A-Za-z0-9]{16}$Length
16 <= length <= 16Header Parameters
Idempotency-Key*string
Length
16 <= length <= 128Request Body
application/json
size_bytes*integer
Range
1 <= valuesha256*string
Match
^[a-f0-9]{64}$Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/artifacts/stringstringstri/complete" \
-H "Idempotency-Key: stringstringstri" \
-H "Content-Type: application/json" \
-d '{
"size_bytes": 1,
"sha256": "string"
}'{
"id": "stringstringstri",
"project_id": "stringstringstri",
"purpose": "string",
"state": "pending",
"media_type": "string",
"size_bytes": 0,
"sha256": "string",
"duration_ms": 0,
"created_at": "2019-08-24T14:15:22Z"
}Authorization
DeveloperCredential AuthorizationBearer <token>
In: header
Path Parameters
artifact_id*string
Exactly 16 cryptographically random Base62 characters.
Match
^[A-Za-z0-9]{16}$Length
16 <= length <= 16Header Parameters
Idempotency-Key*string
Length
16 <= length <= 128Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/artifacts/stringstringstri/download-authorization" \
-H "Idempotency-Key: stringstringstri"{
"method": "GET",
"url": "http://example.com",
"expires_at": "2019-08-24T14:15:22Z"
}