Use of App Shielding REST API

0 votes


We are trying to automate the app shielding process in our CI platform by using the REST API.

The API method takes a file as a parameter but on use it returns "(422) Unprocessable Entity."

Below the PowerShell code:

$headers = @{"X-API-KEY" = "$apikey"
    "Content-Type"         = "application/json"

$filepath = "app-release.aab"

$uri = ""

$response = Invoke-RestMethod -Uri $uri -Method Post -Headers $headers

I've tried adding the file as an inputfile in the Invoke-RestMethod as such :

Invoke-RestMethod -Uri $uri -Method Post -Headers $headers -InFile $filepath,

but it returns an error 500 from the server.

Has anyone an idea on what's expected to be set as the file and if it does indeed upload the binary?




Reply to: Use of App Shielding REST API

0 votes

Hi Samy,


Please kindly raise your question to [email protected] and our support agents would reply back to you in a short time.



Duo Liang OneSpan Evangelism and Partner Integrations Developer

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off