canonical: https://jentic.com/apis/signdocs.com.br/signdocs

# SignDocs Brasil External API

The SignDocs Brasil External API runs electronic signatures in Brazil with the signer's identity verified by facial biometrics, OTP, clickwrap, or an ICP-Brasil digital certificate. Each signing transaction carries a policy profile such as CLICK_ONLY, BIOMETRIC_PLUS_OTP, DIGITAL_CERTIFICATE, or BIOMETRIC_SERPRO, and moves through verification steps like OTP_VERIFY, BIOMETRIC_LIVENESS, and BIOMETRIC_MATCH before it is finalized into signed evidence. Hosted signing and trust sessions, multi-signer envelopes in PARALLEL or SEQUENTIAL mode, and biometric enrollments per userExternalId build on that flow. Webhooks report events such as TRANSACTION.COMPLETED and ENVELOPE.ALL_SIGNED, and public verification endpoints let a third party confirm a signature by its evidenceId.

## For AI agents

Send documents for e-signature in Brazil with identity checks: create signing transactions or hosted sessions with a biometric, OTP, clickwrap, or ICP-Brasil certificate policy, run multi-signer envelopes, manage biometric enrollments, subscribe to webhooks, and verify signed evidence.

## Scope

Does not handle document drafting from templates, document storage beyond signing evidence, or general KYC screening such as sanctions checks. Use for identity-verified electronic signatures and action authentication in Brazil only.

## Capabilities

- Create a signing transaction for a signer with a cpf or cnpj and a policy profile such as BIOMETRIC_PLUS_OTP or DIGITAL_CERTIFICATE
- Upload the document inline as base64 or through a presigned URL, then finalize the transaction into signed evidence
- Open a hosted signing session, resend its invite or OTP, mint a fresh signing link, and poll its status
- Collect signatures from 2 to 100 signers in one envelope in PARALLEL or SEQUENTIAL signingMode and generate a combined stamp
- Register or replace a signer's biometric reference image with PUT `/v1/users/{userExternalId}/enrollment`, or batch-enroll users
- Subscribe a webhook to events such as TRANSACTION.COMPLETED, SIGNING_SESSION.EXPIRED, and ENVELOPE.ALL_SIGNED, and send a test delivery
- Verify a signature publicly by evidenceId or envelopeId, or check whether an uploaded PDF is signed

## Use cases

### Agent-driven contract signing through Jentic

A back-office agent connected through Jentic sends a contract for signature as soon as a deal closes. It creates a hosted signing session with the signer's name, userExternalId, and cpf, the DOCUMENT_SIGNATURE purpose, and a policy such as BIOMETRIC_PLUS_OTP, then polls the session status and reports when it completes. Jentic exchanges the OAuth2 client credentials for a JWT and injects it per call, and the developer's rules decide which signing operations the agent may run.

Example prompt: Call POST `/v1/signing-sessions` with purpose DOCUMENT_SIGNATURE, policy profile BIOMETRIC_PLUS_OTP, a signer with name 'João da Silva', userExternalId 'usr-12345', cpf '12345678901', and email, plus the base64 contract, then poll GET `/v1/signing-sessions/{sessionId}/status` until it completes

### Biometric identity verification for high-risk actions

Lenders and fintechs confirm that the person approving a loan or a payout is the account holder. A transaction with the ACTION_AUTHENTICATION purpose runs liveness and face match against the enrollment stored for the userExternalId, and profiles such as BIOMETRIC_SERPRO add a check against government identity data. The policy can raise minSimilarity above the tenant default for riskier actions, never below it.

Example prompt: Call PUT `/v1/users/usr-12345/enrollment` with the reference JPEG, then POST `/v1/transactions` with purpose ACTION_AUTHENTICATION, policy profile BIOMETRIC with minSimilarity 95, and the matching signer, and read the result from GET `/v1/transactions/{transactionId}`

### Multi-signer agreements with envelopes

Shareholder agreements and multi-party contracts need every party to sign the same document. An envelope holds the document and the expected totalSigners, from 2 to 100, in PARALLEL or SEQUENTIAL signingMode; each signer is added as a session with a signerIndex and policy. When all have signed, an ENVELOPE.ALL_SIGNED webhook fires and the combined stamp can be generated.

Example prompt: Call POST `/v1/envelopes` with signingMode SEQUENTIAL, totalSigners 3, and the base64 document, then POST `/v1/envelopes/{envelopeId}/sessions` once per signer with signerIndex 1, 2, and 3

### Signature status tracking and verification

Operations teams need to know when signatures complete and to prove them later. Webhooks registered for TRANSACTION.COMPLETED, TRANSACTION.EXPIRED, or ENVELOPE.ALL_SIGNED push status changes, the transactions list filters by status, userExternalId, and date range, and anyone holding an evidenceId can confirm authenticity through the public verification endpoint without credentials.

