Skip to content

List the library's items

GET
/api/library
curl --request GET \
--url https://forge.example.com/api/library \
--header 'Authorization: Bearer <token>'

Everyone in the organization reads the library. kind narrows it to services, appliances, zones, controls, threats or dependencies. uses counts only the models you can see. canEdit says whether you keep the library: the central team, curators and administrators.

kind
string

OK

Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
kind
required
string
key
required
string
name
required
string
owner
required
null | string
status
required
string
latestVersion
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
version
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
uses
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
environmentRef
required
null | string
updatedAt
required
string format: date-time
canEdit
required
boolean

Example generated

{
"items": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"kind": "example",
"key": "example",
"name": "example",
"owner": "example",
"status": "example",
"latestVersion": 1,
"version": 1,
"uses": 1,
"environmentRef": "example",
"updatedAt": "2026-04-15T12:00:00Z"
}
],
"canEdit": true
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}