# Use auth for swagger api

**URL:** <https://community.auth0.com/t/use-auth-for-swagger-api/8618>\
**Category:** Get Help\
**Tags:** swagger, api, authentication\
**Created:** [October 30, 2017, 7:15am UTC](https://community.auth0.com/t/use-auth-for-swagger-api/8618 "2017-10-30T07:15:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinak](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sinak](https://community.auth0.com/u/sinak)\
**Post date:** [October 30, 2017, 7:15am UTC](https://community.auth0.com/t/use-auth-for-swagger-api/8618/1 "2017-10-30T07:15:45Z")

</div>

Hi guys,  
I need to use swagger api which use auth() for authorization,  
flow implicit grant  
I dont know how I can get token key as api’s client  
can you help me what should i do to conect api through auth()?  
my app is php website

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/use-auth-for-swagger-api/8618/2 "2018-03-02T05:57:12Z")

</div>


