Skip to content

Pack API โ€‹

Get Packs โ€‹

prolog
GET API_BASE/lists/:list_id/packs

Parameters โ€‹

ParameterTypeDescription
list_iduint64The numeric ID of the list.

Response โ€‹

json
{
  "data": [PackObject, ...],
  "ts": 1723923923
}

Create Pack โ€‹

prolog
POST API_BASE/lists/:list_id/packs

Authorization Required โ€‹

OAuthAPIKey
YesYes

Parameters โ€‹

ParameterTypeDescription
list_iduint64The 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_id

Parameters โ€‹

ParameterTypeDescription
list_iduint64The numeric ID of the list.
pack_idstringPack 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=:limit

Parameters โ€‹

ParameterTypeDescription
list_iduint64The numeric ID of the list.
pack_idstringPack numeric ID or UUID.

Query Parameters โ€‹

ParameterTypeDescription
offsetnumberPagination offset.
limitnumberPagination 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_id

Authorization Required โ€‹

OAuthAPIKey
YesYes

Request Body โ€‹

Same as Create Pack.

Response โ€‹

json
{
  "data": PackObject,
  "ts": 1723923923
}

Delete Pack โ€‹

prolog
DELETE API_BASE/lists/:list_id/packs/:pack_id

Authorization Required โ€‹

OAuthAPIKey
YesYes

Response โ€‹

json
{
  "data": null,
  "ts": 1723923923
}