# Create API with JWT authentification

**URL:** <https://discourse.slimframework.com/t/create-api-with-jwt-authentification/4578>\
**Category:** Questions\
**Created:** [December 29, 2020, 12:09pm UTC](https://discourse.slimframework.com/t/create-api-with-jwt-authentification/4578 "2020-12-29T12:09:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elieguei225](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@elieguei225](https://discourse.slimframework.com/u/elieguei225)\
**Post date:** [December 29, 2020, 12:09pm UTC](https://discourse.slimframework.com/t/create-api-with-jwt-authentification/4578/1 "2020-12-29T12:09:44Z")

</div>

Good evening friends I want to create an API with slim and JWT but I don’t know how to proceed

---

<div class="post-metadata">

**Author:** ![laborc](https://avatars.discourse-cdn.com/v4/letter/l/46a35a/32.png) [@laborc](https://discourse.slimframework.com/u/laborc)\
**Post date:** [December 29, 2020, 3:11pm UTC](https://discourse.slimframework.com/t/create-api-with-jwt-authentification/4578/2 "2020-12-29T15:11:54Z")

</div>

Hello eliegueli!  
I personally think the best way to start is:

> **[Home](https://odan.github.io/slim4-skeleton/)**
>
> Slim 4 Skeleton

There is also a solution for jwt.  
So you probably save yourself a lot of time going down this path 🙂  
all the best  
Mario

---

<div class="post-metadata">

**Author:** ![elieguei225](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@elieguei225](https://discourse.slimframework.com/u/elieguei225)\
**Post date:** [December 29, 2020, 3:32pm UTC](https://discourse.slimframework.com/t/create-api-with-jwt-authentification/4578/3 "2020-12-29T15:32:02Z")

</div>

Can you help me? I really need help. If you have at least one sample code.

---

<div class="post-metadata">

**Author:** ![laborc](https://avatars.discourse-cdn.com/v4/letter/l/46a35a/32.png) [@laborc](https://discourse.slimframework.com/u/laborc)\
**Post date:** [December 30, 2020, 9:32am UTC](https://discourse.slimframework.com/t/create-api-with-jwt-authentification/4578/4 "2020-12-30T09:32:35Z")

</div>

the Slim 4 Skeleton is the sample code you are looking for.  
regarding the jwt part \> you can get it via [https://odan.github.io/2019/12/02/slim4-oauth2-jwt.html](https://odan.github.io/2019/12/02/slim4-oauth2-jwt.html)  
its 10 usd \> this is more than a fair thing - if you think how long you will sit to develop it for yourself.  
and the implementation is spot-on  
there are so many things to consider, if you want to develop a secure jwt solution. this is the solution for that I can tell you - I have looked a lot 🙂
