Authentication
The Hubbl API uses HTTP Basic Authentication to secure all API requests. You must include your API credentials in the Authorization header of every request.
Getting your API key
API keys are created in the Hubbl app and require an account admin. Open Settings (the Account Settings page), scroll to the API Keys section, and click Create API Key to generate your API Key ID and API Key Secret.
Credentials
- Username: Your API Key ID
- Password: Your API Key Secret
Example Request
Here is how to authenticate using cURL:
curl -X GET "https://api.hubbl.com/v1/orgs/{orgId}" \
-u "YOUR_API_KEY_ID:YOUR_API_KEY_SECRET"Or using the Authorization header directly:
curl -X GET "https://api.hubbl.com/v1/orgs/{orgId}" \
-H "Authorization: Basic BASE64_ENCODED_CREDENTIALS"Note: Replace BASE64_ENCODED_CREDENTIALS with the Base64-encoded value of YOUR_API_KEY_ID:YOUR_API_KEY_SECRET.
Encoding your credentials
Run the command for your operating system, substituting your actual API Key ID and API Key Secret. The output is the value you pass after Basic in the Authorization header.
Mac and Linux
echo -n "YOUR_API_KEY_ID:YOUR_API_KEY_SECRET" | base64Windows (PowerShell)
[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("YOUR_API_KEY_ID:YOUR_API_KEY_SECRET"))Authentication errors
- 401 Unauthorized: the credentials are missing, malformed, invalid or revoked. Check the
Authorizationheader and that the credentials are still active. - 403 Forbidden: the credentials are valid but not allowed for this request, for example when your account has turned off this sign-in method or the user has no access to the organization. The
error.detailfield says which.
Account
getAccountQuota
Quota exempt: calls to this endpoint do not count toward your quota.
Returns the calling account's current quota state. quotaLimit is the API quota's
daily and monthly windows; quotas holds every quota (api, mcp,
agent) across its daily, weekly and monthly windows, with the ceiling, how much remains,
and when each window resets. A null limit means the window has no limit. Quota is
account-level, so the numbers cover every user and org under the account. Use it as a pre-flight check
before large fan-out workflows. This endpoint is quota-exempt, so checking quota does not consume quota.
/v1/account/quota
Parameters
Responses
Status: 200 - The calling account's quota state.
Status: 401 - Authentication failed.
Status: 403 - The caller is impersonating, is not provisioned into an account, or has access
Orgs
getOrgApprovalProcessById
Retrieves a single Salesforce approval process by its ID for a specific organization.
/v1/orgs/{orgId}/approvalProcesses/{approvalProcessId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| approvalProcessId* |
String
Internal Hubbl integer primary key ID for the approval process. Required
|
Responses
Status: 200 - Successful response containing the requested approval process record.
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization.
Status: 404 - Organization not found or approval process not found within the org.
getOrgApprovalProcessesList
Retrieves a paginated list of the Salesforce approval processes for an org. If no sort preference is provided, the API defaults to:
- Sort:
label
/v1/orgs/{orgId}/approvalProcesses
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50, max 200. |
|||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
Responses
Status: 200 - List of approval processes for the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization.
Status: 404 - Organization not found.
getOrgById
Returns a summary of information about an organization.
/v1/orgs/{orgId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
Responses
Status: 200 - Org details
Status: 404 - Org not found
getOrgClassTypesList
Retrieves a paginated list of Apex class-type classifications scanned in an org. If no sort preference is provided, the API defaults to:
- Sort:
classFamily
/v1/orgs/{orgId}/classTypes
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
||||||||||||||||||
| offset |
Integer
Number of items to skip. |
||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of Apex class-type classifications scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgCloudUsage
Returns the cloud-usage summary for an org — a per-cloud adoption breakdown (record counts, record share, object-utilization %) plus an overall usage summary (active users, object / record counts, last-used date). Powers the Adoption "Cloud" tab. Read-only, computed from the org's latest scan.
/v1/orgs/{orgId}/cloudUsage
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - The cloud-usage summary for the org.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgCodeCount
Retrieves a single code-count record (full per-item line-count breakdown) by its ID for a specific organization.
/v1/orgs/{orgId}/codeCounts/{codeCountId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| codeCountId* |
String
Internal Hubbl integer primary key ID for the code-count record (per-scan internal id). Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successful response containing the requested code-count record.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or code count not found.
getOrgCodeCountsList
Retrieves a paginated list of per-item code line-count metrics scanned in an org. If no sort preference is provided, the API defaults to:
- Sort:
-total
/v1/orgs/{orgId}/codeCounts
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of code line-count metrics scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgConnectedAppAssignmentsList
Retrieves a list of connected-app assignments for an organization — junction rows linking a connected
app to a profile or permission set. Defaults to sort connectedAppId when no
sort query parameter is supplied. No default filter is applied.
/v1/orgs/{orgId}/connectedAppAssignments
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||
| offset |
Integer
Number of items to skip |
|||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
|
|||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of connected-app assignments for an organization.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan
Status: 404 - Organization or scan not found.
getOrgConnectedAppById
Retrieves a single connected app by its ID for a specific organization.
/v1/orgs/{orgId}/connectedApps/{connectedAppId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| connectedAppId* |
String
Internal Hubbl integer primary key ID Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successfull response containing the requested connected app.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan
Status: 404 - Organization or connected app not found
getOrgConnectedAppsList
Retrieves a list of apps registered against an organization. Defaults to sort
-lastUsedDate when no sort query parameter is supplied. No default filter is
applied.
/v1/orgs/{orgId}/connectedApps
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
||||||||||||||||||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip |
||||||||||||||||||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
|
||||||||||||||||||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
||||||||||||||||||||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of connected apps registered against an organization.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan
Status: 404 - Organization or scan not found.
getOrgEsLint
Retrieves a single ESLint finding (full record) by its ID for a specific organization.
/v1/orgs/{orgId}/esLints/{esLintId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| esLintId* |
String
Internal Hubbl integer primary key ID for the ESLint finding (per-scan internal id). Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successful response containing the requested ESLint finding record.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or ESLint finding not found.
getOrgEsLintsList
Retrieves a paginated list of ESLint findings reported against LWC / Aura JavaScript source in an org. If no sort preference is provided, the API defaults to:
- Sort:
-severity
/v1/orgs/{orgId}/esLints
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of ESLint findings scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgFieldById
Retrieves a single Salesforce field by its ID for a specific organization.
/v1/orgs/{orgId}/fields/{fieldId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| fieldId* |
String
Internal Hubbl integer primary key ID for the field Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successful response containing the requested field record.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or field not found.
getOrgFieldsList
Retrieves a paginated list of Salesforce fields scanned in an org. If no sort preference is provided, the API defaults to:
- Sort:
-percentPopulated
/v1/orgs/{orgId}/fields
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of Salesforce fields scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgFlowById
Retrieves a single Salesforce flow by its ID for a specific organization.
/v1/orgs/{orgId}/flows/{flowId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| flowId* |
String
Internal Hubbl integer primary key ID for the flow. Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successful response containing the requested flow record.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found or flow not found within the org.
getOrgFlowsList
Retrieves a paginated list of Salesforce flows scanned in an org. If no sort preference is provided, the API defaults to:
- Sort:
-updatedAt
/v1/orgs/{orgId}/flows
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of Salesforce flows scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgInstalledPackageById
Retrieves a single installed package by its ID for a specific organization.
/v1/orgs/{orgId}/installedPackages/{installedPackageId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| installedPackageId* |
String
Internal Hubbl integer primary key ID Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successfull response containing the requested installed package.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan
Status: 404 - Organization or installed package not found
getOrgInstalledPackagesList
Retrieves a list of managed and unmanaged packages installed in an organization.
/v1/orgs/{orgId}/installedPackages
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip |
|||||||||||||||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
|
|||||||||||||||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a |
|||||||||||||||||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of installed packages in an organization.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan
Status: 404 - Organization or scan not found.
getOrgIssues
Retrieves a list of issues for the organization's latest scan, or for the scan given by
scanId. Defaults to sort -priority,effort (highest priority first, then lowest
effort) when no sort query parameter is supplied. No default filter is applied. The
"has no description" rules for flows, process builders, workflows and permission sets skip
managed-package components.
/v1/orgs/{orgId}/issues
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description |
|---|---|
| limit |
Integer
Number of items to return. Default is 50. Maximum is 200. |
| offset |
Integer
Number of items to skip |
| fields |
String
A comma-separated list of fields to include in the response. If omitted, all fields are
returned. Example: |
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Supported Operators:
Examples:
|
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of issues for the organization
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan
Status: 404 - Organization or scan not found, or no scans available
getOrgItem
Retrieves a single metadata item (full record) by its ID for a specific organization.
/v1/orgs/{orgId}/items/{itemId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| itemId* |
String
Internal Hubbl integer primary key ID for the metadata item (per-scan internal id). Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successful response containing the requested metadata item record.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or metadata item not found.
getOrgItemsList
Retrieves a paginated list of metadata items (code files and directories) scanned in an org. If no sort preference is provided, the API defaults to:
- Sort:
name
/v1/orgs/{orgId}/items
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of metadata items scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgLicenseUsageByApiName
Retrieves a single license usage entry (provisioned / used / remaining license counts for one license type) by its stable apiName.
/v1/orgs/{orgId}/licenseUsages/{apiName}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| apiName* |
String
The license type's stable apiName, constant across scans. This MUST be Base64URL encoded to avoid routing conflicts with special characters. Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - The license usage entry.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or license usage not found.
getOrgLicenseUsagesList
Retrieves a paginated list of license usage entries (provisioned / used / remaining license counts per license type) for an org. If no sort preference is provided, the API defaults to:
- Sort:
name
/v1/orgs/{orgId}/licenseUsages
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of license usage entries for the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgLimit
Retrieves a single org limit by its stable name, with its cap, remaining headroom, and derived percent used. The record is identical in shape to a getOrgLimitsList record. Use getOrgLimitsList to discover available limit names.
/v1/orgs/{orgId}/orgLimits/{name}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| name* |
String
The org limit's stable natural key (a Salesforce limit key, e.g. DailyApiRequests).
Matches the Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - The org limit record.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or org limit not found.
getOrgLimitsList
Retrieves a paginated list of org limits for an org, each with its cap, remaining headroom, and derived percent used. This is a small dataset (one row per limit); the full set fits in a single page. If no sort preference is provided, the API defaults to:
- Sort:
-percentUsed
/v1/orgs/{orgId}/orgLimits
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of org limits for the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgLoginActivityList
Retrieves a paginated list of per-user Salesforce login activity for an org — one row per user with 30/90/365-day login counts. If no sort preference is provided, the API defaults to:
- Sort:
-last30DaysLoginCount
/v1/orgs/{orgId}/loginActivity
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50, max 200. |
|||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of per-user login-activity rows for the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgLoginActivityOverview
Returns the login-activity adoption rollup for an org — total licensed users plus logged-in / did-not-log-in / adoption % over the trailing 30, 90, and 365 days. Powers the Adoption "Salesforce Login Activity" summary card. Read-only, computed from the org's latest scan.
/v1/orgs/{orgId}/loginActivity/overview
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description |
|---|---|
| license |
String
One or more Salesforce license names to scope the rollup to (e.g.
Repeat the parameter ( |
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - The login-activity overview for the org.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgObjectById
Retrieves a single Salesforce object by its ID for a specific organization.
/v1/orgs/{orgId}/objects/{objectId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| objectId* |
String
Internal Hubbl integer primary key ID Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successful response containing the requested object.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan
Status: 404 - Organization or object not found
getOrgObjectFieldsList
Retrieves a paginated list of Salesforce fields belonging to a specific parent SObject within an
organization. The parent is pinned by the objectId path parameter, so callers do not need
to filter by sobjectId themselves.
If no sort preference is provided, the API defaults to:
- Sort:
-percentPopulated
/v1/orgs/{orgId}/objects/{objectId}/fields
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| objectId* |
String
Internal Hubbl integer primary key ID of the parent SObject. Required
|
| Name | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. The parent object is already pinned
by the Supported Fields:
Combine with |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of Salesforce fields belonging to the parent object.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or object not found.
getOrgObjectUsagesList
Retrieves a paginated list of per-object adoption/usage metrics scanned in an org — record counts, active users, automations, field counts, and last-used dates per object. If no sort preference is provided, the API defaults to:
- Sort:
-recordCount
/v1/orgs/{orgId}/objectUsages
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of per-object usage metrics for the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgObjectUsersList
Retrieves a paginated list of record counts per object and user for an org. The counts are records the user created, not every record they read. If no sort preference is provided, the API defaults to:
- Sort:
-last30DaysRecordCount
/v1/orgs/{orgId}/objectUsers
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50, max 200. |
||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
Responses
Status: 200 - List of per-object, per-user record counts for the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization.
Status: 404 - Organization not found.
getOrgObjectUsersOverview
Returns one row per user license with its user count and the average and maximum number of custom objects its users created records on in the last 365 days. Users who created none count as 0. Use it to check restricted-license usage by object. Read-only, computed from the org's latest scan.
/v1/orgs/{orgId}/objectUsers/overview
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
Responses
Status: 200 - The object users overview for the org, one row per license.
Status: 403 - User is not authorized to access this organization.
Status: 404 - Organization not found.
getOrgObjectsList
Retrieves a paginated list of Salesforce objects scanned in an org. If no sort preference is provided, the API defaults to:
- Sort:
-lastUsedDate
/v1/orgs/{orgId}/objects
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
||||||||||||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
||||||||||||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
||||||||||||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
||||||||||||||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of Salesforce objects scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgPermissionSet
Retrieves a single permission set by its internal Hubbl ID, including the risky-permission flags and the
long description free text (which the list endpoint omits).
/v1/orgs/{orgId}/permissionSets/{permissionSetId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| permissionSetId* |
String
Internal Hubbl integer ID of the permission set (from the list response). Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - The requested permission set.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or permission set not found.
getOrgPermissionSetsList
Retrieves a paginated list of permission sets scanned in an org, including the risky-permission flags
shown on the Profiles & Permission Sets dashboard tab. The list subset omits the long
description free text — use the by-id endpoint for that. If no sort preference is provided,
the API defaults to:
- Sort:
-count
/v1/orgs/{orgId}/permissionSets
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of permission sets scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgPmdViolation
Retrieves a single PMD static-analysis violation (full record) by its ID for a specific organization.
/v1/orgs/{orgId}/pmds/{pmdId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| pmdId* |
String
Internal Hubbl integer primary key ID for the PMD violation (per-scan internal id). Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successful response containing the requested PMD violation record.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or PMD violation not found.
getOrgPmdViolationsList
Retrieves a paginated list of PMD static-analysis violations reported against Apex source in an org. If no sort preference is provided, the API defaults to:
- Sort:
priority
/v1/orgs/{orgId}/pmds
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of PMD static-analysis violations scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgReleaseUpdateById
Retrieves a single Salesforce release update by its ID for a specific organization.
/v1/orgs/{orgId}/releaseUpdates/{releaseUpdateId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| releaseUpdateId* |
String
Internal Hubbl integer primary key ID for the release update. Required
|
Responses
Status: 200 - Successful response containing the requested release update record.
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization.
Status: 404 - Organization not found or release update not found within the org.
getOrgReleaseUpdatesList
Retrieves a paginated list of the Salesforce release updates for an org. If no sort preference is provided, the API defaults to:
- Sort:
dueDate(soonest first, no due date last)
/v1/orgs/{orgId}/releaseUpdates
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50, max 200. |
|||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
Responses
Status: 200 - List of release updates for the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization.
Status: 404 - Organization not found.
getOrgReportById
Retrieves a single Salesforce report by its ID for a specific organization.
/v1/orgs/{orgId}/reports/{reportId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| reportId* |
String
Internal Hubbl integer primary key ID for the report. Required
|
Responses
Status: 200 - Successful response containing the requested report record.
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization.
Status: 404 - Organization not found or report not found within the org.
getOrgReportsList
Retrieves a paginated list of the Salesforce reports for an org. If no sort preference is provided, the API defaults to:
- Sort:
-lastRunDate(reports that never ran last)
/v1/orgs/{orgId}/reports
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50, max 200. |
|||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
Responses
Status: 200 - List of reports for the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization.
Status: 404 - Organization not found.
getOrgScansList
Retrieves a paginated list of scans of an org, newest first. Each scan carries its Hubbl Score,
Complexity Score and a summary of counts, so scans can be compared without fetching their full contents.
The id of each scan is the same identifier returned as lastScanId by the orgs
list.
To read several known scans, prefer one list call with filter=in(id,...) over requesting
them one at a time.
If no sort preference is provided, the API defaults to:
- Sort:
-startDate
/v1/orgs/{orgId}/scans
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 12, maximum is 100. |
|||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
Responses
Status: 200 - List of scans of the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization.
Status: 404 - Organization not found.
getOrgScores
Returns the org's headline scores from its latest completed scan: the Hubbl Score (score, grade, benchmark average, change since the previous scan) and the Complexity Score (score, grade, benchmark average). Powers the Summary dashboard's score widgets. Read-only.
/v1/orgs/{orgId}/scores
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
Responses
Status: 200 - The org's scores.
Status: 403 - User is not authorized to access this organization.
Status: 404 - Organization not found.
getOrgSfProfile
Retrieves a single Salesforce profile by its internal Hubbl ID, including the risky-permission flags shown on the Profiles & Permission Sets dashboard tab.
/v1/orgs/{orgId}/sfProfiles/{sfProfileId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| sfProfileId* |
String
Internal Hubbl integer ID of the Salesforce profile (from the list response). Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - The requested Salesforce profile.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or Salesforce profile not found.
getOrgSfProfilesList
Retrieves a paginated list of Salesforce profiles scanned in an org, including the risky-permission flags shown on the Profiles & Permission Sets dashboard tab. If no sort preference is provided, the API defaults to:
- Sort:
-count
/v1/orgs/{orgId}/sfProfiles
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of Salesforce profiles scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgTriggerById
Retrieves a single Salesforce trigger by its ID for a specific organization.
/v1/orgs/{orgId}/triggers/{triggerId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| triggerId* |
String
Internal Hubbl integer primary key ID for the trigger. Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successful response containing the requested trigger record.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found or trigger not found within the org.
getOrgTriggersList
Retrieves a paginated list of Salesforce triggers scanned in an org. If no sort preference is provided, the API defaults to:
- Sort:
-updatedAt
/v1/orgs/{orgId}/triggers
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||||||||||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
|||||||||||||||||||||||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of Apex triggers scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 401 - Missing or invalid authentication.
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found or no scans available.
getOrgWorkflowById
Retrieves a single Salesforce workflow rule by its ID for a specific organization.
/v1/orgs/{orgId}/workflows/{workflowId}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| workflowId* |
String
Internal Hubbl integer primary key ID for the workflow rule. Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Successful response containing the requested workflow rule record.
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or workflow not found.
getOrgWorkflowsList
Retrieves a paginated list of Salesforce Workflow rules scanned in an org. If no sort preference is provided, the API defaults to:
- Sort:
-updatedAt
/v1/orgs/{orgId}/workflows
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| Name | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
||||||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
||||||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
||||||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
||||||||||||||||||||||||
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - List of Salesforce workflow rules scanned in the org.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - User is not authorized to access this organization or scan.
Status: 404 - Organization or scan not found.
getOrgsList
Retrieves a paginated list of the Salesforce orgs the caller can access — the same orgs visible from the dashboard. An empty result set is a valid 200, not a 404 (this is a collection root, not scoped to a single org). If no sort preference is provided, the API defaults to:
- Sort:
-lastScanDate
/v1/orgs
Parameters
| Name | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| limit |
Integer
Number of items to return. Default is 50. |
|||||||||||||||||||||
| offset |
Integer
Number of items to skip. |
|||||||||||||||||||||
| filter |
String
Resource Query Language (RQL) formatted filter criteria. Supported Fields:
Combine with |
|||||||||||||||||||||
| sort |
String
JSON:API Sort string (see https://jsonapi.org/format/#fetching-sorting). Supported Fields:
Use a Examples:
|
Responses
Status: 200 - List of Salesforce orgs the caller can access.
Status: 400 - Invalid query parameters (e.g., malformed RQL filter or unsupported field).
Status: 403 - Caller is not authorized (no provisioned user, or impersonation attempted).
getRecommendationByKey
Retrieves rich context for a given recommendation in an organization based on issueKey. With
scanId, the recommendation is read as of that scan: the issue must have been detected in
it, and isNew, isResolved and the detection dates only consider that scan and
earlier ones.
/v1/orgs/{orgId}/issues/{issueKey}
Parameters
| Name | Description |
|---|---|
| orgId* |
String
Salesforce Organization ID Required
|
| issueKey* |
String
The unique key assigned to the issue that is constant across scans. This MUST be Base64URL encoded to avoid routing conflicts with special characters. Required
|
| Name | Description |
|---|---|
| scanId |
UUID
(uuid)
Id of the scan to read, as returned by the org scans list ( |
Responses
Status: 200 - Contextual Recommendation data
Status: 400 - Invalid query parameter, such as a `scanId` that is not a UUID
Status: 403 - User is not authorized to access this organization or scan
Status: 404 - Organization, scan or recommendation not found
Was this page helpful?