Skip to main content

Get Collection

Retrieve a single collection by its ID.

Path Parameters

string
required
The collection ID (base62 encoded)

Response

string
The collection’s unique ID
string
ID of the user who created the collection
string
The collection’s name
string
The collection’s description
string
ISO 8601 timestamp of creation
string
ISO 8601 timestamp of last update
string
URL to the collection icon
integer
Primary color extracted from icon
string
Collection status: listed, unlisted, rejected, or private
array
Array of project IDs in this collection

Example Request

Example Response


Get Multiple Collections

Retrieve multiple collections by their IDs.

Query Parameters

string
required
JSON array of collection IDs as a string

Example Request


Create Collection

Create a new collection. Requires authentication and COLLECTION_CREATE scope.

Request Body

string
required
Collection name (3-64 characters)
string
Collection description (3-255 characters)
array
Initial list of project IDs or slugs (max 1024)

Example Request

Example Response


Update Collection

Update a collection’s metadata. Requires authentication and COLLECTION_WRITE scope.

Path Parameters

string
required
The collection ID

Request Body

string
New collection name (3-64 characters)
string
New collection description (3-256 characters, or null to clear)
string
New status (moderators can set any status; users can only set listed or unlisted)
array
Complete new list of project IDs/slugs to replace existing projects (max 1024)

Example Request


Delete Collection

Delete a collection. Requires authentication and COLLECTION_DELETE scope.

Path Parameters

string
required
The collection ID

Example Request


Update Collection Icon

Upload a new icon for a collection. Requires authentication and COLLECTION_WRITE scope.

Path Parameters

string
required
The collection ID

Query Parameters

string
required
Image file extension (png, jpg, etc.)

Request Body

Raw image data (must be smaller than 256 KiB).

Example Request


Delete Collection Icon

Delete a collection’s icon. Requires authentication and COLLECTION_WRITE scope.

Path Parameters

string
required
The collection ID

Example Request


Get User’s Collections

Get all collections created by a specific user.

Path Parameters

string
required
User ID or username

Response

Returns an array of collections visible to the requester.

Example Request


Common Use Cases

Creating a Curated Modpack List
  1. Create a collection with POST /v3/collection
  2. Add an icon with PATCH /v3/collection/{id}/icon
  3. Update the project list as needed with PATCH /v3/collection/{id}
  4. Share the collection URL with others
Managing Collection Visibility Collections support four status levels:
  • listed - Public and discoverable
  • unlisted - Public but not in search results
  • private - Only visible to the creator
  • rejected - Rejected by moderators (moderator action only)
Collection Limits Users have limits on how many collections they can create. The limit depends on their account type and is enforced when creating new collections. Project Management When updating the project list:
  • Use new_projects to completely replace the existing list
  • Projects are referenced by ID or slug
  • Non-existent projects will cause an error
  • Maximum 1024 projects per collection
  • The collection’s updated timestamp is automatically set
Best Practices
  1. Descriptive Names: Use clear, descriptive names that explain the collection’s purpose
  2. Good Descriptions: Write helpful descriptions that explain what users will find
  3. Quality Over Quantity: Curate carefully rather than adding every related project
  4. Keep Updated: Remove deprecated projects and add new relevant ones
  5. Use Icons: Add custom icons to make collections visually distinctive
  6. Appropriate Status: Use listed for public collections, unlisted for works-in-progress
Permissions
  • Only the collection creator can edit or delete their collections
  • Moderators can edit any collection’s status
  • Anyone can view listed collections
  • Only the creator can view private collections
  • Anyone with the link can view unlisted collections