Maton

Autentique

Access the Autentique GraphQL API with managed authentication. Autentique is a Brazilian e-signature platform: read documents, their signers and signature status, folders, groups, and email templates, and create documents for signature, add or remove signers, and file or delete documents. Creating a document with signers who have an email or phone sends them a real, legally meaningful signature request; test documents can use sandbox: true. All access runs through the Maton gateway and the maton CLI.

Permissions

Suggested read access

In the Console, Read limits the connection to these 1 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.

Reference

Account

Get Current User

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "{ me { id name email created_at } }"}
JSON

{ me { id } } is the cheapest check that the connection's key works.

Get Organization

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "{ organization { id uuid name created_at } }"}
JSON

List Groups

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "{ organizationGroups(limit: 20, page: 1) { total has_more_pages data { id uuid name members_count is_default } } }"}
JSON

Documents

List Documents

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "{ documents(limit: 10, page: 1) { total current_page last_page has_more_pages data { id name sandbox created_at signatures_count signed_count rejected_count } } }"}
JSON

limit and page are required. Optional filters: status (PENDING, SIGNED, NOT_SIGNED, REJECTED, DELETED), name, signer, search, start_date / end_date, folder_id, include_archived, include_deleted, context (USER, ORGANIZATION, GROUP), and orderBy: {field: "created_at", direction: DESC}.

Sandbox documents are hidden by default. Add showSandbox: true to include them or onlySandbox: true to list only them:

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "{ documents(limit: 10, page: 1, onlySandbox: true) { total data { id name sandbox created_at } } }"}
JSON

Response (trimmed):

{
  "data": {
    "documents": {
      "total": 1,
      "has_more_pages": false,
      "data": [
        {"id": "52fe02cbe5ad6afcb4c7b54c8eed10e61901633f000b3f886", "name": "Contract", "sandbox": true, "created_at": "2026-11-26T23:08:42.000000Z"}
      ]
    }
  }
}

Get a Document

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "query ($id: UUID!) { document(id: $id) { id name sandbox created_at deadline_at signatures_count signed_count files { original signed } signatures { public_id name email action { name } link { short_link } viewed { created_at } signed { created_at } rejected { created_at } } } }", "variables": {"id": "{document_id}"}}
JSON

Document IDs are 49-character hex strings even though the schema types them as UUID. signatures lists one entry per signer plus the document's author (the entry with a null action). A signer's signed / rejected / viewed event is null until it happens. files.original and files.signed are download URLs for the PDF. An unknown ID returns "message": "document_not_found" in errors.

Create a Document

Uploads are multipart/form-data following the GraphQL multipart request spec: an operations part (the query, with "file": null in variables), a map part linking the file part to variables.file, and the file itself. maton api does not build a multipart envelope, so assemble the body first and hand it to --input:

# The assembled body is a copy of the file's bytes, so it is written under /tmp
# and deleted as soon as the upload returns.
FILE="$USER_SUPPLIED_PATH"
umask 077
BODY="$(mktemp "${TMPDIR:-/tmp}/autentique-upload.XXXXXX")" || exit 1
trap 'rm -f -- "$BODY"' EXIT HUP INT TERM
BOUNDARY="maton-$$"
OPERATIONS='{"query": "mutation ($document: DocumentInput!, $signers: [SignerInput!]!, $file: Upload!) { createDocument(sandbox: true, document: $document, signers: $signers, file: $file) { id name sandbox created_at signatures { public_id name action { name } link { short_link } } } }", "variables": {"document": {"name": "Contract"}, "signers": [{"name": "Signer Name", "action": "SIGN"}], "file": null}}'
{
  printf -- '--%s\r\nContent-Disposition: form-data; name="operations"\r\n\r\n%s\r\n' "$BOUNDARY" "$OPERATIONS"
  printf -- '--%s\r\nContent-Disposition: form-data; name="map"\r\n\r\n%s\r\n' "$BOUNDARY" '{"file": ["variables.file"]}'
  printf -- '--%s\r\nContent-Disposition: form-data; name="file"; filename="%s"\r\nContent-Type: application/pdf\r\n\r\n' "$BOUNDARY" "$(basename "$FILE")"
  cat "$FILE"
  printf -- '\r\n--%s--\r\n' "$BOUNDARY"
} > "$BODY"

maton api -X POST '/autentique/v2/graphql' \
  -H "Content-Type: multipart/form-data; boundary=$BOUNDARY" \
  --input "$BODY"

The example signer has only a name, so no email is sent and the signature link comes back in link.short_link. Other signer shapes:

  • {"email": "signer@example.com", "action": "SIGN"}: Autentique emails the signature request.
  • {"name": "…", "phone": "+5511999999999", "delivery_method": "DELIVERY_METHOD_WHATSAPP", "action": "SIGN"}: sent by WhatsApp (DELIVERY_METHOD_SMS for SMS).

action is one of SIGN, APPROVE, RECOGNIZE, SIGN_AS_A_WITNESS, ACKNOWLEDGE_RECEIPT, ENDORSE_IN_BLACK, ENDORSE_IN_WHITE. Useful document fields: message, refusable, sortable (sign in order), deadline_at, reminder, stop_on_rejected. folder_id (a mutation argument) files the document into a folder. Maximum file size is 5 MB on the free plan and 20 MB on paid plans.

