sfp - flxbl package manager
#flxblsfopsSlackGitHub
  • Overview
  • Getting Started
    • Pre-Requisites
    • Install sfp
    • Configure Your Project
    • Build & Install an Artifact
    • Congratulations!
    • Docker Images
      • sfp-pro
  • CONCEPTS
    • Overview
    • SF CLI vs. SFP
    • Domains
    • Packages
    • Supported package types
      • Unlocked Packages
      • Org-Dependent Unlocked Packages
      • Source Packages
      • Diff Package
      • Data Packages
    • Artifacts
    • Package vs Artifacts
    • Identifying types of a package
    • Dependency management
    • Transitive Dependency Resolution
    • Destructive Changes
  • configuring a project
    • Project structure
    • Setup Salesforce Org
    • Creating a package
    • Defining a domain
    • Release Config
  • BUILDING ARTIFACTS
    • Overview
    • Determining whether an artifact need to be built
    • Building a domain
    • Building an artifact for package individually
    • Limiting artifacts to be built
    • Controlling aspects of the build command
      • Ignoring packages from being built
      • Building a collection of packages together
      • Selective ignoring of components from being built
      • Use of multiple config file in build command
    • Configuring installation behaviour of a package
      • Always deploy a package
      • Skip Install on Certain Orgs
      • Optimized Installation
      • Pre/Post Deployment Script
      • Reconciling Profiles
      • PermissionSet Assignment
      • Updating Picklist
      • Entitlement Deployment Helper
      • Field History & Feed Tracking
      • Aliasfy Packages
        • Aliasfy Packages - Merge Mode
      • State management for Flows
  • Installing an artifact
    • Overview
    • Controlling Aspects of Installation
    • Applying attributes of an artifact
    • BuiltIn Deployment Helpers
      • PermissionSet Group Awaiter
  • publishing and fetching artifacts
    • Publish Artifact
    • Fetching Artifacts
  • Releasing artifacts
    • Overview
    • Release Definitions
    • Generating a release definition
    • Generating a changelog
  • Validating a change
    • Overview
    • Different types of validation
    • Limiting Validation by Domain
    • Controlling validation attributes of a package
      • Skip Testing
      • Skip Coverage Validation
      • Test Synchronously
  • Analysing a Project
    • Overview
    • Duplicate Check
  • Environment Management
    • Pools
      • Scratch Org Pools
        • Defining a pool
        • Setting up your Salesforce Org for Scratch Org Pools
        • Pool Operations
          • Preparing pools
            • Handling dependencies
          • List Scratch Orgs in a pool
          • Fetch a scratch org
          • Delete Pools
      • Sandbox Pools
        • Sandbox Pool Initialization
        • Fetch a Sandbox from Pool
        • Monitor Sandbox Pools
    • Review Environments
      • Commands
        • Fetch a Review Environment
        • Check Review Environment Status
        • Extend a Review Environment
        • Transition Review Environment Status
        • Unassign a Review Environment
      • Considerations
    • Sandbox
      • Create Sandbox
      • Delete Sandbox
      • List Sandbox
      • Login to Sandbox
      • Update Sandbox
  • Development
    • Development Environment
    • Pull Changes from your org
    • Push Changes to your org
    • Dependency Management
      • Expand Dependencies
      • Shrink Dependencies
      • Explain Dependencies
  • Running sfp as a server
    • Introduction
    • sfp-pro-server: Architecture Overview (Alpha)
      • Task Processing System
      • Authentication & Security Architecture
      • Authentication System: Deep Dive
      • Database Architecture
      • Network Architecture and Integration System
      • Integration Architecture: Building Extensions
    • Installing SFP Server
      • Connecting GitHub as a CI/CD provider
    • Initializing SFP server
  • API Reference
    • Health
    • Authentication
    • Token
    • Salesforce
    • Team
    • Users
    • Tasks
    • Key Value
    • Repository
    • WebHooks
  • Metrics
    • Available Metrics
    • Custom Metrics
    • Configuring Collectors
      • Datadog
      • Splunk
      • New Relic
      • StatsD
  • Helpers
    • Managing Shared Resources
  • Command Guide
    • Core
      • Build
      • Quickbuild
      • Publish
      • Install
      • Release
    • Advanced
      • Validate
      • Artifacts
      • Changelog
      • Impact
      • Pool
      • Metrics
      • Repo
    • Utilities
      • Apex Tests
      • Flow
      • Dependency
      • Profile
  • FAQs
    • Common Errors
      • Org Shapes
      • Troubleshooting Unlocked Packages Build Failure Due to Code Coverage
    • Common Questions
      • Email Templates Deployment: Classic vs Lightning
      • Dealing with Long Build Times in Salesforce
      • Standard ValueSets and unlocked packages
      • Common Issues encountered with aliasfied packages
      • API Version
      • Understanding alwaysDeploy and skipIfAlreadyInstalled in Deployment Pipelines
    • sfp versioning and upgrade Process
  • References
  • Legal
    • Terms of Service for sfp
    • Terms of Service for 'sfp-pro' Software
  • LLMs.txt
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. API Reference

Salesforce

PreviousTokenNextTeam

Last updated 4 days ago

Was this helpful?

Delete a Salesforce org registration

delete

Removes the stored credentials for a Salesforce organization

Authorizations
Query parameters
usernamestringRequired

Username of the Salesforce org to delete, or sandbox name for sandboxes with no sfdxAuthUrl

Responses
200
Organization successfully deleted
404
Organization not found
delete
DELETE /sfp/api/auth/salesforce/org?username=text HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*

No content

Get Salesforce org frontdoor URL (sandbox or scratch org)

