We're Hiring!

Mattermost, Inc.

Post to /api/v4/posts fails with 404

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

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.

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:
    http:/localhost:8065/api/v4/posts
    
2 Likes