Ga naar hoofdinhoud

Ontwikkelaars

REST-API-documentatie

Een JSON-via-HTTPS-API voor de juridische AI van Attorly. Hij voert dezelfde bewerkingen uit als de MCP-server, met dezelfde sleutels, bereiken, limieten en facturering.

Snelstart

Upload een contract en analyseer het in vier stappen.

  1. 1. Sleutel maken

    Maak een sleutel onder Instellingen › Ontwikkelaars en kies REST API. Dezelfde sleutel werkt voor de MCP-server. Bewaar hem in een omgevingsvariabele:

    bash
    export ATTORLY_API_KEY=lbmcp_your_api_key
  2. 2. Een document uploaden

    Stuur het bestand als multipart/form-data. data.id in het antwoord is de id van het document. analyze=false slaat het op zonder de analyse op de achtergrond te starten, omdat de volgende stap er een uitvoert.

    bash
    curl -X POST https://attorly.ai/api/v1/documents \
      -H "Authorization: Bearer $ATTORLY_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -F "[email protected]" \
      -F "type=NDA" \
      -F "analyze=false"
  3. 3. Analyseren

    Prefer: wait=30 wacht tot 30 seconden op het resultaat. Een voltooide analyse komt terug als 200 met het resultaat in data. Duurt het langer, dan krijg je 202 Accepted met een Location-header die naar de bewerking wijst.

    bash
    curl -i -X POST https://attorly.ai/api/v1/documents/$DOCUMENT_ID/analyses \
      -H "Authorization: Bearer $ATTORLY_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Prefer: wait=30" \
      -H "Content-Type: application/json" \
      -d '{ "mode": "full", "options": { "partyRole": "BUYER" } }'
  4. 4. Het resultaat ophalen

    Vraag de bewerking op tot de status succeeded of failed is. De analyse staat in result. Retry-After geeft aan hoeveel seconden je tussen twee opvragingen wacht.

    bash
    curl https://attorly.ai/api/v1/operations/$OPERATION_ID \
      -H "Authorization: Bearer $ATTORLY_API_KEY"

Authenticatie

Stuur een sleutel of token in de Authorization-header als Bearer-token. Sleutels uit Instellingen › Ontwikkelaars beginnen met lbmcp_ en werken op Pro en Enterprise, voor de REST API en de MCP-server. Organisatiesleutels op Enterprise beginnen met atly_ (atly_rk_ voor beperkte sleutels, atly_test_ voor de testmodus); oudere lb_-sleutels blijven werken. Apps die namens een persoon handelen, gebruiken OAuth.

http
Authorization: Bearer atly_live_…   # or lbmcp_…, atly_test_…, an OAuth access token

Bereiken (scopes)

Elk endpoint heeft de rechten nodig die ernaast staan. Een sleutel zonder die rechten krijgt 403 insufficient_scope, en requiredScopes in de fout noemt alle rechten die de aanroep nodig heeft. API-sleutels van de organisatie en OAuth gebruiken deze namen:

BereikBereik van organisatie-API-sleutel
DOCUMENTS_READdocuments:read
DOCUMENTS_WRITEdocuments:write
DOCUMENTS_DELETEdocuments:delete
DOCUMENTS_ANALYZEanalysis:create
CLAUSES_READclauses:read
RESEARCH_READresearch:read
REDLINES_GENERATEredlines:write
NEGOTIATIONS_READnegotiations:read
WORKFLOWS_EXECUTEworkflows:execute
DUE_DILIGENCE_FULLdue-diligence:write
TEMPLATES_READtemplates:read
TEMPLATES_DRAFTdrafts:write
CASES_READcases:read
CASES_WRITEcases:write

Fouten

Elke fout heeft dezelfde vorm: een vaste code om op te vertakken, een bericht voor mensen en een requestId voor de support.

http
HTTP/1.1 403 Forbidden
Content-Type: application/json
Request-Id: req_7Hq2LmN4pX9sT1vB3cD5eF6g
Attorly-Version: 2026-12-01

{
  "error": {
    "type": "permission_error",
    "code": "insufficient_scope",
    "message": "Insufficient permissions. Missing scope: redlines:write.",
    "requiredScopes": ["redlines:write"],
    "docUrl": "https://attorly.ai/docs/api/errors#insufficient_scope",
    "requestId": "req_7Hq2LmN4pX9sT1vB3cD5eF6g"
  }
}

Elke code wordt uitgelegd, met wat je eraan doet, op de pagina met foutcodes

Versies

De API heeft datumversies. Stuur Attorly-Version om de versie voor één verzoek te kiezen; zonder die header geldt de versie waarmee de sleutel is aangemaakt (sleutels van vóór het versiebeheer gebruiken 2026-10-01). Elk antwoord vermeldt welke versie antwoordde. Wijzigingen die integraties breken komen alleen in een nieuwe versie, en de changelog somt ze op.

http
curl https://attorly.ai/api/v1/documents \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Attorly-Version: 2026-12-01"

HTTP/1.1 200 OK
Attorly-Version: 2026-12-01
Request-Id: req_…

Idempotentie

Stuur een Idempotency-Key-header, bijvoorbeeld een UUID, mee met POST-, PATCH- en DELETE-verzoeken. Een nieuwe poging met dezelfde sleutel en hetzelfde verzoek krijgt het eerste antwoord terug met Idempotent-Replayed: true; het werk wordt niet opnieuw uitgevoerd of gefactureerd. Een sleutel die voor een ander verzoek wordt hergebruikt, krijgt 422 idempotency_key_reused, en een die nog loopt krijgt 409 of, bij een langlopende aanroep, dezelfde operatie. Serverfouten worden niet opgeslagen, dus een nieuwe poging wordt opnieuw uitgevoerd. Sleutels worden 24 uur bewaard.

bash
curl -X POST https://attorly.ai/api/v1/redlines \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "documentId": "doc_123", "partyRole": "BUYER" }'

# IDEMPOTENCY_KEY=$(uuidgen) once per logical request; a retry with the same key and body:
HTTP/1.1 202 Accepted
Idempotent-Replayed: true

Verzoeken die lang duren

Vanaf versie 2026-11-01 antwoorden volledige analyses, redlines, onderhandelingsplannen, workflows, due-diligencerapporten en AI-concepten direct met 202 Accepted en een operatie. Stuur Prefer: wait=30 om eerst tot 30 seconden (maximaal 60) op het resultaat te wachten, of Prefer: respond-async om bij elke schrijfactie 202 te vragen. Vraag de Location op tot de status succeeded of failed is, of abonneer je op operation.succeeded. Resultaten worden 24 uur bewaard. Per organisatie lopen maximaal 5 langlopende AI-operaties tegelijk; meer krijgen 429 concurrency_limit_exceeded.

http
HTTP/1.1 202 Accepted
Location: /api/v1/operations/op_abc123
Retry-After: 2

{ "data": { "id": "op_abc123", "object": "operation", "status": "running", "resultUrl": "/api/v1/operations/op_abc123", … } }

Paginering

Lijsten geven { object: "list", data, hasMore, nextCursor } terug en nemen limit (1 tot 100, standaard 20) en cursor. Stuur nextCursor als cursor voor de volgende pagina. Op de laatste pagina is nextCursor null. Een cursor blijft geldig, ook als er nieuwe items bijkomen.

http
GET /api/v1/documents?limit=2

{
  "object": "list",
  "data": [ { "id": "doc_2", … }, { "id": "doc_1", … } ],
  "hasMore": true,
  "nextCursor": "eyJ0IjoiMjAyNi0xMC0xMVQxMDowMDowMC4wMDBaIiwiaWQiOiJkb2NfMSJ9"
}

GET /api/v1/documents?limit=2&cursor=eyJ0IjoiMjAy…

Limieten

Een verzoek telt mee in meerdere vensters: de uurlimiet van de sleutel, 300 per minuut per persoon, 600 per minuut per organisatie, een minuutlimiet per sleutel voor lezen, schrijven en AI-aanroepen, en de eigen limiet van elke operatie. REST en MCP delen dezelfde tellers. De headers RateLimit-Policy en RateLimit tonen alle vensters; X-RateLimit-* toont het venster dat het dichtst bij vol is. Boven een limiet krijg je 429 met Retry-After.

