PUBLIC SERVICES [PROD]
  1. Upload Document
PUBLIC SERVICES [PROD]
  • Introduction
  • Document Management
  • External Integration
  • Authentication
    • Generate a token to access ROIT APIs
      POST
  • Invoice-to-Pay
    • Documents Manager
      • Create document export request
      • Get export request by id
      • Delete export request by id
      • Generate signed URLs for export files by id
    • External System Integration
      • Register delivery integration
      • Get pending entities to be integrated
      • Update integration status
      • Get all documents attached to a request
      • Reprocess a specific request
    • Upload Document
      • Upload document as base64
        POST
  • Tax Reform
    • Data Integration
      • Create a new request
      • Update request status
      • List requests
      • Get request by ID
      • List Requests
      • Update request by ID
      • Delete request by ID
      • Generate signed URL
      • Process callback
  1. Upload Document

Upload document as base64

HOM
https://hom.roit.ai
HOM
https://hom.roit.ai
POST
/assembler-upload/api/v1/files/upload/base64
Uploads a document as base64 to be classified and processed.

Request

Header Params
Authorization
string 
required
token generated
Body Params application/json
name
string 
required
Name of the document
Example:
document.pdf
base64
string 
required
Document in base64 format
Example:
data:application/pdf;base64,JVBERi0xLjQKJf//Cg==
Example
{
    "name": "document.pdf",
    "base64": "data:application/pdf;base64,JVBERi0xLjQKJf//Cg=="
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://hom.roit.ai/assembler-upload/api/v1/files/upload/base64' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "document.pdf",
    "base64": "data:application/pdf;base64,JVBERi0xLjQKJf//Cg=="
}'

Responses

🟢200OK
application/json
Body
timestamp
number 
optional
status
string 
optional
message
string 
optional
data
object (String) 
optional
Example
{
    "timestamp": 0,
    "status": "string",
    "message": "string",
    "data": {}
}
🟢201Created
Modified at 2025-07-14 14:46:39
Previous
Reprocess a specific request
Next
Create a new request
Built with