REST API - Logon Rest API returning unexpected result
97
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 16:07 PM
Symptom
When calling the logon rest api the following type of content is returned instead of a token:-
<!-- -->
<!doctype html>
<html ca:clipboardenabled="true" lang="en" data-critters-container>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="IE=edge">
<title>Password Vault</title>
<base href="/PasswordVault/v10/">
<link rel="stylesheet" href="/PasswordVault/v10/assets/cyb-loading-page.component.css">
<script type="text/javascript">
window.__environmentDetails = {
passwordVault: "/PasswordVault"
};.....
etc
Environment
11.5;12.2;12.6;13.0;13.2;14.0;14.2 Privilege Cloud Cyber-Ark API/SDK REST API
Cause
The content-type header is set incorrectly in the REST API call
Resolution
Ensure that the REST API includes the content-type header of application/json