http
RateLimit-Policy: "key-hour";q=1000;w=3600, "user-minute";q=300;w=60, "org-minute";q=600;w=60, "ai-minute";q=30;w=60, "tool";q=10;w=60
RateLimit: "key-hour";r=998;t=3412, "user-minute";r=297;t=41, "org-minute";r=590;t=41, "ai-minute";r=29;t=41, "tool";r=9;t=41
X-RateLimit-Limit: 10
X-RateLimit-Remaining: 9
X-RateLimit-Reset: 1791720000

Webhooks

Maak een endpoint met POST /api/v1/webhook-endpoints om een bericht te krijgen als werk klaar is, in plaats van te pollen. Attorly stuurt een POST met een JSON-gebeurtenis, ondertekend volgens Standard Webhooks met het whsec_-geheim van het endpoint. Controleer de handtekening voordat je de inhoud vertrouwt, antwoord binnen 15 seconden met 2xx en ontdubbel op webhook-id: mislukte bezorgingen worden 72 uur opnieuw geprobeerd. Je kunt het geheim vernieuwen, een testgebeurtenis sturen en elke bezorging bekijken.

typescript
import crypto from 'node:crypto';

// Standard Webhooks: verify before you parse. secret is the endpoint's whsec_… value.
export function verifyAttorlyWebhook(rawBody: string, headers: Headers, secret: string): unknown {
  const id = headers.get('webhook-id');
  const timestamp = headers.get('webhook-timestamp');
  const signatures = headers.get('webhook-signature') ?? '';
  if (!id || !timestamp) throw new Error('Missing webhook headers');
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) throw new Error('Timestamp too old');

  const key = Buffer.from(secret.replace(/^whsec_/, ''), 'base64');
  const expected = crypto.createHmac('sha256', key).update(`${id}.${timestamp}.${rawBody}`).digest();
  const valid = signatures.split(' ').some((entry) => {
    const [version, value] = entry.split(',');
    const given = Buffer.from(value ?? '', 'base64');
    return version === 'v1' && given.length === expected.length && crypto.timingSafeEqual(given, expected);
  });
  if (!valid) throw new Error('Invalid signature');
  return JSON.parse(rawBody); // Deduplicate on webhook-id: a delivery can arrive more than once.
}

Testmodus

Testsleutels (atly_test_…) bereiken elk endpoint, maar werken met aparte testgegevens en geven vaste voorbeeldresultaten: er draait geen AI en er wordt geen tegoed gebruikt. Een testsleutel ziet nooit echte gegevens. Zet een magische waarde zoals __fail_credits__, __fail_consent__ of __slow__ in een willekeurig tekstveld om die fout of vertraging te krijgen. DELETE /api/v1/test-data wist alles wat testsleutels hebben aangemaakt.

bash
curl -X POST https://attorly.ai/api/v1/analyses \
  -H "Authorization: Bearer atly_test_…" \
  -H "Content-Type: application/json" \
  -d '{ "mode": "quick", "content": "__fail_credits__" }'

HTTP/1.1 402 Payment Required
{ "error": { "code": "insufficient_credits", "message": "Test mode: the AI credits are used up …" } }

OAuth

Apps die namens een Attorly-gebruiker handelen, loggen in met OAuth 2.1: discovery via /.well-known/oauth-authorization-server, dynamische clientregistratie en de authorization-codeflow met PKCE (S256). Vraag resource=https://attorly.ai/api/v1 om een token voor de REST API te krijgen; een token voor de MCP-server wordt hier geweigerd. Voeg offline_access toe voor een refresh-token. De persoon kiest de organisatie en kan de rechten op het toestemmingsscherm beperken.

http
GET https://attorly.ai/.well-known/oauth-protected-resource/api/v1
GET https://attorly.ai/.well-known/oauth-authorization-server

GET https://attorly.ai/api/oauth/authorize?response_type=code&client_id=…&redirect_uri=…
    &code_challenge=…&code_challenge_method=S256&scope=documents:read%20offline_access
    &resource=https://attorly.ai/api/v1&state=…

POST https://attorly.ai/api/oauth/token
grant_type=authorization_code&code=…&code_verifier=…&redirect_uri=…&client_id=…&resource=https://attorly.ai/api/v1

Facturering

Operaties die AI gebruiken, gaan af van hetzelfde AI-tegoed als de Attorly-app, uit de portemonnee van de sleuteleigenaar of diens organisatie, of je ze nu via REST of MCP aanroept. Is het tegoed op, dan krijg je 402 insufficient_credits. Aanroepen in de testmodus zijn gratis.

Abonnementen

De API is inbegrepen bij Pro en Enterprise. Als het abonnement van de sleuteleigenaar geen API-toegang meer bevat, of de eigenaar de organisatie heeft verlaten, worden verzoeken geweigerd met 403.

Referentie

Elke bewerking, gegenereerd uit het OpenAPI-document dat de API zelf levert. Paden zijn relatief aan https://attorly.ai. Geslaagde antwoorden verpakken het resultaat in data. Veldbeschrijvingen zijn in het Engels.

Documenten

GET/api/v1/documentslistDocuments

De opgeslagen documenten weergeven die de sleutel kan lezen, nieuwste eerst.

Bereik:DOCUMENTS_READ
Queryparameters
VeldTypeBeschrijving
type"EMPLOYMENT_CONTRACT" | "LEASE_AGREEMENT" | "PURCHASE_AGREEMENT" | "NDA" | "TERMS_OF_SERVICE" | "EMAIL" | …Only documents of this kind
status"PENDING" | "PROCESSING" | "ANALYZED" | "FAILED"Only documents in this processing state
querystringOnly documents whose name contains this text
includeArchivedbooleanAlso list archived documents (left out by default)
limitinteger
cursorstringPass the nextCursor of the previous page to get the next one
curl
curl "https://attorly.ai/api/v1/documents?limit=20" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/documentsuploadDocument

Een document uploaden als multipart/form-data, of als JSON met base64-inhoud of platte tekst. Het wordt op de achtergrond geanalyseerd, tenzij analyze false is.

Bereik:DOCUMENTS_WRITEGebruikt AI-tegoedenAccepteert bestandsuploads
Inhoud van het verzoek
VeldTypeBeschrijving
filenameverplichtstringThe file name with its extension, e.g. "nda.pdf"; the extension decides the file type when mimeType is absent
contentBase64stringThe file, base64-encoded
textstringPlain text to store as a .txt document, instead of contentBase64
mimeTypestringThe file's MIME type; checked against its content
namestringDisplay name; defaults to the file name
type"EMPLOYMENT_CONTRACT" | "LEASE_AGREEMENT" | "PURCHASE_AGREEMENT" | "NDA" | "TERMS_OF_SERVICE" | "EMAIL" | …What the document is
urlstring (uri)An https URL Attorly downloads the file from (public hosts only, up to 10 MB), instead of contentBase64 or text
analyzebooleanAnalyse the document in the background after upload, as the app does (uses AI credits). false stores it only
Antwoordgegevens (201)
VeldTypeBeschrijving
idverplichtstring
nameverplichtstring
originalNameverplichtstring
typeverplicht"EMPLOYMENT_CONTRACT" | "LEASE_AGREEMENT" | "PURCHASE_AGREEMENT" | "NDA" | "TERMS_OF_SERVICE" | "EMAIL" | …
sizeverplichtinteger
statusverplicht"PENDING" | "PROCESSING" | "ANALYZED" | "FAILED"PENDING until processing starts; ANALYZED once the analysis is stored
analysisQueuedverplichtbooleantrue when the background analysis was started
createdAtverplichtstringISO 8601 date-time
urlverplichtstringWhere the document opens in Attorly
curl
curl -X POST "https://attorly.ai/api/v1/documents" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "filename": "nda.txt",
  "text": "This Mutual Non-Disclosure Agreement is entered into by…",
  "type": "NDA"
}'
GET/api/v1/documents/searchsearchDocuments

Zoek in de tekst van de documenten die de sleutel mag lezen, op betekenis en op exacte woorden.

Bereik:DOCUMENTS_READ
Queryparameters
VeldTypeBeschrijving
queryverplichtstringWhat to look for, in plain language or exact words
type"EMPLOYMENT_CONTRACT" | "LEASE_AGREEMENT" | "PURCHASE_AGREEMENT" | "NDA" | "TERMS_OF_SERVICE" | "EMAIL" | …Only documents of this kind
limitinteger
cursorstringPass the nextCursor of the previous page to get the next one
curl
curl "https://attorly.ai/api/v1/documents/search?query=limitation+of+liability&limit=10" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
GET/api/v1/documents/{documentId}getDocument

Een document ophalen, met de verwerkingsstatus en de nieuwste analyse.

