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

# IPFS

IPFS and file upload operations

## POST /ipfs/uploadNFT

> Upload NFT metadata and assets to IPFS

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"IPFS","description":"IPFS and file upload operations"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained via POST /auth/getToken (24h expiration)"}}},"paths":{"/ipfs/uploadNFT":{"post":{"tags":["IPFS"],"summary":"Upload NFT metadata and assets to IPFS","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"200":{"description":"IPFS upload result","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"string","description":"IPFS hash"}}}}}}}}}}}
```

## POST /ipfs/uploadImage2Server

> Upload profile image

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"IPFS","description":"IPFS and file upload operations"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained via POST /auth/getToken (24h expiration)"}}},"paths":{"/ipfs/uploadImage2Server":{"post":{"tags":["IPFS"],"summary":"Upload profile image","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"Image uploaded"}}}}}}
```

## POST /ipfs/uploadCollectionImage2Server

> Upload collection image

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"IPFS","description":"IPFS and file upload operations"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained via POST /auth/getToken (24h expiration)"}}},"paths":{"/ipfs/uploadCollectionImage2Server":{"post":{"tags":["IPFS"],"summary":"Upload collection image","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"Collection image uploaded"}}}}}}
```

## POST /ipfs/uploadBundleImage2Server

> Upload bundle image

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"IPFS","description":"IPFS and file upload operations"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained via POST /auth/getToken (24h expiration)"}}},"paths":{"/ipfs/uploadBundleImage2Server":{"post":{"tags":["IPFS"],"summary":"Upload bundle image","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"Bundle image uploaded"}}}}}}
```

## POST /ipfs/uploadBannerImage2Server

> Upload banner image

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"IPFS","description":"IPFS and file upload operations"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained via POST /auth/getToken (24h expiration)"}}},"paths":{"/ipfs/uploadBannerImage2Server":{"post":{"tags":["IPFS"],"summary":"Upload banner image","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"Banner image uploaded"}}}}}}
```
