LogoAPI Console
      POST/v1/viewer-url/url

      File URL API

      Creates a Viewer-accessible Signed URL based on the file URL provided by the client. The file must be hosted on an external server and accessible for download via the provided URL. Custom headers can be provided if required to access the URL.

      Headers

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

      Request Bodyapplication/json

      Field NameTypeRequiredDescription
      userIdstringOptionalUser ID
      fileInfoobjectRequiredFile metadata (JSON object)
      planCodestringOptionalPlan code

      fileInfoJSON

      Field NameTypeRequiredDescription
      idstringRequiredUnique file ID
      namestringRequiredFile name
      urlstringRequiredFile download URL
      urlHeadersobjectOptionalHeaders required to access the URL
      StatusDescriptionError CodeMessageResponse
      200File processed 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

      Example

      curl -X POST "https://webcad-api.cadian.com/v1/viewer-url/url" \
        -H "x-client-id: YOUR_CLIENT_ID" \
        -H "x-api-key: YOUR_API_KEY" \
        -H "Content-Type: application/json" \
        -d '{
        "userId": "user123",
        "fileInfo": {
          "id": "file001",
          "name": "drawing.dwg",
          "url": "https://storage.example.com/files/drawing.dwg",
          "urlHeaders": {
            "Authorization": "Bearer external-token"
          }
        },
        "planCode": "BASIC"
      }'