Bereik:DOCUMENTS_READ
Padparameters
VeldTypeBeschrijving
documentIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstring
nameverplichtstring
originalNameverplichtstring
typeverplicht"EMPLOYMENT_CONTRACT" | "LEASE_AGREEMENT" | "PURCHASE_AGREEMENT" | "NDA" | "TERMS_OF_SERVICE" | "EMAIL" | …
mimeTypeverplichtstring
sizeverplichtinteger
statusverplicht"PENDING" | "PROCESSING" | "ANALYZED" | "FAILED"PENDING until processing starts; ANALYZED once the analysis is stored
archivedverplichtboolean
ownedByYouverplichtboolean
versionNumberverplichtinteger | nullThe document's number among its versions you can read ("version 2" — a new version is saved as a new document, never in place); null when it has no other version. documents_list returns the newest version of each document only.
createdAtverplichtstringISO 8601 date-time
updatedAtverplichtstringISO 8601 date-time
fileAvailableverplichtbooleanfalse when the stored file can no longer be read
governingLawRequiredverplichtbooleantrue when the analysis is held until a governing law is chosen for the document in Attorly
latestAnalysisverplichtobject | null
urlverplichtstringWhere the document opens in Attorly
curl
curl "https://attorly.ai/api/v1/documents/doc_abc123" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
DELETE/api/v1/documents/{documentId}deleteDocument

Vragen om een document dat u bezit te verwijderen. Het document wordt pas verwijderd wanneer u de verwijdering in Attorly goedkeurt.

Bereik:DOCUMENTS_DELETE
Padparameters
VeldTypeBeschrijving
documentIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstring
deletedverplichtbooleantrue only when the document is gone
statusverplicht"deleted" | "declined" | "awaiting_approval"deleted: the owner approved and it is gone; declined: the owner said no in their app, nothing was deleted; awaiting_approval: it is marked and waits for the owner to delete or keep it in Attorly
requestedAtstringWhen the deletion was first asked for (awaiting_approval)
urlstringWhere the owner approves or keeps the document in Attorly (awaiting_approval)
curl
curl -X DELETE "https://attorly.ai/api/v1/documents/doc_abc123" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
POST/api/v1/analysescreateAnalysis

Analyseer een document of meegestuurde tekst. mode is full (opgeslagen document) of quick.

Bereik:DOCUMENTS_ANALYZEDOCUMENTS_READGebruikt AI-tegoeden

Het veld mode in de inhoud kiest een van: mode: full, mode: quick.

Inhoud van het verzoek
VeldTypeBeschrijving
mode"full" | "quick"Runs documents_analyze.
documentIdstring
contentstring
mimeTypestring
optionsobject
curl
curl -X POST "https://attorly.ai/api/v1/analyses" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "mode": "quick",
  "content": "This Agreement is entered into by and between…"
}'
GET/api/v1/documents/{documentId}/analyseslistDocumentAnalyses

De opgeslagen analyses van een document, nieuwste eerst.

Bereik:DOCUMENTS_READ
Padparameters
VeldTypeBeschrijving
documentIdverplichtstring
Queryparameters
VeldTypeBeschrijving
limitinteger
cursorstringPass the nextCursor of the previous page to get the next one
curl
curl "https://attorly.ai/api/v1/documents/doc_abc123/analyses" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/documents/{documentId}/analysescreateDocumentAnalysis

Analyseer een opgeslagen document.

Bereik:DOCUMENTS_ANALYZEDOCUMENTS_READGebruikt AI-tegoeden
Padparameters
VeldTypeBeschrijving
documentIdverplichtstring

Het veld mode in de inhoud kiest een van: mode: full, mode: quick.

Inhoud van het verzoek
VeldTypeBeschrijving
mode"full" | "quick"Runs documents_analyze.
contentstring
mimeTypestring
optionsobject
curl
curl -X POST "https://attorly.ai/api/v1/documents/doc_abc123/analyses" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "mode": "full",
  "options": {
    "partyRole": "BUYER"
  }
}'
GET/api/v1/documents/{documentId}/textgetDocumentText

Haal de platte tekst op uit een opgeslagen PDF- of DOCX-document.

Bereik:DOCUMENTS_READ
Padparameters
VeldTypeBeschrijving
documentIdverplichtstring
Queryparameters
VeldTypeBeschrijving
offsetintegerCharacter offset to start from; pass the nextOffset of the previous call to read on
maxCharactersintegerMost characters to return in this call
Antwoordgegevens (200)
VeldTypeBeschrijving
textverplichtstringThe document text from offset (untrusted content)
documentNameverplichtstring
documentTypeverplichtstring
mimeTypeverplichtstring | null
characterCountverplichtintegerCharacters in the whole document
wordCountverplichtintegerWords in the whole document
offsetverplichtinteger
nextOffsetverplichtinteger | nullPass as offset to read on; null when the text ends here
truncatedverplichtbooleantrue when the text continues past this slice
curl
curl "https://attorly.ai/api/v1/documents/doc_abc123/text" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
GET/api/v1/analyses/{analysisId}getAnalysis

Een opgeslagen analyse ophalen: samenvatting, risico, kernvoorwaarden, clausules en aanbevelingen.

Bereik:DOCUMENTS_READ
Padparameters
VeldTypeBeschrijving
analysisIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstring
documentIdverplichtstring
documentNameverplichtstring
summaryverplichtstring | null
riskLevelverplicht"LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
riskScoreverplichtnumber
keyTermsverplichtarray of any
clausesverplichtarray of any
recommendationsverplichtarray of any
modeverplichtstringSINGLE or CONSENSUS
createdAtverplichtstringISO 8601 date-time
urlverplichtstring
curl
curl "https://attorly.ai/api/v1/analyses/your_analysisId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/comparisonscreateComparison

Vergelijk twee documenten of teksten regel voor regel.

Bereik:DOCUMENTS_READ
Inhoud van het verzoek
VeldTypeBeschrijving
sourceDocumentIdstring
sourceContentstring
targetDocumentIdstring
targetContentstring
Antwoordgegevens (200)
VeldTypeBeschrijving
differencesverplichtarray of object
summaryverplichtobject
curl
curl -X POST "https://attorly.ai/api/v1/comparisons" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "sourceDocumentId": "doc_abc123",
  "targetDocumentId": "doc_def456"
}'

Clausules

GET/api/v1/clausessearchClauses

Doorzoek de clausulebibliotheek.

Bereik:CLAUSES_READ
Queryparameters
VeldTypeBeschrijving
queryverplichtstring
category"INDEMNIFICATION" | "LIABILITY" | "TERMINATION" | "CONFIDENTIALITY" | "INTELLECTUAL_PROPERTY" | "PAYMENT" | …
jurisdictionstring
riskLevel"LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
limitinteger
Antwoordgegevens (200)
VeldTypeBeschrijving
clausesverplichtarray of object
countverplichtinteger
curl
curl "https://attorly.ai/api/v1/clauses?query=limitation+of+liability&limit=5" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/clauses/risk-assessmentscreateClauseRiskAssessment

Beoordeel het risico van een clausule.

Bereik:CLAUSES_READ
Inhoud van het verzoek
VeldTypeBeschrijving
clauseTextverplichtstring
category"INDEMNIFICATION" | "LIABILITY" | "TERMINATION" | "CONFIDENTIALITY" | "INTELLECTUAL_PROPERTY" | "PAYMENT" | …The kind of clause; its risk rules are applied
jurisdictionstringISO 3166-1 alpha-2 country code; defaults to international
contractTypestring
partyRole"BUYER" | "SELLER" | "LANDLORD" | "TENANT" | "EMPLOYER" | "EMPLOYEE" | …
Antwoordgegevens (200)
VeldTypeBeschrijving
clauseTextstring
clauseTypeverplichtstring
jurisdictionverplichtstring
overallRiskScoreverplichtnumber
riskLevelverplicht"LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
riskFactorsverplichtarray of object
recommendationsverplichtarray of string
alternativesarray of object
complianceIssuesarray of object
negotiationTipsarray of string
curl
curl -X POST "https://attorly.ai/api/v1/clauses/risk-assessments" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "clauseText": "The Supplier’s total liability shall not exceed the fees paid in the preceding month.",
  "category": "LIABILITY",
  "partyRole": "BUYER"
}'
POST/api/v1/clauses/market-comparisonscreateClauseMarketComparison

Vergelijk een clausule met marktconforme formuleringen.

