Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Enviar Xmls, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fsieg.com%2Fenviar-xmls" | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fsieg.com%2Fenviar-xmls" | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Enviar Xmls API.
Upload a fiscal document XML to SIEG as a Base64 string in the Xml field
Confirm each upload with the isSuccess and isFailure flags and the statusCode
Surface the reason for a rejected upload from errorMessage
Detect XMLs for a company the account cannot accept through the 409 Conflict response
Patterns agents use Enviar Xmls API for, with concrete tasks.
GET STARTED
★ Agent-run XML uploads through Jentic
An accounting agent connected through Jentic receives fiscal XMLs from email or a shared folder and loads them into SIEG. It Base64-encodes each file, sends it in the Xml field, and reports any upload where isSuccess is false along with the errorMessage. The SIEG JWT and access key are injected at call time, so the agent never holds them.
Base64-encode the file invoice-35251.xml, call POST /api/v1/send-xml with it in Xml, and report isSuccess, statusCode, and errorMessage
ERP to SIEG document sync
Companies that issue documents from their own ERP can keep SIEG complete by sending each authorized XML as soon as it is generated. The single upload operation takes one document per call, and the response flags tell the sync job whether to mark the document as delivered or retry it later.
For each XML generated by the ERP today, call POST /api/v1/send-xml with its Base64 content and mark it delivered when isSuccess is true
Handling rejected uploads
Accounting offices that serve many clients sometimes receive XMLs for a company not set up in the SIEG account. The upload returns 409 Conflict for an invalid company, so a job can route those files to a review queue instead of retrying, and log the errorMessage for the person who fixes the account setup.
Call POST /api/v1/send-xml for each file in the inbox, move any file that returns 409 to a review folder, and list their errorMessage values
1 endpoints — the sieg enviar xmls api uploads a brazilian fiscal document xml from an external system into a sieg account.
METHOD
PATH
DESCRIPTION
/api/v1/send-xml
Upload a Base64 fiscal XML to SIEG
/api/v1/send-xml
Upload a Base64 fiscal XML to SIEG
What agents get from Jentic-routed access to this vendor.
Setup
Wiring Enviar Xmls by hand means obtaining a SIEG JWT, pairing it with an X-API-Key or X-OAuth-Token header, Base64-encoding every document, and branching on isSuccess and 409 responses. Through Jentic you install once, import Enviar Xmls from the API Directory, store the credentials once, and your agent calls it.
Permission scoping
Enviar Xmls carries the document inside the request body, so rules bound which operations your agent may call, not which documents it uploads. This is a write into your SIEG account, so include it only for agents that should upload and leave it out for agents that only read SIEG data.
Credential isolation
Your SIEG JWT and access key are stored once, encrypted, by your own Jentic One instance and injected at execution time. They never enter the agent's prompt, logs, or context.
Intent-based discovery
Agents search Jentic by intent such as 'upload a fiscal XML to SIEG' or 'send an NF-e XML', and Jentic returns the Enviar Xmls operation with its input schema so the agent sends the Base64 Xml field correctly.
Alternatives and complements available in the Jentic catalogue.
Specific to using Enviar Xmls API through Jentic.
What authentication does the SIEG Enviar Xmls API use?
Per its OpenAPI spec, each call needs two credentials together: a JWT sent as an HTTP bearer token, plus either an X-API-Key header or an X-OAuth-Token header carrying a SIEG OAuth 2.0 token. Through Jentic both credentials are stored encrypted by your own instance and attached at call time, so the agent never sees them.
How do I format the XML for Enviar Xmls?
Encode the whole XML document as Base64 and send it as the Xml string in the JSON request body. The spec defines one document per request.
What does a 409 response from Enviar Xmls mean?
The spec documents 409 as Conflict - Invalid company: the XML belongs to a company the SIEG account cannot accept. The response body uses the same isSuccess, errorMessage, and statusCode fields, so read errorMessage for the detail.
What are the rate limits for the SIEG Enviar Xmls API?
The OpenAPI spec does not specify rate limits. Check your SIEG plan and the documentation at https://sieg.com for current limits.
Is there a SIEG Enviar Xmls MCP server?
You don't need an MCP server to give your agent the Enviar Xmls API. Jentic connects it directly from the API Directory: import it, store your SIEG JWT and access key once, and your agent calls the upload operation when it needs it, discovered on demand rather than held in its context.
Can I limit what my agent is allowed to do with the SIEG Enviar Xmls API?
Yes, at the operation level. Because this is a write operation, you might give an upload agent a rule that includes only this upload, and keep it out of the rule for agents that only read or count documents, and every call is logged. The rule cannot restrict which document is uploaded, because the XML travels in the request body.
How do I upload an XML to SIEG through Jentic?
Search Jentic for 'upload a fiscal XML to SIEG', load the POST /api/v1/send-xml operation, and send the Base64-encoded document in Xml. To run it on your own infrastructure, install Jentic One from its GitHub repo.
Know of an official OpenAPI document? Contribute it →
For Agents
Upload a fiscal document XML into SIEG from another system: send it Base64-encoded in the Xml field and read isSuccess, errorMessage, and statusCode to confirm it was accepted.
Use for: Upload this NF-e XML to SIEG, Send the XMLs exported from our ERP into SIEG, Check why SIEG rejected an XML upload, Push a supplier's invoice XML into our SIEG account
Not supported: Does not issue or authorize invoices with SEFAZ, download documents, or file tax returns. Use for uploading existing fiscal document XMLs into a SIEG account only.
The SIEG Enviar Xmls API uploads a Brazilian fiscal document XML from an external system into a SIEG account. The request carries the document as a Base64-encoded string in the Xml field, and the response returns isSuccess, isFailure, statusCode, errorMessage, and a data string describing the result. A 409 Conflict response signals that the XML belongs to a company that is not valid for the account, so an upload job can tell a rejected document from a transport error.
This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.
Base layer of spec validity and structural soundness.
Aggregated quality score from linter diagnostics, weighted by severity.
Percentage of `$ref` references that resolve successfully.
Checks whether the API description parses successfully and conforms to its declared specification (e.g., OpenAPI).
Structural correctness score based on schema issues using logarithmic dampening.
Clarity, completeness, and ingestion readiness for developers and tooling.
How richly the API is illustrated with examples.
Percentage of examples that conform to their schemas.
Percentage of operations with complete response definitions (success, client error, server error).
Health of API ingestion, bundling, and resolution within Jentic pipelines.
Semantic breadth, depth, and agent comprehension for AI systems.
Coverage of descriptions across API elements.
Coverage of RFC 9457 Problem Details for error responses.
Coverage, uniqueness, and casing consistency of operationIds for AI inference.
Coverage of summaries across operations/tags/info.
Functional utility, complexity comfort, and AI orchestration readiness.
Agent comfort level based on API operational and structural complexity.
Trust, risk posture, and security compliance.
Average quality of security schemes based on authentication method strength (weakest link for OAuth2).
Findability, semantic richness, and reasoning readiness.
Clarity and depth of descriptions across API elements.
Score it yourself
Every API in the directory is allowlisted, so you can re-score it with no key required.
npx @jentic/api-scorecard-cli score <openapi-url>