# Retrieve IDP tokens with specific parameters

**URL:** <https://forum.keycloak.org/t/retrieve-idp-tokens-with-specific-parameters/17668>\
**Category:** Miscellanaeous\
**Tags:** identity-brokering\
**Created:** [September 29, 2022, 12:54pm UTC](https://forum.keycloak.org/t/retrieve-idp-tokens-with-specific-parameters/17668 "2022-09-29T12:54:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hozaangelica](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/hozaangelica/32/6668_2.png) [@hozaangelica](https://forum.keycloak.org/u/hozaangelica)\
**Post date:** [September 29, 2022, 12:54pm UTC](https://forum.keycloak.org/t/retrieve-idp-tokens-with-specific-parameters/17668/1 "2022-09-29T12:54:54Z")

</div>

Hello,

I was wondering if there is a way to retrieve an identity provider token with specific parameters. I noticed here that we can don a GET request to retrieve an identity provider token: [Retrieving External IDP Tokens | keycloak-documentation](https://wjw465150.gitbooks.io/keycloak-documentation/content/server_admin/topics/identity-broker/tokens.html) but is there a way to do a POST request in which we can retrieve an identity provider token for a specifc scope for example?

Thank you!

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [September 29, 2022, 3:05pm UTC](https://forum.keycloak.org/t/retrieve-idp-tokens-with-specific-parameters/17668/2 "2022-09-29T15:05:35Z")

</div>

This is the token that is fetched from the remote IdP during a brokered login. If you need a token with a specific scope, you need to specify that scope when you set up the IdP in the admin UI.