Bereik:CLAUSES_READ
Inhoud van het verzoek
VeldTypeBeschrijving
clauseTextverplichtstring
categoryverplicht"INDEMNIFICATION" | "LIABILITY" | "TERMINATION" | "CONFIDENTIALITY" | "INTELLECTUAL_PROPERTY" | "PAYMENT" | …
contractTypestring
jurisdictionstring
Antwoordgegevens (200)
VeldTypeBeschrijving
inputClauseverplichtstring
categoryverplichtstring
marketStandardsverplichtarray of object
comparisonverplichtobject
curl
curl -X POST "https://attorly.ai/api/v1/clauses/market-comparisons" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "clauseText": "Either party may terminate this Agreement on 10 days’ written notice.",
  "category": "TERMINATION"
}'
POST/api/v1/clauses/playbook-checkscreateClausePlaybookCheck

Toets een clausule aan een playbook.

Bereik:CLAUSES_READ
Inhoud van het verzoek
VeldTypeBeschrijving
clauseTextverplichtstring
playbookIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
playbookNameverplichtstring
compliantverplichtboolean
violationsverplichtarray of string
warningsverplichtarray of string
rulesCheckedverplichtinteger
curl
curl -X POST "https://attorly.ai/api/v1/clauses/playbook-checks" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "clauseText": "This Agreement is governed by the laws of England.",
  "playbookId": "pb_abc123"
}'

Onderzoek

POST/api/v1/research/searchessearchResearch

Doorzoek juridische bronnen zoals Lovdata, EUR-Lex en CourtListener.

Bereik:RESEARCH_READGebruikt AI-tegoeden
Inhoud van het verzoek
VeldTypeBeschrijving
queryverplichtstring
jurisdictionsarray of stringISO 3166-1 alpha-2 country code to search under, or "EU"; the first entry is used. Defaults to the key owner's country.
sourcesarray of "lovdata" | "eurlex" | "legislation_uk" | "congress_gov" | "courtlistener" | "finlex"Keep only results from these publishers
dateFromstringKeep only dated results on or after this day
dateTostringKeep only dated results on or before this day
limitinteger
Antwoordgegevens (200)
VeldTypeBeschrijving
queryverplichtstring
jurisdictionverplichtstring
resultsverplichtarray of object
totalCountverplichtintegerResults matching the filters, before limit
sourcesstring
curl
curl -X POST "https://attorly.ai/api/v1/research/searches" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "notice period for terminating a commercial lease",
  "jurisdictions": [
    "NO"
  ],
  "limit": 5
}'
GET/api/v1/research/statutesgetStatute

Zoek een wet op aan de hand van een vindplaats.

Bereik:RESEARCH_READGebruikt AI-tegoeden
Queryparameters
VeldTypeBeschrijving
citationverplichtstring
jurisdictionverplichtstringISO 3166-1 alpha-2 country code, or "EU"
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstring
titleverplichtstring
sourceverplichtstring
jurisdictionstring
citationstring
urlstring
datestring
excerptstring
relevanceScorenumber
attributionstring
asOfstring
consolidatedAsOfstringISO date the stored text is "as amended through", as its publisher states
inForceTostringISO date the act stops/stopped being in force, when the publisher states one
repealedAtstringISO date the act was repealed, when it was
lawDatesReadbooleanTrue when the publisher's dates were read for the act; a missing consolidatedAsOf then means an unamended text
curl
curl "https://attorly.ai/api/v1/research/statutes?citation=LOV-1999-03-26-17&jurisdiction=NO" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"

Wijzigingsvoorstellen

POST/api/v1/redlinescreateRedlines

Genereer wijzigingsvoorstellen voor een document of tekst.

Bereik:REDLINES_GENERATEGebruikt AI-tegoeden
Inhoud van het verzoek
VeldTypeBeschrijving
documentIdstring
contentstring
partyRoleverplicht"BUYER" | "SELLER" | "LANDLORD" | "TENANT" | "EMPLOYER" | "EMPLOYEE"
riskTolerance"CONSERVATIVE" | "MODERATE" | "AGGRESSIVE"
focusAreasarray of string
playbookIdstringRedline against this playbook's position ladders (own, organisation, system or shared playbooks)
side"OUR_PAPER" | "THEIR_PAPER" | "EITHER"Whose paper the document is, to pick the playbook positions that apply
Antwoordgegevens (200)
VeldTypeBeschrijving
changesverplichtarray of object
summaryobject
negotiationNotesarray of string
statisticsverplichtobject
curl
curl -X POST "https://attorly.ai/api/v1/redlines" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "documentId": "doc_abc123",
  "partyRole": "BUYER",
  "riskTolerance": "CONSERVATIVE"
}'
POST/api/v1/documents/{documentId}/redlines/resolutionsresolveRedlines

Accepteer of weiger wijzigingen in een document.

Bereik:REDLINES_GENERATE
Padparameters
VeldTypeBeschrijving
documentIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
changesverplichtarray of object
Antwoordgegevens (200)
VeldTypeBeschrijving
acceptedverplichtinteger
rejectedverplichtinteger
messageverplichtstring
curl
curl -X POST "https://attorly.ai/api/v1/documents/doc_abc123/redlines/resolutions" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "changes": [
    {
      "id": "chg_1",
      "action": "accept"
    },
    {
      "id": "chg_2",
      "action": "reject"
    }
  ]
}'

Onderhandelingen

POST/api/v1/negotiations/position-analysescreateNegotiationPositionAnalysis

Analyseer een onderhandelingspositie.

Bereik:NEGOTIATIONS_READGebruikt AI-tegoeden
Inhoud van het verzoek
VeldTypeBeschrijving
documentIdstring
contentstring
partyRoleverplicht"BUYER" | "SELLER" | "LANDLORD" | "TENANT" | "EMPLOYER" | "EMPLOYEE"
contextobject
Antwoordgegevens (200)
VeldTypeBeschrijving
overallPositionverplichtstringFAVORABLE, BALANCED or UNFAVORABLE
positionsverplichtarray of object
prioritizedConcessionsarray of string
dealBreakersarray of string
suggestedApproachstring
estimatedOutcomeobject
curl
curl -X POST "https://attorly.ai/api/v1/negotiations/position-analyses" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "documentId": "doc_abc123",
  "partyRole": "BUYER"
}'
POST/api/v1/negotiations/playbookscreateNegotiationPlaybook

Stel een onderhandelingsplaybook op vanuit een strategie.

Bereik:NEGOTIATIONS_READGebruikt AI-tegoeden
Inhoud van het verzoek
VeldTypeBeschrijving
strategyverplichtobject
contextobject
Antwoordgegevens (200)
VeldTypeBeschrijving
playbookverplichtarray of object
anticipatedObjectionsverplichtarray of object
recommendationsverplichtarray of string
summaryverplichtobject
curl
curl -X POST "https://attorly.ai/api/v1/negotiations/playbooks" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "strategy": {
    "overallPosition": "collaborative",
    "priorities": [
      "Cap liability at 12 months of fees",
      "Keep Norwegian law"
    ]
  }
}'

Werkstromen

GET/api/v1/workflows/templateslistWorkflowTemplates

Toon workflowsjablonen.

Bereik:WORKFLOWS_EXECUTE
Queryparameters
VeldTypeBeschrijving
category"MA_ACQUISITION" | "MA_MERGER" | "INVESTMENT" | "IPO" | "REAL_ESTATE" | "REGULATORY" | …Due diligence project type the template is built for
limitinteger
cursorstringPass the nextCursor of the previous page to get the next one
curl
curl "https://attorly.ai/api/v1/workflows/templates?limit=20" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
GET/api/v1/workflows/executionslistWorkflowExecutions

Uitvoeringen van workflows, nieuwste eerst, eventueel voor één project of status.

Bereik:WORKFLOWS_EXECUTE
Queryparameters
VeldTypeBeschrijving
projectIdstringOnly executions on this due diligence project
status"PENDING" | "RUNNING" | "WAITING_FOR_INPUT" | "WAITING_FOR_APPROVAL" | "PAUSED" | "COMPLETED" | …
limitinteger
cursorstringPass the nextCursor of the previous page to get the next one
curl
curl "https://attorly.ai/api/v1/workflows/executions?status=COMPLETED&limit=20" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/workflows/executionscreateWorkflowExecution

Start een workflow op een due-diligenceproject.

