# Unable to get Keyid in LA-URL Post request - (Bitmovin Player)

**URL:** <https://community.bitmovin.com/t/unable-to-get-keyid-in-la-url-post-request-bitmovin-player/2698>\
**Category:** Support\
**Tags:** drm\
**Created:** [March 11, 2024, 2:54am UTC](https://community.bitmovin.com/t/unable-to-get-keyid-in-la-url-post-request-bitmovin-player/2698 "2024-03-11T02:54:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajeshrai0512](https://avatars.discourse-cdn.com/v4/letter/r/9dc877/32.png) [@rajeshrai0512](https://community.bitmovin.com/u/rajeshrai0512)\
**Post date:** [March 11, 2024, 2:54am UTC](https://community.bitmovin.com/t/unable-to-get-keyid-in-la-url-post-request-bitmovin-player/2698/1 "2024-03-11T02:54:38Z")

</div>

We are using AES Clear Key Protection for our assets. We are using LA-URL at source configuration at bitmovin player. Please see our below code snippets.

var source = {  
title: ‘Demo’,  
dash: ‘[https://amsplaybackproxy.azurewebsites.net/ytmigratednew/ams-migration-output/asset-adbea63c-0efa-442c-aa4f-d5129a4eb73c/video\_AppleMusicUpNext\_AmyShark\_.mpd?token=rajesh](https://amsplaybackproxy.azurewebsites.net/ytmigratednew/ams-migration-output/asset-adbea63c-0efa-442c-aa4f-d5129a4eb73c/video_AppleMusicUpNext_AmyShark_.mpd?token=rajesh)’,  
drm: {  
clearkey: {  
LA\_URL: “[https://spherexlicenseserver.azurewebsites.net/api/bitmovin](https://spherexlicenseserver.azurewebsites.net/api/bitmovin)”,  
headers: {  
‘content-type’: ‘application/json’  
}  
}  
}  
};

In the above LA-URL post-API calls we are getting key ids as null, even though our goal is to return keys based on keyids. Can someone please explain what this place is lacking?  
We would appreciate for prompt reply from the community.  
Thanks

---

<div class="post-metadata">

**Author:** ![lucky.goyal](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/lucky.goyal/32/506_2.png) [@lucky.goyal](https://community.bitmovin.com/u/lucky.goyal)\
**Post date:** [March 12, 2024, 2:15pm UTC](https://community.bitmovin.com/t/unable-to-get-keyid-in-la-url-post-request-bitmovin-player/2698/2 "2024-03-12T14:15:08Z")

</div>

Hi @rajeshrai0512 , thanks for sharing your question. I did a quick test and found that Bitmovin player is sending ClearKey request with following payload which is as expected.

```auto
{kids: ["k-mXZeuFRQaQ2ieEjrzHtQ"], type: "temporary"}
kids
: 
["k-mXZeuFRQaQ2ieEjrzHtQ"]
type
: 
"temporary"

```

But the clearkey server(hosted at [https://spherexlicenseserver.azurewebsites.net/api/bitmovin](https://spherexlicenseserver.azurewebsites.net/api/bitmovin)) is returning a response with null values. Can you please check this on the server side for the reason for such response?

```auto
{keys: [{kty: null, k: null, kid: null}], type: "temporary"}
keys
: 
[{kty: null, k: null, kid: null}]
type
: 
"temporary"

```
