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

# Presign a batch of image assets

> Presigns many image objects in one call, returning a single PUT URL and a reusable `image_reference` per asset. Unlike the per-object upload flow, no ingest run is created per asset — store the images, then point records' image_embeddings fields at each `image_reference`. The scalable path for large image corpora.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/ingest/sources/{source_key}/asset-uploads
openapi: 3.1.0
info:
  description: >-
    Splendor is a search and retrieval API for your operational data. Ingest

    datasets — logs, documents, and structured records — and query them through
    one

    consistent interface that spans full-text, SQL, and semantic (vector)
    search.


    Every request authenticates with a bearer token and selects a workspace with
    the

    `X-Splendor-Tenant-Id` header. Read and query operations are available to
    any

    member; operations that create, change, or delete data require an admin
    role.


    All search modes return one shared envelope, and every result carries
    provenance

    back to the exact source object it came from.
  title: Splendor API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.withsplendor.com
security:
  - bearerAuth: []
tags:
  - description: Resolve the authenticated user and the tenants they can access.
    name: Identity
  - description: >-
      Build on Splendor as a platform: authenticate with a platform API key to
      provision an isolated tenant per end-customer and manage your platform
      keys.
    name: Platform
  - description: >-
      List datasets, inspect inferred schemas and readiness, and manage dataset
      lifecycle including deletion and schema rebuilds.
    name: Datasets & schema
  - description: >-
      Run full-text, SQL, and semantic search over your datasets, stream
      results, and resolve object media.
    name: Search & query
  - description: Save queries and materialize result sets for repeatable analysis.
    name: Views
  - description: >-
      Define named, versioned, parameterized SQL queries and manage their
      versions.
    name: Query Endpoints
  - description: Create and manage asynchronous exports of search results.
    name: Exports
  - description: >-
      Configure data sources, upload data through hosted multipart uploads,
      stream logs, and track ingest runs.
    name: Sources & ingest
  - description: >-
      Connect third-party systems by managing connector instances in the
      selected tenant.
    name: Connectors
  - description: Define and test detection rules that run against incoming data.
    name: Detections
  - description: Inspect discovered fields and promote them to fast, aggregatable fields.
    name: Fields
  - description: >-
      Operational visibility and recovery: audit logs, usage, dead-letter queue,
      reindex jobs, and data-deletion jobs.
    name: Operations
paths:
  /v1/ingest/sources/{source_key}/asset-uploads:
    post:
      tags:
        - Sources & ingest
      summary: Presign a batch of image assets
      description: >-
        Presigns many image objects in one call, returning a single PUT URL and
        a reusable `image_reference` per asset. Unlike the per-object upload
        flow, no ingest run is created per asset — store the images, then point
        records' image_embeddings fields at each `image_reference`. The scalable
        path for large image corpora.
      operationId: initiateAssetUploads
      parameters:
        - in: path
          name: source_key
          required: true
          schema:
            title: Source Key
            type: string
        - $ref: '#/components/parameters/SplendorTenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HostedAssetBatchInitiateRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HostedAssetBatchInitiateResponse'
          description: Successful Response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: The request is invalid.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: The requested resource was not found.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  parameters:
    SplendorTenantId:
      description: Selects the tenant (workspace) the request acts within.
      in: header
      name: x-splendor-tenant-id
      required: true
      schema:
        type: string
  schemas:
    HostedAssetBatchInitiateRequest:
      properties:
        assets:
          items:
            $ref: '#/components/schemas/HostedAssetSpec'
          maxItems: 256
          minItems: 1
          title: Assets
          type: array
      required:
        - assets
      title: HostedAssetBatchInitiateRequest
      type: object
    HostedAssetBatchInitiateResponse:
      example:
        assets:
          - bucket: acme-uploads
            expires_at: '2026-01-15T09:30:00Z'
            image_reference: s3://acme-uploads/sources/catalog/hosted/2026/07/01/abc123.png
            key: sources/catalog/hosted/2026/07/01/abc123.png
            required_headers:
              content-type: image/png
            upload_session_id: ups_01H8Z4
            upload_url: https://acme-uploads.s3.amazonaws.com/...
      properties:
        assets:
          items:
            $ref: '#/components/schemas/HostedAssetUpload'
          title: Assets
          type: array
      required:
        - assets
      title: HostedAssetBatchInitiateResponse
      type: object
    ApiError:
      description: >-
        Error envelope returned by every Splendor API endpoint.


        ``detail`` is either a plain message string (most errors) or a
        structured

        ``{code, message}`` object (validation and capacity errors that carry a
        stable

        machine-readable code).
      examples:
        - detail: Dataset not found
        - detail:
            code: semantic_search_capacity_exhausted
            message: Semantic search capacity is temporarily exhausted; retry shortly.
      properties:
        detail:
          anyOf:
            - type: string
            - $ref: '#/components/schemas/ErrorBody'
          title: Detail
      required:
        - detail
      title: ApiError
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    HostedAssetSpec:
      properties:
        content_type:
          maxLength: 255
          minLength: 1
          title: Content Type
          type: string
        filename:
          anyOf:
            - maxLength: 1024
              type: string
            - type: 'null'
          title: Filename
        object_size_bytes:
          minimum: 0
          title: Object Size Bytes
          type: integer
      required:
        - content_type
        - object_size_bytes
      title: HostedAssetSpec
      type: object
    HostedAssetUpload:
      properties:
        bucket:
          title: Bucket
          type: string
        expires_at:
          format: date-time
          title: Expires At
          type: string
        image_reference:
          title: Image Reference
          type: string
        key:
          title: Key
          type: string
        required_headers:
          additionalProperties:
            type: string
          title: Required Headers
          type: object
        upload_session_id:
          title: Upload Session Id
          type: string
        upload_url:
          title: Upload Url
          type: string
      required:
        - upload_session_id
        - bucket
        - key
        - upload_url
        - required_headers
        - expires_at
        - image_reference
      title: HostedAssetUpload
      type: object
    ErrorBody:
      description: Structured error detail returned by validation and capacity errors.
      examples:
        - code: semantic_query_text_required
          message: Semantic vector search requires non-empty text.
      properties:
        code:
          title: Code
          type: string
        message:
          title: Message
          type: string
      required:
        - code
        - message
      title: ErrorBody
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  responses:
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      description: The bearer token is missing, malformed, or expired.
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      description: The token lacks access to the tenant or the role required.
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: API token issued from the Splendor console.
      scheme: bearer
      type: http

````