This endpoint retrieves a list of all AWS S3 private connections you have configured for your Pictory account. Use this to view your existing connections, check their status, and get connection IDs for use in video creation requests.
You need a valid API key to use this endpoint. Get your API key from the API Access page in your Pictory dashboard.
Replace YOUR_API_KEY with your actual API key that starts with pictai_
# Retrieve all AWS connections# Replace YOUR_API_KEY with your actual API keycurl --request GET \ --url https://api.pictory.ai/pictoryapis/v1/awsconnections \ --header 'Authorization: YOUR_API_KEY' \ --header 'accept: application/json' | python -m json.tool
When creating videos with private S3 assets, you need to provide the awsConnectionId. Use this endpoint to retrieve it:
// Get all connections and find the one you needconst result = await getAwsConnections(apiKey);const myConnection = result.Items.find(conn => conn.name === 'PictoryPrivateVideosConnection');if (myConnection) { console.log('Use this ID in video requests:', myConnection.connectionId);}
result = get_aws_connections(api_key)for connection in result['Items']: status = "Active" if connection['enabled'] else "Disabled" print(f"{connection['name']}: {status}")