# GET user access token via api

**URL:** <https://forum.keycloak.org/t/get-user-access-token-via-api/14376>\
**Category:** Getting advice\
**Created:** [March 17, 2022, 11:08am UTC](https://forum.keycloak.org/t/get-user-access-token-via-api/14376 "2022-03-17T11:08:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pritamReck](https://avatars.discourse-cdn.com/v4/letter/p/a87d85/32.png) [@pritamReck](https://forum.keycloak.org/u/pritamReck)\
**Post date:** [March 17, 2022, 11:08am UTC](https://forum.keycloak.org/t/get-user-access-token-via-api/14376/1 "2022-03-17T11:08:37Z")

</div>

Hi guys,  
I was trying to get the access-token for the client that i created via the provided in this link:

> <https://github.com/keycloak/keycloak-documentation/blob/main/securing_apps/topics/token-exchange/token-exchange.adoc>

The error i got was:

```auto
{
    "error": "RESTEASY003210: Could not find resource for full path: http://0.0.0.0:8080/auth/realms/master/protocol/openid-connect/token"
}

```

The body params are:  
{  
“client\_id”:“admin”,  
“client\_secret”: “secret”  
“grant\_type”:“authorization\_code”  
}  
Also i am using keycloak 17 on as my local server. i was not able to find any api that fetches access-token in the keycloak 17 doc provided the required parameters . I am running the server in its default port 8080. is there any such api that can retrive the particular user’s access-token?

Please help me out.
