Modpacks¶
GET /api/modpack¶
List all modpacks. The modpacks returned depend on the authentication provided:
- No auth -- public modpacks only.
cidparameter -- public modpacks plus any modpacks associated with the client.kparameter -- all modpacks, including private and hidden.- Bearer token -- modpacks the token's user has access to (users with
solder_fullsee all modpacks).
"Hidden" modpacks are unlisted here but remain reachable via GET /api/modpack/{slug}. "Private" modpacks are excluded from both endpoints and require explicit access.
Query Parameters¶
| Parameter | Type | Description |
|---|---|---|
cid |
string | Client UUID. Grants access to client-associated modpacks. |
k |
string | API key. Grants full access to all modpacks. |
include |
string | Set to full to return full modpack objects instead of display names. |
Example Request¶
Response (200)¶
{
"modpacks": {
"hexxit": "Hexxit",
"tekkit": "Tekkit"
},
"mirror_url": "https://mods.example.com/"
}
Response with include=full (200)¶
When include=full is set, each modpack value becomes a full object:
{
"modpacks": {
"hexxit": {
"id": 1,
"name": "hexxit",
"display_name": "Hexxit",
"url": null,
"icon": null,
"icon_md5": null,
"logo": null,
"logo_md5": null,
"background": null,
"background_md5": null,
"recommended": "1.0.0",
"latest": "1.0.1",
"builds": ["1.0.0", "1.0.1"]
}
},
"mirror_url": "https://mods.example.com/"
}
GET /api/modpack/{slug}¶
Show a single modpack by its slug. Hidden modpacks are omitted from GET /api/modpack but remain fetchable by slug without authentication; this is how the Technic Launcher accesses a pack whose slug it already knows. Private modpacks return 404 without authentication that grants access.
Authentication determines access:
- No auth -- public or hidden modpacks (private modpacks return 404).
cidparameter -- also grants access to private modpacks associated with the client.kparameter -- any modpack.- Bearer token -- modpacks the token's user has access to (users with
solder_fullsee any modpack).
Path Parameters¶
| Parameter | Type | Description |
|---|---|---|
slug |
string | The modpack slug (URL-friendly name). |
Query Parameters¶
| Parameter | Type | Description |
|---|---|---|
cid |
string | Client UUID. Grants access if the client is associated with this modpack. |
k |
string | API key. Grants full access regardless of modpack visibility. |
Example Request¶
Response (200)¶
{
"id": 1,
"name": "hexxit",
"display_name": "Hexxit",
"url": null,
"icon": null,
"icon_md5": null,
"logo": null,
"logo_md5": null,
"background": null,
"background_md5": null,
"recommended": "1.0.0",
"latest": "1.0.1",
"builds": ["1.0.0", "1.0.1"]
}