Bereik:WORKFLOWS_EXECUTEGebruikt AI-tegoeden
Inhoud van het verzoek
VeldTypeBeschrijving
templateIdverplichtstring
projectIdverplichtstring
inputsverplichtobject
optionsobject
Antwoordgegevens (202)
VeldTypeBeschrijving
executionIdverplichtstring
templateIdverplichtstring
templateNameverplichtstring
statusverplichtstring
startedAtverplichtstringISO 8601 date-time
messageverplichtstring
curl
curl -X POST "https://attorly.ai/api/v1/workflows/executions" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "templateId": "wft_abc123",
  "projectId": "ddp_abc123",
  "inputs": {}
}'
GET/api/v1/workflows/executions/{executionId}getWorkflowExecution

Vraag de status van een workflowuitvoering op.

Bereik:WORKFLOWS_EXECUTE
Padparameters
VeldTypeBeschrijving
executionIdverplichtstring
Queryparameters
VeldTypeBeschrijving
includeStepsboolean
Antwoordgegevens (200)
VeldTypeBeschrijving
executionIdverplichtstring
templateNameverplichtstring
statusverplichtstring
startedAtstringISO 8601 date-time
completedAtstringISO 8601 date-time
variablesobject
errorstring | null
stepsarray of object
curl
curl "https://attorly.ai/api/v1/workflows/executions/wfx_abc123" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"

Due-diligenceonderzoek

GET/api/v1/due-diligence/projectslistDueDiligenceProjects

Due-diligenceprojecten, nieuwste eerst.

Bereik:DUE_DILIGENCE_FULL
Queryparameters
VeldTypeBeschrijving
status"NOT_STARTED" | "IN_PROGRESS" | "UNDER_REVIEW" | "COMPLETED" | "ON_HOLD" | "CANCELLED"Only projects in this state
limitinteger
cursorstringPass the nextCursor of the previous page to get the next one
curl
curl "https://attorly.ai/api/v1/due-diligence/projects?limit=20" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/due-diligence/projectscreateDueDiligenceProject

Maak een due-diligenceproject aan.

Bereik:DUE_DILIGENCE_FULL
Inhoud van het verzoek
VeldTypeBeschrijving
nameverplichtstring
dealTypeverplicht"MA_ACQUISITION" | "MA_MERGER" | "INVESTMENT" | "IPO" | "REAL_ESTATE" | "REGULATORY" | …
targetCompanystring
descriptionstring
settingsobject
Antwoordgegevens (201)
VeldTypeBeschrijving
projectIdverplichtstring
nameverplichtstring
projectTypeverplichtstring
statusverplichtstring
createdAtverplichtstringISO 8601 date-time
messageverplichtstring
curl
curl -X POST "https://attorly.ai/api/v1/due-diligence/projects" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Project Falcon",
  "dealType": "MA_ACQUISITION",
  "targetCompany": "Target AS"
}'
GET/api/v1/due-diligence/projects/{projectId}getDueDiligenceProject

Een due-diligenceproject ophalen met het aantal documenten en bevindingen.

Bereik:DUE_DILIGENCE_FULL
Padparameters
VeldTypeBeschrijving
projectIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstring
nameverplichtstring
descriptionverplichtstring | null
projectTypeverplichtstring
statusverplichtstring
priorityverplichtstring
targetCompanyverplichtstring | null
dueDateverplichtstring | null
documentCountverplichtinteger
findingCountverplichtinteger
createdAtverplichtstringISO 8601 date-time
updatedAtverplichtstringISO 8601 date-time
completedAtverplichtstring | null
curl
curl "https://attorly.ai/api/v1/due-diligence/projects/ddp_abc123" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/due-diligence/projects/{projectId}/documentsaddDueDiligenceDocuments

Voeg documenten toe aan een due-diligenceproject.

Bereik:DUE_DILIGENCE_FULL
Padparameters
VeldTypeBeschrijving
projectIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
documentIdsverplichtarray of string
categorystring
Antwoordgegevens (200)
VeldTypeBeschrijving
projectIdverplichtstring
documentsAddedverplichtinteger
totalDocumentsverplichtinteger
categoryverplichtstring
messageverplichtstring
curl
curl -X POST "https://attorly.ai/api/v1/due-diligence/projects/ddp_abc123/documents" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "documentIds": [
    "doc_abc123",
    "doc_def456"
  ]
}'
GET/api/v1/due-diligence/projects/{projectId}/findingslistDueDiligenceFindings

Toon de bevindingen van een due-diligenceproject.

Bereik:DUE_DILIGENCE_FULL
Padparameters
VeldTypeBeschrijving
projectIdverplichtstring
Queryparameters
VeldTypeBeschrijving
riskLevel"INFO" | "LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
categorystring
limitinteger
Antwoordgegevens (200)
VeldTypeBeschrijving
projectIdverplichtstring
projectNameverplichtstring
findingsverplichtarray of object
riskSummaryverplichtobjectNumber of findings per severity
totalFindingsverplichtinteger
pendingProposalsverplichtintegerRisks the AI proposed that wait for a reviewer: not findings, not listed, not in any report
curl
curl "https://attorly.ai/api/v1/due-diligence/projects/ddp_abc123/findings?riskLevel=HIGH" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/due-diligence/projects/{projectId}/reportscreateDueDiligenceReport

Genereer een due-diligencerapport.

Bereik:DUE_DILIGENCE_FULL
Padparameters
VeldTypeBeschrijving
projectIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
formatverplicht"pdf" | "markdown""markdown" returns the report text; "pdf" also returns the formatted PDF (base64)
sectionsarray of "executive_summary" | "risk_overview" | "findings_detail" | "document_analysis" | "recommendations"
includeRecommendationsboolean
Antwoordgegevens (201)
VeldTypeBeschrijving
reportIdverplichtstring
projectIdverplichtstring
projectNamestring
formatverplicht"pdf" | "markdown"
statusverplichtstring
sectionsarray of string
documentCountinteger
findingCountinteger
pendingProposalsintegerRisks the AI proposed that wait for a reviewer when the report was made: left out of it, and counted at its top
markdownverplichtstring
attachmentobject
messagestring
curl
curl -X POST "https://attorly.ai/api/v1/due-diligence/projects/ddp_abc123/reports" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "format": "markdown"
}'

Sjablonen en concepten

GET/api/v1/templateslistTemplates

Toon documentsjablonen.

Bereik:TEMPLATES_READ
Queryparameters
VeldTypeBeschrijving
category"NDA" | "EMPLOYMENT" | "SERVICE_AGREEMENT" | "LEASE" | "REAL_ESTATE" | "CORPORATE" | …
jurisdictionstringISO 3166-1 alpha-2 country code (e.g. "NO", "GB"); jurisdiction-neutral templates are always included
languagestringISO 639-1 language code of the template text (e.g. "en", "nb")
limitinteger
cursorstringPass the nextCursor of the previous page to get the next one
curl
curl "https://attorly.ai/api/v1/templates?limit=20" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/draftscreateDraft

Maak een concept vanuit een sjabloon (mode template) of met AI (mode ai).

Bereik:TEMPLATES_DRAFTGebruikt AI-tegoeden

Het veld mode in de inhoud kiest een van: mode: template, mode: ai.

Inhoud van het verzoek
VeldTypeBeschrijving
mode"template" | "ai"Runs templates_draft.
templateIdstring
variablesobject
optionsobject
documentTypestring
requirementsstring
contextobject
curl
curl -X POST "https://attorly.ai/api/v1/drafts" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "mode": "template",
  "templateId": "tpl_abc123",
  "variables": {
    "partyA": "Acme AS",
    "partyB": "Beta AB"
  }
}'

Zaken

GET/api/v1/caseslistCases

Uw zaken weergeven, laatst gewijzigde eerst.

Bereik:CASES_READ
Queryparameters
VeldTypeBeschrijving
status"ACTIVE" | "CLOSED" | "ARCHIVED"Only cases in this state; all states when absent
limitinteger
cursorstringPass the nextCursor of the previous page to get the next one
curl
curl "https://attorly.ai/api/v1/cases?status=ACTIVE&limit=20" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
GET/api/v1/cases/{caseId}/timelinegetCaseTimeline

De tijdlijn van een zaak ophalen: elke gebeurtenis met datum, bewijs en het standpunt van de wederpartij.

Bereik:CASES_READ
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
caseverplichtobject
eventsverplichtarray of objectIn date order
countverplichtinteger
needsReviewCountverplichtintegerEvents an AI added that no person has confirmed
deletionRequestedCountverplichtintegerEvents waiting for the owner to approve their deletion
curl
curl "https://attorly.ai/api/v1/cases/case_abc123/timeline" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/cases/{caseId}/timeline/eventscreateTimelineEvent

