# POST APIs are not working after deploying to our domain/server

**URL:** <https://forum.mattermost.com/t/post-apis-are-not-working-after-deploying-to-our-domain-server/13188>\
**Category:** Troubleshooting\
**Created:** [April 11, 2022, 9:09am UTC](https://forum.mattermost.com/t/post-apis-are-not-working-after-deploying-to-our-domain-server/13188 "2022-04-11T09:09:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajeshwarpatlolla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rajeshwarpatlolla/32/5316_2.png) [@rajeshwarpatlolla](https://forum.mattermost.com/u/rajeshwarpatlolla)\
**Post date:** [April 11, 2022, 9:09am UTC](https://forum.mattermost.com/t/post-apis-are-not-working-after-deploying-to-our-domain-server/13188/1 "2022-04-11T09:09:45Z")

</div>

#### Summary

All POST APIs are working fine in a local machine while we are developing the application. Once deployed to the server POST APIs are not working, but other APIs are working fine.  
 ![Screenshot 2022-04-08 at 2 33 52 PM](https://user-images.githubusercontent.com/9896335/162403509-db17de8f-7f46-4aa3-8d10-7aec9fc32b1d.png)

I am getting the below response

`{"id":"api.context.session_expired.app_error","message":"Invalid or expired session, please login again.","detailed_error":"","request_id":"xao73nqj6b8h9pxxxxxxxxxxxxxx","status_code":401}`

#### Steps to reproduce

Use any POST APIs on the server

#### Expected behavior

POST APIs should also work fine on the server

#### Observed behavior (that appears unintentional)

POSt APIs are not working after deploying to the server

#### Possible fixes

NA

Please help in fixing this issue on server
