v1
latestOpenAPI 3.1.02026-07-24251250397.8 KBtransformations
Transform content
Transforms content using a transformation agent in a single API call
This endpoint orchestrates the following operations:
- Locates an existing project by external_id, or creates a new one
- Creates an input asset from the provided content
- Queues a transformation run for processing
Input requirements:
- article_to_audio, article_to_podcast, and article_to_video agents require asset_type: "article"
- text_to_audio agents require asset_type: "text"
put/v2/sites/{site_id}/transformation_transform/
Path parameters
site_idstring required
Unique identifier for a resource
Example:Ny05CEfj
Unique alphanumeric ID of the site
Request body
Example request
{
"transformation_agent_id": "Ny05CEfj"
}Response
Transformation run successfully created
Example response
{
"id": "Ny05CEfj",
"site_id": "Ny05CEfj",
"run_inputs": {
"input_asset_version_ids": [
"Ny05CEfj"
],
"step_inputs": [
{
"input_asset_version_ids": [
"Ny05CEfj"
]
}
]
},
"output_asset_version_ids": [
"Ny05CEfj"
],
"relationships": {
"project": {
"id": "Ny05CEfj"
},
"transformation_agent": {
"id": "Ny05CEfj"
}
}
}