Een gebeurtenis aan de tijdlijn van een zaak toevoegen.

Bereik:CASES_WRITE
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
titleverplichtstringWhat happened, in one line (at most 300 characters)
descriptionstring | nullMore detail, or null to clear it
whenverplichtobjectWhen it happened, as precisely as it is known. precision TIME: start "YYYY-MM-DD" and time "HH:MM" (24-hour, in the case's time zone). DAY: start "YYYY-MM-DD". MONTH: start "YYYY-MM". YEAR: start "YYYY". PERIOD: start and end "YYYY-MM-DD", end after start. approximate: true when the date is an estimate; it is then written "c. …".
category"CONTRACT" | "DEADLINE" | "INCIDENT" | "FILING" | "CORRESPONDENCE" | "COURT_DATE" | …What kind of event it is; OTHER when absent
importantbooleanMarks a key event; exports can be limited to key events
agreement"UNMARKED" | "AGREED" | "DISPUTED"Whether the other side agrees that it happened this way: AGREED, DISPUTED, or UNMARKED (not assessed)
opposingVersionstring | nullThe other side's account of a DISPUTED event. Kept only while agreement is DISPUTED
commentstring | nullThe owner's private note. Exports print it only when asked to
confidentialbooleanLeave this event out whenever the timeline is shared or exported
sourcesarray of objectThe case documents that evidence the event, with an optional page or section ("p. 3"). Each documentId must be a document of this case. On update, the list replaces the event's sources
Antwoordgegevens (201)
VeldTypeBeschrijving
caseIdverplichtstring
eventverplichtobject
curl
curl -X POST "https://attorly.ai/api/v1/cases/case_abc123/timeline/events" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Landlord gave written notice of termination",
  "when": {
    "precision": "DAY",
    "start": "2026-03-02"
  },
  "category": "CORRESPONDENCE",
  "important": true,
  "agreement": "DISPUTED",
  "opposingVersion": "The landlord says the notice was handed over on 27 February.",
  "sources": [
    {
      "documentId": "doc_abc123",
      "locator": "p. 1"
    }
  ]
}'
PATCH/api/v1/cases/{caseId}/timeline/events/{eventId}updateTimelineEvent

Een gebeurtenis op de tijdlijn van een zaak wijzigen, of een door AI toegevoegde gebeurtenis bevestigen.

Bereik:CASES_WRITE
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
eventIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
titlestringWhat happened, in one line (at most 300 characters)
descriptionstring | nullMore detail, or null to clear it
whenobjectWhen it happened, as precisely as it is known. precision TIME: start "YYYY-MM-DD" and time "HH:MM" (24-hour, in the case's time zone). DAY: start "YYYY-MM-DD". MONTH: start "YYYY-MM". YEAR: start "YYYY". PERIOD: start and end "YYYY-MM-DD", end after start. approximate: true when the date is an estimate; it is then written "c. …".
category"CONTRACT" | "DEADLINE" | "INCIDENT" | "FILING" | "CORRESPONDENCE" | "COURT_DATE" | …What kind of event it is; OTHER when absent
importantbooleanMarks a key event; exports can be limited to key events
agreement"UNMARKED" | "AGREED" | "DISPUTED"Whether the other side agrees that it happened this way: AGREED, DISPUTED, or UNMARKED (not assessed)
opposingVersionstring | nullThe other side's account of a DISPUTED event. Kept only while agreement is DISPUTED
commentstring | nullThe owner's private note. Exports print it only when asked to
confidentialbooleanLeave this event out whenever the timeline is shared or exported
sourcesarray of objectThe case documents that evidence the event, with an optional page or section ("p. 3"). Each documentId must be a document of this case. On update, the list replaces the event's sources
Antwoordgegevens (200)
VeldTypeBeschrijving
caseIdverplichtstring
eventverplichtobject
curl
curl -X PATCH "https://attorly.ai/api/v1/cases/case_abc123/timeline/events/your_eventId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
DELETE/api/v1/cases/{caseId}/timeline/events/{eventId}deleteTimelineEvent

Vragen om een gebeurtenis uit de tijdlijn van een zaak te verwijderen. De gebeurtenis wordt pas verwijderd als de eigenaar dit in Attorly goedkeurt.

Bereik:CASES_WRITE
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
eventIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
caseIdverplichtstring
idverplichtstring
deletedverplichtbooleantrue only when the event is gone
statusverplicht"deleted" | "declined" | "awaiting_approval"deleted: the owner approved and it is gone; declined: the owner said no in their app, nothing was deleted; awaiting_approval: it is marked and waits for the owner to delete or keep it in Attorly
requestedAtstringWhen the deletion was first asked for (awaiting_approval)
urlstringWhere the owner approves or keeps the event in Attorly (awaiting_approval)
curl
curl -X DELETE "https://attorly.ai/api/v1/cases/case_abc123/timeline/events/your_eventId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
POST/api/v1/cases/{caseId}/timeline/exportexportCaseTimeline

De tijdlijn van een zaak exporteren als PDF-, Word-, ODT-, Excel- of PowerPoint-bestand.

Bereik:CASES_READ
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
layoutverplicht"overview" | "chronology" | "numbered" | "visual"overview: date and what happened, for the other party, a complaints board or a lawyer. chronology: numbered table with sources and an exhibit list, for a court. numbered: one numbered paragraph per event with exhibit references, for the facts section of a filing. visual: the time axis on one landscape page
formatverplicht"pdf" | "docx" | "odt" | "xlsx" | "pptx"The file type. overview and chronology: pdf, docx, odt, xlsx or pptx. numbered: pdf, docx or odt. visual: pdf or pptx
optionsobject
localestringLanguage of the file's headings, dates and file name, as a locale Attorly ships (e.g. "en", "nb", "de"); the account's language when absent or not offered
Antwoordgegevens (200)
VeldTypeBeschrijving
caseIdverplichtstring
layoutverplicht"overview" | "chronology" | "numbered" | "visual"
formatverplicht"pdf" | "docx" | "odt" | "xlsx" | "pptx"
localeverplichtstringThe language the file is written in
eventCountverplichtintegerEvents in the file
exhibitCountverplichtintegerDocuments in the exhibit list (chronology and numbered layouts)
leftOutConfidentialverplichtintegerEvents left out because they are marked confidential
attachmentverplichtobject
curl
curl -X POST "https://attorly.ai/api/v1/cases/case_abc123/timeline/export" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "layout": "chronology",
  "format": "docx",
  "options": {
    "markAgreement": true
  },
  "locale": "en"
}'
GET/api/v1/cases/{caseId}/deadlineslistCaseDeadlines

De deadlines van een zaak weergeven, de eerstvolgende eerst, met van wie elke deadline is en of die gehaald of verstreken is.

Bereik:CASES_READ
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
Queryparameters
VeldTypeBeschrijving
status"open" | "completed"open: not yet marked done; completed: marked done; both when absent
Antwoordgegevens (200)
VeldTypeBeschrijving
caseverplichtobject
deadlinesverplichtarray of objectSoonest first
countverplichtinteger
overdueCountverplichtinteger
curl
curl "https://attorly.ai/api/v1/cases/case_abc123/deadlines?status=open" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/cases/{caseId}/deadlinescreateCaseDeadline

Een deadline aan een zaak toevoegen, op een opgegeven datum of berekend vanaf een vastgelegd feit.

Bereik:CASES_WRITE
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
titleverplichtstringWhat must be done by then, in one line (at most 200 characters)
dueAtstring (date) | string (date-time)The due date. A day "YYYY-MM-DD" is due at the end of that day where the case applies (its country, else the owner's); a moment ("2026-03-02T09:00:00+01:00", a hearing) is kept as given
derivedFromobjectCount the date from a recorded date fact instead of giving dueAt: due = the fact's date + offsetDays days, or + offsetMonths calendar months. The deadline moves with the fact when the fact is corrected. Record the fact first with facts_record
kind"HEARING" | "FILING" | "DISCOVERY" | "STATUTE_OF_LIMITATIONS" | "CUSTOM"What kind of deadline it is; CUSTOM when absent
party"SELF" | "COUNTERPARTY"SELF: the owner must act by then. COUNTERPARTY: a window the other side set; SELF when absent
notesstring | nullA short note shown with the deadline and in its reminders (at most 500 characters), or null to clear it
Antwoordgegevens (201)
VeldTypeBeschrijving
caseIdverplichtstring
deadlineverplichtobject
curl
curl -X POST "https://attorly.ai/api/v1/cases/case_abc123/deadlines" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Protest the termination in writing to the landlord",
  "derivedFrom": {
    "factKey": "receivedAt",
    "offsetMonths": 1
  },
  "kind": "FILING",
  "party": "SELF",
  "notes": "Husleieloven § 9-8 (1): one month from receipt"
}'
PATCH/api/v1/cases/{caseId}/deadlines/{deadlineId}updateCaseDeadline

