Usage examples
Practical, real-world recipes for common FOSSA API tasks.
Overview
Practical, real-world recipes for accomplishing common tasks with the FOSSA API.
Note
These examples assume you have a valid FOSSA API token. See Authentication for details.
- Managing issues: query, filter, bulk-ignore, and manage auto-ignore rules across licensing, security, and quality issues.
- Managing users and teams: create users, manage team membership, and assign projects to teams.
- Generating reports: trigger org-wide audit and issue CSV reports via the API.
- Creating Jira tickets: export FOSSA issues to Jira without the UI.
- Downloading attribution reports: download licensing reports in several formats.
- Modifying release groups: add and update projects in a release group.
- Retrieving the latest revision: get the latest revision for each branch of a project.
- Rotating access tokens: manage and rotate tokens securely.
Managing issues
Query, filter, bulk-ignore, and manage auto-ignore rules across licensing, security, and quality issues.
Managing users and teams
EnterpriseCreate users, manage team membership, and query team projects and release groups via the FOSSA API.
Generating reports
Trigger org-wide reports via the API: audit/due diligence reports and global issue CSV exports.
Creating Jira tickets
Automatically create Jira tickets from FOSSA issues without using the UI.
Downloading attribution reports
Download project attribution (licensing) reports in TXT, HTML, Markdown, PDF, or CSV.
Modifying release groups
Add projects to a release group and update the projects within an existing release group via the API.
Retrieving the latest revision
Retrieve the latest revision for each branch of a project via the API.
Rotating access tokens
Best practices for managing and rotating FOSSA access tokens securely.