Example prompt: Call POST `/v1/webhooks` with url 'https://example.com/webhooks/signdocs' and events TRANSACTION.COMPLETED and ENVELOPE.ALL_SIGNED, then GET `/v1/transactions` with status EXPIRED and a startDate a week ago

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/oauth2/token` | Obtain an access token |
| POST | `/v1/transactions` | Create a signing transaction |
| POST | `/v1/transactions/{transactionId}/finalize` | Finalize a transaction |
| POST | `/v1/signing-sessions` | Create a hosted signing session |
| POST | `/v1/envelopes` | Create a multi-signer envelope |
| PUT | `/v1/users/{userExternalId}/enrollment` | Register or update a biometric enrollment |
| POST | `/v1/webhooks` | Register a webhook |
| GET | `/v1/verify/{evidenceId}` | Verify signature evidence |

## Key resources

- **Transactions** — Signing or action-authentication transactions with policy, signer, document upload, verification steps, digital signing, finalization, evidence, and cancellation
- **Signing sessions** — Hosted signing flows with invite and OTP resend, new links, status polling, and cancellation
- **Trust sessions** — Hosted identity-confirmation flows with status polling, OTP resend, and cancellation
- **Envelopes** — Multi-signer documents in PARALLEL or SEQUENTIAL mode with per-signer sessions and a combined stamp
- **Enrollments** — Biometric reference images per userExternalId, single or batch, with read and delete
- **Webhooks** — Event subscriptions for transactions, sessions, envelopes, enrollments, and quota, with test delivery
- **Verification** — Public checks of signature evidence and envelopes, plus a signed-PDF check

## AI readiness

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.

- **Score:** 82 / 100
- **Maturity:** AI-Ready
- **Dimensions:**
  - Foundational Compliance: 85 / 100
  - Developer Experience & Jentic Compatibility: 72 / 100
  - AI-Readiness & Agent Experience: 84 / 100
  - Agent Usability: 93 / 100
  - Security: 75 / 100
  - AI Discoverability: 87 / 100
- **View full report:** https://jentic.com/apis/signdocs.com.br/signdocs/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring SignDocs by hand means running the OAuth2 client_credentials exchange at `/oauth2/token`, refreshing the bearer JWT, handling the separate embed token for session calls, and choosing between production, homologation, and mTLS hosts. Through Jentic you install once, import the SignDocs Brasil External API from the API Directory, store the client credentials once, and your agent calls it.
- **Permission scoping:** SignDocs puts the transaction, session, envelope, and user ids in the URL path (`/v1/transactions/{transactionId}`, `/v1/envelopes/{envelopeId}`, `/v1/users/{userExternalId}/enrollment`), so a rule can pin your agent to one transaction or envelope as well as to the operations you choose. You pick the allowed set, so destructive ones like deleteEnrollment, cancelTransaction, or deleteWebhook are not included unless you add them.
- **Credential handling:** Your SignDocs client_id and client_secret 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.
- **Discovery method:** Agents search Jentic by intent such as 'send a document for electronic signature' or 'verify a signature by evidence id', and Jentic returns the matching SignDocs operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Clicksign Envelope API** — Clicksign is a Brazilian e-signature platform built around envelopes, documents, and signers.
- **BoldSign API** — BoldSign sends documents for e-signature with templates, signer roles, and audit trails.
- **Onfido Public API v3.6** — Onfido verifies identity documents and runs facial similarity and liveness checks.
- **PandaDoc API** — PandaDoc generates documents from templates, which can then be signed with SignDocs identity checks.

## FAQ

### What authentication does the SignDocs Brasil External API use?

Per its OpenAPI spec, most operations take an OAuth2 access token as an HTTP bearer JWT, obtained from POST `/oauth2/token` with the client_credentials grant using client_id and client_secret, or a signed client_assertion for private_key_jwt. A second bearer scheme, the embed token, is the session clientSecret returned when you create a signing session; it authenticates the get, advance, and resend-otp calls on signing and trust sessions. The health checks, the token endpoint, and the public evidence and envelope verification endpoints are open. Through Jentic your client credentials are stored encrypted by your own Jentic One instance and injected at call time, so they never reach the agent's prompt, logs, or context.

### Which identity checks can a SignDocs transaction require?

The policy profile sets them. Profiles include CLICK_ONLY, CLICK_PLUS_OTP, BIOMETRIC, BIOMETRIC_PLUS_OTP, DIGITAL_CERTIFICATE, BIOMETRIC_SERPRO, BIOMETRIC_SERPRO_AUTO_FALLBACK, BIOMETRIC_DOCUMENT_FALLBACK, and CUSTOM, where customSteps lists steps such as CLICK_ACCEPT, OTP_VERIFY, BIOMETRIC_LIVENESS, BIOMETRIC_MATCH, and DIGITAL_SIGN_A1. minSimilarity can tighten the face-match threshold above the tenant setting but not loosen it.

### Which SignDocs host should I call?

The spec lists four servers: production at api.signdocs.com.br, homologation at api-hml.signdocs.com.br, and mTLS variants of each at mtls-api.signdocs.com.br and mtls-api-hml.signdocs.com.br. Homologation credentials are separate from production, so point the agent at the host that matches the credentials you stored.

### What are the rate limits for the SignDocs Brasil External API?

The OpenAPI spec does not state fixed limits, but responses carry RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset headers and the API returns 429 when the window is exhausted. The spec points to https://docs.signdocs.com.br/guias/rate-limiting.html for the published limits.

### Is there a SignDocs MCP server?

You don't need an MCP server to give your agent the SignDocs Brasil External API. Jentic connects it directly from the API Directory: import it, store your OAuth2 client credentials once, and your agent calls the transaction, session, envelope, and webhook operations it needs. Operations are discovered on demand, so the full 52-operation surface is available without loading another server's tool definitions into the agent's context.

### Can I limit what my agent is allowed to do with the SignDocs API?

Yes. For example, write a rule that allows POST `/v1/signing-sessions`, GET `/v1/signing-sessions/{sessionId}/status`, and POST `/v1/signing-sessions/{sessionId}/resend-invite`, so the agent can send documents for signature, chase signers, and track completion, but cannot delete biometric enrollments, cancel transactions, or change webhooks, and every call it makes is logged.

### How do I send a document for signature through Jentic?

Import the SignDocs Brasil External API from the Jentic API Directory, store your client_id and client_secret once, and have your agent search Jentic for 'send a document for electronic signature'. Jentic returns the createSigningSession operation with its input schema, and the agent sends purpose, policy, signer, and the base64 document. To run it on your own infrastructure, install Jentic One from its GitHub repo.
