LTI Key/Secret is not configured correctly. Please use the account level Key/Secret(2206)

API Endpoint(s) and/or Zoom API Event(s)
https://applications.zoom.us/api/v1/lti/rich/meeting/bulkImport
Description
This is my code:

$secrets = Get-Content $PSScriptRoot\secrets.json | ConvertFrom-Json


$key= $secrets.LTI_KEY
$lti_secret = $secrets.LTI_SECRET
$timestamp = [int][double]::parse((Get-Date -Date $((Get-Date).ToUniversalTime()) -UFormat %s))
$query = "key=$key&timestamp=${timestamp}000"


$SigningAlgorithm = New-Object System.Security.Cryptography.HMACSHA1
$SigningAlgorithm.Key = [System.Text.Encoding]::UTF8.GetBytes($lti_secret)
$Signature = [Convert]::ToBase64String($SigningAlgorithm.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($query))).Split('=')[0].Replace('+', '-').Replace('/', '_')

$headers=@{}
$headers.Add("X-Lti-Signature", "$Signature")
$headers.Add("Content-Type", "application/json")

$meetingID = "86556546274"
$contextID = "273722"

$APIbody =  "[{`"meetingId`": `"" + $meetingID + "`",`"contextId`": `"" + $contextID + "`",`"domain`": `"https://sub.domain.com`"}]"


$uri = 'https://applications.zoom.us/api/v1/lti/rich/meeting/bulkImport?key=' + $lti_key + '&timestamp=' + $timestamp + '000' 
Invoke-RestMethod $uri -Method 'POST' -Headers $headers -ContentType 'application/json' -Body $APIbody

I created meeting via Zoom REST API
This is a recuring meeting
ContextID taken from Moodle (from an iframe of zoom/lti page)
LTI key and secret taken from LTI Pro configuration page at Zoom market place site

Question:
Is there some documentation for LTI Pro where one can lookup what does this error message mean exactly?

Error?
status errorCode errorMessage

false 2206 LTI Key/Secret is not configured correctly. Please use the account level Key/Secret(2206).

Thank You!

Hi @vladimird ,

Here are the links to the docs: Configuring LTI Pro - Zoom Support

Please also see the associated links on the left:

Thank You!
I found bug in my code.
That was the reason
$lti_key should be $key

Thank You!

Glad it’s resolved :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.