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

# Get a direct-upload URL for agent bio media

> Step 1 of a bio image/video upload. Body `{ kind: 'image'|'video', contentType, sizeBytes, fileName? }`. Images: image/jpeg, image/png, image/webp, image/gif up to 10 MiB. Video: video/mp4, video/webm up to 250 MiB. Anything else returns 422 `MEDIA_TYPE_NOT_ALLOWED` / `MEDIA_TOO_LARGE`. Returns a 15-minute, create/write-only SAS `uploadUrl` for one blob plus the headers to send. The browser PUTs the bytes straight to it (block upload for large files), then calls `POST /agents/{id}/media/{mediaId}/finalize`. Returns 501 `BLOB_STORAGE_NOT_CONFIGURED` when storage is not configured.



## OpenAPI

````yaml /api-reference/v2/openapi.json post /agents/{id}/media/upload-url
openapi: 3.0.3
info:
  title: Windermere Atlas API
  description: V2 data API — Project Atlas
  version: 2.0.0
servers:
  - url: https://api.windermere.com/v2/api
security:
  - bearerAuth: []
tags:
  - name: agents
    description: Agent profile read endpoints
  - name: offices
    description: Office read endpoints
  - name: teams
    description: Team read endpoints
  - name: listings
    description: Listings (RESO Data Dictionary Property records; active + sold)
  - name: reso
    description: >-
      RESO Web API Core (OData 4.0) facade over listings — Property, Media,
      OpenHouse, Lookup
  - name: brokerages
    description: Brokerage read endpoints
  - name: regions
    description: Region read endpoints
  - name: dnc
    description: Do-not-contact list read endpoints
  - name: directory
    description: Denormalized public directory (partner-safe)
  - name: webhooks
    description: Partner webhook subscriptions (partner-only)
  - name: health
    description: Liveness and readiness probes
paths:
  /agents/{id}/media/upload-url:
    post:
      tags:
        - agents
      summary: Get a direct-upload URL for agent bio media
      description: >-
        Step 1 of a bio image/video upload. Body `{ kind: 'image'|'video',
        contentType, sizeBytes, fileName? }`. Images: image/jpeg, image/png,
        image/webp, image/gif up to 10 MiB. Video: video/mp4, video/webm up to
        250 MiB. Anything else returns 422 `MEDIA_TYPE_NOT_ALLOWED` /
        `MEDIA_TOO_LARGE`. Returns a 15-minute, create/write-only SAS
        `uploadUrl` for one blob plus the headers to send. The browser PUTs the
        bytes straight to it (block upload for large files), then calls `POST
        /agents/{id}/media/{mediaId}/finalize`. Returns 501
        `BLOB_STORAGE_NOT_CONFIGURED` when storage is not configured.
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - image
                    - video
                contentType:
                  type: string
                  minLength: 1
                sizeBytes:
                  type: integer
                  exclusiveMinimum: true
                  minimum: 0
                fileName:
                  type: string
                  minLength: 1
                  maxLength: 255
              required:
                - kind
                - contentType
                - sizeBytes
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  mediaId:
                    type: string
                    format: uuid
                  uploadUrl:
                    type: string
                  uploadHeaders:
                    type: object
                    additionalProperties:
                      type: string
                  expiresAt:
                    type: string
                    format: date-time
                required:
                  - mediaId
                  - uploadUrl
                  - uploadHeaders
                  - expiresAt
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Microsoft Entra ID JWT (staff) or OAuth2 client-credentials token issued
        by APIM (partners).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.