---
updatedAt: 2026-09-29T21:24:53.000Z
agentTools:
  projectIndex: https://docs.opensea.io/llms.txt
---

# Upload collection page media

Upload an image or an MP4 video for the collection page: the hero (8:3 on desktop, 16:9 on mobile), about, narrative, content block and team sections. Set the content_type query parameter to the exact MIME type of the file. Video must be video/mp4. Files can be up to 50 MB. This response starts a three-step upload flow. First, request this context from OpenSea. Second, call the returned method at the returned URL. For POST, add every fields entry unchanged as a multipart text field, then add a file part containing the bytes. The file part must be last. Let the HTTP library generate the multipart boundary; do not set the overall multipart Content-Type header yourself. POST storage uploads normally return 204. For PUT, upload the raw bytes, use only headers explicitly required by the endpoint, and expect 200. Treat any 2xx storage response as success. The URL and fields are short-lived sensitive credentials. Do not log, persist, alter, or put them in tickets. Third, after storage succeeds, pass the returned token to the documented OpenSea API endpoint. Do not use the token before the storage upload succeeds. Pass the token in PATCH /api/v2/collections/{slug}/metadata as { image: { token } } for an image or { video: { token } } for a video. The media type must match the upload: a video token sent as image, or the reverse, does not resolve and the metadata update fails with 400 without saving anything. The placement picks where the file is stored, but the token is accepted in any media field of the metadata update. The presigned upload expires about a minute after it is issued.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "OpenSea API",
    "description": "The API for OpenSea",
    "contact": {
      "name": "OpenSea",
      "url": "https://www.opensea.io",
      "email": "contact@opensea.io"
    },
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.opensea.io",
      "description": "OpenSea API server"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Collection Endpoints",
      "description": "Collection endpoints to retrieve collection details, traits, and trending data"
    }
  ],
  "paths": {
    "/api/v2/collections/{slug}/media/{placement}": {
      "post": {
        "tags": [
          "Collection Endpoints"
        ],
        "summary": "Upload collection page media",
        "description": "Upload an image or an MP4 video for the collection page: the hero (8:3 on desktop, 16:9 on mobile), about, narrative, content block and team sections. Set the content_type query parameter to the exact MIME type of the file. Video must be video/mp4. Files can be up to 50 MB. This response starts a three-step upload flow. First, request this context from OpenSea. Second, call the returned method at the returned URL. For POST, add every fields entry unchanged as a multipart text field, then add a file part containing the bytes. The file part must be last. Let the HTTP library generate the multipart boundary; do not set the overall multipart Content-Type header yourself. POST storage uploads normally return 204. For PUT, upload the raw bytes, use only headers explicitly required by the endpoint, and expect 200. Treat any 2xx storage response as success. The URL and fields are short-lived sensitive credentials. Do not log, persist, alter, or put them in tickets. Third, after storage succeeds, pass the returned token to the documented OpenSea API endpoint. Do not use the token before the storage upload succeeds. Pass the token in PATCH /api/v2/collections/{slug}/metadata as { image: { token } } for an image or { video: { token } } for a video. The media type must match the upload: a video token sent as image, or the reverse, does not resolve and the metadata update fails with 400 without saving anything. The placement picks where the file is stored, but the token is accepted in any media field of the metadata update. The presigned upload expires about a minute after it is issued.",
        "operationId": "upload_collection_page_media",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "Collection slug",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "boredapeyachtclub"
          },
          {
            "name": "placement",
            "in": "path",
            "description": "Where the media goes on the page: hero_desktop, hero_mobile, about_preview, about_section, overview (narrative and content block media), overview_background (narrative backgrounds) or team.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "hero_desktop"
          },
          {
            "name": "content_type",
            "in": "query",
            "description": "Exact MIME type of the file: any image type (image/png, image/jpeg, image/gif, image/webp and so on) or video/mp4.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "video/mp4"
          }
        ],
        "responses": {
          "200": {
            "description": "Upload context generated successfully",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/UploadContext"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/V1ErrorWrapper"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "security": [
          {
            "ApiKeyAuth": [],
            "WalletAuth": [
              "write:collections"
            ]
          }
        ],
        "x-opensea-auth-required": true,
        "x-opensea-auth-scopes": [
          "write:collections"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "V1ErrorWrapper": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code, on the errors that have one. Branch on it rather than on the message text, which may change.",
            "example": "MINTER_NOT_ELIGIBLE"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "errors"
        ]
      },
      "UploadContext": {
        "type": "object",
        "description": "This response starts a three-step upload flow. First, request this context from OpenSea. Second, call the returned method at the returned URL. For POST, add every fields entry unchanged as a multipart text field, then add a file part containing the bytes. The file part must be last. Let the HTTP library generate the multipart boundary; do not set the overall multipart Content-Type header yourself. POST storage uploads normally return 204. For PUT, upload the raw bytes, use only headers explicitly required by the endpoint, and expect 200. Treat any 2xx storage response as success. The URL and fields are short-lived sensitive credentials. Do not log, persist, alter, or put them in tickets. Third, after storage succeeds, pass the returned token to the documented OpenSea API endpoint. Do not use the token before the storage upload succeeds.",
        "properties": {
          "fields": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Short-lived sensitive multipart text fields for POST. Submit every entry unchanged before the file part. Content-Type contains the exact MIME type required by the signed policy. This map is empty for PUT.",
            "example": {
              "key": "uploads/example.png",
              "Content-Type": "image/png"
            }
          },
          "method": {
            "type": "string",
            "description": "HTTP method to use at url. Current upload contexts use POST.",
            "enum": [
              "POST",
              "PUT"
            ],
            "example": "POST"
          },
          "token": {
            "type": "string",
            "description": "Reference for the next OpenSea API call. Use it only after storage returns 2xx.",
            "example": "upload-token-example"
          },
          "url": {
            "type": "string",
            "description": "Short-lived storage URL. Use it exactly as returned and treat it as sensitive.",
            "example": "https://uploads.example.com/"
          }
        },
        "required": [
          "fields",
          "method",
          "token",
          "url"
        ]
      }
    },
    "responses": {
      "BadRequest": {
        "description": "For error reasons, review the response data.",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/V1ErrorWrapper"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Invalid or missing API key"
      },
      "Forbidden": {
        "description": "Wallet token lacks permission for this request",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/V1ErrorWrapper"
            }
          }
        }
      },
      "NotFound": {
        "description": "Resource not found",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/V1ErrorWrapper"
            }
          }
        }
      },
      "InternalError": {
        "description": "Internal server error. Please open a support ticket so OpenSea can investigate."
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "description": "API key required for authentication",
        "name": "x-api-key",
        "in": "header"
      },
      "WalletAuth": {
        "type": "openIdConnect",
        "description": "OpenSea wallet authorization. Run `opensea login` or use the OAuth 2.1 authorization-code flow with PKCE, then send the access token as `Authorization: Bearer <token>`.",
        "openIdConnectUrl": "https://auth.opensea.io/.well-known/openid-configuration"
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Data & Discovery",
      "tags": [
        "Chain Endpoints",
        "Account Endpoints",
        "Collection Endpoints",
        "NFT Endpoints",
        "Contract Endpoints",
        "Token Endpoints",
        "Search Endpoints",
        "Signal Endpoints"
      ]
    },
    {
      "name": "Marketplace & Trading",
      "tags": [
        "Listing Endpoints",
        "Offer Endpoints",
        "Order Endpoints",
        "Swap Endpoints",
        "Drops Endpoints"
      ]
    },
    {
      "name": "Analytics & Events",
      "tags": [
        "Analytics Endpoints"
      ]
    },
    {
      "name": "Tools [Beta]",
      "tags": [
        "Tool Endpoints [Beta]"
      ]
    },
    {
      "name": "Transactions",
      "tags": [
        "Transaction Endpoints"
      ]
    },
    {
      "name": "Authentication",
      "tags": [
        "Auth Endpoints"
      ]
    }
  ]
}
```