Consultando dados públicos…
Explore as operações e os formatos de dados do contrato publicado.
Abrir OpenAPI JSON/api/v1/saudeStatus da API
/api/v1/extrairExtrai os 8 campos do pedido
[
{
"name": "x-id-pedido",
"in": "header",
"required": false,
"description": "Opcional. Se o mesmo id chegar de novo em 24 h, a resposta anterior volta sem chamar o modelo (útil quando o n8n reenvia).",
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{1,100}$"
}
}
]{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"texto"
],
"properties": {
"texto": {
"type": "string",
"minLength": 10,
"maxLength": 4000
}
}
},
"example": {
"texto": "Preciso de 10 caixas de papel A4 para o Financeiro, entrega até 15/12/2026, fornecedor Papelaria Central."
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"properties": {
"dados": {
"type": "object",
"additionalProperties": false,
"required": [
"solicitante_area",
"item",
"quantidade",
"unidade",
"prazo_entrega",
"valor_unitario",
"moeda",
"fornecedor"
],
"properties": {
"solicitante_area": {
"type": [
"string",
"null"
]
},
"item": {
"type": "string"
},
"quantidade": {
"type": "number",
"exclusiveMinimum": 0
},
"unidade": {
"type": [
"string",
"null"
],
"enum": [
"un",
"kg",
"m",
"l",
"cx",
null
]
},
"prazo_entrega": {
"type": [
"string",
"null"
],
"format": "date"
},
"valor_unitario": {
"type": [
"number",
"null"
],
"minimum": 0
},
"moeda": {
"type": [
"string",
"null"
],
"enum": [
"BRL",
"USD",
"EUR",
null
]
},
"fornecedor": {
"type": [
"string",
"null"
]
}
}
},
"faltantes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"solicitante_area",
"prazo_entrega",
"valor_unitario",
"fornecedor"
]
}
},
"modelo": {
"type": "string"
},
"custo_usd": {
"type": "number"
},
"latencia_modelo_ms": {
"type": "integer"
},
"tokens_entrada": {
"type": "integer"
},
"tokens_saida": {
"type": "integer"
},
"chamadas_ao_modelo": {
"type": "integer"
}
}
},
"example": {
"dados": {
"solicitante_area": "Financeiro",
"item": "papel A4",
"quantidade": 10,
"unidade": "cx",
"prazo_entrega": "2026-12-15",
"valor_unitario": null,
"moeda": null,
"fornecedor": "Papelaria Central"
},
"faltantes": [
"valor_unitario"
],
"modelo": "claude-haiku-5-5",
"custo_usd": 0.00015,
"latencia_modelo_ms": 1800,
"tokens_entrada": 700,
"tokens_saida": 160,
"chamadas_ao_modelo": 1
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}/api/v1/email-pendenciasEscreve o e-mail pedindo só os campos que faltam
[
{
"name": "x-id-pedido",
"in": "header",
"required": false,
"description": "Opcional. Se o mesmo id chegar de novo em 24 h, a resposta anterior volta sem chamar o modelo (útil quando o n8n reenvia).",
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{1,100}$"
}
}
]{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"dados"
],
"properties": {
"dados": {
"type": "object",
"additionalProperties": false,
"required": [
"solicitante_area",
"item",
"quantidade",
"unidade",
"prazo_entrega",
"valor_unitario",
"moeda",
"fornecedor"
],
"properties": {
"solicitante_area": {
"type": [
"string",
"null"
]
},
"item": {
"type": "string"
},
"quantidade": {
"type": "number",
"exclusiveMinimum": 0
},
"unidade": {
"type": [
"string",
"null"
],
"enum": [
"un",
"kg",
"m",
"l",
"cx",
null
]
},
"prazo_entrega": {
"type": [
"string",
"null"
],
"format": "date"
},
"valor_unitario": {
"type": [
"number",
"null"
],
"minimum": 0
},
"moeda": {
"type": [
"string",
"null"
],
"enum": [
"BRL",
"USD",
"EUR",
null
]
},
"fornecedor": {
"type": [
"string",
"null"
]
}
}
}
}
},
"example": {
"dados": {
"solicitante_area": "Financeiro",
"item": "papel A4",
"quantidade": 10,
"unidade": "cx",
"prazo_entrega": "2026-12-15",
"valor_unitario": null,
"moeda": null,
"fornecedor": "Papelaria Central"
}
}
}
}
}/api/v1/processarExtrai e, se faltar algo, já escreve o e-mail (rota para o n8n)
[
{
"name": "x-id-pedido",
"in": "header",
"required": false,
"description": "Opcional. Se o mesmo id chegar de novo em 24 h, a resposta anterior volta sem chamar o modelo (útil quando o n8n reenvia).",
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{1,100}$"
}
}
]{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"texto"
],
"properties": {
"texto": {
"type": "string",
"minLength": 10,
"maxLength": 4000
}
}
},
"example": {
"texto": "Preciso de 10 caixas de papel A4 para o Financeiro, entrega até 15/12/2026, fornecedor Papelaria Central."
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"completo",
"pendente"
]
},
"dados": {
"type": "object",
"additionalProperties": false,
"required": [
"solicitante_area",
"item",
"quantidade",
"unidade",
"prazo_entrega",
"valor_unitario",
"moeda",
"fornecedor"
],
"properties": {
"solicitante_area": {
"type": [
"string",
"null"
]
},
"item": {
"type": "string"
},
"quantidade": {
"type": "number",
"exclusiveMinimum": 0
},
"unidade": {
"type": [
"string",
"null"
],
"enum": [
"un",
"kg",
"m",
"l",
"cx",
null
]
},
"prazo_entrega": {
"type": [
"string",
"null"
],
"format": "date"
},
"valor_unitario": {
"type": [
"number",
"null"
],
"minimum": 0
},
"moeda": {
"type": [
"string",
"null"
],
"enum": [
"BRL",
"USD",
"EUR",
null
]
},
"fornecedor": {
"type": [
"string",
"null"
]
}
}
},
"faltantes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"solicitante_area",
"prazo_entrega",
"valor_unitario",
"fornecedor"
]
}
},
"email": {
"type": [
"object",
"null"
],
"properties": {
"assunto": {
"type": "string"
},
"corpo": {
"type": "string"
},
"campos_citados": {
"type": "array",
"items": {
"type": "string",
"enum": [
"solicitante_area",
"prazo_entrega",
"valor_unitario",
"fornecedor"
]
}
}
}
},
"modelo": {
"type": "string"
},
"custo_usd": {
"type": "number"
},
"latencia_modelo_ms": {
"type": "integer"
},
"tokens_entrada": {
"type": "integer"
},
"tokens_saida": {
"type": "integer"
},
"chamadas_ao_modelo": {
"type": "integer"
}
}
}
}
}/api/v1/usoTotais de chamadas, custo e latência (sem conteúdo de pedido)
{
"application/json": {
"schema": {
"type": "object",
"properties": {
"faltantes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"solicitante_area",
"prazo_entrega",
"valor_unitario",
"fornecedor"
]
}
},
"email": {
"type": [
"object",
"null"
],
"properties": {
"assunto": {
"type": "string"
},
"corpo": {
"type": "string"
},
"campos_citados": {
"type": "array",
"items": {
"type": "string",
"enum": [
"solicitante_area",
"prazo_entrega",
"valor_unitario",
"fornecedor"
]
}
}
}
},
"modelo": {
"type": "string"
},
"custo_usd": {
"type": "number"
},
"latencia_modelo_ms": {
"type": "integer"
},
"tokens_entrada": {
"type": "integer"
},
"tokens_saida": {
"type": "integer"
},
"chamadas_ao_modelo": {
"type": "integer"
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}{
"application/json": {
"schema": {
"type": "object",
"required": [
"erro"
],
"properties": {
"erro": {
"type": "object",
"required": [
"codigo",
"mensagem"
],
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
},
"campo": {
"type": "string"
}
}
}
}
}
}
}