Get an Einstein Platform Services Account
If you don't already have a Salesforce org, you can sign up for a free Developer Edition. If you're a Salesforce customer, you can skip this step.
From a browser, navigate to the sign up page.
Click Sign Up Using Salesforce.
- On the Salesforce login page, type your username and password, and click Log In. If you’re already logged in to Salesforce, you won’t see this page and you can skip to Step 4.
- Click Allow so the page can access basic information, such as your email address, and perform requests.
On the activation page, click Download Key to save the key locally. The key file is named
einstein_platform.pem
. If you can't download it, cut and paste your key from the browser into a text file and save it aseinstein_platform.pem
.Make a note of where you save the key file because you'll need it to authenticate when you call the API.
Check your email for a link to verify your new account. You must verify your account to successfully call the API.
Note
When you sign up using Salesforce, if you see an error that the org doesn't allow access to the connected app, this means that the org you signed up with has login restrictions. See the Troubleshooting Page to resolve the issue.
Generate a Token
Each API call must contain a valid OAuth token in the request header. To generate a token, you create a JWT payload, sign the payload with your private key, and then call the API to get the token.
To get a token without code, see Set Up Authorization. If you're generating a token in code, the sequence of steps is the same, but the details will vary depending on the programming language.
By default, the Einstein Platform Services APIs use TLS (Transport Layer Security) version 1.1 and require secure connections (HTTPS) for all communication.
Updated 6 months ago