List the library's items
GET
/api/library
const url = 'https://forge.example.com/api/library';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”kind
string
Responses
Section titled “Responses”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
version
required
integer | string format: int32
uses
required
integer | string format: int32
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}default
Section titled “default”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"}