This endpoint retrieves detailed information about a specific AWS S3 private connection using its unique connection ID. Use this to verify connection settings, check status, or retrieve configuration details for a particular connection.
You need a valid API key to use this endpoint. Get your API key from the API Access page in your Pictory dashboard.
The unique identifier of the AWS connection you want to retrieve. This is the connectionId value returned when you created the connection or from the list connections endpoint.
Replace YOUR_API_KEY with your actual API key that starts with pictai_Replace YOUR_CONNECTION_ID with the actual connection ID you want to retrieve
Report incorrect code
Copy
Ask AI
# Retrieve a specific AWS connection by ID# Replace YOUR_API_KEY with your actual API key# Replace YOUR_CONNECTION_ID with your connection IDcurl --request GET \ --url https://api.pictory.ai/pictoryapis/v1/awsconnections/YOUR_CONNECTION_ID \ --header 'Authorization: YOUR_API_KEY' \ --header 'accept: application/json' | python -m json.tool
Before creating a video with private S3 assets, verify the connection is still active:
Report incorrect code
Copy
Ask AI
// Check if connection exists and is enabledconst connection = await getAwsConnectionById(apiKey, connectionId);if (connection.enabled) { console.log('Connection is active and ready to use'); // Proceed with video creation} else { console.log('Connection is disabled. Enable it before creating videos.');}
// Check if a specific connection is enabledconst connection = await getAwsConnectionById(apiKey, connectionId);const status = connection.enabled ? 'Active' : 'Disabled';console.log(`Connection "${connection.name}" is ${status}`);