Rossum Developer Hub

Rossum Data Capture for Developers and Integrators

Welcome to the Rossum developer hub. You'll find comprehensive guides and documentation to help you implement Rossum as quickly as possible, as well as support if you get stuck.

Let's jump right in!

Developer Guides    API Reference    User Help Center    Feature wishlist

Python for Uploading Documents in Rossum API

This Python code shows how to upload a document automatically using Rossum API to a particular Rossum queue.

This Python example demonstrates how to upload a document using Rossum API to a particular Rossum queue. Set the options at the beginning of the script – they store your credentials, and also the identifier of the queue to upload in. You can find out the queue id by looking at your main screen URL, it is the number 12345 in https://elis.rossum.ai/annotations/12345.

See the reference API documentation for more details about how to use the upload API.

from rossum.lib.api_client import RossumClient

username = "[email protected]"
password = "your.password"
queue_id = 12345
path = "path/to/the/document.pdf"
api_url = "https://api.elis.rossum.ai/v1"

with RossumClient(
    context=None, user=username, password=password, url=api_url
) as client:
    response = client.upload_document(queue_id, path)


annotation_url = response["results"][0]["annotation"]
print("The file is reachable at the following URL:", annotation_url)

Updated 3 months ago


Python for Uploading Documents in Rossum API


This Python code shows how to upload a document automatically using Rossum API to a particular Rossum queue.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.