For the complete documentation index, see llms.txt. This page is also available as Markdown.

Audit

Query centralized audit log

get

Retrieve audit trail entries across registered audit sources. Requires Owner role. Use the approval compliance API for SOX approval exports.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
sourcestring · enumOptional

Audit source to query

Example: integrationPossible values:
actionstringOptional

Filter by action. Prefix match without dot (integration) or exact action (integration.created).

Example: integration.created
actorstringOptional

Filter by actor email

Example: dev@flxbl.io
repositoryIdentifierstringOptional

Filter by repository identifier where the audit source exposes one

Example: flxbl-io/sf-core
entityIdstringOptional

Filter by audited entity identifier

Example: c7a1d1fd-8887-4ec7-b72d-b0c3611f7c43
fromstringOptional

ISO 8601 start timestamp, inclusive

tostringOptional

ISO 8601 end timestamp, exclusive

limitnumber · max: 1000Optional

Maximum entries to return

Default: 50
offsetnumberOptional

Offset into the result set

Default: 0
Responses
200

Audit log entries returned

No content

get/sfp/api/audit

No content

Start an async audit CSV export

post

Creates an owner-only audit CSV export job. Approval compliance exports remain under the approval compliance API.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
sourcestring · enumOptional

Audit source to export

Example: integrationPossible values:
actionstringOptional

Filter by action. Prefix match without dot (integration) or exact action (integration.created).

Example: integration.created
actorstringOptional

Filter by actor email

Example: dev@flxbl.io
repositoryIdentifierstringOptional

Filter by repository identifier where the audit source exposes one

Example: flxbl-io/sf-core
entityIdstringOptional

Filter by audited entity identifier

fromstringOptional

ISO 8601 start timestamp, inclusive

tostringOptional

ISO 8601 end timestamp, exclusive

fileNamestringOptional

Download filename. Defaults to a generated audit-export filename.

Responses
201

Audit export job created

No content

post/sfp/api/audit/exports

No content

Get audit export status

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Audit export id

Responses
200

Audit export record returned

No content

get/sfp/api/audit/exports/{id}

No content

Download a completed audit export CSV

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Audit export id

Responses
200

Streams the completed audit CSV through the SFP API

No content

get/sfp/api/audit/exports/{id}/download

No content

Get the authenticated audit export CSV download URL

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Audit export id

Responses
200

Authenticated SFP API download URL returned

No content

get/sfp/api/audit/exports/{id}/download-url

No content

Fetch audit export rows for the worker (internal)

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Query parameters
cursorCreatedAtstringOptional

Cursor created_at value from the previous page

cursorIdstringOptional

Cursor row id from the previous page

limitnumber · max: 1000Optional

Maximum rows to return

Default: 1000
Responses
403

Forbidden - Requires role: application

No content

get/sfp/api/audit/internal/exports/{id}/rows
403

Forbidden - Requires role: application

No content

Mark an audit export complete (internal)

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Body
objectKeystringRequired

S3 object key containing the completed CSV

fileNamestringRequired

CSV filename to present to users

rowCountnumberRequired

Number of exported rows

fileSizeBytesnumberRequired

Uploaded object size in bytes

contentTypestringOptional

Object content type

Default: text/csv
Responses
403

Forbidden - Requires role: application

No content

post/sfp/api/audit/internal/exports/{id}/complete
403

Forbidden - Requires role: application

No content

Mark an audit export failed (internal)

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Body
errorstringRequired

Failure reason

Responses
403

Forbidden - Requires role: application

No content

post/sfp/api/audit/internal/exports/{id}/fail
403

Forbidden - Requires role: application

No content

Clean up expired audit exports (internal)

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
batchSizenumber · max: 1000Optional

Maximum expired export records to clean up

Default: 100
Responses
403

Forbidden - Requires role: application

No content

post/sfp/api/audit/internal/exports/cleanup
403

Forbidden - Requires role: application

No content

Last updated

Was this helpful?