> For the complete documentation index, see [llms.txt](https://biztech.gitbook.io/webapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://biztech.gitbook.io/webapi/api/file-upload.md).

# File Upload

### Parameter Description

<table data-header-hidden><thead><tr><th width="150" align="center"></th><th width="570.3333333333333"></th></tr></thead><tbody><tr><td align="center"><p></p><p></p><p><strong>설명</strong> </p></td><td><ul><li>파일을 업로드 하여 MMS 전송 시 사용할 파일 키를 발급합니다. </li><li>파일키의 유효 시간은 24시간이며, 이후에는 재발급이 필요합니다.</li><li>파일은 확장자(jpg/jpeg), 크기(300kbyte 이하) 제한이 있습니다.</li><li>요청 시 파일 업로드 수는 1개로 제한합니다.</li></ul></td></tr><tr><td align="center"><strong>URL</strong></td><td><strong>[POST] api.bizppurio.com/v2/file</strong></td></tr></tbody></table>

### **Request**

**Headers**

```http
POST /v2/file HTTP/1.1
Content-Type: multipart/form-data; boundary=5d14-GC42dS9N5BXQAKuhpRfd4VDV54RDDsTJO4
Authorization: Bearer + “ “ + {accesstoken}
```

<figure><img src="/files/OvxBiF0e1AlXKiJETUTO" alt=""><figcaption></figcaption></figure>

**Body**

```http
--5d14-GC42dS9N5BXQAKuhpRfd4VDV54RDDsTJO4
Content-Disposition: form-data; name="account"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
{비즈뿌리오 계정}
--5d14-GC42dS9N5BXQAKuhpRfd4VDV54RDDsTJO4
Content-Disposition: form-data; name="file"; filename="sample.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
<actual file content, not shown here>
--5d14-GC42dS9N5BXQAKuhpRfd4VDV54RDDsTJO4--
```

<figure><img src="/files/xuW499ctwIC3ToQPXIij" alt=""><figcaption></figcaption></figure>

### **Response**

**Headers**

```http
HTTP/1.1 200 OK
Content-type: application/json
```

![](/files/oGg0vnDoSiznHkv6zc5g)

**Body**

**성공**

```json
{
  "filekey": "0920msg_123912934949595969"
}
```

![](/files/ITzi964i4MTJTLNENRri)

**실패**

![](/files/CGfhT9PJOwXKD0EG1QN3)
