---
schema_version: "1"
id: 2fa1d3420cf54e86916b1b96ba6568de107830fe5b3b0fccc0782af82f6aabba
title: Generate an OAuth Access Token
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/einstein-vision-language/einstein/guides/Work-With-Tokens/generate-an-oauth-access-token.md
canonical_url: https://developer.salesforce.com/docs/analytics/einstein-vision-language/guide/generate-an-oauth-access-token.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f4ab755ffb0604d35e68904338dc7261a974b9d7e9cc88cd38b5fe57c5070912
products:
  - Einstein Vision and Language
  - Einstein Vision and Language Repo
---

# Generate an OAuth Access Token

A JWT access token is required to make any Einstein Vision and Language API calls.

There are three ways to generate an access token.

- Web UI—Use the [token page](https://api.einstein.ai/token) to enter your username (most likely your email address), upload your private key file, and generate a JWT token.

- Programmatically using your key—Load your private key, generate an assertion, and call the API to get an access token. You must monitor when the token expires and generate a new one.

- Programmatically using a refresh token—Load your private key, generate an assertion, and call the API to get a refresh token. Use that refresh token from then on call the API and generate an access token.
