> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magna.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Creative Upload URL

> Request a pre-signed URL to upload a portal asset (image or animation).



## OpenAPI

````yaml /apis/admin/openapi.json post /api/external/v1/portals/creatives/upload-url
openapi: 3.1.0
info:
  title: Magna Admin API
  version: 1.0.0
  description: >-
    The private, server-to-server API for managing allocations, funding and
    claims, transactions, portals, and token data. Authenticated with a project
    API key sent in the `x-magna-api-token` header.
servers:
  - url: https://app.magna.so
    description: Production
security:
  - apiToken: []
paths:
  /api/external/v1/portals/creatives/upload-url:
    post:
      tags:
        - Portals
      summary: Get Creative Upload URL
      description: Request a pre-signed URL to upload a portal asset (image or animation).
      operationId: postPortalsCreativesUploadUrl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type:
                - object
              properties:
                fileName:
                  type:
                    - string
                  minLength: 1
                contentType:
                  type:
                    - string
                  minLength: 1
                kind:
                  type:
                    - string
                  enum:
                    - image
                    - animation
              required:
                - fileName
                - contentType
                - kind
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  isProcessed:
                    type: boolean
                  result:
                    description: Endpoint-specific result payload.
              example:
                isProcessed: true
                result:
                  uploadUrl: https://...signed-upload-url...
                  storageKey: images/portal/hero-abc123.png
                  publicUrl: https://.../images/portal/hero-abc123.png
        '400':
          description: Validation error
        '401':
          description: Missing or invalid API token
        '403':
          description: API token lacks the required scope or project access
components:
  securitySchemes:
    apiToken:
      type: apiKey
      in: header
      name: x-magna-api-token

````