LogoAPI Console
      POST/v1/viewer-url/upload

      File Upload API

      When a client uploads a CAD file directly, it is stored on the server and a Viewer-accessible Signed URL is generated. File upload uses `multipart/form-data` format. Uploaded files are stored in server storage and accessed by the Viewer through the Signed URL.

      Headers

      Field NameTypeRequiredDescription
      x-client-idstringRequiredClient ID
      x-api-keystringRequiredAPI Key
      Content-TypestringRequiredRequest Body

      Request Bodymultipart/form-data

      Field NameTypeRequiredDescription
      filebinaryRequiredCAD DWG file to upload (20MB or less)
      fileInfostring (JSON)RequiredFile metadata (JSON string)
      userIdstringOptionalUser ID
      planCodestringOptionalPlan code

      fileInfoObject Structure

      Field NameTypeRequiredDescription
      idstringRequiredUnique file ID
      namestringRequiredFile name
      StatusDescriptionError CodeMessageResponse
      200File uploaded successfully--
      400Invalid ClientVIEWER_URL_INVALID_CLIENTInvalid client
      400Missing CredentialsVIEWER_URL_INVALID_API_KEYInvalid client-id or api-key
      400Validation ErrorVIEWER_URL_VALIDATION_ERRORfileInfo: name should not be empty...
      400Plan Not ExistsVIEWER_URL_CLIENT_PLAN_NOT_EXISTSThe webcad client plan not exists
      413Payload Too LargeVIEWER_URL_FILE_TOO_LARGEFile too large

      Example

      curl -X POST "https://dev-webcad-api.cadian.com/v1/viewer-url/upload" \
        -H "x-client-id: YOUR_CLIENT_ID" \
        -H "x-api-key: YOUR_API_KEY" \
        -H "Content-Type: multipart/form-data" \
        -d '{
        "fileInfo": {
          "id": "file001",
          "name": "drawing.dwg"
        },
        "userId": "user123",
        "planCode": "BASIC"
      }'