> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nekt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Autentique as a data source

> Bring your Autentique electronic signature documents, the status of each signer, folders, organizations, groups and users to Nekt.

[Autentique](https://www.autentique.com.br/) is a Brazilian electronic signature platform. This connector reads, through Autentique's API, the documents sent for signature (with their status, deadlines and links to the original and signed files), every signer of each document and where each one stands (viewed, signed, rejected, biometric checks), your folders, your organizations, the organization's groups and their users, and your email templates.

> [!NOTE]
>
> The connector only reads. It never creates, signs, rejects, moves or deletes documents, and it does not download the PDF files: the tables keep the links to them.

> [!WARNING]
>
> **Autentique bills API reads.** Autentique charges R$ 0,001 (US$ 0.0002) for each document its API returns ([Autentique API pricing](https://docs.autentique.com.br/api/api-pricing)), on top of your plan's monthly commitment. The connector is built to read each document only when it changes: the first sync reads every document once (10,000 documents cost about R$ 10), and each later sync reads only the documents that changed since the previous one, in small pages (15, 15, 30, 60…), plus three single-document checks. A sync with nothing new reads 18 documents (R$ 0,018); with 50 changes, about 63 (R\$ 0,06). Folders, organizations, groups and templates are not billed.

## Configuring Autentique as a Source

In the [Sources](https://app.nekt.ai/sources) tab, click on the "Add source" button located on the top right of your screen. Then, select the Autentique option from the list of connectors.

Click **Next** and you'll be prompted to add your access.

### 1. Add account access

The connector uses an API key of your Autentique account. API access is available on Autentique's plans; the free plan allows 10 requests per minute.

**1. Copy the API key**

In Autentique, open your profile and go to **API keys** ([painel.autentique.com.br/perfil/api](https://painel.autentique.com.br/perfil/api)). Copy an existing key or generate a new one.

**2. Use an administrator's key to read the whole organization**

The key acts as the user who owns it. To read every document of the organization (and its groups and users), use the key of an organization administrator. With another user's key, Autentique either refuses the organization's documents (the tables are marked as failed) or returns only what that user can see.

The following configurations are available:

* **API Key**: The API key copied above.
* **Documents scope** (default ORGANIZATION): **ORGANIZATION** reads every document of the organization (the key must belong to an administrator, or a user allowed to see the organization's documents). **USER** reads only the documents of the key's owner.
* **Start Date** (optional): On the first sync, read only documents created or changed on or after this date. Leave empty to read every document. A recent date makes the first sync cheaper.
* **Look-back (minutes)** (advanced, default 60): Each sync reads again the documents changed in this many minutes before the last change already read, to catch late changes. A longer window reads (and Autentique bills) more documents on every sync.
* **Requests per minute** (advanced, default 10): How many requests the sync may send per minute. Autentique allows 10 per minute on the free plan, 60 on Professional and 200 on Corporate, per API key, shared with any other tool that uses the same key. The default works on every plan; raise it to make a large first sync faster.

Once you're done, click **Next**.

### 2. Select streams

Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. You can select entire groups of streams or pick specific ones.

> Tip: The stream can be found more easily by typing its name.

Select the streams and click **Next**.

### 3. Configure data streams

Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.

* **Layer**: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
* **Folder**: a folder can be created inside the selected layer to group all tables being created from this new data source.
* **Table name**: we suggest a name, but feel free to customize it. You have the option to add a **prefix** to all tables at once and make this process faster!
* **Sync Type**: you can choose between INCREMENTAL and FULL\_TABLE.
  * Incremental: every time the extraction happens, we'll get only the new data, which is good if, for example, you want to keep every record ever fetched.
  * Full table: every time the extraction happens, we'll get the current state of the data, which is good if, for example, you don't want to have deleted data in your catalog.

> [!TIP]
>
> Keep **Documents** and **Document signatures** as **Incremental**. As Full table, every sync reads (and Autentique bills) every document of the account.

Once you are done configuring, click **Next**.

### 4. Configure data source

Describe your data source for easy identification within your organization, not exceeding 140 characters.

To define your [Trigger](https://docs.nekt.com/runs/scheduling-and-triggers.md), consider how often you want data to be extracted from this source. Each sync is billed by Autentique at least 18 documents even when nothing changed (about R$ 0,54 a month on a daily schedule, R$ 13 a month hourly), so a **daily** or **hourly** schedule is a good balance; a sync every few minutes costs more without bringing more data.

Optionally, you can define some additional settings:

* Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource [here](https://docs.nekt.com/get-started/core-concepts/resource-control).
* Determine when to execute an **Additional [Full Sync](https://docs.nekt.com/get-started/core-concepts/types-of-sync#additional-full-sync)**. A full sync reads every document again, and Autentique bills every one of them: use it only when needed.

Once you are ready, click **Next** to finalize the setup.

### 5. Check your new source

You can view your new source on the [Sources](https://app.nekt.ai/sources) page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.

> [!WARNING]
>
> For you to be able to see it on your [Catalog](https://app.nekt.ai/catalog), you need at least one successful source run.

## How documents are kept up to date

* A document's signature, rejection, edit or deletion changes the document, so the next sync loads the document and all its signers again. Changes that touch only a signer, such as **viewing** the document, the request email being opened, delivered or bounced, archiving it or filing it in a folder, may not change the document: they then appear when the document next changes, or after a full sync.
* The connector reads only up to the last change it already has, once Autentique confirms the documents come ordered by their last change (checked on every sync). If it cannot confirm that, the sync reads (and Autentique bills) the whole document list, and the run log says so: contact Nekt support. An account whose documents are always signed or changed in the order they were created gives the connector no way to confirm the order, so it reads the whole list on every sync: each sync then costs one document per document in the account (for example, R\$ 1 per sync with 1,000 documents).
* Deleted documents stay in the table with `status` = `deleted` and their deletion time in `deleted_at`.
* A signer removed from a document keeps its row in **Document signatures**.
* Sandbox (test) documents are not read.

> [!NOTE]
>
> The **Documents scope** ORGANIZATION and the **Groups** and **Group members** tables need a key whose user may see them. When Autentique refuses them to the key's user, only those tables are marked as failed in the run, with a message saying what to change; the other tables keep syncing. Folders the user may not list (organization or group folders) are left out of the **Folders** table, with a warning in the run log. A key that Autentique does not accept at all stops the sync before any table changes.

## Fields by stream

> [accordion] Documents
>
> One row per document sent for signature, with its overall status, settings, author and the links to its files.
>
> Table: `documents` · Primary key: `id` · Sync: Incremental (`updated_at`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Identifier of the document in Autentique. |
> | `name` | String | Name of the document. |
> | `status` | String | Overall state derived by the connector from the document's fields: deleted (deleted\_at set), rejected (at least one signer rejected), signed (every signer signed) or pending. |
> | `message` | String | Message sent to the signers with the signature request. |
> | `reminder` | String | Automatic reminder sent to signers who have not signed: DAILY, WEEKLY or empty. |
> | `refusable` | Boolean | Whether signers may reject the document. |
> | `sortable` | Boolean | Whether the signers must sign in the order they were added. |
> | `qualified` | Boolean | Whether the document uses qualified electronic signatures (ICP-Brasil certificate). |
> | `sandbox` | Boolean | Whether the document is a test (sandbox) document. |
> | `stop_on_rejected` | Boolean | Whether the signature process stops when a signer rejects. |
> | `ignore_cpf` | Boolean | Whether signers are not asked for their CPF. |
> | `ignore_birthdate` | Boolean | Whether signers are not asked for their birth date. |
> | `scrolling_required` | Boolean | Whether signers must scroll through the whole document before signing. |
> | `is_from_api` | Boolean | Whether the document was created through the API. |
> | `new_signature_style` | Boolean | Whether the document uses Autentique's new signature appearance. |
> | `show_audit_page` | Boolean | Whether the signed file includes the audit page. |
> | `footer` | String | Where the signature footer is placed on the pages: BOTTOM, LEFT, RIGHT or empty. |
> | `footer_type` | String | Kind of signature footer printed on the pages. |
> | `email_template_id` | Integer | Identifier of the email template used for the signature requests. |
> | `notify_in` | Integer | Days before the deadline when signers are notified. |
> | `cc` | Array of strings | Email addresses copied on the document's notifications. |
> | `reply_to` | String | Email address that receives the replies to the document's notifications. |
> | `created_at` | Datetime | When the document was created (UTC). |
> | `updated_at` | Datetime | When the document last changed (UTC): a signature, a rejection, an edit or a deletion. Used as the incremental replication key. |
> | `deleted_at` | Datetime | When the document was deleted (UTC); empty while it exists. |
> | `deadline_at` | Datetime | Deadline to sign the document (UTC); empty when it has none. |
> | `expiration_at` | Datetime | When the document expires (UTC); empty when it does not. |
> | `processed_at` | Datetime | When Autentique finished processing the document's files (UTC). |
> | `lifecycle_in` | Datetime | When the document reaches the end of its storage lifecycle in Autentique (UTC). |
> | `signatures_count` | Integer | Number of signers of the document. |
> | `signed_count` | Integer | Number of signers who have signed. |
> | `rejected_count` | Integer | Number of signers who have rejected. |
> | `author_id` | String | Identifier of the Autentique user who created the document. |
> | `author_name` | String | Name of the user who created the document. |
> | `author_email` | String | Email of the user who created the document. |
> | `author_company` | String | Company of the user who created the document. |
> | `author_organization_id` | Integer | Identifier of the organization of the user who created the document. |
> | `file_original_url` | String | Link to the original file uploaded (the file itself is not copied). |
> | `file_signed_url` | String | Link to the signed file, with the signatures and the audit page. |
> | `file_certified_url` | String | Link to the certified file. |
> | `file_pades_url` | String | Link to the PAdES-signed file, when the document has one. |
> | `hash_md5` | String | MD5 hash of the document's file. |
> | `hash_sha1` | String | SHA-1 hash of the document's file. |
> | `hash_sha2` | String | SHA-256 hash of the document's file. |
> | `watchers` | String (JSON) | People and groups who follow the document without signing it (JSON array). |
> | `locale` | String (JSON) | Country, language, time zone and date format of the document (JSON object). |
> | `configs` | String (JSON) | Notification, appearance and PDF/A settings of the document (JSON object). |

> [accordion] Document signatures
>
> One row per signer of each document, with where the signer stands and when each event happened. The document's author is also listed, with `status` = `author`. Read with the documents: it needs no request of its own.
>
> Table: `document_signatures` · Primary key: `document_id`, `public_id` · Sync: Incremental (`document_updated_at`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `document_id` | String | Identifier of the document this signer belongs to. |
> | `public_id` | String | Identifier of the signer's signature request in Autentique. |
> | `document_updated_at` | Datetime | When the document last changed (UTC), copied from the document. Used as the incremental replication key. |
> | `status` | String | Where the signer stands, derived by the connector from the signer's events: author (the document's creator, not asked to sign), rejected, biometric\_rejected, signed, pending\_biometric\_approval, viewed or pending. |
> | `action` | String | What the signer was asked to do: SIGN, APPROVE, SIGN\_AS\_A\_WITNESS, RECOGNIZE, and so on. |
> | `name` | String | Name of the signer. |
> | `email` | String | Email address the signature request was sent to. |
> | `delivery_method` | String | How the request was delivered: email, link, SMS or WhatsApp. |
> | `type` | String | Kind of signature: STANDARD or QUALIFIED. |
> | `created_at` | Datetime | When the signer was added to the document (UTC). |
> | `updated_at` | Datetime | When the signer's request last changed (UTC). |
> | `archived_at` | Datetime | When the signer archived the document (UTC); empty when not archived. |
> | `user_id` | String | Identifier of the Autentique user of the signer, when the signer has an account. |
> | `user_name` | String | Name of the Autentique user of the signer. |
> | `user_email` | String | Email of the Autentique user of the signer. |
> | `user_phone` | String | Phone of the Autentique user of the signer. |
> | `link_id` | String | Identifier of the signing link, when the signer signs by link. |
> | `link_short_url` | String | Short signing link of the signer, when the signer signs by link. |
> | `email_sent_at` | String | When the request email was sent, as Autentique writes it (no time zone). |
> | `email_opened_at` | String | When the request email was opened, as Autentique writes it (no time zone). |
> | `email_delivered_at` | String | When the request email was delivered, as Autentique writes it (no time zone). |
> | `email_refused_at` | String | When the request email bounced, as Autentique writes it (no time zone). |
> | `email_refusal_reason` | String | Why the request email bounced. |
> | `viewed_at` | Datetime | When the signer viewed the document (UTC). |
> | `signed_at` | Datetime | When the signer signed (UTC). |
> | `rejected_at` | Datetime | When the signer rejected the document (UTC). |
> | `rejection_reason` | String | Reason the signer gave for rejecting the document. |
> | `signed_unapproved_at` | Datetime | When the signer signed pending biometric approval (UTC). |
> | `biometric_approved_at` | Datetime | When the signer's biometric check was approved (UTC). |
> | `biometric_rejected_at` | Datetime | When the signer's biometric check was rejected (UTC). |
> | `biometric_auto_rejected_at` | Datetime | When the signer's biometric check was rejected automatically (UTC). |
> | `biometric_reset_at` | Datetime | When the signer's biometric check was reset (UTC). |
> | `fields_filled_at` | Datetime | When the signer filled the document's fields (UTC). |
> | `email_history` | String (JSON) | Every request email sent to the signer, with its sending, opening, delivery and bounce times (JSON array). |
> | `folder_id` | String | Identifier of the folder where this signer keeps the document, when filed in one. |
> | `folder_name` | String | Name of the folder where this signer keeps the document. |
> | `events` | String (JSON) | Every event of the signer (viewed, signed, rejected, fields filled, biometric checks) with its time, IP, port, user agent and geolocation (JSON object keyed by event). |

> [accordion] Folders
>
> Every folder the key's user can see: personal, organization and group folders, with their subfolders.
>
> Table: `folders` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | String | Identifier of the folder. |
> | `name` | String | Name of the folder. |
> | `slug` | String | URL-friendly name of the folder. |
> | `path` | String | Full path of the folder, from the top folder down to this one. |
> | `context` | String | Whose folder it is: USER (personal), ORGANIZATION or GROUP. |
> | `parent_folder_id` | String | Identifier of the folder this one is inside; empty for a top folder. |
> | `parent_folder_name` | String | Name of the folder this one is inside. |
> | `children_counter` | Integer | Number of subfolders inside the folder. |
> | `subfolder_ids` | Array of strings | Identifiers of the folder's direct subfolders. |
> | `is_editor` | Boolean | Whether the API key's user may edit the folder. |
> | `has_password` | Boolean | Whether the folder is protected by a password. |
> | `link_identifier` | String | Identifier of the folder's sharing link, when shared by link. |
> | `shares` | String (JSON) | Users and groups the folder is shared with, with their roles (JSON array). |
> | `created_at` | Datetime | When the folder was created (UTC). |
> | `updated_at` | Datetime | When the folder last changed (UTC). |

> [accordion] Organizations
>
> The organizations the key's user belongs to. `is_current` marks the one whose documents are read.
>
> Table: `organizations` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Identifier of the organization. |
> | `uuid` | String | Public identifier (UUID) of the organization. |
> | `name` | String | Name of the organization. |
> | `cnpj` | String | CNPJ of the organization. |
> | `type` | String | Kind of organization (API\_ONLY for organizations used only through the API). |
> | `is_current` | Boolean | Whether this is the organization the API key acts in (the one whose documents are read). |
> | `parent_organization_id` | Integer | Identifier of the parent organization, for a child organization. |
> | `parent_organization_name` | String | Name of the parent organization. |
> | `locale` | String (JSON) | Country, language, time zone and date format of the organization (JSON object). |
> | `created_at` | Datetime | When the organization was created (UTC). |
> | `deleted_at` | Datetime | When the organization was deleted (UTC); empty while it exists. |

> [accordion] Groups
>
> The groups of the organization and what their members may do. Needs a key of an organization administrator.
>
> Table: `groups` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Identifier of the group. |
> | `uuid` | String | Public identifier of the group. |
> | `name` | String | Name of the group. |
> | `company` | String | Company name shown for the group. |
> | `cnpj` | String | CNPJ shown for the group. |
> | `members_count` | Integer | Number of members of the group. |
> | `is_default` | Boolean | Whether new members join this group by default. |
> | `permissions` | String (JSON) | What the group's members may do in Autentique (JSON object of flags). |

> [accordion] Group members
>
> The users of the organization, one row per group they belong to. Read with the groups: it needs no request of its own.
>
> Table: `group_members` · Primary key: `group_id`, `user_id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `group_id` | Integer | Identifier of the group the user belongs to. |
> | `user_id` | String | Identifier of the Autentique user. |
> | `user_name` | String | Name of the user. |
> | `user_email` | String | Email of the user. |
> | `user_phone` | String | Phone of the user. |
> | `permissions` | String (JSON) | The member's own permissions in Autentique, when set apart from the group's (JSON object of flags). |
> | `created_at` | Datetime | When the user joined the organization (UTC). |
> | `deleted_at` | Datetime | When the user left the organization (UTC); empty while a member. |

> [accordion] Email templates
>
> The email templates used for signature requests and completion notices.
>
> Table: `email_templates` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Identifier of the email template (the email\_template\_id of documents). |
> | `name` | String | Name of the template. |
> | `type` | String | When the template is used: SOLICITATION, COMPLETED or SIGNATURE\_COMPLETED. |
> | `pt_br` | String (JSON) | Subject, title, sender, text and footer of the Portuguese (Brazil) version (JSON object). |
> | `en_us` | String (JSON) | Subject, title, sender, text and footer of the English (US) version (JSON object). |
> | `es_mx` | String (JSON) | Subject, title, sender, text and footer of the Spanish (Mexico) version (JSON object). |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.