Upload content to IPFS

Upload a file to IPFS via the Kleros gateway. Returns the IPFS CID of the uploaded content. Use this to upload dispute templates, evidence files, policy documents, and Curate item attachments before referencing them on-chain.

post/add

Request

Request body multipart/form-data

datastring binary required

The file content to upload. For JSON objects (templates, evidence), encode as UTF-8 string.

Response

File uploaded and pinned successfully

cidsstring[]

Array of IPFS CIDs for the uploaded content

Example response

{
  "cids": [
    "/ipfs/QmTaZuQjJT9NZCYsqyRmEwLb1Vt3gme1a6BS4NQLiWXtH2"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.