Skip to main content
POST
/
api
/
analysis
/
results
/
sbomb
Get SBOM Results
curl --request POST \
  --url https://api.codeant.ai/api/analysis/results/sbomb \
  --header 'Content-Type: application/json' \
  --data '{
  "repo": "owner/repository",
  "commit_id": "abc123def456",
  "access_token": "ghp_xxxxxxxxxxxx",
  "service": "github"
}'
{
  "results": {
    "rootFolder": "/mnt/lambda/owner/repository/abc123def456",
    "timestamp": null,
    "sboms": [
      {
        "language": "Python",
        "sourceFile": "/tmp/requirements.txt",
        "packages": [
          {
            "name": "requests",
            "version": "2.28.0",
            "licenseDeclared": "Apache-2.0",
            "licenseConcluded": "Apache-2.0",
            "licenseReason": "NOASSERTION",
            "licenseStandard": true,
            "copyleftStrength": "permissive",
            "policyLevel": "allow",
            "policyNote": "Permissive license: keep license and notices",
            "spdxId": "Apache-2.0"
          }
        ],
        "packagesCount": 1
      }
    ]
  },
  "status": "done",
  "commit_id": "abc123def456"
}

Body

application/json
repo
string
required

Repository identifier (format varies by service)

Example:

"owner/repository"

commit_id
string
required

Git commit SHA or identifier

Example:

"abc123def456"

access_token
string
required

Authentication token for the service

Example:

"ghp_xxxxxxxxxxxx"

service
enum<string>
required

Version control service provider

Available options:
github,
azuredevops,
gitlab,
bitbucket
Example:

"github"

gitlab_base_url
string

Base URL for the service (optional for GitHub, required for GitLab)

Example:

"https://gitlab.com"

Response

SBOM results retrieved successfully

Software Bill of Materials (SBOM) response containing package and license information

results
object

SBOM analysis results

status
enum<string>

Status of the SBOM analysis

Available options:
pending,
processing,
done,
failed
Example:

"done"

commit_id
string

Git commit SHA that was analyzed

Example:

"abc123def456"