Use this endpoint to obtain a Salesforce OAuth 2.0 token response that you will use to authenticate calls to Zilliant APIs.
Where to send the request
Send this POST request to the Salesforce login server for your org type:
- Production or developer orgs: https://login.salesforce.com
- Sandbox orgs: https://test.salesforce.com
Salesforce returns a JSON token response. Base64-encode the entire response body (encode the full JSON payload, not only the
access_token field). Then include the encoded value in the Authorization header for Zilliant API requests in this format: Authorization: OAuth <tokenResponseBase64>. Environment-specific tokens
Generate and use a separate token response for each environment, for example, DEV and PROD. Do not reuse a token response across environments.
Rate limits and caching
Salesforce limits authentication calls to 3600 calls per hour per user. Cache the token response and reuse it until the token expires. When it expires, request a new token response, Base64-encode it, and update the
Authorization header value.
OAuth 2.0 grant type. Must be set to password.
Username of the user.
Password of the user.
Consumer key of the Zilliant OAuth connected app. If Zilliant owns and administers the Salesforce org, contact your Zilliant representative for this value.
Consumer secret of the Zilliant OAuth connected app. If Zilliant owns and administers the Salesforce org, contact your Zilliant representative for this value.
Successful response retuturning an access token.
{
"access_token": "",
"instance_url": "",
"id": "",
"token_type": "Bearer",
"issued_at": " OAuth 2.0 access token.
Base URL of your Salesforce instance.
Identity URL that includes the organization ID and user ID.
Type of token.
Time at which the access token was issued.
Signature that you can use to verify the access token.