Sandbox

Authenticate to a Salesforce sandbox

post

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
sandboxNamestringRequired

The name of the sandbox to authenticate

Example: dev1
productionUsernamestringRequired

Username of the production org (must be registered)

Example: [email protected]
Responses
201

Successfully authenticated to sandbox

application/json
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?