GET/v1/license/{licenseId}

Get a license by SPDX ID

Retrieves the details for a specific license identified by its SPDX License ID. Use licenseId to select the license; the response includes license text, comments, related license groups, and reference URLs when available.

1 parameter
licenseIdstringrequired
The SPDX License ID of the license to retrieve.

3 status codes
200Returns the license object, including its UUID, SPDX license ID, name, classification flags, license groups, and any license comments, text, reference URLs, standard header, or template.
isCustomLicensebooleanrequired
Whether the license is a custom license created by a user
isDeprecatedLicenseIdbooleanrequired
Whether the licenseId has been deprecated by SPDX
isFsfLibrebooleanrequired
Whether the license is FSF libre
isOsiApprovedbooleanrequired
Whether the license is approved by the OSI
licenseCommentsstringoptional
Comments about the license
licenseGroupsarray<object>required
License groups the license belongs to
licenseIdstringrequired
Identifier of the license
licenseTextstringoptional
Full license text
namestringrequired
Display name of the license
seeAlsoarray<string>optional
Additional URLs with information about the license
standardLicenseHeaderstringoptional
Standard license header typically added to the top of source code
standardLicenseTemplatestringoptional
Standard license template used to derive the license text
uuidstringrequired
UUID of the license
401Returned when the request is unauthorized.
404Returned when the license could not be found.

Error handling

A 401 is returned when the request is unauthorized. A 404 is returned when the licenseId path parameter does not identify an existing license.