# Access Token ## Overview If you want to automate tasks with the Argo Server API or CLI, you will need an access token. ## Prerequisites Firstly, create a role with minimal permissions. This example role for jenkins has only permission to list and update workflows in the `argo` namespace: ```bash kubectl create role jenkins --verb=list,update --resource=workflows.argoproj.io -n argo ``` Create a service account for your service in the same namespace: ```bash kubectl create sa jenkins -n argo ``` ### Tip for Token Creation Create a unique service account for each client: - (a) you'll be able to correctly secure your workflows - (b) [revoke the token](#token-revocation) without impacting other clients. Bind the service account to the role: ```bash kubectl create rolebinding jenkins --role=jenkins --serviceaccount=argo:jenkins -n argo ``` ## Token Creation You now need to create a secret to hold your token: ```bash kubectl apply -f - <