# Post to /api/v4/posts fails with 404

**URL:** <https://forum.mattermost.com/t/post-to-api-v4-posts-fails-with-404/10838>\
**Category:** Troubleshooting\
**Created:** [December 2, 2020, 4:01pm UTC](https://forum.mattermost.com/t/post-to-api-v4-posts-fails-with-404/10838 "2020-12-02T16:01:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@ryan](https://forum.mattermost.com/u/ryan)\
**Post date:** [December 2, 2020, 4:01pm UTC](https://forum.mattermost.com/t/post-to-api-v4-posts-fails-with-404/10838/1 "2020-12-02T16:01:59Z")

</div>

Hello, I am trying to post a message to: /api/v4/posts

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/2/2aa105d26db84b81b3568aac62c554a979ce86c5.png)

The call returns:  
{“id”:“api.context.404.app\_error”,“message”:“Sorry, we could not find the page.”,“detailed\_error”:“There doesn’t appear to be an api call for the url=’/api/v4/posts’. Typo? are you missing a team\_id or user\_id as part of the url?”,“status\_code”:404}

MM Server Version is 5.26.2.

---

<div class="post-metadata">

**Author:** ![andrew.bimba](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/andrew.bimba/32/4064_2.png) [@andrew.bimba](https://forum.mattermost.com/u/andrew.bimba)\
**Post date:** [December 3, 2020, 1:44am UTC](https://forum.mattermost.com/t/post-to-api-v4-posts-fails-with-404/10838/2 "2020-12-03T01:44:57Z")

</div>

Hi @ryan, It seems the error has to do with your POST url. Can you do the following:

1. Check the `SiteURL` setting in your **config.json** file.
2. When you make the API call, append `/api/v4/` to the full `SiteURL`. For example:

```auto
http:/localhost:8065/api/v4/posts

```
