78trust / 100

Article Batch

by Invoket in News & content

x402 APIPassing, checked 1 h ago

Before your agent signs off a contract review or a due-diligence memo: check that up to 50 legal citations are still in force at a given date in one call — consolidated text, status and validity dates per reference, from the official LEGI (French law) and EUR-Lex (EU law) datasets. Covers 12 major French codes and statutes and key EU acts (GDPR, DSA, AI Act, MiCA and more).

POST https://api.invoket.com/legal/article/batch

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
227 ms typical, 244 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.invoket.com/legal/article/batch" \
  -H "content-type: application/json" \
  -d '{"refs":[{"article":"1240","code":"code-civil","date":"2024-01-01"},{"article":"17","celex":"32016R0679"}]}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.invoket.com%2Flegal%2Farticle%2Fbatch
const res = await pay("https://api.invoket.com/legal/article/batch", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"refs":[{"article":"1240","code":"code-civil","date":"2024-01-01"},{"article":"17","celex":"32016R0679"}]}),
});
console.log(await res.json());

Example input

{
  "refs": [
    {
      "article": "1240",
      "code": "code-civil",
      "date": "2024-01-01"
    },
    {
      "article": "17",
      "celex": "32016R0679"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402235 ms$0.015
5 h agoPassed402126 ms$0.015
9 h agoPassed402234 ms$0.015
12 h agoPassed402244 ms$0.015
16 h agoPassed402220 ms$0.015
20 h agoPassed402227 ms$0.015
23 h agoPassed402322 ms$0.015
28 h agoPassed402173 ms$0.015