Skip to main content
POST
Upload a File
The V3 Upload endpoint currently does not support folder uploads. Please use the legacy pinFileToIPFS endpoint

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
network
enum<string>
default:private
required

Determine if the file should be uploaded to either the public or private IPFS network. If not designated it will default to private.

Available options:
public,
private
file
file
required

File object you want to upload

name
string

Add a custom name for the file

group_id
string

ID of the group you would like to upload

keyvalues
object

Add additional key value metadata to files upon upload

car
boolean

Upload a file as a raw CAR file (only supported for public network)

Response

200 - application/json

Successful response

data
object