Skip to main content

Get URLs to upload files

POST 

/v1/upload

Get URLs to upload files and use in different tasks (parsing, extraction, etc.).

Request

Body

required

    files

    object[]

    required

    List of files to prepare for upload. Each file must have a unique ID, size in bytes, and content type.

  • Array [

  • id Id (string)required

    Unique identifier for the file in your request. Use this to match the response with your original file.

    size Size (integer)required

    Possible values: >= 1

    File size in bytes. Must be at least 1 byte.

    content_type Content Type (string)required

    MIME type of the file (e.g., "application/pdf")

  • ]

Responses

The URLs to upload the files to.

Schema

    files

    object[]

    required

    List of upload information for each file in your request. Each file gets its own upload URL and task (parsing, extraction, etc.) id.

  • Array [

  • request_id Request Id (string)required

    The ID you provided in your request. Use this to match the response with your original file.

    upload_url Upload Url (string)required

    URL for uploading your file. Use this URL with a PUT request to upload your file content.

    nomic_url Nomic Url (string)required

    Use this URL to reference the file when making calls to parsing or extraction services.

    file_id File Id (string)required

    The ID of the file in the parsing service. (deprecated)

    presigned_url Presigned Url (string)required

    The presigned URL to upload the file to. (deprecated)

  • ]

Loading...