Een deadline van een zaak wijzigen, of als afgerond of weer open markeren.

Bereik:CASES_WRITE
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
deadlineIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
titlestringWhat must be done by then, in one line (at most 200 characters)
dueAtstring (date) | string (date-time)The due date. A day "YYYY-MM-DD" is due at the end of that day where the case applies (its country, else the owner's); a moment ("2026-03-02T09:00:00+01:00", a hearing) is kept as given
derivedFromobjectCount the date from a recorded date fact instead of giving dueAt: due = the fact's date + offsetDays days, or + offsetMonths calendar months. The deadline moves with the fact when the fact is corrected. Record the fact first with facts_record
kind"HEARING" | "FILING" | "DISCOVERY" | "STATUTE_OF_LIMITATIONS" | "CUSTOM"What kind of deadline it is; CUSTOM when absent
party"SELF" | "COUNTERPARTY"SELF: the owner must act by then. COUNTERPARTY: a window the other side set; SELF when absent
notesstring | nullA short note shown with the deadline and in its reminders (at most 500 characters), or null to clear it
completedbooleantrue marks the deadline done; false reopens it
Antwoordgegevens (200)
VeldTypeBeschrijving
caseIdverplichtstring
deadlineverplichtobject
curl
curl -X PATCH "https://attorly.ai/api/v1/cases/case_abc123/deadlines/dl_abc123" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
GET/api/v1/cases/{caseId}/factslistCaseFacts

De feiten die bij een zaak zijn vastgelegd weergeven, met hun bron, en de feiten die de zaak nog nodig heeft.

Bereik:CASES_READ
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
caseverplichtobject
factsverplichtarray of object
countverplichtinteger
caseReadsverplichtobject | nullThe facts the case's rule reads, under exactly these keys; null when it reads none
curl
curl "https://attorly.ai/api/v1/cases/case_abc123/facts" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/cases/{caseId}/factsrecordCaseFact

Een feit bij een zaak vastleggen of corrigeren. Deadlines die vanaf dat feit worden berekend, schuiven mee.

Bereik:CASES_WRITE
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
keyverplichtstringThe fact, as a camelCase key. facts_list names the facts this case reads, with their format; use one of those, or another camelCase key only for a fact none of them covers
valueverplichtstringThe value, in the format its key takes (a date fact: YYYY-MM-DD). It is stored in canonical form, so the result can differ from what was sent ("Lissabon" becomes LIS)
Antwoordgegevens (200)
VeldTypeBeschrijving
caseIdverplichtstring
outcomeverplicht"recorded" | "corrected" | "unchanged"recorded: a new fact; corrected: a new value replaced the old one; unchanged: it already held this value
factverplichtobject
movedDeadlinesverplichtarray of objectOpen deadlines counted from the fact that moved with the correction, due days before and after
urlverplichtstringWhere the case opens in Attorly
curl
curl -X POST "https://attorly.ai/api/v1/cases/case_abc123/facts" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "key": "receivedAt",
  "value": "2026-03-04"
}'
GET/api/v1/cases/{caseId}/partieslistCaseParties

De partijen van een zaak weergeven en de rollen die de zaak kent.

Bereik:CASES_READ
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
caseverplichtobject
partiesverplichtarray of object
countverplichtinteger
rolesverplichtarray of objectThe roles the case offers; empty when it has no case type with roles
curl
curl "https://attorly.ai/api/v1/cases/case_abc123/parties" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/cases/{caseId}/partiescreateCaseParty

Een partij aan een zaak toevoegen, in een van de rollen van de zaak.

Bereik:CASES_WRITE
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
roleKeyverplichtstringThe role the party has in the case, as one of the roles parties_list returns (e.g. "landlord")
partyTypeverplicht"PERSON" | "ENTITY"PERSON for a person, ENTITY for a company or public body
nameverplichtstringThe party's name (at most 200 characters)
isSelfbooleantrue when this party is the person the connection acts for; false removes that link
orgNumberstringOrganisation number of an ENTITY
personalIdNumberstringNational identity number of a PERSON. Add it only when the owner gave it for this case
emailstring (email)E-mail address
phonestringPhone number
addressstringPostal address
representedBystringThe lawyer or representative acting for the party
notesstringThe owner's note about the party (at most 1000 characters)
positionintegerOrder within its role, 0 first
Antwoordgegevens (201)
VeldTypeBeschrijving
caseIdverplichtstring
partyverplichtobject
curl
curl -X POST "https://attorly.ai/api/v1/cases/case_abc123/parties" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "roleKey": "landlord",
  "partyType": "ENTITY",
  "name": "Fjord Eiendom AS",
  "orgNumber": "999999999",
  "email": "[email protected]"
}'
PATCH/api/v1/cases/{caseId}/parties/{partyId}updateCaseParty

De gegevens van een partij in een zaak wijzigen.

Bereik:CASES_WRITE
Padparameters
VeldTypeBeschrijving
caseIdverplichtstring
partyIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
partyType"PERSON" | "ENTITY"PERSON for a person, ENTITY for a company or public body
namestringThe party's name (at most 200 characters)
isSelfbooleantrue when this party is the person the connection acts for; false removes that link
orgNumberstring | null
personalIdNumberstring | null
emailstring (email) | null
phonestring | null
addressstring | null
representedBystring | null
notesstring | null
positionintegerOrder within its role, 0 first
Antwoordgegevens (200)
VeldTypeBeschrijving
caseIdverplichtstring
partyverplichtobject
curl
curl -X PATCH "https://attorly.ai/api/v1/cases/case_abc123/parties/party_abc123" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Bewerkingen

GET/api/v1/operations/{operationId}getOperation

De status en het resultaat ophalen van een verzoek dat met Prefer of Idempotency-Key is verstuurd.

Padparameters
VeldTypeBeschrijving
operationIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstringop_…
objectverplicht"operation"
operationIdverplichtstringThe REST operation that was called, e.g. createRedlines
statusverplicht"running" | "awaiting_approval" | "succeeded" | "failed"
livemodeverplichtboolean
idempotencyKeystring | null
resultUrlverplichtstringWhere to poll: /api/v1/operations/{id}
createdAtverplichtstring (date-time)
completedAtverplichtstring (date-time) | null
expiresAtverplichtstring (date-time)
httpStatusverplichtinteger | null
resultverplichtanyThe data of the successful call
metaobject
errorverplichtobject | null
curl
curl "https://attorly.ai/api/v1/operations/op_abc123" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"

Webhooks

GET/api/v1/webhook-endpointslistWebhookEndpoints

De webhook-endpoints van de organisatie en modus van de sleutel.

curl
curl "https://attorly.ai/api/v1/webhook-endpoints" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/webhook-endpointscreateWebhookEndpoint

Een webhook-endpoint maken. Het antwoord bevat het ondertekeningsgeheim, dat maar één keer wordt getoond.

Inhoud van het verzoek
VeldTypeBeschrijving
urlverplichtstring (uri)HTTPS URL that receives the events
descriptionstring
enabledEventsverplichtarray of stringEvent types to receive, or ["*"] for all
includeSnapshotsbooleanSend object snapshots instead of thin { id, object } payloads, for operations made with organization API keys (calls made with personal keys and connected apps always send thin payloads). Organization owners and admins only.
Antwoordgegevens (201)
VeldTypeBeschrijving
idverplichtstringwe_…
objectverplicht"webhook_endpoint"
urlverplichtstring
descriptionstring | null
enabledEventsverplichtarray of string
statusverplicht"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeverplichtboolean
includeSnapshotsverplichtboolean
apiVersionverplichtstring
failingSincestring (date-time) | null
createdAtverplichtstring (date-time)
updatedAtverplichtstring (date-time)
secretstringwhsec_… — only when the endpoint is created or its secret rolled
curl
curl -X POST "https://attorly.ai/api/v1/webhook-endpoints" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/attorly/webhooks",
  "description": "Production receiver",
  "enabledEvents": [
    "analysis.completed",
    "operation.succeeded",
    "operation.failed"
  ]
}'
GET/api/v1/webhook-endpoints/{endpointId}getWebhookEndpoint

