Pack API โ
Get Packs โ
prolog
GET API_BASE/lists/:list_id/packsParameters โ
| Parameter | Type | Description |
|---|---|---|
list_id | uint64 | The numeric ID of the list. |
Response โ
json
{
"data": [PackObject, ...],
"ts": 1723923923
}Create Pack โ
prolog
POST API_BASE/lists/:list_id/packsAuthorization Required โ
| OAuth | APIKey |
|---|---|
| Yes | Yes |
Parameters โ
| Parameter | Type | Description |
|---|---|---|
list_id | uint64 | The numeric ID of the list. |
Request Body โ
json
{
"title": "Pack Title",
"description": "...",
"cover_image_url": "https://...",
"post_ids": [1, 2, 3]
}Response โ
json
{
"data": PackObject,
"ts": 1723923923
}Get Pack โ
prolog
GET API_BASE/lists/:list_id/packs/:pack_idParameters โ
| Parameter | Type | Description |
|---|---|---|
list_id | uint64 | The numeric ID of the list. |
pack_id | string | Pack numeric ID or UUID. |
Response โ
json
{
"data": PackObject,
"ts": 1723923923
}Get Pack Posts โ
prolog
GET API_BASE/lists/:list_id/packs/:pack_id/posts?offset=:offset&limit=:limitParameters โ
| Parameter | Type | Description |
|---|---|---|
list_id | uint64 | The numeric ID of the list. |
pack_id | string | Pack numeric ID or UUID. |
Query Parameters โ
| Parameter | Type | Description |
|---|---|---|
offset | number | Pagination offset. |
limit | number | Pagination limit (max 100). |
Response โ
json
{
"data": {
"pack": PackObject,
"posts": [PostObject, ...],
"pagination": {
"total": 0,
"offset": 0,
"next_offset": 20,
"limit": 20
}
},
"ts": 1723923923
}Update Pack โ
prolog
PUT API_BASE/lists/:list_id/packs/:pack_idAuthorization Required โ
| OAuth | APIKey |
|---|---|
| Yes | Yes |
Request Body โ
Same as Create Pack.
Response โ
json
{
"data": PackObject,
"ts": 1723923923
}Delete Pack โ
prolog
DELETE API_BASE/lists/:list_id/packs/:pack_idAuthorization Required โ
| OAuth | APIKey |
|---|---|
| Yes | Yes |
Response โ
json
{
"data": null,
"ts": 1723923923
}