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

# Upload Url import

Requires a scoped personal key, explicit project selection, and current role authorization. See [Agent imports](/tutorials/agent-imports) for validation, consent, preparation, and recovery.


## OpenAPI

````yaml api-reference/openapi.json POST /imports/{import_id}/upload-url
openapi: 3.0.1
info:
  title: Sendrealm API
  description: >-
    API for email, push, audience resources, domains, campaign drafts,
    templates, events, topics, and automations
  license:
    name: MIT
  version: 0.3.0
servers:
  - url: https://api.sendrealm.com
security:
  - bearerAuth: []
paths:
  /imports/{import_id}/upload-url:
    post:
      tags:
        - Agent imports
      summary: Upload Url import
      operationId: imports_upload_url
      parameters:
        - name: X-Sendrealm-Project-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
        - name: import_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                file_bytes:
                  type: integer
                  minimum: 1
                  maximum: 524288000
              additionalProperties: false
              x-sendrealm-mcp-contract: true
              required:
                - file_bytes
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  data:
                    $ref: '#/components/schemas/McpImportUpload'
                additionalProperties: false
                x-sendrealm-mcp-contract: true
                required:
                  - status
                  - data
components:
  schemas:
    McpImportUpload:
      type: object
      properties:
        import_id:
          type: string
          format: uuid
        upload_url:
          type: string
          format: uri
        method:
          type: string
          enum:
            - PUT
        headers:
          type: object
          additionalProperties:
            type: string
        expires_in_seconds:
          type: integer
        max_bytes:
          type: integer
      additionalProperties: false
      x-sendrealm-mcp-contract: true
      required:
        - import_id
        - upload_url
        - method
        - headers
        - expires_in_seconds
        - max_bytes
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Integration key for backend workloads, or a scoped personal key
        (sr_user_) for account discovery and supported project operations. MCP
        accepts only personal keys.

````

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