API Endpoint(s) and/or Zoom API Event(s)
get/aic/users/{userId}/conversation_archive
Description
I have successfully authenticated to this AI Companion Archive endpoint, but when I make a call to the endpoint to get an output for a specific user, I get no relevant information. See in error section below. User_ID, email and display_name are filled out but nothing else is
Error?
user_id : asdfawsergawergas
email : test@summitpartners.com
display_name : Test
start_time :
end_time :
timezone :
aic_history_download_url :
file_extension :
file_size :
file_type :
physical_files :
How To Reproduce
Here’s the code I’m using within Powershell - just trying to get an example output for now. Cleaned up for obvious reasons.
==============================
1. CONFIG
==============================
$AccountId = “”
$ClientId = “”
$ClientSecret = “”
Manually set the userId you want to query
$UserId = “”
==============================
2. Generate Basic Auth Header
==============================
$pair = “$ClientId`:$ClientSecret”
$bytes = [System.Text.Encoding]::ASCII.GetBytes($pair)
$base64 = [System.Convert]::ToBase64String($bytes)
$authHeader = “Basic $base64”
==============================
3. Get access token
==============================
$tokenUrl = “https://zoom.us/oauth/token?grant_type=account_credentials&account_id=$AccountId”
Write-Host “Requesting access token…” -ForegroundColor Cyan
$tokenResponse = Invoke-RestMethod -Method POST
-Uri $tokenUrl `
-Headers @{ “Authorization” = $authHeader }
$accessToken = $tokenResponse.access_token
Write-Host “Access token received.” -ForegroundColor Green
==============================
4. Call AI Companion Conversation Archive
==============================
$archiveUrl = “https://api.zoom.us/v2/aic/users/$UserId/conversation_archive”
Write-Host “Calling: $archiveUrl” -ForegroundColor DarkGray
$archiveResponse = Invoke-RestMethod -Method GET
-Uri $archiveUrl `
-Headers @{ “Authorization” = “Bearer $accessToken” }
==============================
5. Output
==============================
Write-Host “`n=== AI Companion Conversation Archive ===” -ForegroundColor Yellow
$archiveResponse | Format-List