get

Returns or redirects to a frontdoor URL for a sandbox or scratch org. If prodOrg is not specified for sandbox, uses the first registered production org.

Authorizations
Query parameters
targetstringRequired

Scratch org username or sandbox name

prodOrgstringOptional

Production org username or alias (for sandbox)

redirectbooleanOptional

Redirect to frontdoor URL (default true)

Responses
200Success
get
GET /sfp/api/auth/salesforce/frontdoor?target=text HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
200Success

No content

List registered Salesforce orgs

get

Returns a list of all registered Salesforce organizations with optional filtering by type, alias, or registration type

Authorizations
Query parameters
typestringOptional

Filter organizations by type (e.g., "Developer Edition", "Production", "Sandbox")

aliasstringOptional

Filter organizations by alias

categorystring · enumOptional

Filter organizations by category ("test", "snapshot", "release") - preferred field

Possible values:
registrationTypestring · enumOptionalDeprecated

Filter organizations by registration type ("test", "snapshot", "release") - legacy field

Possible values:
envNamestringOptional

Filter organizations by environment name

Responses
200
List of registered organizations
application/json
get
GET /sfp/api/auth/salesforce/orgs HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
200

List of registered organizations

[
  {
    "username": "text",
    "instanceUrl": "text",
    "alias": "text",
    "orgId": "00D1a000000xxxxx",
    "organizationType": "Enterprise Edition",
    "instanceName": "NA139",
    "category": "test",
    "envName": "Production",
    "createdAt": "2025-05-24T07:13:07.693Z"
  }
]

Test connection to a Salesforce org

post

Tests if the stored credentials for a given org are still valid

Authorizations
Query parameters
usernamestringRequired

Username of the Salesforce org to test, or sandbox name for sandboxes with no sfdxAuthUrl

Responses
200
Connection test results
application/json
404
Organization not found
post
POST /sfp/api/auth/salesforce/test-connection?username=text HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "isValid": true,
  "username": "text",
  "orgId": "text",
  "organizationType": "text",
  "instanceName": "text",
  "error": "text"
}

Get details of a specific Salesforce org

get

Returns detailed information about a specific registered Salesforce organization. Owner role and application tokens receive additional authentication details.

Authorizations
Query parameters
usernamestringRequired

Username of the Salesforce org to retrieve, or sandbox name for sandboxes with no sfdxAuthUrl

Responses
200
Organization details
application/json
404
Organization not found
get
GET /sfp/api/auth/salesforce/org?username=text HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "username": "text",
  "instanceUrl": "text",
  "alias": "text",
  "orgId": "00D1a000000xxxxx",
  "organizationType": "Enterprise Edition",
  "instanceName": "NA139",
  "category": "test",
  "envName": "Production",
  "createdAt": "2025-05-24T07:13:07.693Z"
}
  • DELETEDelete a Salesforce org registration
  • GETGet Salesforce org frontdoor URL (sandbox or scratch org)
  • GETList registered Salesforce orgs
  • POSTRegister or update a Salesforce org
  • POSTTest connection to a Salesforce org
  • GETGet details of a specific Salesforce org

Register or update a Salesforce org

post

Registers a new Salesforce organization or updates an existing one.

      For complete registrations:
      - Provide sfdxAuthUrl (Generate using: sf org:display -u your@org.com --verbose --json)
      - The connection is validated before registration
      
      For sandbox registrations:
      - sfdxAuthUrl is optional for sandbox orgs
      - When sfdxAuthUrl is not provided, the system will validate the sandbox
      - using devhub credentials, assuming the sandbox was created by the same 
      - user whose sfdxAuthUrl is available in the system
      - Just-in-time authentication will be used when accessing the org
      
      Optional registrationType can be specified: 'test', 'snapshot', or 'release'
      
      If an org with the same username exists, it will be updated.
Authorizations
Body
aliasstringOptional

Optional alias for the Salesforce org

Example: devhub
instanceUrlstringRequired

Instance URL of the Salesforce org

Example: https://mycompany.my.salesforce.comPattern: https://*.salesforce.com
usernamestringRequired

Username of the Salesforce integration user

Example: integration.user@mycompany.com
sfdxAuthUrlstringOptional

SFDX Auth URL (generated using sf org:display -u your@org.com --verbose --json). Optional for sandbox orgs.

Example: force://CLIENT_ID:CLIENT_SECRET:REFRESH_TOKEN@instance.salesforce.com
categorystring · enumOptional

Optional category for the org (preferred field)

Example: testPossible values:
registrationTypestring · enumOptionalDeprecated

Optional registration type for categorizing orgs (legacy field)

Example: testPossible values:
sandboxNamestringOptional

Explicitly provide sandbox name when registering a sandbox without sfdxAuthUrl. If not provided, it will be extracted from the username.

Example: dev1
envNamestringOptional

Optional environment name for better identification

Example: Production
Responses
201
Organization successfully registered/updated
application/json
400
Invalid input or connection failed
post
POST /sfp/api/auth/salesforce/register HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 262

{
  "alias": "devhub",
  "instanceUrl": "https://mycompany.my.salesforce.com",
  "username": "integration.user@mycompany.com",
  "sfdxAuthUrl": "force://CLIENT_ID:CLIENT_SECRET:REFRESH_TOKEN@instance.salesforce.com",
  "category": "test",
  "sandboxName": "dev1",
  "envName": "Production"
}
{
  "username": "text",
  "instanceUrl": "text",
  "alias": "text",
  "orgId": "00D1a000000xxxxx",
  "organizationType": "Enterprise Edition",
  "instanceName": "NA139",
  "category": "test",
  "envName": "Production"
}