Response (trimmed):

{
  "data": {
    "createDocument": {
      "id": "52fe02cbe5ad6afcb4c7b54c8eed10e61901633f000b3f886",
      "name": "Contract",
      "sandbox": true,
      "signatures": [
        {"public_id": "529e2e7fe9ee11f1818d42010a2b6021", "name": null, "action": null, "link": null},
        {"public_id": "52a2a936e9ee11f1818d42010a2b6021", "name": "Signer Name", "action": {"name": "SIGN"}, "link": {"short_link": "https://..."}}
      ]
    }
  }
}

Update a Document

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "mutation ($id: UUID!, $document: UpdateDocumentInput!) { updateDocument(id: $id, document: $document) { id name } }", "variables": {"id": "{document_id}", "document": {"name": "Contract (v2)"}}}
JSON

UpdateDocumentInput takes the same settings as creation (name, message, deadline_at, reminder, refusable, …); the file and signers are not changed here.

Move a Document to a Folder

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "mutation ($document_id: UUID!, $folder_id: UUID) { moveDocumentToFolder(document_id: $document_id, folder_id: $folder_id) }", "variables": {"document_id": "{document_id}", "folder_id": "{folder_id}"}}
JSON

Note: Returns true on success.

Delete a Document

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "mutation ($id: UUID!) { deleteDocument(id: $id) }", "variables": {"id": "{document_id}"}}
JSON

Note: Returns true on success.

Sign a Document

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "mutation ($id: UUID!) { signDocument(id: $id) }", "variables": {"id": "{document_id}"}}
JSON

Signers

Add a Signer

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "mutation ($document_id: UUID!, $signer: SignerInput!) { createSigner(document_id: $document_id, signer: $signer) { public_id name action { name } link { short_link } } }", "variables": {"document_id": "{document_id}", "signer": {"name": "Signer Name", "action": "SIGN"}}}
JSON

Note: signer takes the same shapes as in Create a Document.

Remove a Signer

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "mutation ($public_id: UUID!, $document_id: UUID!) { deleteSigner(public_id: $public_id, document_id: $document_id) }", "variables": {"public_id": "{signer_public_id}", "document_id": "{document_id}"}}
JSON

Note: public_id is the signer's signatures[].public_id.

Resend Signature Requests

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "mutation ($public_ids: [UUID]) { resendSignatures(public_ids: $public_ids) }", "variables": {"public_ids": ["{signer_public_id}"]}}
JSON

Folders

List Folders

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "{ folders(display_children: false, limit: 20, page: 1) { total has_more_pages data { id name slug context path children_counter created_at } } }"}
JSON

display_children, limit, and page are required. Optional: type (DEFAULT, ORGANIZATION, GROUP), search. total is null when there are no folders.

Get a Folder

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "query ($id: UUID!) { folder(id: $id) { id name path subfolders { id name } } }", "variables": {"id": "{folder_id}"}}
JSON

List Documents in a Folder

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "query ($folder_id: UUID) { documentsByFolder(folder_id: $folder_id, limit: 10, page: 1) { total has_more_pages data { id name created_at } } }", "variables": {"folder_id": "{folder_id}"}}
JSON

Note: documentsByFolder may not list a sandbox document moved into the folder; documents(folder_id: "{folder_id}", limit: 10, page: 1, showSandbox: true) is the fallback.

Create a Folder

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "mutation ($folder: FolderInput!) { createFolder(folder: $folder) { id name } }", "variables": {"folder": {"name": "Contracts 2026"}}}
JSON

Pass parent_id to create a subfolder.

Email Templates

List Email Templates

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "{ emailTemplates(limit: 20, page: 1) { total data { id name type } } }"}
JSON

Use a template's id as email_template_id when creating a document.

Pagination

List queries take limit and page (page numbers start at 1) and return total, current_page, last_page, and has_more_pages. Request the next page while has_more_pages is true:

maton api -X POST '/autentique/v2/graphql' -H 'Content-Type: application/json' --input - <<'JSON'
{"query": "{ documents(limit: 50, page: 2) { current_page last_page has_more_pages data { id name } } }"}
JSON

Each page is one request against the 60-per-minute limit.

Notes

  • Rate limit: 60 requests per minute per user. Responses carry x-ratelimit-limit and x-ratelimit-remaining; a 429 ("Too Many Attempts.") means wait before retrying.
  • Errors: an invalid or revoked key returns HTTP 401 with {"message": "unauthorized"}. Every other error, including not-found and validation failures, returns HTTP 200 with an errors array (message such as document_not_found, folder_not_found, validation with details under extensions.validation, unavailable_credits). Always check errors before using data.
  • Sandbox: createDocument(sandbox: true, …) creates a test document that uses no credits and is deleted automatically after a few days. documents hides sandbox documents unless showSandbox: true or onlySandbox: true is set.
  • Document IDs are 49-character hex strings; signer public_id values are 32-character hex strings. Both are typed UUID in the schema.
  • Timestamps are ISO 8601 strings in UTC (2026-11-26T23:08:42.000000Z).
  • The schema is introspectable ({ __schema { … } }, { __type(name: "DocumentInput") { inputFields { name } } }); use it to check argument names rather than guessing.
  • Folder sharing, document transfer, biometric approval, and multi-file documents exist in the API but are out of scope for this reference.

Resources

On this page