Fianu Labs Reports API
The reports API from Fianu Labs, for reports.
The reports API from Fianu Labs, for reports.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/fianu-labs:fianu-labs-reports-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
description: 'Fianu Labs offers powerful APIs that simplify and automate governance processes.
With our flexible and customizable APIs, you can easily create, manage, and monitor governance policies, access real-time data and analytics, and automate repetitive tasks.
Let us help you streamline your governance processes and achieve your business objectives.'
title: Fianu Reports API
contact:
name: Fianu Labs
url: https://fianu.io
email: support@fianu.io
version: 1.0.0
servers:
- url: https://app.fianu.io/api
security:
- BearerToken: []
tags:
- name: Reports
paths:
/reports:
get:
description: Returns a paginated list of stored reports with optional filtering by time range, asset, and type
tags:
- Reports
summary: List stored reports
operationId: list_reports
parameters:
- description: Start of time range (RFC3339). Defaults to start of current month.
name: since
in: query
schema:
type: string
format: date-time
- description: End of time range (RFC3339). Defaults to now.
name: until
in: query
schema:
type: string
format: date-time
- description: Filter by asset UUID (triggers server-side filtering)
name: asset
in: query
schema:
type: string
- description: Filter by report type (e.g., fda_compliance)
name: type
in: query
schema:
type: string
- description: Maximum number of results per page (default 100, max 500)
name: limit
in: query
schema:
type: integer
- description: Continuation token from previous response for next page
name: pageToken
in: query
schema:
type: string
- description: Search by report ID (triggers month-by-month search if provided)
name: reportId
in: query
schema:
type: string
responses:
'200':
description: List of reports with pagination token
content:
application/json:
schema:
$ref: '#/components/schemas/listReportsResponse'
'400':
description: Client Error
content:
application/json:
schema:
$ref: '#/components/schemas/errorV010'
/reports/{reportId}:
get:
description: Returns a specific report by ID or file path, either as a signed URL or proxied PDF data. If filePath is provided, it takes precedence over reportId for direct retrieval (skipping time-based search).
tags:
- Reports
summary: Get a specific report
operationId: get_report
parameters:
- description: Report ID (used for time-based path search if filePath not provided)
name: reportId
in: path
required: true
schema:
type: string
- description: Full storage path for direct retrieval (from listing response). Takes precedence over reportId.
name: filePath
in: query
schema:
type: string
- description: Response mode - "signed" for pre-signed URL, empty for PDF proxy
name: mode
in: query
schema:
type: string
- description: Specific version to retrieve (default latest)
name: version
in: query
schema:
type: integer
responses:
'200':
description: Report data or signed URL
content:
application/json:
schema:
$ref: '#/components/schemas/getReportResponse'
application/pdf:
schema:
$ref: '#/components/schemas/getReportResponse'
'404':
description: Report not found
content:
application/json:
schema:
$ref: '#/components/schemas/errorV010'
application/pdf:
schema:
$ref: '#/components/schemas/errorV010'
/reports/{reportId}/metadata:
get:
description: Downloads the report and extracts embedded XMP metadata without returning the PDF
tags:
- Reports
summary: Get embedded XMP metadata from a report
operationId: get_report_metadata
parameters:
- description: Report ID
name: reportId
in: path
required: true
schema:
type: string
- description: Specific version to retrieve (default latest)
name: version
in: query
schema:
type: integer
responses:
'200':
description: Report XMP metadata
content:
application/json:
schema:
$ref: '#/components/schemas/xmpMetadataResponse'
'404':
description: Report not found
content:
application/json:
schema:
$ref: '#/components/schemas/errorV010'
/reports/{template_key}/export:
post:
description: Generates a report PDF using the specified template and stores it to cloud storage. The template path is constructed as customers/{organization}/{template_key} to ensure tenant isolation.
tags:
- Reports
summary: Generate and store report PDF
operationId: export_report
parameters:
- description: Template key (e.g., fda_compliance)
name: template_key
in: path
required: true
schema:
type: string
requestBody:
$ref: '#/components/requestBodies/reportGenerationRequest'
responses:
'200':
description: Report stored successfully
content:
application/json:
schema:
$ref: '#/components/schemas/storeReportResponse'
'400':
description: Client Error
content:
application/json:
schema:
$ref: '#/components/schemas/errorV010'
/reports/{template_key}/preview:
post:
description: Generates a report PDF using the specified template for the given asset without storing to cloud storage. The template path is constructed as customers/{organization}/{template_key} to ensure tenant isolation.
tags:
- Reports
summary: Preview report PDF (without storing)
operationId: preview_report
parameters:
- description: Template key (e.g., fda_compliance)
name: template_key
in: path
required: true
schema:
type: string
requestBody:
$ref: '#/components/requestBodies/reportGenerationRequest'
responses:
'200':
description: PDF Report Generated Successfully
content:
application/pdf:
schema:
type: string
format: binary
'400':
description: Client Error
content:
application/pdf:
schema:
$ref: '#/components/schemas/errorV010'
components:
schemas:
reportGenerationRequest:
description: ReportGenerationRequest defines the request body for report generation
type: object
required:
- asset
- commit
properties:
asset:
description: assetUUID - UUID of the asset to generate report for
type: string
x-go-name: AssetUUID
commit:
description: commit - Git commit SHA to include in report
type: string
x-go-name: Commit
controls:
description: 'controls - Optional list of control UUIDs to filter attestations by
When provided, only attestations for these controls will be included in the report'
type: array
items:
type: string
x-go-name: Controls
customFields:
description: 'customFields - User-provided custom data for report generation
All report configuration (DocumentNumber, CurrentVersion, Draft, etc.) should be passed here.'
type: array
items:
$ref: '#/components/schemas/customField'
x-go-name: CustomFields
fileType:
description: 'fileType - Output format ("pdf" default, "json" supported)
When "json", returns serialized report data instead of rendered PDF'
type: string
x-go-name: FileType
name:
description: name - User-provided display name for the report (e.g., "Q4 Compliance Report")
type: string
x-go-name: Name
timezone:
description: 'timezone - IANA timezone name for report timestamps (e.g., "America/New_York")
If not provided, falls back to timezone derived from CF-IPCountry header, then UTC'
type: string
x-go-name: Timezone
x-go-name: ReportGenerationRequest
x-go-package: github.com/fianulabs/core/v2/server/consulta/routes
ReportInfo:
description: ReportInfo represents metadata about a stored report
type: object
properties:
asset:
$ref: '#/components/schemas/ReportAsset'
author:
$ref: '#/components/schemas/GeneratedByUser'
commit:
description: CommitSHA is the git commit SHA associated with this report
type: string
x-go-name: CommitSHA
filePath:
description: FilePath is the cloud storage path
type: string
x-go-name: FilePath
fileType:
description: FileType is the output format (e.g., "pdf")
type: string
x-go-name: FileType
fileVersion:
description: FileVersion is the version number
type: integer
format: int64
x-go-name: FileVersion
generatedBy:
description: GeneratedBy is the user sub who generated this report
type: string
x-go-name: GeneratedBy
hash:
description: Hash is the 12-char SHA256 hash of assetUUID:commitSHA
type: string
x-go-name: Hash
id:
description: 'ID is the unique identifier for this report (format: {name}-{type}-{hash}-v{version})'
type: string
x-go-name: ID
name:
description: Name is the user-provided display name for the report
type: string
x-go-name: Name
reportType:
description: ReportType is the type of report
type: string
x-go-name: ReportType
size:
description: Size is the file size in bytes
type: integer
format: int64
x-go-name: Size
template:
description: Template is the template key used to generate this report
type: string
x-go-name: Template
uploadedAt:
description: UploadedAt is when the report was created
type: string
format: date-time
x-go-name: UploadedAt
x-go-package: github.com/fianulabs/core/v2/pkg/reporting
GeneratedByUser:
description: Populated by looking up the user's sub in the users table.
type: object
title: GeneratedByUser contains user information for the report generator.
properties:
email:
type: string
x-go-name: Email
firstName:
type: string
x-go-name: FirstName
lastName:
type: string
x-go-name: LastName
sub:
type: string
x-go-name: Sub
x-go-package: github.com/fianulabs/core/v2/pkg/reporting
storeReportResponse:
type: object
x-go-name: StoreReportResponse
x-go-package: github.com/fianulabs/core/v2/server/consulta/routes
getReportResponse:
type: object
x-go-name: GetReportResponse
x-go-package: github.com/fianulabs/core/v2/server/consulta/routes
listReportsResponse:
description: ListReportsResponse contains the list of stored reports
type: object
properties:
hasMore:
description: HasMore indicates whether there are more results available
type: boolean
x-go-name: HasMore
nextPageToken:
description: NextPageToken is the continuation token for fetching the next page (empty if no more pages)
type: string
x-go-name: NextPageToken
reports:
description: Reports is the list of reports
type: array
items:
$ref: '#/components/schemas/ReportInfo'
x-go-name: Reports
total:
description: 'Total is the total number of reports matching the filter (deprecated: not accurate with pagination)'
type: integer
format: int64
x-go-name: Total
x-go-name: ListReportsResponse
x-go-package: github.com/fianulabs/core/v2/pkg/reporting
customField:
description: CustomField represents a user-provided custom field for report generation
type: object
required:
- key
- displayKey
- value
properties:
displayKey:
description: displayKey - User-friendly display name shown in the report
type: string
x-go-name: DisplayKey
key:
description: 'key - Internal key for matching sections or config fields
If matches a known config key (DocumentNumber, CurrentVersion, etc.), overrides that value
If matches a known section key (sast_snyk, sca_snyk, etc.), injects into that section
Otherwise, appended to Custom Data section'
type: string
x-go-name: Key
type:
description: type - Data type hint for rendering (string, number, date, json, html)
type: string
default: string
x-go-name: Type
value:
description: value - The value for this custom field
x-go-name: Value
x-go-name: CustomField
x-go-package: github.com/fianulabs/core/v2/external/transport
ReportAsset:
description: ReportAsset contains asset metadata associated with a report
type: object
properties:
key:
type: string
x-go-name: Key
name:
type: string
x-go-name: Name
type:
type: string
x-go-name: Type
uuid:
type: string
x-go-name: UUID
x-go-package: github.com/fianulabs/core/v2/pkg/reporting
xmpMetadataResponse:
type: object
x-go-name: XMPMetadataResponse
x-go-package: github.com/fianulabs/core/v2/server/consulta/routes
errorV010:
type: object
properties:
code:
description: code
type: string
x-go-name: Code
dataTypeName:
description: dataTypeName
type: string
x-go-name: DataTypeName
detail:
description: detail
type: string
x-go-name: Detail
eventing:
description: eventing
type: boolean
x-go-name: Eventing
file:
description: file
type: string
x-go-name: File
hint:
description: hint
type: string
x-go-name: Hint
message:
description: message
type: string
x-go-name: Message
service:
description: service
type: string
x-go-name: Service
severity:
description: severity
type: string
x-go-name: Severity
source:
description: source
type: string
x-go-name: Source
type:
description: type
type: string
x-go-name: Type
uuid:
description: uuid
type: string
x-go-name: Uuid
x-go-name: Error
x-go-package: github.com/fianulabs/core/v2/external/db/types/fianu/api/error/v0.0.1
requestBodies:
reportGenerationRequest:
content:
application/json:
schema:
$ref: '#/components/schemas/reportGenerationRequest'
description: Report generation request
required: true
securitySchemes:
BearerToken:
description: JWT Bearer Token Auth
type: apiKey
name: Authentication
in: header
externalDocs:
description: Fianu Labs Documentation
url: https://docs.fianu.io
x-tagGroups:
- name: Authentication
tags:
- access_tokens
- name: Console
tags:
- collections
- controls
- domains
- policies
- environments
- targets
- gates
- indexes
- description: 'Every event that occurs throughout the software development lifecycle produces evidence. A Note represents a single piece of evidence. There are four types of Notes: Origin, Occurrence, Transaction, and Attestation. Each type varies in its traits and utility, but all Notes are digitally signed and stored in an immutable ledger where they can be queried on demand. If a query returns a Note that does not match its signature, it is considered untrusted and its evidence invalid. The following routes allow you to retrieve/display evidence Notes.'
name: Evidence
tags:
- evaluation
- ledger
- signatures
- evidence
- deployments
- notes
- events
- metrics
- name: Gating
tags:
- gating_check
- gating_enforce
- description: Integrations represent third-party tools and platforms that generate evidence for attestations. Integrations are designed to manage the third-party’s toolchain relationship with Fianu.
name: Integrations
tags:
- platforms
- plugins
- instances
- platform_types
- tools
- name: Assets
tags:
- assets
- accounts
- modules
- abstract_assets
- name: Inventory
tags:
- statistics
- sources
- description: Notification catalog, effective configuration, delivery channel integrations, and the user inbox.
name: Notifications
tags:
- notifications
- description: Team management, approval workflows, and account-level administration.
name: Administration
tags:
- team
- teams
- users
- tickets
- name: Server
tags:
- settings