Brazilian public procurement (PNCP): search, deadlines, tender markdown, alerts and watches.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Checks that the Salvas, Alertas and Vigias belong to the account of the session. The lists of a guest edm_… move to the account with `POST /api/auth/claim`; a POST to this route answers 410 with the path.
This tool takes no arguments.
Checks that the Salvas, Alertas and Vigias belong to the account of the session. The lists of a guest edm_… move to the account with `POST /api/auth/claim`; a POST to this route answers 410 with the path.
No arguments.
{
"type": "object",
"required": [],
"properties": {}
}Imports the CNPJ into a new organization or into the organization of the organization key. Without X-Organization-Id, it creates the organization with the company name and EditalMD on, or returns the one that the person removed from the list (201). With X-Organization-Id or an organization key, the record goes to that organization if the caller manages it and it has no company. Returns 200 when the CNPJ is already in an organization of the caller. Up to 100 companies; no partners or contacts; no analysis starts.
| Argument | Type | Description |
|---|---|---|
| cnpj* | string | Full CNPJ, 14 digits with a valid check digit. |
{
"type": "object",
"required": [
"cnpj"
],
"properties": {
"cnpj": {
"type": "string",
"description": "Full CNPJ, 14 digits with a valid check digit."
}
}
}Starts or resumes the analysis with the company record, the attachments and the tender. Call it only when the user asks; follow it with get_participation. Returns 202 after it accepts and keeps the request, and 200 when it reuses a finished analysis. It uses the profile and the attachments of this owner. Interrupted requests can resume; failures tell the reason and the next action. An explicit POST resumes a pause. Up to 2 thousand facts and 100 tenders per company, subject to the available capacity and budget. Follow-up only by GET. The analysis is a triage with evidence, not a final qualification decision or an external legal opinion.
| Argument | Type | Description |
|---|---|---|
| v* | string | SHA-256 of the open Markdown, 64 lowercase hex characters. |
| id* | integer | Document ID. |
| cnpj* | string | CNPJ with 14 characters (digits or alphanumeric) linked to the owner. |
{
"type": "object",
"required": [
"cnpj",
"id",
"v"
],
"properties": {
"v": {
"type": "string",
"description": "SHA-256 of the open Markdown, 64 lowercase hex characters."
},
"id": {
"type": "integer",
"description": "Document ID."
},
"cnpj": {
"type": "string",
"description": "CNPJ with 14 characters (digits or alphanumeric) linked to the owner."
}
}
}The EditalMD API index, with the routes.
No arguments.
{
"type": "object",
"properties": {}
}Sends a PDF proof of the company. It does not start OCR. Requires a session; for large files, prefer HTTP. Returns 201. JSON up to 11,200,000 bytes; PDF up to 8 MiB; 20 documents, 80 MiB and 50 pages per company. An identical file is reused. The automatic reading happens only when you request the analysis.
| Argument | Type | Description |
|---|---|---|
| cnpj* | string | CNPJ with 14 characters (digits or alphanumeric) linked to the owner. |
| nome* | string | PDF name. |
| tipo* | string | atestado, certidao, licenca, contrato_social or outro. |
| arquivo_base64* | string | The PDF in base64, up to 8 MiB decoded. |
{
"type": "object",
"required": [
"cnpj",
"nome",
"tipo",
"arquivo_base64"
],
"properties": {
"cnpj": {
"type": "string",
"description": "CNPJ with 14 characters (digits or alphanumeric) linked to the owner."
},
"nome": {
"type": "string",
"description": "PDF name."
},
"tipo": {
"type": "string",
"description": "atestado, certidao, licenca, contrato_social or outro."
},
"arquivo_base64": {
"type": "string",
"description": "The PDF in base64, up to 8 MiB decoded."
}
}
}Awarded results for a similar item, as a free summary: how many results, the median and the range (p25/p75) of the same catalog product in the same unit, without the extremes; the volume bought; the value for your quantity; and the other groups that the search found (ask for the product and the unit of one of them to switch). It searches awarded results by item description. It also accepts POST, PUT or PATCH with the same parameters in JSON or a form; `query`, `termo`, `busca` and `search` count as `q`, `estado` as `uf`, and `limit` as `limite`. Every 400 has `exemplo` and `doc`.
| Argument | Type | Description |
|---|---|---|
| q* | string | Item description, at least 3 letters. |
| uf | string | State (UF) of the agency (optional). |
| meses | number | Award window in months, 1 to 36 (default 12). |
| catmat | string | Item code in the government catalog (optional). |
| limite | number | 1 to 100 (default 50). |
| produto | string | Catalog product, as in `grupos` (optional). |
| unidade | string | Unit, as in `grupos`: 500 FL, 1 UN (optional). |
Brings into the session account what the guest edm_… created (the SDK claim): the Salvas, Alertas and Vigias that the account does not have yet, and the documents that the guest bought. Requires the bootstrap/CSRF of this browser; the page does it right after sign-in. It moves only what the guest still has, in one transaction; what collides with what the account already has stays with the guest. A repeat does no harm (it moves zero).
| Argument | Type | Description |
|---|---|---|
| guest_token* | string | Token edm_… of the guest. |
{
"type": "object",
"required": [
"guest_token"
],
"properties": {
"guest_token": {
"type": "string",
"description": "Token edm_… of the guest."
}
}
}Lists the private PDFs of the company. Binary downloads use the authenticated HTTP GET /documentos/:arquivo.
| Argument | Type | Description |
|---|---|---|
| cnpj* | string | CNPJ with 14 characters (digits or alphanumeric) linked to the owner. |
{
"type": "object",
"required": [
"cnpj"
],
"properties": {
"cnpj": {
"type": "string",
"description": "CNPJ with 14 characters (digits or alphanumeric) linked to the owner."
}
}
}Name, status, activity and address of a Brazilian company by CNPJ. It does not count against the daily free limit, does not show contacts or partners and runs no extra checks. The origin's protection limit still applies. For sanctions, tax status and a live CNIA check, use consulta_cnpj.
| Argument | Type | Description |
|---|---|---|
| cnpj* | string | CNPJ, with or without punctuation. |
{
"type": "object",
"required": [
"cnpj"
],
"properties": {
"cnpj": {
"type": "string",
"description": "CNPJ, with or without punctuation."
}
},
"additionalProperties": false
}Addresses at a CEP (Brazilian postal code) with coordinates (CNEFE/IBGE) and the companies registered there. Returns up to 20 addresses and up to 20 companies; the total number of addresses is in `pontos_total`. 10 free lookups per day per network; after that, the tool answers `free_limit` with `resets_at`.
| Argument | Type | Description |
|---|---|---|
| cep* | string | CEP with 8 digits. |
{
"type": "object",
"required": [
"cep"
],
"properties": {
"cep": {
"type": "string",
"description": "CEP with 8 digits."
}
},
"additionalProperties": false
}Brazilian company record by CNPJ from the Federal Revenue (Receita Federal), with the special status when there is one (bankruptcy, judicial recovery, liquidation); its sanctions (CEIS, CNEP, CEPIM, leniency agreements, TCU and the CNJ's CNIA, checked live); partners on the politically exposed persons list (CGU); tax status (federal tax debt, installment agreements, tax incentives and construction works); the Federal Revenue chronic tax debtor list (`devedorContumaz.consta`: barred from public tenders); environmental and labor risk (forced-labor list, Ibama embargoes and fines); government contracts (PNCP, federal contracts since 2013 and sales to municipalities in the state of SP, from TCE-SP) and BNDES financing; registrations with regulators and official registries (CVM, Central Bank, ANS, ANTT, ANP, ANEEL, Anatel, Anvisa, CNES, Cadastur, Ibama, ANAC and SICAF); CVM investment funds; and the address on the map (CNEFE/IBGE). Accepts the numeric and the alphanumeric CNPJ. Personal data in the record comes masked. `sancoes` has what public registries record against the whole company (the CNPJ root), updated daily: useful to vet suppliers. 10 free lookups per day per network; after that, the tool answers `free_limit` with `resets_at`.
| Argument | Type | Description |
|---|---|---|
| cnpj* | string | CNPJ, with or without punctuation. |
| temas | string | Comma-separated topics: dados, socios, sancoes, fiscal, divida, obras, trabalho, ibama, contratos, pep, vendas, campanhas, prefeituras, sicaf, aeronaves, fundos, rntrc, bndes, registros; todos. Omit for the full record. Basic company data always stays. Unrequested blocks are omitted; null means unchecked. Personal data remains masked. |
{
"type": "object",
"required": [
"cnpj"
],
"properties": {
"cnpj": {
"type": "string",
"description": "CNPJ, with or without punctuation."
},
"temas": {
"type": "string",
"maxLength": 240,
"description": "Comma-separated topics: dados, socios, sancoes, fiscal, divida, obras, trabalho, ibama, contratos, pep, vendas, campanhas, prefeituras, sicaf, aeronaves, fundos, rntrc, bndes, registros; todos. Omit for the full record. Basic company data always stays. Unrequested blocks are omitted; null means unchecked. Personal data remains masked."
}
},
"additionalProperties": false
}Addresses and companies at a CEP (Brazilian postal code), without counting against the daily free limit. Up to 20 addresses and 20 companies; `pontos_total` has the total number of addresses. The origin's protection limit still applies.
| Argument | Type | Description |
|---|---|---|
| cep* | string | CEP, with or without the hyphen. |
{
"type": "object",
"required": [
"cep"
],
"properties": {
"cep": {
"type": "string",
"description": "CEP, with or without the hyphen."
}
},
"additionalProperties": false
}Suggests up to 8 Brazilian companies for a CNPJ, company name, partner, phone or e-mail, ordered by how well they match. It does not count against the daily free limit and does not show contacts. `incompleto` means one of the sources did not answer.
| Argument | Type | Description |
|---|---|---|
| q* | string | A name of 3 to 120 characters, a CNPJ, a phone with area code or a full e-mail. |
{
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"maxLength": 120,
"minLength": 3,
"description": "A name of 3 to 120 characters, a CNPJ, a phone with area code or a full e-mail."
}
},
"additionalProperties": false
}An alert for new procurements by object terms and state (UF). Use the account session or guest token. Channels: pull, signed webhook or email. Name, organization and email recipients are optional. Two modes. By `termos`: a space requires all groups; `|` accepts alternatives within a group. By `cnpj`: known activity families produce alerts, up to `max_familias`. Unmapped activities remain in the response without an alert. The cron checks every 30 minutes. Email requires an account session and `EMAIL_ALERTAS=1`. It uses explicit recipients or the verified account email.
| Argument | Type | Description |
|---|---|---|
| uf | string | State (UF) abbreviation (optional). |
| nome | string | Alert name, up to 100 characters. |
| canal | string | pull, webhook or email (default pull). |
| termos* | string | Object words, 3 to 200 letters; a space means all, | means any (uniforme|fardamento). |
| destino | string | HTTPS webhook URL. Ignored for pull and email. |
| filtros | object | Extra filter: modalities, municipalities, exclusions, values, open proposals and CNAEs. PATCH replaces the whole filter; {} clears it. |
| destinatarios | object | Email recipients: `para`, `cc` and `bcc` arrays. Up to 10 distinct addresses in total. An empty `para` list uses the account email. PATCH replaces all three lists. BCC is hidden from other recipients. |
Alerts for new procurements by the company CNPJ (requires the token edm_…): the activities (CNAE) become families of terms, and there is one alert per family, main first, up to max_familias. A CNAE outside the dictionary is listed in the response with a null family. Two modes. By `termos`: a space requires all groups; `|` accepts alternatives within a group. By `cnpj`: known activity families produce alerts, up to `max_familias`. Unmapped activities remain in the response without an alert. The cron checks every 30 minutes. Email requires an account session and `EMAIL_ALERTAS=1`. It uses explicit recipients or the verified account email.
| Argument | Type | Description |
|---|---|---|
| uf | string | State (UF) abbreviation (optional). |
| cnpj* | string | CNPJ with 14 digits, with or without punctuation. |
| nome | string | Alert name, up to 100 characters. |
| canal | string | pull, webhook or email (default pull). |
| destino | string | HTTPS webhook URL. Ignored for pull and email. |
| filtros | object | Extra filter: modalities, municipalities, exclusions, values, open proposals and CNAEs. PATCH replaces the whole filter; {} clears it. |
| max_familias | number | 1 to 8 (default 8): how many families become alerts. |
Creates the guest (token edm_…, issued by the account library) that opens alerts and watches, and the secret whsec_… that signs the webhooks. No sign-up. The token appears only once: keep it and send it in Authorization: Bearer in the alert and watch tools. The account library signs the token, with a limit per network and per hour, so the free allowance does not become infinite. The token has no recovery: sign in to the account and bring the lists into it (`POST /api/auth/claim`, which the account page does on sign-in) to stop depending on it. You can read `webhook_segredo` again in `GET /api/dono`. Each webhook POST carries `webhook-id`, `webhook-timestamp` (Unix seconds) and `webhook-signature: v1,<base64>`: HMAC-SHA256 of `id.timestamp.body` with the key of your `whsec_…` (the base64 after the prefix). This is the Standard Webhooks pattern: any of its libraries can check it; reject a timestamp outside 5 minutes. After `POST /api/dono/segredo`, the previous secret still signs for 24 h (two `v1,` parts in the header).
No arguments.
{
"type": "object",
"properties": {}
}Basic native or OCR text of a PDF of up to 50 pages / 32 MiB, without review or structured tables. Up to 100 documents per agent. It does not open premium. Allowance per credential, until the earlier date of the agent's 30 days and the end of the pilot. Repeating the same document does not use another unit. Premium: keep evaluation.access_code and use X-Editalmd-Avaliacao together with X-Agent-Pass in the reads and in GET /geracao. Basic does not open premium content. The pilot depends on the global budget; no automatic renewal.
| Argument | Type | Description |
|---|---|---|
| id* | number | ID of the document in the collection. |
| agent_pass* | string | Persistent individual credential from POST https://api.editalmd.com/licitacoes/api/agente. It is not the User-Agent. |
{
"type": "object",
"required": [
"agent_pass",
"id"
],
"properties": {
"id": {
"type": "number",
"description": "ID of the document in the collection."
},
"agent_pass": {
"type": "string",
"description": "Persistent individual credential from POST https://api.editalmd.com/licitacoes/api/agente. It is not the User-Agent."
}
}
}Follows the basic reading after retry_after_s and returns the text per page with the hash of the source. Allowance per credential, until the earlier date of the agent's 30 days and the end of the pilot. Repeating the same document does not use another unit. Premium: keep evaluation.access_code and use X-Editalmd-Avaliacao together with X-Agent-Pass in the reads and in GET /geracao. Basic does not open premium content. The pilot depends on the global budget; no automatic renewal.
| Argument | Type | Description |
|---|---|---|
| id* | number | ID of the document in the collection. |
| agent_pass* | string | Persistent individual credential from POST https://api.editalmd.com/licitacoes/api/agente. It is not the User-Agent. |
{
"type": "object",
"required": [
"agent_pass",
"id"
],
"properties": {
"id": {
"type": "number",
"description": "ID of the document in the collection."
},
"agent_pass": {
"type": "string",
"description": "Persistent individual credential from POST https://api.editalmd.com/licitacoes/api/agente. It is not the User-Agent."
}
}
}Uses your only sponsored premium on a document of up to 50 pages. Keep evaluation.access_code as avaliacao_codigo and follow it with generation_status and agent_pass. A repeat returns the same access. Allowance per credential, until the earlier date of the agent's 30 days and the end of the pilot. Repeating the same document does not use another unit. Premium: keep evaluation.access_code and use X-Editalmd-Avaliacao together with X-Agent-Pass in the reads and in GET /geracao. Basic does not open premium content. The pilot depends on the global budget; no automatic renewal.
| Argument | Type | Description |
|---|---|---|
| id* | number | ID of the document in the collection. |
| agent_pass* | string | Persistent individual credential from POST https://api.editalmd.com/licitacoes/api/agente. It is not the User-Agent. |
{
"type": "object",
"required": [
"agent_pass",
"id"
],
"properties": {
"id": {
"type": "number",
"description": "ID of the document in the collection."
},
"agent_pass": {
"type": "string",
"description": "Persistent individual credential from POST https://api.editalmd.com/licitacoes/api/agente. It is not the User-Agent."
}
}
}Individual allowance: one premium and 100 basic documents, with an expiry date.
| Argument | Type | Description |
|---|---|---|
| agent_pass* | string | Persistent individual credential from POST https://api.editalmd.com/licitacoes/api/agente. It is not the User-Agent. |
{
"type": "object",
"required": [
"agent_pass"
],
"properties": {
"agent_pass": {
"type": "string",
"description": "Persistent individual credential from POST https://api.editalmd.com/licitacoes/api/agente. It is not the User-Agent."
}
}
}The valid framework agreements (`ata de registro de preços`) on PNCP for the object, most relevant first: the managing agency, the validity, whether the agreement accepts joining (carona) and the link to the agreement. Free. Only the agreements that are not canceled and are valid today or later. `adesao=1` returns only the ones that accept joining. The procurement record (`/api/compra/:id`) has the agreements that it generated. `Accept: text/html` opens the Atas vigentes tab with the terms.
| Argument | Type | Description |
|---|---|---|
| q* | string | Object terms, at least 3 letters. |
| adesao | string | 1 for only the agreements that accept joining (optional). |
| pagina | number | 0 to 49 (default 0). |
{
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Object terms, at least 3 letters."
},
"adesao": {
"type": "string",
"description": "1 for only the agreements that accept joining (optional)."
},
"pagina": {
"type": "number",
"description": "0 to 49 (default 0)."
}
}
}Follows the real phases and the completion, free, without starting processing.
| Argument | Type | Description |
|---|---|---|
| id* | number | Document ID. |
| agent_pass | string | Individual agent credential, required together with X-Editalmd-Avaliacao. |
| acesso_codigo | string | Authorizes this document for whoever holds it. A public receipt grants no access. |
| avaliacao_codigo | string | evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Document ID."
},
"agent_pass": {
"type": "string",
"description": "Individual agent credential, required together with X-Editalmd-Avaliacao."
},
"acesso_codigo": {
"type": "string",
"description": "Authorizes this document for whoever holds it. A public receipt grants no access."
},
"avaliacao_codigo": {
"type": "string",
"description": "evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry."
}
}
}The deadlines of the procurement: the published end of proposals and the last day to challenge the tender (estimate: 3 business days before the session, Law 14.133 art. 164, national holidays). Free. Served from the edge cache for up to 6 hours: the record rarely changes. `Cache-Control: no-cache` in the request reads the origin now. The `x-origem-cache` header says `hit`, `miss` or `bypass`.
| Argument | Type | Description |
|---|---|---|
| id* | number | Procurement id (from the search). |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Procurement id (from the search)."
}
}
}A free lookup of the title, type, pages and the procurement linked to a document. Use `get_procurement` to list the related documents. It does not open content or start OCR.
| Argument | Type | Description |
|---|---|---|
| id* | integer | Document ID. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"minimum": 1,
"description": "Document ID."
}
}
}Items, requirements, attestations, deadlines and obligations, with conditions, exceptions and excerpts/pages. It uses the same acesso_codigo as the reading. It does not start AI. The dossier is included in the document access, with no new analysis when you read it. Partial data tells the coverage; an export requires a finished version.
| Argument | Type | Description |
|---|---|---|
| v | string | SHA-256 of the text. |
| id* | number | Document ID. |
| kind | string | identity, item, requirement, attestation, deadline or obligation. |
| after | number | Previous `next` cursor. |
| limit | number | 1 to 30 facts. |
| agent_pass | string | Individual agent credential, required together with X-Editalmd-Avaliacao. |
| acesso_codigo | string | Authorizes this document for whoever holds it. A public receipt grants no access. |
| avaliacao_codigo | string | evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry. |
The owner state (requires the token edm_… or the account session): account or guest, the notice e-mail, the allowance and the secret whsec_… that signs each webhook (Standard Webhooks: webhook-id, webhook-timestamp, webhook-signature). Each webhook POST carries `webhook-id`, `webhook-timestamp` (Unix seconds) and `webhook-signature: v1,<base64>`: HMAC-SHA256 of `id.timestamp.body` with the key of your `whsec_…` (the base64 after the prefix). This is the Standard Webhooks pattern: any of its libraries can check it; reject a timestamp outside 5 minutes. After `POST /api/dono/segredo`, the previous secret still signs for 24 h (two `v1,` parts in the header).
No arguments.
{
"type": "object",
"properties": {}
}Reads the state, the pending items and the met items, with reasons, actions and evidence. It never starts an analysis. Pending items group precisa_comprovar (proof missing), divergente (incompatible evidence) and acompanhar (future obligation). A different company record, attachments or dossier return outdated without current results. The reference date stays when the analysis resumes; a previous day returns data_atual=false. Validated batches stay available during failures or processing, with parcial=true and processados/total; they never mean that the requirements not yet compared are done. GET does not run the queue and does not start AI.
| Argument | Type | Description |
|---|---|---|
| v* | string | SHA-256 of the open Markdown, 64 lowercase hex characters. |
| id* | integer | Document ID. |
| cnpj* | string | CNPJ with 14 characters (digits or alphanumeric) linked to the owner. |
| kind | string | requirement, attestation or obligation. |
| after | integer | Last ID received; default 0. |
| grupo | string | pendencias, atendidos or nao_aplicavel. |
| limit | integer |
The procurement record and its documents in the collection (up to 50), with titles, types, pages and availability. Free. Served from the edge cache for up to 6 hours: the record rarely changes. `Cache-Control: no-cache` in the request reads the origin now. The `x-origem-cache` header says `hit`, `miss` or `bypass`.
| Argument | Type | Description |
|---|---|---|
| id* | number | Procurement id (from the search). |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Procurement id (from the search)."
}
}
}The qualification list of the tender, with literal excerpts: conditions, exceptions and evidence by page of the available analysis. The lookup does not start another analysis. Deadlines, proposals and the other obligations are in the dossier; this list covers qualification and the required attestations, and does not state what the company has.
| Argument | Type | Description |
|---|---|---|
| id* | number | Document id (from `get_procurement`). |
| agent_pass | string | Individual agent credential, required together with X-Editalmd-Avaliacao. |
| acesso_codigo | string | Authorizes this document for whoever holds it. A public receipt grants no access. |
| avaliacao_codigo | string | evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Document id (from `get_procurement`)."
},
"agent_pass": {
"type": "string",
"description": "Individual agent credential, required together with X-Editalmd-Avaliacao."
},
"acesso_codigo": {
"type": "string",
"description": "Authorizes this document for whoever holds it. A public receipt grants no access."
},
"avaliacao_codigo": {
"type": "string",
"description": "evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry."
}
}
}The document manifest: pages, images, SHA-256 and version. Send acesso_codigo; the examples are free. It does not start OCR. The same authorization opens the ZIP and the images through the API. Only ready resources. `document_approved: false` marks the automatic extraction and does not block reading.
| Argument | Type | Description |
|---|---|---|
| id* | number | Document id. |
| agent_pass | string | Individual agent credential, required together with X-Editalmd-Avaliacao. |
| acesso_codigo | string | Authorizes this document for whoever holds it. A public receipt grants no access. |
| avaliacao_codigo | string | evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Document id."
},
"agent_pass": {
"type": "string",
"description": "Individual agent credential, required together with X-Editalmd-Avaliacao."
},
"acesso_codigo": {
"type": "string",
"description": "Authorizes this document for whoever holds it. A public receipt grants no access."
},
"avaliacao_codigo": {
"type": "string",
"description": "evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry."
}
}
}Reads the Markdown with the acesso_codigo of the document, or with avaliacao_codigo and agent_pass of the sponsored premium. Five examples are free.
| Argument | Type | Description |
|---|---|---|
| id* | number | Document id (from `get_procurement`). |
| agent_pass | string | Individual agent credential, required together with X-Editalmd-Avaliacao. |
| acesso_codigo | string | Authorizes this document for whoever holds it. A public receipt grants no access. |
| avaliacao_codigo | string | evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Document id (from `get_procurement`)."
},
"agent_pass": {
"type": "string",
"description": "Individual agent credential, required together with X-Editalmd-Avaliacao."
},
"acesso_codigo": {
"type": "string",
"description": "Authorizes this document for whoever holds it. A public receipt grants no access."
},
"avaliacao_codigo": {
"type": "string",
"description": "evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry."
}
}
}Health of the origin and size of the collection (procurements and documents with text).
No arguments.
{
"type": "object",
"properties": {}
}The procurements that already matched an alert (pull channel), with deadlines and delivery status. Requires the token edm_….
| Argument | Type | Description |
|---|---|---|
| id* | string | Alert id. |
| limite | number | 1 to 100 (default 50). |
| antes_compra | number | proximo_antes of the previous page. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Alert id."
},
"limite": {
"type": "number",
"description": "1 to 100 (default 50)."
},
"antes_compra": {
"type": "number",
"description": "proximo_antes of the previous page."
}
}
}Search term suggestions by economic activity (CNAE), with the description, the family and coverage indicators. Free. Without `q`, it lists the activities with the most registered suppliers. With `q`, it searches by code prefix (`1412`, `1412-6/01`) or by a word of the description. A null `familia` or `termos` means that the CNAE is not in the dictionary yet: an alert by CNPJ does not use it.
| Argument | Type | Description |
|---|---|---|
| q | string | Code prefix (1412) or a word of the description (optional). |
| limite | number | 1 to 100 (default 20). |
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "Code prefix (1412) or a word of the description (optional)."
},
"limite": {
"type": "number",
"description": "1 to 100 (default 20)."
}
}
}The catalog of the original files of the document, with download links and pages. Use /api/documento/{id}/original to download the full original.
| Argument | Type | Description |
|---|---|---|
| id* | number | Document ID from the procurement record (`get_procurement`). |
| agent_pass | string | Individual agent credential, required together with X-Editalmd-Avaliacao. |
| acesso_codigo | string | Authorizes this document for whoever holds it. A public receipt grants no access. |
| avaliacao_codigo | string | evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Document ID from the procurement record (`get_procurement`)."
},
"agent_pass": {
"type": "string",
"description": "Individual agent credential, required together with X-Editalmd-Avaliacao."
},
"acesso_codigo": {
"type": "string",
"description": "Authorizes this document for whoever holds it. A public receipt grants no access."
},
"avaliacao_codigo": {
"type": "string",
"description": "evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry."
}
}
}Lists five real free proofs to check the Markdown, the original PDF and the ZIP with images before you generate another document.
No arguments.
{
"type": "object",
"properties": {}
}The companies are the account organizations with EditalMD; use the session or the organization key.
No arguments.
{
"type": "object",
"required": [],
"properties": {}
}Lists up to 200 tenders saved by the owner, free.
No arguments.
{
"type": "object",
"required": [],
"properties": {}
}The events of a watched procurement (what changed, from what to what, and when) and the current snapshot. Requires the token edm_….
| Argument | Type | Description |
|---|---|---|
| id* | string | Watch id. |
| limite | number | 1 to 100 (default 50). |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Watch id."
},
"limite": {
"type": "number",
"description": "1 to 100 (default 50)."
}
}
}Find city names and state codes, activities and other Radar CNPJ references. For tender filters, use the city name and state. Returned numeric codes belong to Receita, not IBGE.
| Argument | Type | Description |
|---|---|---|
| q | string | At least two letters. |
| tipo* | string | Reference type: city, activity, legal nature, qualification, country or status reason. |
| limit | integer | 1 to 50 results. Default: 20. |
| codigos | string | Up to 50 Receita codes, separated by commas. |
{
"type": "object",
"required": [
"tipo"
],
"properties": {
"q": {
"type": "string",
"description": "At least two letters."
},
"tipo": {
"enum": [
"municipio",
"cnae",
"natureza",
"qualificacao",
"pais",
"motivo"
],
"type": "string",
"description": "Reference type: city, activity, legal nature, qualification, country or status reason."
},
"limit": {
"type": "integer",
"maximum": 50,
"minimum": 1,
"description": "1 to 50 results. Default: 20."
},
"codigos": {
"type": "string",
"description": "Up to 50 Receita codes, separated by commas."
}
}
}The identity and the private counters of the account session (cookie) sent in the MCP request. The global account is already the person in EditalMD: there is no activation per product.
| Argument | Type | Description |
|---|---|---|
| locais | string | Up to 90 positive document IDs separated by commas, to check which ones already belong to the account; 1529 characters at most. |
{
"type": "object",
"required": [],
"properties": {
"locais": {
"type": "string",
"description": "Up to 90 positive document IDs separated by commas, to check which ones already belong to the account; 1529 characters at most."
}
}
}The private collection of the account. Requires the account session (cookie and the browser CSRF).
| Argument | Type | Description |
|---|---|---|
| antes | string | proximo_antes of the previous page; hex, an exclusive cursor of the client. |
{
"type": "object",
"required": [],
"properties": {
"antes": {
"type": "string",
"description": "proximo_antes of the previous page; hex, an exclusive cursor of the client."
}
}
}The private collection of the account. Requires the account session (cookie and the browser CSRF).
| Argument | Type | Description |
|---|---|---|
| antes | string | proximo_antes of the previous page; hex, an exclusive cursor of the client. |
{
"type": "object",
"required": [],
"properties": {
"antes": {
"type": "string",
"description": "proximo_antes of the previous page; hex, an exclusive cursor of the client."
}
}
}The tenders with an open proposal period published in the last 7 days, in the state (UF) and in the CNAEs of the companies that supply the same as this procurement, highest value first, and the alert body that delivers them (for `create_alert`). Useful when the procurement you looked up is already closed. Free. Without a CNAE, it uses the terms of the object. It is the same read as the alert preview (`POST /api/alertas/previa`), and `alerta` has the body that creates this alert in `POST /api/alertas` (add the `canal`). The result is per field and state and is kept for 30 minutes; when the service is busy or the origin is down, `estado` says so and `itens` is empty.
| Argument | Type | Description |
|---|---|---|
| id* | number | Procurement id (from the search). |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Procurement id (from the search)."
}
}
}Reads the status of the original, free. It does not ask for a download or a generation. It returns only the file status: it does not deliver content, grant access, confirm pages or start a generation. No query. The response is no-store.
| Argument | Type | Description |
|---|---|---|
| id* | integer | Document ID from the procurement record (`get_procurement`). |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"minimum": 1,
"description": "Document ID from the procurement record (`get_procurement`)."
}
},
"additionalProperties": false
}A free sample of procurements by terms and filters, or editable suggestions by CNPJ. It does not create alerts.
| Argument | Type | Description |
|---|---|---|
| uf | string | State (UF) abbreviation; empty means all. |
| cnpj | string | CNPJ to suggest up to 8 families of terms, without turning them on. |
| termos | string | Object terms; a space requires all words, | accepts alternatives. |
| filtros | object | Extra filter: modalities, municipalities, exclusions, values, open proposals and CNAEs. PATCH replaces the whole filter; {} clears it. |
{
"type": "object",
"properties": {
"uf": {
"type": "string",
"description": "State (UF) abbreviation; empty means all."
},
"cnpj": {
"type": "string",
"description": "CNPJ to suggest up to 8 families of terms, without turning them on."
},
"termos": {
"type": "string",
"description": "Object terms; a space requires all words, | accepts alternatives."
},
"filtros": {
"type": "object",
"properties": {
"cnaes": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{4}-?\\d/?\\d{2}$"
},
"maxItems": 8
},
"abertas": {
"type": "boolean"
},
"excluir": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10
},
"valor_max": {
"type": "number",
"minimum": 0
},
"valor_min": {
"type": "number",
"minimum": 0
},
"municipios": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10
},
"modalidades": {
"type": "array",
"items": {
"type": "integer",
"maximum": 19,
"minimum": 1
},
"maxItems": 10
}
},
"description": "Extra filter: modalities, municipalities, exclusions, values, open proposals and CNAEs. PATCH replaces the whole filter; {} clears it.",
"additionalProperties": false
}
}
}What agencies plan to procure (annual procurement plans, PCA, on PNCP), before the tender opens: item, agency, quantity, estimated value and desired date. Free. Only the current version of each plan; without `ano`, from the current year on. To know when the tender opens, create an alert with the same terms (`/api/alertas`). `Accept: text/html` opens the Planos de compras tab with the terms.
| Argument | Type | Description |
|---|---|---|
| q* | string | Item terms, at least 3 letters. |
| ano | number | Plan year (optional; the default is from the current year on). |
| pagina | number | 0 to 49 (default 0). |
{
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Item terms, at least 3 letters."
},
"ano": {
"type": "number",
"description": "Plan year (optional; the default is from the current year on)."
},
"pagina": {
"type": "number",
"description": "0 to 49 (default 0)."
}
}
}Removes the company from the list (owner or admin); the organization and the PDFs stay, and adding the CNPJ again brings it back.
| Argument | Type | Description |
|---|---|---|
| cnpj* | string | Full CNPJ, 14 digits with a valid check digit. |
{
"type": "object",
"required": [
"cnpj"
],
"properties": {
"cnpj": {
"type": "string",
"description": "Full CNPJ, 14 digits with a valid check digit."
}
}
}Removes a proof from your own company; the analyses that used it become out of date.
| Argument | Type | Description |
|---|---|---|
| cnpj* | string | CNPJ with 14 characters (digits or alphanumeric) linked to the owner. |
| arquivo* | string | SHA-256 of the private PDF. |
{
"type": "object",
"required": [
"cnpj",
"arquivo"
],
"properties": {
"cnpj": {
"type": "string",
"description": "CNPJ with 14 characters (digits or alphanumeric) linked to the owner."
},
"arquivo": {
"type": "string",
"description": "SHA-256 of the private PDF."
}
}
}Removes the procurement from the personal list of the owner. Saving does not create a watch or a notification. The client sends only the ID; the snapshot comes from the collection.
| Argument | Type | Description |
|---|---|---|
| id* | number | Procurement identifier in the collection. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Procurement identifier in the collection."
}
}
}When the person wants the document, downloads the pending original from PNCP now. Free and idempotent. It does not start OCR. Use it when the person opens the document. The body is empty or {} (two bytes at most). A free collector downloads the original at once and the status becomes downloading; without a free collector, the request goes first into the queue.
| Argument | Type | Description |
|---|---|---|
| id* | integer | Document ID from the procurement record (`get_procurement`). |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"minimum": 1,
"description": "Document ID from the procurement record (`get_procurement`)."
}
},
"additionalProperties": false
}Changes the secret that signs the webhooks (requires the token edm_…). The previous secret still signs for 24 h, so you can change it without a failure window. During the 24 h, the `webhook-signature` header has two `v1,…` parts: one with the new secret and one with the previous. The receiver only needs to accept any part that matches.
No arguments.
{
"type": "object",
"properties": {}
}Saves the procurement, up to 200 per owner. Saving does not create a watch or a notification. The client sends only the ID; the snapshot comes from the collection.
| Argument | Type | Description |
|---|---|---|
| id* | number | Procurement identifier in the collection. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Procurement identifier in the collection."
}
}
}Searches the company registry by CNPJ or company name; requires an account or a guest.
| Argument | Type | Description |
|---|---|---|
| q* | string | Full CNPJ or a name of 3 to 120 characters. |
{
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Full CNPJ or a name of 3 to 120 characters."
}
}
}Searches public procurements by term. Free. Returns the object, the agency, the state (UF), the modality and the procurement id.
| Argument | Type | Description |
|---|---|---|
| q* | string | Search term, at least 3 letters. |
| uf | string | State (UF) abbreviation (optional). |
| limite | number | 1 to 50 (default 20). |
| abertas | string | '1' for only procurements with an open proposal period. |
| filtros | string | JSON up to 2048 characters: excluir and municipios (up to 10 expressions of 3 to 80 characters; municipalities by exact name or IBGE code), orgao_cnpj (14 digits), modalidades (up to 10 codes from 1 to 19), valor_min and valor_max (reais from 0 to 1e15). Example: {"excluir":["usado"],"modalidades":[6]}. |
{
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search term, at least 3 letters."
},
"uf": {
"type": "string",
"description": "State (UF) abbreviation (optional)."
},
"limite": {
"type": "number",
"description": "1 to 50 (default 20)."
},
"abertas": {
"enum": [
"1"
],
"type": "string",
"description": "'1' for only procurements with an open proposal period."
},
"filtros": {
"type": "string",
"description": "JSON up to 2048 characters: excluir and municipios (up to 10 expressions of 3 to 80 characters; municipalities by exact name or IBGE code), orgao_cnpj (14 digits), modalidades (up to 10 codes from 1 to 19), valor_min and valor_max (reais from 0 to 1e15). Example: {\"excluir\":[\"usado\"],\"modalidades\":[6]}."
}
}
}Selects a registered company; it does not run an analysis. Each person's choice is kept in the account. Repeating the current choice writes nothing.
| Argument | Type | Description |
|---|---|---|
| cnpj* | string | Full CNPJ, 14 digits with a valid check digit. |
{
"type": "object",
"required": [
"cnpj"
],
"properties": {
"cnpj": {
"type": "string",
"description": "Full CNPJ, 14 digits with a valid check digit."
}
}
}Edits the interest, or pauses or turns on again an alert of the owner. The filters replace the whole filter.
| Argument | Type | Description |
|---|---|---|
| id* | string | Alert identifier. |
| uf | string | State (UF) abbreviation; empty means all. |
| nome | string | Alert name, up to 100 characters. |
| ativo | boolean | `false` pauses without deleting; `true` turns it on again. |
| canal | string | New channel: `pull`, `webhook` or `email`. Email requires a session and uses explicit recipients or the account email. |
| termos | string | Object terms; a space requires all words, | accepts alternatives. |
| destino | string | New https URL on port 443 (webhook). Ignored for pull and email. |
| filtros | object | Extra filter: modalities, municipalities, exclusions, values, open proposals and CNAEs. PATCH replaces the whole filter; {} clears it. |
| destinatarios |
Watches a procurement (requires the token edm_…): takes a snapshot now and records the events of correction, new document, suspension, postponed deadline and value, plus deadline notices. The checks are periodic; check the date of the last check in the watch. The notices `prazo_impugnacao` (on the day) and `prazo_proposta` (24 h before) go out once each.
| Argument | Type | Description |
|---|---|---|
| canal | string | pull, webhook or email (default pull). |
| destino | string | HTTPS webhook URL. Ignored for pull and email. |
| compra_id* | number | Procurement id (from the search). |
{
"type": "object",
"required": [
"compra_id"
],
"properties": {
"canal": {
"enum": [
"pull",
"webhook",
"email"
],
"type": "string",
"default": "pull",
"description": "pull, webhook or email (default pull)."
},
"destino": {
"type": "string",
"description": "HTTPS webhook URL. Ignored for pull and email."
},
"compra_id": {
"type": "number",
"description": "Procurement id (from the search)."
}
}
}The CNAEs (activity codes) that usually win procurements like this one, most likely first, with the official description and, per CNAE, how many items and how much of the estimated value pointed to it. Free. Each item of the procurement (up to 99, the ones of highest value) points to the 3 most likely CNAEs, by a classifier trained on the activity of the companies that won similar items in the awarded PNCP results; the procurement adds the points (3, 2 and 1 by position). Without items in the collection, the object of the procurement counts, and the top 5 come without `itens` or `valor_estimado`. In the measurement of 27/09/2026, for 87% of the items one of the first 3 was a CNAE of the company that won. To receive the new procurements of these CNAEs, create an alert (`POST /api/alertas`).
| Argument | Type | Description |
|---|---|---|
| id* | number | Procurement id (from the search). |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"description": "Procurement id (from the search)."
}
}
}| quantidade |
| number |
| How much you will sell: the value for the range of that quantity (optional). |
{
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Item description, at least 3 letters."
},
"uf": {
"type": "string",
"description": "State (UF) of the agency (optional)."
},
"meses": {
"type": "number",
"default": 12,
"description": "Award window in months, 1 to 36 (default 12)."
},
"catmat": {
"type": "string",
"description": "Item code in the government catalog (optional)."
},
"limite": {
"type": "number",
"default": 50,
"description": "1 to 100 (default 50)."
},
"produto": {
"type": "string",
"description": "Catalog product, as in `grupos` (optional)."
},
"unidade": {
"type": "string",
"description": "Unit, as in `grupos`: 500 FL, 1 UN (optional)."
},
"quantidade": {
"type": "number",
"description": "How much you will sell: the value for the range of that quantity (optional)."
}
}
}| organizacao_id | string | null | Organization from `GET /api/me/empresas`. Membership and MFA are checked. Null removes the label. This does not share alert ownership. |
{
"type": "object",
"required": [
"termos"
],
"properties": {
"uf": {
"type": "string",
"description": "State (UF) abbreviation (optional)."
},
"nome": {
"type": "string",
"maxLength": 100,
"description": "Alert name, up to 100 characters."
},
"canal": {
"enum": [
"pull",
"webhook",
"email"
],
"type": "string",
"default": "pull",
"description": "pull, webhook or email (default pull)."
},
"termos": {
"type": "string",
"description": "Object words, 3 to 200 letters; a space means all, | means any (uniforme|fardamento)."
},
"destino": {
"type": "string",
"description": "HTTPS webhook URL. Ignored for pull and email."
},
"filtros": {
"type": "object",
"properties": {
"cnaes": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{4}-?\\d/?\\d{2}$"
},
"maxItems": 8
},
"abertas": {
"type": "boolean"
},
"excluir": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10
},
"valor_max": {
"type": "number",
"minimum": 0
},
"valor_min": {
"type": "number",
"minimum": 0
},
"municipios": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10
},
"modalidades": {
"type": "array",
"items": {
"type": "integer",
"maximum": 19,
"minimum": 1
},
"maxItems": 10
}
},
"description": "Extra filter: modalities, municipalities, exclusions, values, open proposals and CNAEs. PATCH replaces the whole filter; {} clears it.",
"additionalProperties": false
},
"destinatarios": {
"type": "object",
"properties": {
"cc": {
"type": "array",
"items": {
"type": "string",
"format": "email",
"maxLength": 254
},
"maxItems": 10
},
"bcc": {
"type": "array",
"items": {
"type": "string",
"format": "email",
"maxLength": 254
},
"maxItems": 10
},
"para": {
"type": "array",
"items": {
"type": "string",
"format": "email",
"maxLength": 254
},
"maxItems": 10
}
},
"description": "Email recipients: `para`, `cc` and `bcc` arrays. Up to 10 distinct addresses in total. An empty `para` list uses the account email. PATCH replaces all three lists. BCC is hidden from other recipients.",
"additionalProperties": false
},
"organizacao_id": {
"type": [
"string",
"null"
],
"description": "Organization from `GET /api/me/empresas`. Membership and MFA are checked. Null removes the label. This does not share alert ownership."
}
}
}| destinatarios |
| object |
| Email recipients: `para`, `cc` and `bcc` arrays. Up to 10 distinct addresses in total. An empty `para` list uses the account email. PATCH replaces all three lists. BCC is hidden from other recipients. |
| organizacao_id | string | null | Organization from `GET /api/me/empresas`. Membership and MFA are checked. Null removes the label. This does not share alert ownership. |
{
"type": "object",
"required": [
"cnpj"
],
"properties": {
"uf": {
"type": "string",
"description": "State (UF) abbreviation (optional)."
},
"cnpj": {
"type": "string",
"description": "CNPJ with 14 digits, with or without punctuation."
},
"nome": {
"type": "string",
"maxLength": 100,
"description": "Alert name, up to 100 characters."
},
"canal": {
"enum": [
"pull",
"webhook",
"email"
],
"type": "string",
"default": "pull",
"description": "pull, webhook or email (default pull)."
},
"destino": {
"type": "string",
"description": "HTTPS webhook URL. Ignored for pull and email."
},
"filtros": {
"type": "object",
"properties": {
"cnaes": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{4}-?\\d/?\\d{2}$"
},
"maxItems": 8
},
"abertas": {
"type": "boolean"
},
"excluir": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10
},
"valor_max": {
"type": "number",
"minimum": 0
},
"valor_min": {
"type": "number",
"minimum": 0
},
"municipios": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10
},
"modalidades": {
"type": "array",
"items": {
"type": "integer",
"maximum": 19,
"minimum": 1
},
"maxItems": 10
}
},
"description": "Extra filter: modalities, municipalities, exclusions, values, open proposals and CNAEs. PATCH replaces the whole filter; {} clears it.",
"additionalProperties": false
},
"max_familias": {
"type": "number",
"default": 8,
"description": "1 to 8 (default 8): how many families become alerts."
},
"destinatarios": {
"type": "object",
"properties": {
"cc": {
"type": "array",
"items": {
"type": "string",
"format": "email",
"maxLength": 254
},
"maxItems": 10
},
"bcc": {
"type": "array",
"items": {
"type": "string",
"format": "email",
"maxLength": 254
},
"maxItems": 10
},
"para": {
"type": "array",
"items": {
"type": "string",
"format": "email",
"maxLength": 254
},
"maxItems": 10
}
},
"description": "Email recipients: `para`, `cc` and `bcc` arrays. Up to 10 distinct addresses in total. An empty `para` list uses the account email. PATCH replaces all three lists. BCC is hidden from other recipients.",
"additionalProperties": false
},
"organizacao_id": {
"type": [
"string",
"null"
],
"description": "Organization from `GET /api/me/empresas`. Membership and MFA are checked. Null removes the label. This does not share alert ownership."
}
}
}{
"type": "object",
"required": [
"id"
],
"properties": {
"v": {
"type": "string",
"description": "SHA-256 of the text."
},
"id": {
"type": "number",
"description": "Document ID."
},
"kind": {
"type": "string",
"description": "identity, item, requirement, attestation, deadline or obligation."
},
"after": {
"type": "number",
"description": "Previous `next` cursor."
},
"limit": {
"type": "number",
"description": "1 to 30 facts."
},
"agent_pass": {
"type": "string",
"description": "Individual agent credential, required together with X-Editalmd-Avaliacao."
},
"acesso_codigo": {
"type": "string",
"description": "Authorizes this document for whoever holds it. A public receipt grants no access."
},
"avaliacao_codigo": {
"type": "string",
"description": "evaluation.access_code of the sponsored premium, only for this document and agent, with an expiry."
}
}
}| 1 to 30; default 30. |
{
"type": "object",
"required": [
"cnpj",
"id",
"v"
],
"properties": {
"v": {
"type": "string",
"description": "SHA-256 of the open Markdown, 64 lowercase hex characters."
},
"id": {
"type": "integer",
"description": "Document ID."
},
"cnpj": {
"type": "string",
"description": "CNPJ with 14 characters (digits or alphanumeric) linked to the owner."
},
"kind": {
"type": "string",
"description": "requirement, attestation or obligation."
},
"after": {
"type": "integer",
"description": "Last ID received; default 0."
},
"grupo": {
"type": "string",
"description": "pendencias, atendidos or nao_aplicavel."
},
"limit": {
"type": "integer",
"maximum": 30,
"minimum": 1,
"description": "1 to 30; default 30."
}
}
}| object |
| Email recipients: `para`, `cc` and `bcc` arrays. Up to 10 distinct addresses in total. An empty `para` list uses the account email. PATCH replaces all three lists. BCC is hidden from other recipients. |
| organizacao_id | string | null | Organization from `GET /api/me/empresas`. Membership and MFA are checked. Null removes the label. This does not share alert ownership. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Alert identifier."
},
"uf": {
"type": "string",
"description": "State (UF) abbreviation; empty means all."
},
"nome": {
"type": "string",
"maxLength": 100,
"description": "Alert name, up to 100 characters."
},
"ativo": {
"type": "boolean",
"description": "`false` pauses without deleting; `true` turns it on again."
},
"canal": {
"enum": [
"pull",
"webhook",
"email"
],
"type": "string",
"description": "New channel: `pull`, `webhook` or `email`. Email requires a session and uses explicit recipients or the account email."
},
"termos": {
"type": "string",
"description": "Object terms; a space requires all words, | accepts alternatives."
},
"destino": {
"type": "string",
"description": "New https URL on port 443 (webhook). Ignored for pull and email."
},
"filtros": {
"type": "object",
"properties": {
"cnaes": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{4}-?\\d/?\\d{2}$"
},
"maxItems": 8
},
"abertas": {
"type": "boolean"
},
"excluir": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10
},
"valor_max": {
"type": "number",
"minimum": 0
},
"valor_min": {
"type": "number",
"minimum": 0
},
"municipios": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10
},
"modalidades": {
"type": "array",
"items": {
"type": "integer",
"maximum": 19,
"minimum": 1
},
"maxItems": 10
}
},
"description": "Extra filter: modalities, municipalities, exclusions, values, open proposals and CNAEs. PATCH replaces the whole filter; {} clears it.",
"additionalProperties": false
},
"destinatarios": {
"type": "object",
"properties": {
"cc": {
"type": "array",
"items": {
"type": "string",
"format": "email",
"maxLength": 254
},
"maxItems": 10
},
"bcc": {
"type": "array",
"items": {
"type": "string",
"format": "email",
"maxLength": 254
},
"maxItems": 10
},
"para": {
"type": "array",
"items": {
"type": "string",
"format": "email",
"maxLength": 254
},
"maxItems": 10
}
},
"description": "Email recipients: `para`, `cc` and `bcc` arrays. Up to 10 distinct addresses in total. An empty `para` list uses the account email. PATCH replaces all three lists. BCC is hidden from other recipients.",
"additionalProperties": false
},
"organizacao_id": {
"type": [
"string",
"null"
],
"description": "Organization from `GET /api/me/empresas`. Membership and MFA are checked. Null removes the label. This does not share alert ownership."
}
}
}