---
agentTools:
  projectIndex: https://fevertokens.readme.io/llms.txt
---

# Create a collection

Creates a new collection for the specified project, using the information provided in the request body.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.1.0",
    "title": "FeverTokens API",
    "description": "fevertokens-api",
    "license": {
      "url": "https://fevertokens.io",
      "name": "MIT"
    },
    "contact": {
      "name": "FeverTokens API",
      "url": "https://fevertokens.io",
      "email": "dev@fevertokens.io"
    }
  },
  "servers": [
    {
      "url": "https://api.fevertokens.io/v1",
      "description": "Production server"
    }
  ],
  "tags": [
    {
      "name": "Collections",
      "description": "get list of collections, create a new collection"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/projects/{projectId}/collections": {
      "parameters": [
        {
          "name": "projectId",
          "in": "path",
          "description": "projectId is a string which identifies the project. .",
          "required": true,
          "schema": {
            "type": "string",
            "example": "pr_2RZEDMxEkrGVIKdq0kAEAfj27JQ"
          }
        }
      ],
      "post": {
        "summary": "Create a collection",
        "description": "Creates a new collection for the specified project, using the information provided in the request body.",
        "operationId": "createCollection",
        "tags": [
          "Collections"
        ],
        "requestBody": {
          "description": "request body for create a new collection",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "projectId",
                  "collectionName"
                ],
                "type": "object",
                "properties": {
                  "collectionName": {
                    "type": "string",
                    "example": "my collection"
                  },
                  "collectionDescription": {
                    "type": "string",
                    "example": "collection1 description"
                  },
                  "collectionExternalLink": {
                    "type": "string",
                    "example": "https://www.google.com"
                  },
                  "collectionImages": {
                    "type": "object",
                    "properties": {
                      "collectionLogo": {
                        "type": "string",
                        "example": "https://storage.googleapis.com/fevertokens-images/collection1/collection1-logo.png"
                      },
                      "collectionBanner": {
                        "type": "string",
                        "example": "https://storage.googleapis.com/fevertokens-images/collection1/collection1-logo.png"
                      }
                    }
                  }
                }
              },
              "example": {
                "collectionId": "co_12ZEDMxEkrGVIKdq0kAEAfj27JQ",
                "collectionName": "collection 1",
                "collectionDescription": "collection 1 description",
                "collectionStatus": "PUBLISHED"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "created a new collection",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "collectionId": {
                      "type": "string",
                      "description": "collection id"
                    },
                    "message": {
                      "type": "string",
                      "description": "message"
                    }
                  }
                },
                "example": {
                  "collectionId": "co_2RZEDMxEkrGVIKdq0kAEAfj27JQ",
                  "address": "0x1234567890123456789012345678901234567890",
                  "message": "Collection : Successfully Created ✅"
                }
              }
            }
          },
          "400": {
            "description": "The specified resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                },
                "example": {
                  "error": "The specified resource was not found",
                  "code": "404"
                }
              }
            }
          },
          "500": {
            "description": "internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ],
                  "example": {
                    "error": "internal server error",
                    "code": "500"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 148,
      "2": 181,
      "3": 86,
      "4": 57,
      "5": 133,
      "6": 21,
      "7": 0,
      "8": 42,
      "9": 217,
      "10": 141,
      "11": 149
    }
  }
}
```