🚀 Introducing MARS8 Series — Four Powerful Variants | Available on All Major Clouds | Learn about the model here
🚀 Introducing MARS8 Series — Four Powerful Variants | Available on All Major Clouds | Learn about the model here
Retrieves the comprehensive results of a completed project setup process, providing detailed information about your prepared project and its readiness for editing in CAMB.AI Studio.
curl --request GET \
--url https://client.camb.ai/apis/project-setup-result/{run_id} \
--header 'x-api-key: <api-key>'{
"run_id": 1,
"project_details": {
"project_name": "<string>",
"project_description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"source_language": 1,
"target_languages": [
1
],
"folder_id": 1,
"studio_url": "<string>"
}
}Access the complete details of your finished project setup with this essential endpoint. Once your project setup task has completed its preparation process, this API call delivers comprehensive information about your newly configured project, including all the analysis results, configuration details, and metadata that make your content ready for creative editing in CAMB.AI Studio. Think of this as receiving your project’s complete preparation report, telling you everything the system discovered and configured during the setup process.Documentation Index
Fetch the complete documentation index at: https://docs.camb.ai/llms.txt
Use this file to discover all available pages before exploring further.
run_id that becomes available once your project setup task has completed successfully. This identifier serves as your unique key to access all the detailed information about your prepared project. Think of the run_id as your project’s passport, providing access to everything the system learned and configured during the preparation process.
import requests
import json
from datetime import datetime
# Configure authentication headers for API access
headers = {
"x-api-key": "your-api-key", # Replace with your actual API key
"Content-Type": "application/json",
}
def get_project_setup_result(run_id):
"""
Retrieves the comprehensive results of a finished project setup task.
This function accesses all the detailed information about your prepared project,
including analysis results and configuration details that inform Studio editing.
The returned data provides everything your creative team needs to understand
the project structure and begin effective editing work.
"""
try:
# Make the API request to retrieve setup results
response = requests.get(
f"https://client.camb.ai/apis/project-setup-result/{run_id}",
headers=headers,
)
# Verify that the request completed successfully
response.raise_for_status()
# Parse the comprehensive project setup results
result_data = response.json()
# Extract key project information for workflow coordination
run_details = result_data.get("run_details")
return run_details
except requests.exceptions.RequestException as e:
print(f"Error retrieving project setup results: {e}")
if hasattr(e, "response") and e.response is not None:
print(f"Response content: {e.response.text}")
return None
# Replace with your actual run_id from the completed setup task
run_id = 12345
project_results = get_project_setup_result(run_id)
# Process and display detailed project information if results were retrieved successfully
if project_results:
project_name = project_results.get("project_name", "Unnamed Project")
description = project_results.get("project_description")
creation_time = project_results.get("created_at")
duration = project_results.get("duration")
source_language = project_results.get("source_language")
target_languages = project_results.get("target_languages", [])
studio_url = project_results.get("studio_url", None)
print("\n--- Detailed Project Analysis ---")
print(f"Run ID: {run_id}")
print(f"Successfully retrieved setup results for: {project_name}")
# Show project description for context understanding
if description:
print(f"Project description: {description}")
# Display timing information for project management
if creation_time:
# Convert ISO timestamp to readable format for team coordination
created = datetime.fromisoformat(creation_time.replace("Z", "+00:00"))
print(f"Project created: {created.strftime('%Y-%m-%d %H:%M:%S UTC')}")
# Display duration information for resource planning
if duration:
# Convert seconds to minutes and seconds for easier understanding
minutes = int(duration // 60)
seconds = int(duration % 60)
print(f"Media duration: {minutes}m {seconds}s ({duration:.1f} seconds)")
# Display organizational information for team coordination
if team_id:
print(f"Team ID: {team_id}")
# Show language configuration that determines dubbing scope
print(f"Source language ID: {source_language}")
# Show target language details for localization planning
print(f"Target languages: {len(target_languages)} configured")
print("This project will create dubbed versions in each configured language")
print("\nProject is ready for creative editing in CAMB.AI Studio")
if studio_url:
print(f"Your team can now access this project to begin detailed dubbing work using this URL: {studio_url}")
The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.
The unique identifier for the run, which was generated during the project setup process and returned upon task completion. The unique identifier for the run, which was generated during the creation process and returned upon task completion.
Successful Response
The unique identifier for the run, which was generated during the Project setup process and returned upon task completion.
x >= 0Hide child attributes
This represents the human-readable project identifier you provided when creating the project setup. Think of this as the project's display name that appears throughout CAMB.AI Studio, helping your team quickly identify which content piece they're working with.
3 - 255This field contains the detailed project context you provided during setup, serving as documentation that travels with your project throughout its lifecycle. The description becomes particularly valuable when projects move between team members or when you return to work after time has passed.
3 - 5000This timestamp in UTC timezone marks the exact moment your project setup was initiated, providing crucial information for workflow coordination and project management.
This identifies the original language of your media content, representing one of the most critical configuration decisions that influences every subsequent processing step.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 73, 74, 75, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 139, 140, 141, 142, 143, 144, 145, 146, 148 This array contains all the languages you've requested for dubbing output, and each entry will be available in your CAMB.AI Studio project.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150 This optional field indicates the organizational folder where your project resides within your team's workspace structure. Think of this as your project's filing location within CAMB.AI Studio, helping maintain organized project management as your content library grows.
x >= 0This field contains the direct URL link to access your project within CAMB.AI Studio's web interface. Once your project setup is complete, this URL serves as the primary entry point for all creative work, allowing you and your team members to navigate directly to the project's workspace where you can review transcripts, adjust timing, refine translations, and manage the dubbing process.
curl --request GET \
--url https://client.camb.ai/apis/project-setup-result/{run_id} \
--header 'x-api-key: <api-key>'{
"run_id": 1,
"project_details": {
"project_name": "<string>",
"project_description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"source_language": 1,
"target_languages": [
1
],
"folder_id": 1,
"studio_url": "<string>"
}
}