# RequestModel null in Api

**URL:** <https://forum.litium.com/t/requestmodel-null-in-api/445>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [December 19, 2018, 3:30pm UTC](https://forum.litium.com/t/requestmodel-null-in-api/445 "2018-12-19T15:30:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@martin](https://forum.litium.com/u/martin)\
**Post date:** [December 19, 2018, 3:30pm UTC](https://forum.litium.com/t/requestmodel-null-in-api/445/1 "2018-12-19T15:30:46Z")

</div>

Im trying to access the RequestModel in RequestModelAccessor in my webapi but it doesn’t seem to set, as i understand it SetupWebApi in WebApiConfig should take care of this but that doesn’t seem to run either.

Litium version: 7.0.0

---

<div class="post-metadata">

**Author:** ![ton.nguyen](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/ton.nguyen/32/27_2.png) [@ton.nguyen](https://forum.litium.com/u/ton.nguyen)\
**Post date:** [December 20, 2018, 3:44pm UTC](https://forum.litium.com/t/requestmodel-null-in-api/445/2 "2018-12-20T15:44:38Z")

</div>

You need to send the ‘litium-request-context’ in the request header so the server can detect the Request context. The value of ‘litium-request-context’ header should be an instance of SiteSettingViewModel
