Salesforce
Username of the Salesforce org to delete, or sandbox name for sandboxes with no sfdxAuthUrl
Organization successfully deleted
No content
Forbidden - Requires role: owner
Organization not found
No content
The endpoint will check in order:
1. Registered orgs with stored auth URLs
2. Pool instances (if repository is provided)
3. Dynamic generation using production org credentials
For pool instances, the repository parameter is required to ensure the correct sandbox is accessed.Scratch org username, sandbox name, or pool instance name
Repository identifier (org/repo) to search for pool instances
Production org username (for dynamic sandbox generation)
Redirect to frontdoor URL (default true)
Forbidden - Requires role: member, application
Forbidden - Requires role: member, application
No content
Filter options:
- type: Filter by organization type (e.g., "Production", "Sandbox")
- devhub: Filter to show only DevHub organizations
- metadata: Filter by metadata key-value pairs using either format:
- Comma-separated: key1=value1,key2=value2
- JSON object: {"key1":"value1","key2":"value2"}
Response includes DevHub status, default flag, and metadata for each org.Filter organizations by type (e.g., "Developer Edition", "Production", "Sandbox")
Filter to show only DevHub organizations
Filter by metadata key-value pairs. Format: key1=value1,key2=value2 or JSON object
List of registered organizations
Username of the Salesforce org user
Instance URL of the Salesforce org
Salesforce Organization ID
00D1a000000xxxxxType of the Salesforce org
Enterprise EditionSalesforce instance name
NA139Parent production org username (for JIT sandboxes)
Whether this org was registered using JIT authentication
Whether this org is a DevHub
Whether this is the default DevHub
Additional metadata stored as key-value pairs
When the org was registered
Forbidden - Requires role: member, application
Requirements:
- sfdxAuthUrl is required (Generate using: sf org:display -u [email protected] --verbose --json)
- The connection is validated before registration
- instanceUrl is optional and will be extracted from sfdxAuthUrl if not provided
Optional fields:
- isDevHub: Mark this org as a DevHub (default: false)
- isDefault: Mark this as the default DevHub - only one org can have this set (default: false)
- metadata: Additional metadata as key-value pairs in JSON format
If an org with the same username exists, it will be updated.
For sandbox registrations without sfdxAuthUrl, use /auth/salesforce/register-sandbox-by-name instead.Instance URL of the Salesforce org (will be extracted from sfdxAuthUrl if not provided)
https://mycompany.my.salesforce.comPattern: https://*.salesforce.comSFDX Auth URL (generated using sf org:display -u [email protected] --verbose --json)
force://CLIENT_ID:CLIENT_SECRET:[email protected]Whether this org is a DevHub
falseWhether this is the default DevHub (only one org can have this set to true)
falseAdditional metadata stored as key-value pairs
{"environment":"production","region":"us-west"}Skip connection validation (for testing purposes only)
falseOrganization successfully registered/updated
Invalid input or connection failed
Forbidden - Requires role: owner
**Note**: This endpoint only works for orgs that are registered in the system.
It validates that the stored sfdxAuthUrl can still be used to authenticate.Username of the Salesforce org to test, or sandbox name for sandboxes with no sfdxAuthUrl
Connection test results
Whether the connection is valid
Username tested
Organization ID if connection successful
Organization type if connection successful
Instance name if connection successful
Error message if connection failed
Forbidden - Requires role: owner, application
Organization not found
Username of the Salesforce org to retrieve, or sandbox name for sandboxes with no sfdxAuthUrl
Type of authentication to return: "accessToken" (short-lived, default) or "sfdxAuthUrl" (long-lived refresh token for long-running operations)
Organization details
Username of the Salesforce org user
Instance URL of the Salesforce org
Salesforce Organization ID
00D1a000000xxxxxType of the Salesforce org
Enterprise EditionSalesforce instance name
NA139Parent production org username (for JIT sandboxes)
Whether this org was registered using JIT authentication
Whether this org is a DevHub
Whether this is the default DevHub
Additional metadata stored as key-value pairs
When the org was registered
Forbidden - Requires role: member, application
Organization not found
Last updated