Unify and manage your data

Verify Salesforce credentials

Learn how to use this API to verify Salesforce credentials.

Request

Operation Endpoint:

POST {SFDCConnectorURL}/verify/salesforce
Table 1. Parameters
Parameter Required Description
Headers Authorization Yes Access Token in the format "Bearer <accessToken>" (see details in Authentication API)
Content-Type Yes Must be "Content-Type: application/json"
Body Yes
Note: Add the Salesforce token to the password.
{
   "loginUrl":"<link to Salesforce>",
    "user": "<username>",
    "password": "<password>"
}

Response

Success: 200 status:
{
    "errors": [],
    "warnings": []
}
Error:   400 Bad Request, {
    "errors": [
        "Connection to Salesforce not established: Error: INVALID_LOGIN: Invalid username, password, security token; or user locked out.\n    at /usr/src/app/node_modules/jsforce/lib/connection.js:1552:13\n    at tryCallOne (/usr/src/app/node_modules/promise/lib/core.js:37:12)\n    at /usr/src/app/node_modules/promise/lib/core.js:123:15\n    at flush (/usr/src/app/node_modules/asap/raw.js:50:29)\n    at processTicksAndRejections (internal/process/task_queues.js:77:11)"
    ],
    "warnings": []
}