Skip to main content

Upload a File

POST 

/files

Upload a file to your archive. Use the file ID in subsequent requests.

Request

Body

POST /files request body

    file binaryrequired

    The binary representation of the file to upload.

    lookup_key string

    Arbitrary string which can be used to identify the file in future requests.

Responses

POST /files Successful response

Schema
    version stringrequired

    Possible values: [1.0]

    The version of the response schema

    result_type stringrequired

    Possible values: [single]

    A single object of the file resource.

    resource_type stringrequired

    Possible values: [file]

    Data contains the file resource.

    data objectrequired

    The resource data.

    id cuidrequired

    The unique identifier of the file

    resource_type stringrequired

    Possible values: [file]

    filename stringrequired

    Possible values: non-empty

    The complete filename including the file extension

    mime_type stringrequired

    Possible values: non-empty

    The mime type of the file

    url url

    The signed read url of the file

    metadata object
    lookup_key stringrequired

    A provided lookup key provided by you to help you identify the file.

    created_at stringrequired

    UTC datetime ISO string

    updated_at stringrequired

    UTC datetime ISO string

Loading...