Observability / Errors

List and search error logs for an environment

get

Returns paginated error log entries for a specific environment in a repository. Resolves the environment to its Salesforce org for querying. Supports predefined time ranges (last_1h through last_30d) or custom start/end dates. Full-text search across all error fields via the search parameter.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
repositoryIdentifierstringRequired

Repository identifier

Example: flxbl-io/sf-core
environmentNamestringRequired

Environment name

Example: prod
rangestring · enumOptional

Predefined time range. Ignored if start/end are provided.

Example: last_24hPossible values:
startstringOptional

Custom range start (ISO 8601). Requires end.

Example: 2026-01-15T00:00:00Z
endstringOptional

Custom range end (ISO 8601). Requires start.

Example: 2026-02-14T00:00:00Z
errorTypestring · enumOptional

Filter by error type

Possible values:
searchstringOptional

Full-text search across all error fields

Example: validation exception
limitnumberOptional

Maximum number of results (1-500)

Default: 50Example: 50
offsetnumberOptional

Pagination offset

Default: 0Example: 0
Responses
chevron-right
200

Error logs retrieved

application/json
get
/sfp/api/observability/errors

Get repo-wide error summary across all environments

get

Returns aggregated error counts across all environments in a repository. Includes per-environment breakdown and time-series data. Useful for rendering overview dashboards. Supports predefined and custom date ranges.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
repositoryIdentifierstringRequired

Repository identifier

Example: flxbl-io/sf-core
rangestring · enumOptional

Predefined time range. Ignored if start/end are provided.

Example: last_24hPossible values:
startstringOptional

Custom range start (ISO 8601). Requires end.

Example: 2026-01-15T00:00:00Z
endstringOptional

Custom range end (ISO 8601). Requires start.

Example: 2026-02-14T00:00:00Z
Responses
chevron-right
200

Summary retrieved

application/json
totalnumberRequiredExample: 15
byTypeobjectRequiredExample: {"flow_failure":10,"apex_exception":5}
totalEnvironmentsnumberRequired

Total number of monitored environments in the repository

Example: 3
get
/sfp/api/observability/errors/summary

Advanced raw LogsQL query

get

Execute a raw LogsQL query against VictoriaLogs. For power users and debugging.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
querystringRequired

LogsQL query string

Example: error_type:flow_failure AND org_id:00D5g000004XXXX
startstringOptional

Start time (ISO 8601 or relative like "1h")

Example: 2026-02-14T00:00:00Z
endstringOptional

End time (ISO 8601 or relative)

Example: 2026-02-14T23:59:59Z
limitnumberOptional

Maximum number of results to return

Example: 100
Responses
chevron-right
200

Query results

application/json
resultsstring[]Required

Array of log entries matching the query

get
/sfp/api/observability/errors/query

Ingest pre-parsed error log entries

post

Ingest structured error log entries into VictoriaLogs. Used by programmatic integrations.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
post
/sfp/api/observability/errors/ingest

Ingest raw Salesforce error email

post

Parse a raw Salesforce error email (Flow failure or Apex exception) and ingest into VictoriaLogs.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
subjectstringRequired

Email subject line

bodystringRequired

Email body content

orgIdstringOptional

Optional org ID override

Responses
post
/sfp/api/observability/errors/ingest/email

Last updated