Sandbox
Authenticates to a Salesforce sandbox using credentials from a registered production org. The production org must be registered using the /auth/salesforce/register endpoint first. The sandbox must be created by the same production user who is registered in sfp server
Authorizations
Body
sandboxNamestringRequiredExample:
The name of the sandbox to authenticate
dev1
productionUsernamestringRequiredExample:
Username of the production org (must be registered)
[email protected]
Responses
201
Successfully authenticated to sandbox
application/json
400
Bad Request
401
Unauthorized
404
Production org not found
post
POST /sfp/api/sandbox/authenticate HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 63
{
"sandboxName": "dev1",
"productionUsername": "[email protected]"
}
{
"sandboxName": "dev1",
"sandboxUsername": "[email protected]",
"accessToken": "00D...",
"instanceUrl": "https://dev1.sandbox.salesforce.com",
"frontDoorUrl": "https://dev1.sandbox.salesforce.com/secur/frontdoor.jsp?sid=00D...",
"productionOrg": {
"username": "[email protected]",
"orgId": "00D...",
"instanceUrl": "https://example.my.salesforce.com"
}
}
Was this helpful?