Get a single project.
https://app.fossa.com/api/projects/{locator}Retrieve a single project by its locator, including its policy, update hook, labels, and saved issue filters, plus computed metadata: the head/latest/last-analyzed revisions, notifications, references, and contributor count. This endpoint implements its own access control via the project scope: a caller may read a project only if it is public or belongs to the caller's organization.
Path parameters
locatorstringrequiredThe URL-encoded locator of the project (e.g., "git+github.com/owner/repo")
Query parameters
refstringThe branch or tag to use when computing the head/latest/last-analyzed revision metadata. Defaults to the project's default branch.
ref_typeenumWhether `ref` refers to a branch or a tag. Defaults to `branch`.
branchtagResponses
200The requested Project object. Contains the stored project fields plus the included `policy`, `updateHook`,
`labels`, and `filters` relations and computed metadata fields (`head`, `latest`, `last_analyzed`,
`notifications`, `references`, and `contributorCount`).
The Project object, including related records and computed metadata.
401UnauthorizeduuidstringUnique identifier associated with the error
codeintegerfossa specific error code
messagestringmessage associated with this error
namestringname of the error
httpStatusCodeintegerhttp status code number
403ForbiddenuuidstringUnique identifier associated with the error
codeintegerfossa specific error code
messagestringmessage associated with this error
namestringname of the error
httpStatusCodeintegerhttp status code number
404Not Found - Project does not exist or you do not have access to ituuidstringUnique identifier associated with the error
codeintegerfossa specific error code
messagestringmessage associated with this error
namestringname of the error
httpStatusCodeintegerhttp status code number
500Server ErroruuidstringUnique identifier associated with the error
codeintegerfossa specific error code
messagestringmessage associated with this error
namestringname of the error
httpStatusCodeintegerhttp status code number
Try this endpoint
Build a request and run it against app.fossa.com.
Stored in this browser for 24 hours. Try It uses a docs proxy for CORS and does not store tokens server-side.
GET https://app.fossa.com/api/projects/git%252Bgithub.com%252Ffossas%252Ffossa-clicurl --request GET \ --url 'https://app.fossa.com/api/projects/git%252Bgithub.com%252Ffossas%252Ffossa-cli' \ --header 'accept: application/json' \ --header 'authorization: Bearer YOUR_API_TOKEN'Real request. Mutating methods can change data.
Path params
locatorstringrequiredThe URL-encoded locator of the project (e.g., "git+github.com/owner/repo")
Query params
refstringThe branch or tag to use when computing the head/latest/last-analyzed revision metadata. Defaults to the project's default branch.
ref_typeenumWhether `ref` refers to a branch or a tag. Defaults to `branch`.