# Generate API token
NB : You need to be a root user to proceed
## Steps
* Go to Postman
* If you don't have "Bigle function" Collection :
* download it here https://drive.google.com/file/d/1R_k1Cs0_-DJ1B5Zs1b86D36Uw0Lb2hP1/view?usp=sharing
* import the file in the collection folder
* 
You need your workspace UID and your bearer token
* Token :
* Go on https://bigle-platform-test.firebaseapp.com/
* Inspect and go on network
* You can find your token under the call userEU-getHubspotToken in Headers Request Headers
* Workspace UID :
* Go on https://bigle-platform-test.firebaseapp.com/
* Inspect and go on Redux RevTools
* Select mainState.workspace.uid
You need now to set those values in Postman
* Go to Postman
* Select "Bigle function" Collection
* Select "Generate API Token Test"(select the environment for which you need the token)
* In Headers replace Authorization with your token

* In Body replace workspaceUid with your workspace UID

NB : In audience you can select for which API you are generating the token (ex : apiDocument, apiSignature, apiModel, apiDocumentSharing)
** Token Duration : 1h **