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

# Create Intent

> Step 1: client requests permission to upload a file.

Server validates against the policy and returns a presigned POST with strict
conditions (bucket, key, content-type, content-length). The upload row is
created in `pending` state.



## OpenAPI

````yaml /openapi.json post /api/v1/shared/uploads/intent
openapi: 3.1.0
info:
  title: Seamind Backend
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/shared/uploads/intent:
    post:
      tags:
        - shared-uploads
      summary: Create Intent
      description: >-
        Step 1: client requests permission to upload a file.


        Server validates against the policy and returns a presigned POST with
        strict

        conditions (bucket, key, content-type, content-length). The upload row
        is

        created in `pending` state.
      operationId: create_intent_api_v1_shared_uploads_intent_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadIntentRequestDTO'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadIntentResponseDTO'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    UploadIntentRequestDTO:
      properties:
        kind:
          type: string
          title: Kind
        mime:
          type: string
          title: Mime
        size:
          type: integer
          title: Size
        filename:
          type: string
          title: Filename
      type: object
      required:
        - kind
        - mime
        - size
        - filename
      title: UploadIntentRequestDTO
      description: POST /uploads/intent body.
    UploadIntentResponseDTO:
      properties:
        uploadId:
          type: string
          format: uuid
          title: Uploadid
        presignedPost:
          $ref: '#/components/schemas/PresignedPostDTO'
      type: object
      required:
        - uploadId
        - presignedPost
      title: UploadIntentResponseDTO
      description: >-
        POST /uploads/intent response — the client uses presignedPost to upload
        to S3.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PresignedPostDTO:
      properties:
        url:
          type: string
          title: Url
        fields:
          additionalProperties:
            type: string
          type: object
          title: Fields
      type: object
      required:
        - url
        - fields
      title: PresignedPostDTO
      description: The S3 presigned POST envelope — passed straight to the browser.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````