---
title: "Obtain Upstream Token"
canonical: "https://wiki.patientsknowbest.com/space/api/4644012033/Obtain%20Upstream%20Token"
format: markdown
---
> Macro (toc)

# How To

- Using OAuth2.0 obtain a token for the customer endpoint.  The following parameters are required to make the call.
  - Upstream FHIR client id and client secret are provided to you by PKB once a date for development has been agreed upon.
  - Endpoint: **[https://keycloak.devstacks.pkb.io/auth/realms/pkb/protocol/openid-connect/token](https://keycloak.devstacks.pkb.io/auth/realms/pkb/protocol/openid-connect/token)**

# Parameters

> Macro (excerpt-include)

> Macro (excerpt-include)



# Example

> Macro (excerpt-include)



# Error Handling

> Macro (excerpt-include)