Get library item by ID
GET
/ai/gateway/library/{collection}/{id}Contract
Parameter | Value |
|---|---|
| Section | ai-gateway |
| Authentication | AIKeyAuth |
| Consumes | not required |
| Produces | application/json |
Parameters
2 parameters
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| collection | path | yes | string | Library collection name |
| id | path | yes | integer | Item ID |
Responses
5 responses
Status | Description | Type |
|---|---|---|
200 | Successful response | object |
400 | Invalid request | object |
401 | API key is missing or invalid | object |
403 | Required library:read scope is missing | object |
500 | Internal server error | object |
{ "cursor": { "count": 0, "currentPage": 0, "totalPages": 0, "totalRows": 0 }, "data": {} }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }