Preskoči na glavno vsebino

Razvijalci

Dokumentacija REST API

API z JSON prek HTTPS za pravno umetno inteligenco Attorly. Izvaja iste operacije kot strežnik MCP, z istimi ključi, pravicami, omejitvami in obračunavanjem.

Hiter začetek

Naložite pogodbo in jo analizirajte v štirih korakih.

  1. 1. Ustvarite ključ

    Ustvarite ključ v Nastavitve › Razvijalci in izberite REST API. Isti ključ deluje za strežnik MCP. Shranite ga v okoljsko spremenljivko:

    bash
    export ATTORLY_API_KEY=lbmcp_your_api_key
  2. 2. Naložite dokument

    Datoteko pošljite kot multipart/form-data. data.id v odgovoru je identifikator dokumenta. analyze=false ga shrani brez zagona analize v ozadju, ker naslednji korak zažene svojo.

    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. Analizirajte ga

    Prefer: wait=30 na rezultat čaka do 30 sekund. Dokončana analiza se vrne kot 200 z rezultatom v data. Če traja dlje, dobite 202 Accepted z glavo Location, ki kaže na operacijo.

    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. Prevzemite rezultat

    Operacijo poizvedujte, dokler njeno stanje ni succeeded ali failed. Analiza je v result. Retry-After pove, koliko sekund počakati med poizvedbami.

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

Avtentikacija

Poverilnico pošljite v glavi Authorization kot žeton Bearer. Ključi iz Nastavitve › Razvijalci se začnejo z lbmcp_ in delujejo v paketih Pro in Enterprise, za REST API in strežnik MCP. Ključi organizacije v paketu Enterprise se začnejo z atly_ (atly_rk_ za omejene ključe, atly_test_ za testni način); starejši ključi lb_ še delujejo. Aplikacije, ki delujejo v imenu osebe, uporabljajo OAuth.

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

Pravice (scopes)

Vsaka končna točka zahteva pravice, navedene ob njej. Ključ brez njih prejme 403 insufficient_scope, requiredScopes v napaki pa našteje vse pravice, ki jih klic potrebuje. Ključi API organizacije in OAuth uporabljajo ta imena:

PravicaPravica API ključa organizacije
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

Napake

Vse napake imajo enako obliko: stalno kodo za programsko logiko, sporočilo za ljudi in requestId za podporo.

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"
  }
}

Vsaka koda je razložena skupaj z navodili na strani s kodami napak

Različice

API ima različice po datumih. Pošljite Attorly-Version, da izberete različico za eno zahtevo; brez nje se uporabi različica, s katero je bil ključ ustvarjen (ključi izpred uvedbe različic uporabljajo 2026-10-01). Vsak odgovor navede, katera različica je odgovorila. Nezdružljive spremembe pridejo le z novo različico, dnevnik sprememb pa jih navaja.

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_…

Idempotentnost

Pri zahtevah POST, PATCH in DELETE pošljite glavo Idempotency-Key, na primer UUID. Ponovni poskus z istim ključem in isto zahtevo prejme prvi odgovor z Idempotent-Replayed: true, delo pa se ne izvede in ne zaračuna znova. Ključ, znova uporabljen za drugo zahtevo, prejme 422 idempotency_key_reused, ključ, ki se še izvaja, pa 409 ali pri dolgotrajnem klicu isto operacijo. Napake strežnika se ne shranjujejo, zato se ponovni poskus izvede znova. Ključi se hranijo 24 ur.

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

Dolgotrajne zahteve

Od različice 2026-11-01 popolne analize, redline, pogajalski načrti, poteki dela, poročila skrbnega pregleda in osnutki UI takoj odgovorijo 202 Accepted z operacijo. Pošljite Prefer: wait=30, da najprej počakate na rezultat do 30 sekund (največ 60), ali Prefer: respond-async, da zahtevate 202 pri katerem koli pisanju. Poizvedujte po Location, dokler stanje ni succeeded ali failed, ali se naročite na operation.succeeded. Rezultati se hranijo 24 ur. Organizacija lahko hkrati izvaja največ 5 dolgotrajnih operacij UI; dodatne prejmejo 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", … } }

Ostranjevanje

Seznami vrnejo { object: "list", data, hasMore, nextCursor } in sprejmejo limit (od 1 do 100, privzeto 20) in cursor. Za naslednjo stran pošljite nextCursor kot cursor. Na zadnji strani je nextCursor null. Kazalec ostane veljaven, tudi ko se dodajo novi elementi.

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…

Omejitve zahtev

Zahteva se šteje v več oken: urna omejitev ključa, 300 na minuto na osebo, 600 na minuto na organizacijo, minutna omejitev na ključ za branje, pisanje in klice UI ter lastna omejitev vsake operacije. REST in MCP si delita iste števce. Glavi RateLimit-Policy in RateLimit prikažeta vsa okna; X-RateLimit-* prikaže tisto, ki je najbližje izčrpanju. Nad omejitvijo prejmete 429 z 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

Spletni kavlji

Ustvarite končno točko s POST /api/v1/webhook-endpoints, da prejmete obvestilo, ko je delo končano, namesto da poizvedujete. Attorly pošlje POST z dogodkom JSON, podpisanim po Standard Webhooks s skrivnostjo whsec_ končne točke. Preverite podpis, preden zaupate vsebini, odgovorite 2xx v 15 sekundah in odstranite dvojnike po webhook-id: neuspešne dostave se ponavljajo 72 ur. Skrivnost lahko zamenjate, pošljete testni dogodek in vidite vsako dostavo.

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.
}

Testni način

Testni ključi (atly_test_…) dosežejo vse končne točke, a delajo z ločenimi testnimi podatki in vračajo fiksne vzorčne rezultate: UI se ne izvaja in dobroimetje se ne porablja. Testni ključ nikoli ne vidi pravih podatkov. V katero koli besedilno polje vpišite čarobno vrednost, kot je __fail_credits__, __fail_consent__ ali __slow__, da dobite to napako ali zamik. DELETE /api/v1/test-data izbriše vse, kar so ustvarili testni ključi.

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

Aplikacije, ki delujejo v imenu uporabnika Attorly, se prijavijo z OAuth 2.1: odkrivanje na /.well-known/oauth-authorization-server, dinamična registracija odjemalcev in tok avtorizacijske kode s PKCE (S256). Zahtevajte resource=https://attorly.ai/api/v1, da dobite žeton za REST API; žeton, izdan za strežnik MCP, je tu zavrnjen. Dodajte offline_access, da dobite žeton za osvežitev. Oseba izbere organizacijo in lahko na zaslonu za soglasje zoži pravice.

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

Obračunavanje

Operacije z UI porabljajo isto dobroimetje za UI kot aplikacija Attorly, iz denarnice lastnika ključa ali njegove organizacije, ne glede na to, ali jih kličete prek REST ali MCP. Ko dobroimetje poide, prejmete 402 insufficient_credits. Klici v testnem načinu so brezplačni.

Paketi

API je vključen v paketa Pro in Enterprise. Če paket lastnika ključa ne vključuje več dostopa do API-ja ali je lastnik zapustil organizacijo, so zahteve zavrnjene s 403.

Referenca

Vsaka operacija, ustvarjena iz dokumenta OpenAPI, ki ga streže API sam. Poti so relativne glede na https://attorly.ai. Uspešni odgovori ovijejo rezultat v data. Opisi polj so v angleščini.

Dokumenti

GET/api/v1/documentslistDocuments

Prikaži shranjene dokumente, ki jih ključ lahko bere, od najnovejših.

Pravica:DOCUMENTS_READ
Parametri poizvedbe
PoljeVrstaOpis
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

Naloži dokument kot multipart/form-data ali kot JSON z vsebino v base64 ali navadnim besedilom. V ozadju se analizira, razen če je analyze false.

Pravica:DOCUMENTS_WRITEPorablja kredite UISprejema nalaganje datotek
Telo zahteve
PoljeVrstaOpis
filenameobveznostringThe 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
Podatki odgovora (201)
PoljeVrstaOpis
idobveznostring
nameobveznostring
originalNameobveznostring
typeobvezno"EMPLOYMENT_CONTRACT" | "LEASE_AGREEMENT" | "PURCHASE_AGREEMENT" | "NDA" | "TERMS_OF_SERVICE" | "EMAIL" | …
sizeobveznointeger
statusobvezno"PENDING" | "PROCESSING" | "ANALYZED" | "FAILED"PENDING until processing starts; ANALYZED once the analysis is stored
analysisQueuedobveznobooleantrue when the background analysis was started
createdAtobveznostringISO 8601 date-time
urlobveznostringWhere 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

Iskanje po besedilu dokumentov, ki jih ključ lahko bere, po pomenu in po natančnih besedah.

Pravica:DOCUMENTS_READ
Parametri poizvedbe
PoljeVrstaOpis
queryobveznostringWhat 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

Pridobi dokument, stanje njegove obdelave in zadnjo analizo.

Pravica:DOCUMENTS_READ
Parametri poti
PoljeVrstaOpis
documentIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostring
nameobveznostring
originalNameobveznostring
typeobvezno"EMPLOYMENT_CONTRACT" | "LEASE_AGREEMENT" | "PURCHASE_AGREEMENT" | "NDA" | "TERMS_OF_SERVICE" | "EMAIL" | …
mimeTypeobveznostring
sizeobveznointeger
statusobvezno"PENDING" | "PROCESSING" | "ANALYZED" | "FAILED"PENDING until processing starts; ANALYZED once the analysis is stored
archivedobveznoboolean
ownedByYouobveznoboolean
versionNumberobveznointeger | 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.
createdAtobveznostringISO 8601 date-time
updatedAtobveznostringISO 8601 date-time
fileAvailableobveznobooleanfalse when the stored file can no longer be read
governingLawRequiredobveznobooleantrue when the analysis is held until a governing law is chosen for the document in Attorly
latestAnalysisobveznoobject | null
urlobveznostringWhere 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

Zahtevajte izbris dokumenta, ki ga imate v lasti. Dokument se izbriše šele, ko izbris odobrite v Attorlyju.

Pravica:DOCUMENTS_DELETE
Parametri poti
PoljeVrstaOpis
documentIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostring
deletedobveznobooleantrue only when the document is gone
statusobvezno"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

Analizira dokument ali besedilo, poslano v zahtevi. mode je full (shranjen dokument) ali quick.

Pravica:DOCUMENTS_ANALYZEDOCUMENTS_READPorablja kredite UI

Polje mode v telesu izbere eno od možnosti: mode: full, mode: quick.

Telo zahteve
PoljeVrstaOpis
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

Seznam shranjenih analiz dokumenta, od najnovejše.

Pravica:DOCUMENTS_READ
Parametri poti
PoljeVrstaOpis
documentIdobveznostring
Parametri poizvedbe
PoljeVrstaOpis
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

Analizira shranjen dokument.

Pravica:DOCUMENTS_ANALYZEDOCUMENTS_READPorablja kredite UI
Parametri poti
PoljeVrstaOpis
documentIdobveznostring

Polje mode v telesu izbere eno od možnosti: mode: full, mode: quick.

Telo zahteve
PoljeVrstaOpis
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

Izlušči golo besedilo iz shranjenega dokumenta PDF ali DOCX.

Pravica:DOCUMENTS_READ
Parametri poti
PoljeVrstaOpis
documentIdobveznostring
Parametri poizvedbe
PoljeVrstaOpis
offsetintegerCharacter offset to start from; pass the nextOffset of the previous call to read on
maxCharactersintegerMost characters to return in this call
Podatki odgovora (200)
PoljeVrstaOpis
textobveznostringThe document text from offset (untrusted content)
documentNameobveznostring
documentTypeobveznostring
mimeTypeobveznostring | null
characterCountobveznointegerCharacters in the whole document
wordCountobveznointegerWords in the whole document
offsetobveznointeger
nextOffsetobveznointeger | nullPass as offset to read on; null when the text ends here
truncatedobveznobooleantrue 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

Pridobitev shranjene analize: povzetek, tveganje, ključni pogoji, klavzule in priporočila.

Pravica:DOCUMENTS_READ
Parametri poti
PoljeVrstaOpis
analysisIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostring
documentIdobveznostring
documentNameobveznostring
summaryobveznostring | null
riskLevelobvezno"LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
riskScoreobveznonumber
keyTermsobveznoarray of any
clausesobveznoarray of any
recommendationsobveznoarray of any
modeobveznostringSINGLE or CONSENSUS
createdAtobveznostringISO 8601 date-time
urlobveznostring
curl
curl "https://attorly.ai/api/v1/analyses/your_analysisId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/comparisonscreateComparison

Primerja dva dokumenta ali besedili vrstico za vrstico.

Pravica:DOCUMENTS_READ
Telo zahteve
PoljeVrstaOpis
sourceDocumentIdstring
sourceContentstring
targetDocumentIdstring
targetContentstring
Podatki odgovora (200)
PoljeVrstaOpis
differencesobveznoarray of object
summaryobveznoobject
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"
}'

Klavzule

GET/api/v1/clausessearchClauses

Išče po knjižnici klavzul.

Pravica:CLAUSES_READ
Parametri poizvedbe
PoljeVrstaOpis
queryobveznostring
category"INDEMNIFICATION" | "LIABILITY" | "TERMINATION" | "CONFIDENTIALITY" | "INTELLECTUAL_PROPERTY" | "PAYMENT" | …
jurisdictionstring
riskLevel"LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
limitinteger
Podatki odgovora (200)
PoljeVrstaOpis
clausesobveznoarray of object
countobveznointeger
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

Oceni tveganje klavzule.

Pravica:CLAUSES_READ
Telo zahteve
PoljeVrstaOpis
clauseTextobveznostring
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" | …
Podatki odgovora (200)
PoljeVrstaOpis
clauseTextstring
clauseTypeobveznostring
jurisdictionobveznostring
overallRiskScoreobveznonumber
riskLevelobvezno"LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
riskFactorsobveznoarray of object
recommendationsobveznoarray 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

Primerja klavzulo s tržno standardnimi formulacijami.

Pravica:CLAUSES_READ
Telo zahteve
PoljeVrstaOpis
clauseTextobveznostring
categoryobvezno"INDEMNIFICATION" | "LIABILITY" | "TERMINATION" | "CONFIDENTIALITY" | "INTELLECTUAL_PROPERTY" | "PAYMENT" | …
contractTypestring
jurisdictionstring
Podatki odgovora (200)
PoljeVrstaOpis
inputClauseobveznostring
categoryobveznostring
marketStandardsobveznoarray of object
comparisonobveznoobject
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

Preveri klavzulo glede na playbook.

Pravica:CLAUSES_READ
Telo zahteve
PoljeVrstaOpis
clauseTextobveznostring
playbookIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
playbookNameobveznostring
compliantobveznoboolean
violationsobveznoarray of string
warningsobveznoarray of string
rulesCheckedobveznointeger
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"
}'

Raziskave

POST/api/v1/research/searchessearchResearch

Išče po pravnih virih, kot so Lovdata, EUR-Lex in CourtListener.

Pravica:RESEARCH_READPorablja kredite UI
Telo zahteve
PoljeVrstaOpis
queryobveznostring
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
Podatki odgovora (200)
PoljeVrstaOpis
queryobveznostring
jurisdictionobveznostring
resultsobveznoarray of object
totalCountobveznointegerResults 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

Poišče predpis po navedbi.

Pravica:RESEARCH_READPorablja kredite UI
Parametri poizvedbe
PoljeVrstaOpis
citationobveznostring
jurisdictionobveznostringISO 3166-1 alpha-2 country code, or "EU"
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostring
titleobveznostring
sourceobveznostring
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"

Predlogi sprememb

POST/api/v1/redlinescreateRedlines

Ustvari predloge sprememb za dokument ali besedilo.

Pravica:REDLINES_GENERATEPorablja kredite UI
Telo zahteve
PoljeVrstaOpis
documentIdstring
contentstring
partyRoleobvezno"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
Podatki odgovora (200)
PoljeVrstaOpis
changesobveznoarray of object
summaryobject
negotiationNotesarray of string
statisticsobveznoobject
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

Sprejme ali zavrne predlagane spremembe v dokumentu.

Pravica:REDLINES_GENERATE
Parametri poti
PoljeVrstaOpis
documentIdobveznostring
Telo zahteve
PoljeVrstaOpis
changesobveznoarray of object
Podatki odgovora (200)
PoljeVrstaOpis
acceptedobveznointeger
rejectedobveznointeger
messageobveznostring
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"
    }
  ]
}'

Pogajanja

POST/api/v1/negotiations/position-analysescreateNegotiationPositionAnalysis

Analizira pogajalsko izhodišče.

Pravica:NEGOTIATIONS_READPorablja kredite UI
Telo zahteve
PoljeVrstaOpis
documentIdstring
contentstring
partyRoleobvezno"BUYER" | "SELLER" | "LANDLORD" | "TENANT" | "EMPLOYER" | "EMPLOYEE"
contextobject
Podatki odgovora (200)
PoljeVrstaOpis
overallPositionobveznostringFAVORABLE, BALANCED or UNFAVORABLE
positionsobveznoarray 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

Na podlagi strategije sestavi pogajalski playbook.

Pravica:NEGOTIATIONS_READPorablja kredite UI
Telo zahteve
PoljeVrstaOpis
strategyobveznoobject
contextobject
Podatki odgovora (200)
PoljeVrstaOpis
playbookobveznoarray of object
anticipatedObjectionsobveznoarray of object
recommendationsobveznoarray of string
summaryobveznoobject
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"
    ]
  }
}'

Delovni tokovi

GET/api/v1/workflows/templateslistWorkflowTemplates

Navede predloge delovnih tokov.

Pravica:WORKFLOWS_EXECUTE
Parametri poizvedbe
PoljeVrstaOpis
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

Seznam izvajanj potekov dela, od najnovejšega, po želji za en projekt ali stanje.

Pravica:WORKFLOWS_EXECUTE
Parametri poizvedbe
PoljeVrstaOpis
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

Zažene delovni tok na projektu skrbnega pregleda.

Pravica:WORKFLOWS_EXECUTEPorablja kredite UI
Telo zahteve
PoljeVrstaOpis
templateIdobveznostring
projectIdobveznostring
inputsobveznoobject
optionsobject
Podatki odgovora (202)
PoljeVrstaOpis
executionIdobveznostring
templateIdobveznostring
templateNameobveznostring
statusobveznostring
startedAtobveznostringISO 8601 date-time
messageobveznostring
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

Vrne stanje izvajanja delovnega toka.

Pravica:WORKFLOWS_EXECUTE
Parametri poti
PoljeVrstaOpis
executionIdobveznostring
Parametri poizvedbe
PoljeVrstaOpis
includeStepsboolean
Podatki odgovora (200)
PoljeVrstaOpis
executionIdobveznostring
templateNameobveznostring
statusobveznostring
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"

Skrbni pregled

GET/api/v1/due-diligence/projectslistDueDiligenceProjects

Seznam projektov skrbnega pregleda, od najnovejšega.

Pravica:DUE_DILIGENCE_FULL
Parametri poizvedbe
PoljeVrstaOpis
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

Ustvari projekt skrbnega pregleda.

Pravica:DUE_DILIGENCE_FULL
Telo zahteve
PoljeVrstaOpis
nameobveznostring
dealTypeobvezno"MA_ACQUISITION" | "MA_MERGER" | "INVESTMENT" | "IPO" | "REAL_ESTATE" | "REGULATORY" | …
targetCompanystring
descriptionstring
settingsobject
Podatki odgovora (201)
PoljeVrstaOpis
projectIdobveznostring
nameobveznostring
projectTypeobveznostring
statusobveznostring
createdAtobveznostringISO 8601 date-time
messageobveznostring
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

Pridobitev projekta skrbnega pregleda s številom dokumentov in ugotovitev.

Pravica:DUE_DILIGENCE_FULL
Parametri poti
PoljeVrstaOpis
projectIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostring
nameobveznostring
descriptionobveznostring | null
projectTypeobveznostring
statusobveznostring
priorityobveznostring
targetCompanyobveznostring | null
dueDateobveznostring | null
documentCountobveznointeger
findingCountobveznointeger
createdAtobveznostringISO 8601 date-time
updatedAtobveznostringISO 8601 date-time
completedAtobveznostring | 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

Doda dokumente v projekt skrbnega pregleda.

Pravica:DUE_DILIGENCE_FULL
Parametri poti
PoljeVrstaOpis
projectIdobveznostring
Telo zahteve
PoljeVrstaOpis
documentIdsobveznoarray of string
categorystring
Podatki odgovora (200)
PoljeVrstaOpis
projectIdobveznostring
documentsAddedobveznointeger
totalDocumentsobveznointeger
categoryobveznostring
messageobveznostring
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

Navede ugotovitve projekta skrbnega pregleda.

Pravica:DUE_DILIGENCE_FULL
Parametri poti
PoljeVrstaOpis
projectIdobveznostring
Parametri poizvedbe
PoljeVrstaOpis
riskLevel"INFO" | "LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
categorystring
limitinteger
Podatki odgovora (200)
PoljeVrstaOpis
projectIdobveznostring
projectNameobveznostring
findingsobveznoarray of object
riskSummaryobveznoobjectNumber of findings per severity
totalFindingsobveznointeger
pendingProposalsobveznointegerRisks 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

Ustvari poročilo o skrbnem pregledu.

Pravica:DUE_DILIGENCE_FULL
Parametri poti
PoljeVrstaOpis
projectIdobveznostring
Telo zahteve
PoljeVrstaOpis
formatobvezno"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
Podatki odgovora (201)
PoljeVrstaOpis
reportIdobveznostring
projectIdobveznostring
projectNamestring
formatobvezno"pdf" | "markdown"
statusobveznostring
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
markdownobveznostring
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"
}'

Predloge in osnutki

GET/api/v1/templateslistTemplates

Navede predloge dokumentov.

Pravica:TEMPLATES_READ
Parametri poizvedbe
PoljeVrstaOpis
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

Ustvari osnutek iz predloge (mode template) ali z umetno inteligenco (mode ai).

Pravica:TEMPLATES_DRAFTPorablja kredite UI

Polje mode v telesu izbere eno od možnosti: mode: template, mode: ai.

Telo zahteve
PoljeVrstaOpis
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"
  }
}'

Primeri

GET/api/v1/caseslistCases

Prikaži lastne primere, od nazadnje spremenjenih.

Pravica:CASES_READ
Parametri poizvedbe
PoljeVrstaOpis
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

Pridobitev časovnice primera: vsak dogodek z datumom, dokazi in stališčem druge strani.

Pravica:CASES_READ
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
caseobveznoobject
eventsobveznoarray of objectIn date order
countobveznointeger
needsReviewCountobveznointegerEvents an AI added that no person has confirmed
deletionRequestedCountobveznointegerEvents 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

Dodaj dogodek na časovnico primera.

Pravica:CASES_WRITE
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
Telo zahteve
PoljeVrstaOpis
titleobveznostringWhat happened, in one line (at most 300 characters)
descriptionstring | nullMore detail, or null to clear it
whenobveznoobjectWhen 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
Podatki odgovora (201)
PoljeVrstaOpis
caseIdobveznostring
eventobveznoobject
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

Spremeni dogodek na časovnici primera ali potrdi dogodek, ki ga je dodala UI.

Pravica:CASES_WRITE
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
eventIdobveznostring
Telo zahteve
PoljeVrstaOpis
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
Podatki odgovora (200)
PoljeVrstaOpis
caseIdobveznostring
eventobveznoobject
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

Zahtevaj izbris dogodka s časovnice primera. Dogodek se izbriše šele, ko ga lastnik odobri v Attorly.

Pravica:CASES_WRITE
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
eventIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
caseIdobveznostring
idobveznostring
deletedobveznobooleantrue only when the event is gone
statusobvezno"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

Izvozi časovnico primera kot datoteko PDF, Word, ODT, Excel ali PowerPoint.

Pravica:CASES_READ
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
Telo zahteve
PoljeVrstaOpis
layoutobvezno"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
formatobvezno"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
Podatki odgovora (200)
PoljeVrstaOpis
caseIdobveznostring
layoutobvezno"overview" | "chronology" | "numbered" | "visual"
formatobvezno"pdf" | "docx" | "odt" | "xlsx" | "pptx"
localeobveznostringThe language the file is written in
eventCountobveznointegerEvents in the file
exhibitCountobveznointegerDocuments in the exhibit list (chronology and numbered layouts)
leftOutConfidentialobveznointegerEvents left out because they are marked confidential
attachmentobveznoobject
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

Prikaži roke primera, od najbližjega, s tem, čigav je kateri rok in ali je izpolnjen ali zamujen.

Pravica:CASES_READ
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
Parametri poizvedbe
PoljeVrstaOpis
status"open" | "completed"open: not yet marked done; completed: marked done; both when absent
Podatki odgovora (200)
PoljeVrstaOpis
caseobveznoobject
deadlinesobveznoarray of objectSoonest first
countobveznointeger
overdueCountobveznointeger
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

Dodaj rok primeru, na podani datum ali računan od zabeleženega dejstva.

Pravica:CASES_WRITE
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
Telo zahteve
PoljeVrstaOpis
titleobveznostringWhat 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
Podatki odgovora (201)
PoljeVrstaOpis
caseIdobveznostring
deadlineobveznoobject
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

Spremeni rok primera ali ga označi kot izpolnjenega ali znova odprtega.

Pravica:CASES_WRITE
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
deadlineIdobveznostring
Telo zahteve
PoljeVrstaOpis
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
Podatki odgovora (200)
PoljeVrstaOpis
caseIdobveznostring
deadlineobveznoobject
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

Prikaži dejstva, zabeležena pri primeru, z njihovim virom, in dejstva, ki jih primer še potrebuje.

Pravica:CASES_READ
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
caseobveznoobject
factsobveznoarray of object
countobveznointeger
caseReadsobveznoobject | 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

Zabeleži dejstvo pri primeru ali ga popravi. Roki, računani od njega, se premaknejo z njim.

Pravica:CASES_WRITE
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
Telo zahteve
PoljeVrstaOpis
keyobveznostringThe 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
valueobveznostringThe 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)
Podatki odgovora (200)
PoljeVrstaOpis
caseIdobveznostring
outcomeobvezno"recorded" | "corrected" | "unchanged"recorded: a new fact; corrected: a new value replaced the old one; unchanged: it already held this value
factobveznoobject
movedDeadlinesobveznoarray of objectOpen deadlines counted from the fact that moved with the correction, due days before and after
urlobveznostringWhere 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

Prikaži stranke primera in vloge, ki jih primer predvideva.

Pravica:CASES_READ
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
caseobveznoobject
partiesobveznoarray of object
countobveznointeger
rolesobveznoarray 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

Dodaj stranko primeru v eni od njegovih vlog.

Pravica:CASES_WRITE
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
Telo zahteve
PoljeVrstaOpis
roleKeyobveznostringThe role the party has in the case, as one of the roles parties_list returns (e.g. "landlord")
partyTypeobvezno"PERSON" | "ENTITY"PERSON for a person, ENTITY for a company or public body
nameobveznostringThe 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
Podatki odgovora (201)
PoljeVrstaOpis
caseIdobveznostring
partyobveznoobject
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

Spremeni podatke stranke primera.

Pravica:CASES_WRITE
Parametri poti
PoljeVrstaOpis
caseIdobveznostring
partyIdobveznostring
Telo zahteve
PoljeVrstaOpis
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
Podatki odgovora (200)
PoljeVrstaOpis
caseIdobveznostring
partyobveznoobject
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)"

Operacije

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

Pridobi stanje in rezultat zahteve, poslane s Prefer ali Idempotency-Key.

Parametri poti
PoljeVrstaOpis
operationIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostringop_…
objectobvezno"operation"
operationIdobveznostringThe REST operation that was called, e.g. createRedlines
statusobvezno"running" | "awaiting_approval" | "succeeded" | "failed"
livemodeobveznoboolean
idempotencyKeystring | null
resultUrlobveznostringWhere to poll: /api/v1/operations/{id}
createdAtobveznostring (date-time)
completedAtobveznostring (date-time) | null
expiresAtobveznostring (date-time)
httpStatusobveznointeger | null
resultobveznoanyThe data of the successful call
metaobject
errorobveznoobject | null
curl
curl "https://attorly.ai/api/v1/operations/op_abc123" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"

Spletni kavlji

GET/api/v1/webhook-endpointslistWebhookEndpoints

Seznam končnih točk spletnih kavljev organizacije in načina ključa.

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

Ustvarjanje končne točke spletnega kavlja. Odgovor vsebuje skrivnost za podpis, prikazano samo enkrat.

