# Web API 404 not found

**URL:** <https://community.homey.app/t/web-api-404-not-found/36384>\
**Category:** Developers\
**Created:** [October 23, 2020, 11:18am UTC](https://community.homey.app/t/web-api-404-not-found/36384 "2020-10-23T11:18:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ludvig](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ludvig/32/129091_2.png) [@Ludvig](https://community.homey.app/u/Ludvig)\
**Post date:** [October 23, 2020, 11:18am UTC](https://community.homey.app/t/web-api-404-not-found/36384/1 "2020-10-23T11:18:17Z")

</div>

Im trying to develop a new app and I need a simple api call enabled. So to start I just added a api.js file and more or less just copy pasted in the example.

> module.exports = [  
> {  
> method: “GET”,  
> path: “/”,  
> public: true,  
> fn: function (args, callback) {  
> //const result = Homey.app.getSomething();  
> const result = “hej”;  
> // callback follows ( err, result )  
> callback(null, result);
> 
> ```
> // access /?foo=bar as args.query.foo
> },
> 
> ```
> 
> },  
> ];

But I get 404 not found.  
Im using this URL:  
[https://XXX.connect.athom.com/api/app/com.myapp/](https://XXX.connect.athom.com/api/app/com.myapp/)

It feels like there is just something small missing. Some permission or something. Have worked with it a long time a go but cant remember now.

Any body that can give me a hint

---

<div class="post-metadata">

**Author:** ![Ludvig](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ludvig/32/129091_2.png) [@Ludvig](https://community.homey.app/u/Ludvig)\
**Post date:** [October 23, 2020, 12:17pm UTC](https://community.homey.app/t/web-api-404-not-found/36384/3 "2020-10-23T12:17:31Z")

</div>

Looks like its a SDK 3 thing. I changed to SDK 2 and it works.
