Party Boxes

MIT

A SourceMod plugin for Left 4 Dead 2 that allows you to open upgrade boxes as party/fun boxes. A big work-in-progress!

Party Boxes

Authentication

All requests are authenticated with a personal API key.

You need to log in to use the API.

After logging in, generate an API key from the panel API page and send it as a Bearer token.

Log in →

Example request

curl "/api/content/mod/3" \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Endpoints

Public read-only endpoints.

GET
/api/content/mod

List items (paginated, filterable).

ParameterInRequiredDescription
pagequerynoPage number (1-based).
limitquerynoItems per page (clamped to your key limit).
minequerynoSet to 1 to return only items you own.
searchquerynoFilter by name.
tagsquerynoComma-separated tag names.
categoryIdsquerynoComma-separated category ids.
communityIdquerynoScope to a community.
nsfwquerynoInclude NSFW (1/0).
curl example
curl -v -X "GET" -H "Authorization: Bearer <YOUR_API_KEY>" /api/content/mod
GET
/api/content/mod/3

Fetch this item.

No parameters — the item id in the path is all that's needed.

curl example
curl -v -X "GET" -H "Authorization: Bearer <YOUR_API_KEY>" /api/content/mod/3
GET
/api/content/mod/3/{relation}

Read a relation set (tags | media | releases | links | installers | items).

ParameterInRequiredDescription
relationpathyestags | media | releases | links | installers | items
pagequerynoPage number (1-based).
limitquerynoItems per page.
curl example
curl -v -X "GET" -H "Authorization: Bearer <YOUR_API_KEY>" /api/content/mod/3/{relation}