Telo zahteve
PoljeVrstaOpis
urlobveznostring (uri)HTTPS URL that receives the events
descriptionstring
enabledEventsobveznoarray 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.
Podatki odgovora (201)
PoljeVrstaOpis
idobveznostringwe_…
objectobvezno"webhook_endpoint"
urlobveznostring
descriptionstring | null
enabledEventsobveznoarray of string
statusobvezno"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeobveznoboolean
includeSnapshotsobveznoboolean
apiVersionobveznostring
failingSincestring (date-time) | null
createdAtobveznostring (date-time)
updatedAtobveznostring (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

Pridobitev končne točke spletnega kavlja.

Parametri poti
PoljeVrstaOpis
endpointIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostringwe_…
objectobvezno"webhook_endpoint"
urlobveznostring
descriptionstring | null
enabledEventsobveznoarray of string
statusobvezno"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeobveznoboolean
includeSnapshotsobveznoboolean
apiVersionobveznostring
failingSincestring (date-time) | null
createdAtobveznostring (date-time)
updatedAtobveznostring (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

Sprememba URL-ja, dogodkov ali posnetkov končne točke ali njen izklop in vklop.

Parametri poti
PoljeVrstaOpis
endpointIdobveznostring
Telo zahteve
PoljeVrstaOpis
urlstring (uri)
descriptionstring | null
enabledEventsarray of string
includeSnapshotsboolean
status"enabled" | "disabled"Disable to pause deliveries; enable to resume
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostringwe_…
objectobvezno"webhook_endpoint"
urlobveznostring
descriptionstring | null
enabledEventsobveznoarray of string
statusobvezno"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeobveznoboolean
includeSnapshotsobveznoboolean
apiVersionobveznostring
failingSincestring (date-time) | null
createdAtobveznostring (date-time)
updatedAtobveznostring (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

Izbris končne točke spletnega kavlja in zgodovine njenih dostav.

Parametri poti
PoljeVrstaOpis
endpointIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostring
objectobvezno"webhook_endpoint"
deletedobveznotrue
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

Zamenjava skrivnosti za podpis. Stara podpisuje še 24 ur.

Parametri poti
PoljeVrstaOpis
endpointIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostringwe_…
objectobvezno"webhook_endpoint"
urlobveznostring
descriptionstring | null
enabledEventsobveznoarray of string
statusobvezno"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeobveznoboolean
includeSnapshotsobveznoboolean
apiVersionobveznostring
failingSincestring (date-time) | null
createdAtobveznostring (date-time)
updatedAtobveznostring (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

Pošiljanje dogodka webhook_endpoint.test samo tej končni točki.

Parametri poti
PoljeVrstaOpis
endpointIdobveznostring
Podatki odgovora (202)
PoljeVrstaOpis
eventIdobveznostring
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

Seznam dostav končne točke, od najnovejše, s poskusi in izidom.

Parametri poti
PoljeVrstaOpis
endpointIdobveznostring
Parametri poizvedbe
PoljeVrstaOpis
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"

Dogodki

GET/api/v1/eventslistEvents

Seznam dogodkov zadnjih 30 dni, od najnovejšega.

Parametri poizvedbe
PoljeVrstaOpis
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

Pridobitev dogodka, kot ga prejmejo končne točke spletnih kavljev.

Parametri poti
PoljeVrstaOpis
eventIdobveznostring
Podatki odgovora (200)
PoljeVrstaOpis
idobveznostringevt_… — also sent as the webhook-id header; deduplicate on it
objectobvezno"event"
typeobvezno"analysis.completed" | "analysis.failed" | "redlines.generated" | "due_diligence.report.completed" | "operation.succeeded" | "operation.failed" | …
apiVersionobveznostring
createdAtobveznostring (date-time)
livemodeobveznoboolean
dataobveznoobject
curl
curl "https://attorly.ai/api/v1/events/your_eventId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/events/{eventId}/redeliveriesredeliverEvent

Ponovno pošiljanje dogodka eni končni točki ali vsem, ki so naročene nanj.

Parametri poti
PoljeVrstaOpis
eventIdobveznostring
Telo zahteve
PoljeVrstaOpis
endpointIdstringOnly this endpoint; default every endpoint subscribed to the event
Podatki odgovora (202)
PoljeVrstaOpis
eventIdobveznostring
deliveriesScheduledobveznointeger
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"
}'

Račun, poraba in dnevniki

GET/api/v1/organizationgetOrganization

Organizacija ključa: paket, dobroimetje za UI, privzeta pristojnost in kaj ključ sme.

Podatki odgovora (200)
PoljeVrstaOpis
organizationobveznoobject
userobveznoobject
planobveznostringSTANDARD, PRO or ENTERPRISE
billingobveznoobject
defaultJurisdictionobveznostring | nullISO 3166-1 alpha-2 country used when a document names no governing law
credentialobveznoobject
appUrlobveznostring
curl
curl "https://attorly.ai/api/v1/organization" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
GET/api/v1/usagegetUsage

Zahteve na dan, ključ in operacijo s številom napak, prek REST in MCP.

Parametri poizvedbe
PoljeVrstaOpis
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

Seznam zahtev API organizacije v zadnjih 30 dneh, od najnovejše.

Parametri poizvedbe
PoljeVrstaOpis
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

Kdo je klical kaj, kdaj in s katerim ključem. Za lastnike in skrbnike organizacije.

Parametri poizvedbe
PoljeVrstaOpis
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

Izbris vseh objektov, dogodkov in operacij testnega načina organizacije. Samo testni ključi.

Podatki odgovora (200)
PoljeVrstaOpis
objectobvezno"test_data_purge"
deletedobveznoobject
curl
curl -X DELETE "https://attorly.ai/api/v1/test-data" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"