개발자 센터

구현 예제

웹 업로드 · 다운로드

웹 애플리케이션에 안전한 파일 업로드와 다운로드를 추가합니다.

BrowserWeb Application

API 빠른 시작

첫 번째 파일 전송

#!/usr/bin/env bash
# 1. Authenticate — log in and obtain an access token (requires jq)

BASE_URL="https://app.innorix.com"
WORKSPACE_ID="<WORKSPACE_ID>"

# Log in to obtain a token
ACCESS_TOKEN=$(curl -s -X POST "$BASE_URL/api/auth/login" \
  -H "Content-Type: application/json" \
  -d '{"email":"<YOUR_EMAIL>","password":"<YOUR_PASSWORD>"}' \
  | jq -r '.data.user.accessToken')

# Build the auth header (reuse "${AUTH[@]}" in later requests)
AUTH=(-H "Authorization: Bearer $ACCESS_TOKEN" -H "x-workspace-id: $WORKSPACE_ID")

필수 항목만 포함된 첫 전송 예제

전체 코드 보기