Een webhook-endpoint ophalen.

Padparameters
VeldTypeBeschrijving
endpointIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstringwe_…
objectverplicht"webhook_endpoint"
urlverplichtstring
descriptionstring | null
enabledEventsverplichtarray of string
statusverplicht"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeverplichtboolean
includeSnapshotsverplichtboolean
apiVersionverplichtstring
failingSincestring (date-time) | null
createdAtverplichtstring (date-time)
updatedAtverplichtstring (date-time)
secretstringwhsec_… — only when the endpoint is created or its secret rolled
curl
curl "https://attorly.ai/api/v1/webhook-endpoints/your_endpointId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
PATCH/api/v1/webhook-endpoints/{endpointId}updateWebhookEndpoint

De URL, gebeurtenissen of snapshots van een endpoint wijzigen, of het uit- en aanzetten.

Padparameters
VeldTypeBeschrijving
endpointIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
urlstring (uri)
descriptionstring | null
enabledEventsarray of string
includeSnapshotsboolean
status"enabled" | "disabled"Disable to pause deliveries; enable to resume
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstringwe_…
objectverplicht"webhook_endpoint"
urlverplichtstring
descriptionstring | null
enabledEventsverplichtarray of string
statusverplicht"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeverplichtboolean
includeSnapshotsverplichtboolean
apiVersionverplichtstring
failingSincestring (date-time) | null
createdAtverplichtstring (date-time)
updatedAtverplichtstring (date-time)
secretstringwhsec_… — only when the endpoint is created or its secret rolled
curl
curl -X PATCH "https://attorly.ai/api/v1/webhook-endpoints/your_endpointId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
DELETE/api/v1/webhook-endpoints/{endpointId}deleteWebhookEndpoint

Een webhook-endpoint en zijn bezorggeschiedenis verwijderen.

Padparameters
VeldTypeBeschrijving
endpointIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstring
objectverplicht"webhook_endpoint"
deletedverplichttrue
curl
curl -X DELETE "https://attorly.ai/api/v1/webhook-endpoints/your_endpointId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
POST/api/v1/webhook-endpoints/{endpointId}/secret-rollsrollWebhookEndpointSecret

Het ondertekeningsgeheim vervangen. Het oude ondertekent nog 24 uur mee.

Padparameters
VeldTypeBeschrijving
endpointIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstringwe_…
objectverplicht"webhook_endpoint"
urlverplichtstring
descriptionstring | null
enabledEventsverplichtarray of string
statusverplicht"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeverplichtboolean
includeSnapshotsverplichtboolean
apiVersionverplichtstring
failingSincestring (date-time) | null
createdAtverplichtstring (date-time)
updatedAtverplichtstring (date-time)
secretstringwhsec_… — only when the endpoint is created or its secret rolled
curl
curl -X POST "https://attorly.ai/api/v1/webhook-endpoints/your_endpointId/secret-rolls" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
POST/api/v1/webhook-endpoints/{endpointId}/test-eventssendWebhookTestEvent

Een webhook_endpoint.test-gebeurtenis alleen naar dit endpoint sturen.

Padparameters
VeldTypeBeschrijving
endpointIdverplichtstring
Antwoordgegevens (202)
VeldTypeBeschrijving
eventIdverplichtstring
curl
curl -X POST "https://attorly.ai/api/v1/webhook-endpoints/your_endpointId/test-events" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
GET/api/v1/webhook-endpoints/{endpointId}/deliverieslistWebhookDeliveries

De bezorgingen van een endpoint, nieuwste eerst, met pogingen en resultaat.

Padparameters
VeldTypeBeschrijving
endpointIdverplichtstring
Queryparameters
VeldTypeBeschrijving
limitintegerItems per page, 1–100 (default 20)
cursorstringThe nextCursor of the previous page
status"pending" | "succeeded" | "failed"Only deliveries in this state
curl
curl "https://attorly.ai/api/v1/webhook-endpoints/your_endpointId/deliveries" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"

Gebeurtenissen

GET/api/v1/eventslistEvents

De gebeurtenissen van de afgelopen 30 dagen, nieuwste eerst.

Queryparameters
VeldTypeBeschrijving
limitintegerItems per page, 1–100 (default 20)
cursorstringThe nextCursor of the previous page
typestringOnly events of this type, e.g. analysis.completed
curl
curl "https://attorly.ai/api/v1/events" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
GET/api/v1/events/{eventId}getEvent

Een gebeurtenis ophalen zoals webhook-endpoints die ontvangen.

Padparameters
VeldTypeBeschrijving
eventIdverplichtstring
Antwoordgegevens (200)
VeldTypeBeschrijving
idverplichtstringevt_… — also sent as the webhook-id header; deduplicate on it
objectverplicht"event"
typeverplicht"analysis.completed" | "analysis.failed" | "redlines.generated" | "due_diligence.report.completed" | "operation.succeeded" | "operation.failed" | …
apiVersionverplichtstring
createdAtverplichtstring (date-time)
livemodeverplichtboolean
dataverplichtobject
curl
curl "https://attorly.ai/api/v1/events/your_eventId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/events/{eventId}/redeliveriesredeliverEvent

Een gebeurtenis opnieuw sturen, naar één endpoint of naar alle die erop geabonneerd zijn.

Padparameters
VeldTypeBeschrijving
eventIdverplichtstring
Inhoud van het verzoek
VeldTypeBeschrijving
endpointIdstringOnly this endpoint; default every endpoint subscribed to the event
Antwoordgegevens (202)
VeldTypeBeschrijving
eventIdverplichtstring
deliveriesScheduledverplichtinteger
curl
curl -X POST "https://attorly.ai/api/v1/events/your_eventId/redeliveries" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "endpointId": "we_abc123"
}'

Account, gebruik en logboeken

GET/api/v1/organizationgetOrganization

De organisatie van de sleutel: abonnement, AI-tegoed, standaardjurisdictie en wat de sleutel mag.

Antwoordgegevens (200)
VeldTypeBeschrijving
organizationverplichtobject
userverplichtobject
planverplichtstringSTANDARD, PRO or ENTERPRISE
billingverplichtobject
defaultJurisdictionverplichtstring | nullISO 3166-1 alpha-2 country used when a document names no governing law
credentialverplichtobject
appUrlverplichtstring
curl
curl "https://attorly.ai/api/v1/organization" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
GET/api/v1/usagegetUsage

Verzoeken per dag, sleutel en operatie, met het aantal fouten, via REST en MCP.

Queryparameters
VeldTypeBeschrijving
fromanyISO 8601 date; default 30 days ago (requests are kept 30 days)
toanyISO 8601 date, exclusive; default now
curl
curl "https://attorly.ai/api/v1/usage" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
GET/api/v1/request-logslistRequestLogs

De API-verzoeken van de organisatie van de afgelopen 30 dagen, nieuwste eerst.

Queryparameters
VeldTypeBeschrijving
limitintegerItems per page, 1–100 (default 20)
cursorstringThe nextCursor of the previous page
statusstring2xx, 4xx, 5xx, or an exact status
credentialIdstringOnly requests made with this key (apikey:<id>, or an MCP connection id)
operationIdstringOnly calls of this operation, e.g. createRedlines
requestIdstringOne request, by its Request-Id
sinceanyISO 8601; only requests at or after this time
untilanyISO 8601; only requests before this time
curl
curl "https://attorly.ai/api/v1/request-logs" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
GET/api/v1/audit-eventslistAuditEvents

Wie riep wat aan, wanneer en met welke sleutel. Voor eigenaren en beheerders van de organisatie.

Queryparameters
VeldTypeBeschrijving
limitintegerItems per page, 1–100 (default 20)
cursorstringThe nextCursor of the previous page
statusstring2xx, 4xx, 5xx, or an exact status
credentialIdstringOnly requests made with this key (apikey:<id>, or an MCP connection id)
operationIdstringOnly calls of this operation, e.g. createRedlines
requestIdstringOne request, by its Request-Id
sinceanyISO 8601; only requests at or after this time
untilanyISO 8601; only requests before this time
curl
curl "https://attorly.ai/api/v1/audit-events" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
DELETE/api/v1/test-datadeleteTestData

Alle objecten, gebeurtenissen en operaties van de testmodus van de organisatie verwijderen. Alleen testsleutels.

Antwoordgegevens (200)
VeldTypeBeschrijving
objectverplicht"test_data_purge"
deletedverplichtobject
curl
curl -X DELETE "https://attorly.ai/api/v1/test-data" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"