Fara í aðalefni

Forritarar

REST-API-skjölun

JSON-yfir-HTTPS-API fyrir lögfræðilega gervigreind Attorly. Það keyrir sömu aðgerðir og MCP-þjónninn, með sömu lyklum, heimildum, takmörkum og gjaldtöku.

Flýtibyrjun

Hladdu upp samningi og greindu hann í fjórum skrefum.

  1. 1. Búðu til lykil

    Búðu til lykil undir Stillingar › Forritarar og veldu REST API. Sami lykill virkar fyrir MCP-þjóninn. Geymdu hann í umhverfisbreytu:

    bash
    export ATTORLY_API_KEY=lbmcp_your_api_key
  2. 2. Hladdu upp skjali

    Sendu skrána sem multipart/form-data. data.id í svarinu er auðkenni skjalsins. analyze=false vistar það án þess að ræsa greiningu í bakgrunni, því næsta skref keyrir greiningu.

    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. Greindu það

    Prefer: wait=30 bíður í allt að 30 sekúndur eftir niðurstöðunni. Lokin greining kemur til baka sem 200 með niðurstöðuna í data. Ef hún tekur lengri tíma færðu 202 Accepted með Location-haus sem vísar á aðgerðina.

    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. Sæktu niðurstöðuna

    Sæktu aðgerðina þar til staða hennar er succeeded eða failed. Greiningin er í result. Retry-After segir hve margar sekúndur á að bíða milli sókna.

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

Auðkenning

Sendu auðkenni í Authorization-hausnum sem Bearer-tóka. Lyklar úr Stillingar › Forritarar byrja á lbmcp_ og virka í Pro og Enterprise, bæði fyrir REST-API og MCP-netþjóninn. Fyrirtækjalyklar í Enterprise byrja á atly_ (atly_rk_ fyrir takmarkaða lykla, atly_test_ fyrir prófunarham); eldri lb_-lyklar virka áfram. Forrit sem starfa fyrir hönd einstaklings nota OAuth.

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

Heimildir

Hver endapunktur krefst heimildanna sem tilgreindar eru við hliðina á honum. Lykill án þeirra fær 403 insufficient_scope og requiredScopes í villunni telur upp allar heimildir sem kallið þarf. API-lyklar fyrirtækja og OAuth nota þessi heiti:

HeimildHeimild API-lykils fyrirtækis
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

Villur

Allar villur hafa sama snið: fastan kóða fyrir forritsrökfræði, skilaboð fyrir fólk og requestId til að gefa þjónustuveri.

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

Hver kóði er útskýrður, ásamt því hvað á að gera, á síðunni um villukóða

Útgáfur

API-ið er útgáfumerkt eftir dagsetningu. Sendu Attorly-Version til að velja útgáfu fyrir eina beiðni; án þess notar beiðnin útgáfuna sem lykillinn var búinn til með (lyklar frá því fyrir útgáfumerkingu nota 2026-10-01). Hvert svar segir hvaða útgáfa svaraði. Ósamrýmanlegar breytingar koma aðeins í nýrri útgáfu og breytingaskráin telur þær upp.

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

Endurteknar beiðnir (idempotency)

Sendu Idempotency-Key-haus, til dæmis UUID, með POST-, PATCH- og DELETE-beiðnum. Endurtekin tilraun með sama lykli og sömu beiðni fær fyrsta svarið aftur með Idempotent-Replayed: true og verkið er hvorki keyrt né rukkað aftur. Lykill sem er endurnýttur fyrir aðra beiðni fær 422 idempotency_key_reused og lykill sem er enn í gangi fær 409 eða, fyrir langvinnt kall, sömu aðgerð. Netþjónsvillur eru ekki vistaðar, svo endurtekning keyrir aftur. Lyklar eru geymdir í 24 klukkustundir.

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

Beiðnir sem taka tíma

Frá útgáfu 2026-11-01 svara heildargreiningar, redline-tillögur, samningaáætlanir, verkflæði, áreiðanleikakönnunarskýrslur og gervigreindardrög strax með 202 Accepted og aðgerð. Sendu Prefer: wait=30 til að bíða fyrst eftir niðurstöðunni í allt að 30 sekúndur (mest 60) eða Prefer: respond-async til að biðja um 202 á hvaða skrif sem er. Spyrðu Location þar til staðan er succeeded eða failed, eða gerstu áskrifandi að operation.succeeded. Niðurstöður eru geymdar í 24 klukkustundir. Hvert fyrirtæki keyrir í mesta lagi 5 langvinnar gervigreindaraðgerðir í einu; fleiri fá 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", … } }

Síðuskipting

Listar skila { object: "list", data, hasMore, nextCursor } og taka við limit (1 til 100, sjálfgefið 20) og cursor. Til að fá næstu síðu skaltu senda nextCursor sem cursor. Á síðustu síðu er nextCursor null. Bendill helst gildur þótt nýjum atriðum sé bætt við.

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…

Takmörk á beiðnum

Beiðni telst í nokkrum gluggum: klukkustundarmörk lykilsins, 300 á mínútu á mann, 600 á mínútu á fyrirtæki, mínútumörk á lykil fyrir lestur, skrif og gervigreindarköll og eigin mörk hverrar aðgerðar. REST og MCP deila sömu teljurum. Hausarnir RateLimit-Policy og RateLimit sýna alla glugga; X-RateLimit-* sýnir þann sem er næst því að fyllast. Yfir mörkum færðu 429 með 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

Vefkrókar

Búðu til endapunkt með POST /api/v1/webhook-endpoints til að fá tilkynningu þegar verki lýkur í stað þess að spyrja. Attorly sendir POST með JSON-atburði, undirrituðum samkvæmt Standard Webhooks með whsec_-leyndarmáli endapunktsins. Staðfestu undirskriftina áður en þú treystir innihaldinu, svaraðu með 2xx innan 15 sekúndna og fjarlægðu tvítekningar eftir webhook-id: misheppnaðar sendingar eru reyndar aftur í 72 klukkustundir. Þú getur skipt um leyndarmál, sent prófunaratburð og séð hverja sendingu.

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

Prófunarhamur

Prófunarlyklar (atly_test_…) ná til allra endapunkta en vinna með aðskilin prófunargögn og skila föstum sýnishornsniðurstöðum: engin gervigreind keyrir og engin inneign er notuð. Prófunarlykill sér aldrei raunveruleg gögn. Settu töfragildi eins og __fail_credits__, __fail_consent__ eða __slow__ í hvaða textareit sem er til að fá þá villu eða töf. DELETE /api/v1/test-data eyðir öllu sem prófunarlyklar hafa búið til.

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

Forrit sem starfa fyrir hönd Attorly-notanda skrá sig inn með OAuth 2.1: uppgötvun á /.well-known/oauth-authorization-server, kvik skráning biðlara og heimildarkóðaflæði með PKCE (S256). Biddu um resource=https://attorly.ai/api/v1 til að fá tóka fyrir REST-API; tóka sem gefinn var út fyrir MCP-netþjóninn er hafnað hér. Bættu við offline_access til að fá endurnýjunartóka. Einstaklingurinn velur fyrirtækið og getur þrengt heimildirnar á samþykkisskjánum.

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

Gjaldtaka

Aðgerðir sem nota gervigreind nota sömu gervigreindarinneign og Attorly-forritið, úr veski eiganda lykilsins eða fyrirtækis hans, hvort sem þú kallar á þær í gegnum REST eða MCP. Þegar inneignin klárast færðu 402 insufficient_credits. Köll í prófunarham eru ókeypis.

Áskriftir

API-ið er innifalið í Pro og Enterprise. Ef áskrift eiganda lykilsins felur ekki lengur í sér API-aðgang, eða eigandinn hefur yfirgefið fyrirtækið, er beiðnum hafnað með 403.

Lýsing

Hver aðgerð, búin til úr OpenAPI-skjalinu sem API-ið sjálft birtir. Slóðir eru miðaðar við https://attorly.ai. Árangursrík svör pakka niðurstöðunni inn í data. Lýsingar reita eru á ensku.

Skjöl

GET/api/v1/documentslistDocuments

Telja upp vistuð skjöl sem lykillinn getur lesið, nýjustu fyrst.

Heimild:DOCUMENTS_READ
Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

Hlaða upp skjali sem multipart/form-data, eða sem JSON með base64-efni eða hreinum texta. Það er greint í bakgrunni nema analyze sé false.

Heimild:DOCUMENTS_WRITENotar gervigreindarinneignirTekur við upphleðslu skráa
Meginmál beiðnar
ReiturTegundLýsing
filenameáskiliðstringThe 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
Gögn svars (201)
ReiturTegundLýsing
idáskiliðstring
nameáskiliðstring
originalNameáskiliðstring
typeáskilið"EMPLOYMENT_CONTRACT" | "LEASE_AGREEMENT" | "PURCHASE_AGREEMENT" | "NDA" | "TERMS_OF_SERVICE" | "EMAIL" | …
sizeáskiliðinteger
statusáskilið"PENDING" | "PROCESSING" | "ANALYZED" | "FAILED"PENDING until processing starts; ANALYZED once the analysis is stored
analysisQueuedáskiliðbooleantrue when the background analysis was started
createdAtáskiliðstringISO 8601 date-time
urláskiliðstringWhere 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

Leita í texta skjalanna sem lykillinn getur lesið, eftir merkingu og nákvæmum orðum.

Heimild:DOCUMENTS_READ
Fyrirspurnarfæribreytur
ReiturTegundLýsing
queryáskiliðstringWhat 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

Sækja skjal, vinnslustöðu þess og nýjustu greiningu.

Heimild:DOCUMENTS_READ
Slóðarfæribreytur
ReiturTegundLýsing
documentIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstring
nameáskiliðstring
originalNameáskiliðstring
typeáskilið"EMPLOYMENT_CONTRACT" | "LEASE_AGREEMENT" | "PURCHASE_AGREEMENT" | "NDA" | "TERMS_OF_SERVICE" | "EMAIL" | …
mimeTypeáskiliðstring
sizeáskiliðinteger
statusáskilið"PENDING" | "PROCESSING" | "ANALYZED" | "FAILED"PENDING until processing starts; ANALYZED once the analysis is stored
archivedáskiliðboolean
ownedByYouáskiliðboolean
versionNumberáskiliðinteger | 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.
createdAtáskiliðstringISO 8601 date-time
updatedAtáskiliðstringISO 8601 date-time
fileAvailableáskiliðbooleanfalse when the stored file can no longer be read
governingLawRequiredáskiliðbooleantrue when the analysis is held until a governing law is chosen for the document in Attorly
latestAnalysisáskiliðobject | null
urláskiliðstringWhere 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

Biðja um að skjali í þinni eigu verði eytt. Skjalinu er aðeins eytt þegar þú samþykkir eyðinguna í Attorly.

Heimild:DOCUMENTS_DELETE
Slóðarfæribreytur
ReiturTegundLýsing
documentIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstring
deletedáskiliðbooleantrue only when the document is gone
statusáskilið"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

Greina skjal eða texta sem sendur er með. mode er full (vistað skjal) eða quick.

Heimild:DOCUMENTS_ANALYZEDOCUMENTS_READNotar gervigreindarinneignir

Reiturinn mode í meginmálinu velur eitt af: mode: full, mode: quick.

Meginmál beiðnar
ReiturTegundLýsing
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

Vistaðar greiningar skjals, nýjustu fyrst.

Heimild:DOCUMENTS_READ
Slóðarfæribreytur
ReiturTegundLýsing
documentIdáskiliðstring
Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

Greina vistað skjal.

Heimild:DOCUMENTS_ANALYZEDOCUMENTS_READNotar gervigreindarinneignir
Slóðarfæribreytur
ReiturTegundLýsing
documentIdáskiliðstring

Reiturinn mode í meginmálinu velur eitt af: mode: full, mode: quick.

Meginmál beiðnar
ReiturTegundLýsing
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

Draga út hreinan texta úr vistuðu PDF- eða DOCX-skjali.

Heimild:DOCUMENTS_READ
Slóðarfæribreytur
ReiturTegundLýsing
documentIdáskiliðstring
Fyrirspurnarfæribreytur
ReiturTegundLýsing
offsetintegerCharacter offset to start from; pass the nextOffset of the previous call to read on
maxCharactersintegerMost characters to return in this call
Gögn svars (200)
ReiturTegundLýsing
textáskiliðstringThe document text from offset (untrusted content)
documentNameáskiliðstring
documentTypeáskiliðstring
mimeTypeáskiliðstring | null
characterCountáskiliðintegerCharacters in the whole document
wordCountáskiliðintegerWords in the whole document
offsetáskiliðinteger
nextOffsetáskiliðinteger | nullPass as offset to read on; null when the text ends here
truncatedáskiliðbooleantrue 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

Sækja vistaða greiningu: samantekt, áhætta, lykilskilmálar, ákvæði og ráðleggingar.

Heimild:DOCUMENTS_READ
Slóðarfæribreytur
ReiturTegundLýsing
analysisIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstring
documentIdáskiliðstring
documentNameáskiliðstring
summaryáskiliðstring | null
riskLeveláskilið"LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
riskScoreáskiliðnumber
keyTermsáskiliðarray of any
clausesáskiliðarray of any
recommendationsáskiliðarray of any
modeáskiliðstringSINGLE or CONSENSUS
createdAtáskiliðstringISO 8601 date-time
urláskiliðstring
curl
curl "https://attorly.ai/api/v1/analyses/your_analysisId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/comparisonscreateComparison

Bera saman tvö skjöl eða texta línu fyrir línu.

Heimild:DOCUMENTS_READ
Meginmál beiðnar
ReiturTegundLýsing
sourceDocumentIdstring
sourceContentstring
targetDocumentIdstring
targetContentstring
Gögn svars (200)
ReiturTegundLýsing
differencesáskiliðarray of object
summaryáskiliðobject
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"
}'

Ákvæði

GET/api/v1/clausessearchClauses

Leita í ákvæðasafninu.

Heimild:CLAUSES_READ
Fyrirspurnarfæribreytur
ReiturTegundLýsing
queryáskiliðstring
category"INDEMNIFICATION" | "LIABILITY" | "TERMINATION" | "CONFIDENTIALITY" | "INTELLECTUAL_PROPERTY" | "PAYMENT" | …
jurisdictionstring
riskLevel"LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
limitinteger
Gögn svars (200)
ReiturTegundLýsing
clausesáskiliðarray of object
countáskiliðinteger
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

Meta áhættu ákvæðis.

Heimild:CLAUSES_READ
Meginmál beiðnar
ReiturTegundLýsing
clauseTextáskiliðstring
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" | …
Gögn svars (200)
ReiturTegundLýsing
clauseTextstring
clauseTypeáskiliðstring
jurisdictionáskiliðstring
overallRiskScoreáskiliðnumber
riskLeveláskilið"LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
riskFactorsáskiliðarray of object
recommendationsáskiliðarray 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

Bera ákvæði saman við hefðbundið orðalag á markaði.

Heimild:CLAUSES_READ
Meginmál beiðnar
ReiturTegundLýsing
clauseTextáskiliðstring
categoryáskilið"INDEMNIFICATION" | "LIABILITY" | "TERMINATION" | "CONFIDENTIALITY" | "INTELLECTUAL_PROPERTY" | "PAYMENT" | …
contractTypestring
jurisdictionstring
Gögn svars (200)
ReiturTegundLýsing
inputClauseáskiliðstring
categoryáskiliðstring
marketStandardsáskiliðarray of object
comparisonáskiliðobject
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

Yfirfara ákvæði út frá leikbók.

Heimild:CLAUSES_READ
Meginmál beiðnar
ReiturTegundLýsing
clauseTextáskiliðstring
playbookIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
playbookNameáskiliðstring
compliantáskiliðboolean
violationsáskiliðarray of string
warningsáskiliðarray of string
rulesCheckedáskiliðinteger
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"
}'

Rannsóknir

POST/api/v1/research/searchessearchResearch

Leita í lögfræðilegum heimildum á borð við Lovdata, EUR-Lex og CourtListener.

Heimild:RESEARCH_READNotar gervigreindarinneignir
Meginmál beiðnar
ReiturTegundLýsing
queryáskiliðstring
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
Gögn svars (200)
ReiturTegundLýsing
queryáskiliðstring
jurisdictionáskiliðstring
resultsáskiliðarray of object
totalCountáskiliðintegerResults 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

Fletta upp lagaákvæði eftir tilvísun.

Heimild:RESEARCH_READNotar gervigreindarinneignir
Fyrirspurnarfæribreytur
ReiturTegundLýsing
citationáskiliðstring
jurisdictionáskiliðstringISO 3166-1 alpha-2 country code, or "EU"
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstring
titleáskiliðstring
sourceáskiliðstring
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"

Breytingartillögur

POST/api/v1/redlinescreateRedlines

Búa til breytingartillögur fyrir skjal eða texta.

Heimild:REDLINES_GENERATENotar gervigreindarinneignir
Meginmál beiðnar
ReiturTegundLýsing
documentIdstring
contentstring
partyRoleáskilið"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
Gögn svars (200)
ReiturTegundLýsing
changesáskiliðarray of object
summaryobject
negotiationNotesarray of string
statisticsáskiliðobject
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

Samþykkja eða hafna breytingum á skjali.

Heimild:REDLINES_GENERATE
Slóðarfæribreytur
ReiturTegundLýsing
documentIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
changesáskiliðarray of object
Gögn svars (200)
ReiturTegundLýsing
acceptedáskiliðinteger
rejectedáskiliðinteger
messageáskiliðstring
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"
    }
  ]
}'

Samningaviðræður

POST/api/v1/negotiations/position-analysescreateNegotiationPositionAnalysis

Greina samningsstöðu.

Heimild:NEGOTIATIONS_READNotar gervigreindarinneignir
Meginmál beiðnar
ReiturTegundLýsing
documentIdstring
contentstring
partyRoleáskilið"BUYER" | "SELLER" | "LANDLORD" | "TENANT" | "EMPLOYER" | "EMPLOYEE"
contextobject
Gögn svars (200)
ReiturTegundLýsing
overallPositionáskiliðstringFAVORABLE, BALANCED or UNFAVORABLE
positionsáskiliðarray 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

Setja saman samningaleikbók út frá stefnu.

Heimild:NEGOTIATIONS_READNotar gervigreindarinneignir
Meginmál beiðnar
ReiturTegundLýsing
strategyáskiliðobject
contextobject
Gögn svars (200)
ReiturTegundLýsing
playbookáskiliðarray of object
anticipatedObjectionsáskiliðarray of object
recommendationsáskiliðarray of string
summaryáskiliðobject
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"
    ]
  }
}'

Verkflæði

GET/api/v1/workflows/templateslistWorkflowTemplates

Birta lista yfir verkflæðissniðmát.

Heimild:WORKFLOWS_EXECUTE
Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

Keyrslur verkflæða, nýjustu fyrst, að vali fyrir eitt verkefni eða eina stöðu.

Heimild:WORKFLOWS_EXECUTE
Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

Ræsa verkflæði í áreiðanleikakönnunarverkefni.

Heimild:WORKFLOWS_EXECUTENotar gervigreindarinneignir
Meginmál beiðnar
ReiturTegundLýsing
templateIdáskiliðstring
projectIdáskiliðstring
inputsáskiliðobject
optionsobject
Gögn svars (202)
ReiturTegundLýsing
executionIdáskiliðstring
templateIdáskiliðstring
templateNameáskiliðstring
statusáskiliðstring
startedAtáskiliðstringISO 8601 date-time
messageáskiliðstring
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

Sækja stöðu keyrslu verkflæðis.

Heimild:WORKFLOWS_EXECUTE
Slóðarfæribreytur
ReiturTegundLýsing
executionIdáskiliðstring
Fyrirspurnarfæribreytur
ReiturTegundLýsing
includeStepsboolean
Gögn svars (200)
ReiturTegundLýsing
executionIdáskiliðstring
templateNameáskiliðstring
statusáskiliðstring
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"

Áreiðanleikakönnun

GET/api/v1/due-diligence/projectslistDueDiligenceProjects

Áreiðanleikakönnunarverkefni, nýjustu fyrst.

Heimild:DUE_DILIGENCE_FULL
Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

Stofna áreiðanleikakönnunarverkefni.

Heimild:DUE_DILIGENCE_FULL
Meginmál beiðnar
ReiturTegundLýsing
nameáskiliðstring
dealTypeáskilið"MA_ACQUISITION" | "MA_MERGER" | "INVESTMENT" | "IPO" | "REAL_ESTATE" | "REGULATORY" | …
targetCompanystring
descriptionstring
settingsobject
Gögn svars (201)
ReiturTegundLýsing
projectIdáskiliðstring
nameáskiliðstring
projectTypeáskiliðstring
statusáskiliðstring
createdAtáskiliðstringISO 8601 date-time
messageáskiliðstring
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

Sækja áreiðanleikakönnunarverkefni með fjölda skjala og niðurstaðna.

Heimild:DUE_DILIGENCE_FULL
Slóðarfæribreytur
ReiturTegundLýsing
projectIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstring
nameáskiliðstring
descriptionáskiliðstring | null
projectTypeáskiliðstring
statusáskiliðstring
priorityáskiliðstring
targetCompanyáskiliðstring | null
dueDateáskiliðstring | null
documentCountáskiliðinteger
findingCountáskiliðinteger
createdAtáskiliðstringISO 8601 date-time
updatedAtáskiliðstringISO 8601 date-time
completedAtáskiliðstring | 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

Bæta skjölum við áreiðanleikakönnunarverkefni.

Heimild:DUE_DILIGENCE_FULL
Slóðarfæribreytur
ReiturTegundLýsing
projectIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
documentIdsáskiliðarray of string
categorystring
Gögn svars (200)
ReiturTegundLýsing
projectIdáskiliðstring
documentsAddedáskiliðinteger
totalDocumentsáskiliðinteger
categoryáskiliðstring
messageáskiliðstring
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

Birta niðurstöður áreiðanleikakönnunarverkefnis.

Heimild:DUE_DILIGENCE_FULL
Slóðarfæribreytur
ReiturTegundLýsing
projectIdáskiliðstring
Fyrirspurnarfæribreytur
ReiturTegundLýsing
riskLevel"INFO" | "LOW" | "MEDIUM" | "HIGH" | "CRITICAL"
categorystring
limitinteger
Gögn svars (200)
ReiturTegundLýsing
projectIdáskiliðstring
projectNameáskiliðstring
findingsáskiliðarray of object
riskSummaryáskiliðobjectNumber of findings per severity
totalFindingsáskiliðinteger
pendingProposalsáskiliðintegerRisks 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

Búa til skýrslu um áreiðanleikakönnun.

Heimild:DUE_DILIGENCE_FULL
Slóðarfæribreytur
ReiturTegundLýsing
projectIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
formatáskilið"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
Gögn svars (201)
ReiturTegundLýsing
reportIdáskiliðstring
projectIdáskiliðstring
projectNamestring
formatáskilið"pdf" | "markdown"
statusáskiliðstring
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
markdownáskiliðstring
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"
}'

Sniðmát og drög

GET/api/v1/templateslistTemplates

Birta lista yfir skjalasniðmát.

Heimild:TEMPLATES_READ
Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

Búa til drög út frá sniðmáti (mode template) eða með gervigreind (mode ai).

Heimild:TEMPLATES_DRAFTNotar gervigreindarinneignir

Reiturinn mode í meginmálinu velur eitt af: mode: template, mode: ai.

Meginmál beiðnar
ReiturTegundLýsing
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"
  }
}'

Mál

GET/api/v1/caseslistCases

Telja upp málin þín, síðast breyttu fyrst.

Heimild:CASES_READ
Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

Sækja tímalínu máls: hvern atburð með dagsetningu, sönnunargögnum og afstöðu gagnaðila.

Heimild:CASES_READ
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
caseáskiliðobject
eventsáskiliðarray of objectIn date order
countáskiliðinteger
needsReviewCountáskiliðintegerEvents an AI added that no person has confirmed
deletionRequestedCountáskiliðintegerEvents 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

Bæta atburði við tímalínu máls.

Heimild:CASES_WRITE
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
titleáskiliðstringWhat happened, in one line (at most 300 characters)
descriptionstring | nullMore detail, or null to clear it
whenáskiliðobjectWhen 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
Gögn svars (201)
ReiturTegundLýsing
caseIdáskiliðstring
eventáskiliðobject
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

Breyta atburði á tímalínu máls, eða staðfesta atburð sem gervigreind bætti við.

Heimild:CASES_WRITE
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
eventIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
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
Gögn svars (200)
ReiturTegundLýsing
caseIdáskiliðstring
eventáskiliðobject
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

Biðja um að atburði sé eytt af tímalínu máls. Atburðinum er aðeins eytt þegar eigandinn samþykkir það í Attorly.

Heimild:CASES_WRITE
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
eventIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
caseIdáskiliðstring
idáskiliðstring
deletedáskiliðbooleantrue only when the event is gone
statusáskilið"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

Flytja tímalínu máls út sem PDF-, Word-, ODT-, Excel- eða PowerPoint-skrá.

Heimild:CASES_READ
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
layoutáskilið"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
formatáskilið"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
Gögn svars (200)
ReiturTegundLýsing
caseIdáskiliðstring
layoutáskilið"overview" | "chronology" | "numbered" | "visual"
formatáskilið"pdf" | "docx" | "odt" | "xlsx" | "pptx"
localeáskiliðstringThe language the file is written in
eventCountáskiliðintegerEvents in the file
exhibitCountáskiliðintegerDocuments in the exhibit list (chronology and numbered layouts)
leftOutConfidentialáskiliðintegerEvents left out because they are marked confidential
attachmentáskiliðobject
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

Telja upp fresti máls, þann næsta fyrst, með því hvers frestur hver er og hvort hann er uppfylltur eða liðinn.

Heimild:CASES_READ
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
Fyrirspurnarfæribreytur
ReiturTegundLýsing
status"open" | "completed"open: not yet marked done; completed: marked done; both when absent
Gögn svars (200)
ReiturTegundLýsing
caseáskiliðobject
deadlinesáskiliðarray of objectSoonest first
countáskiliðinteger
overdueCountáskiliðinteger
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

Bæta fresti við mál, á tiltekinni dagsetningu eða reiknuðum frá skráðri staðreynd.

Heimild:CASES_WRITE
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
titleáskiliðstringWhat 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
Gögn svars (201)
ReiturTegundLýsing
caseIdáskiliðstring
deadlineáskiliðobject
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

Breyta fresti máls, eða merkja hann sem lokið eða opinn á ný.

Heimild:CASES_WRITE
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
deadlineIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
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
Gögn svars (200)
ReiturTegundLýsing
caseIdáskiliðstring
deadlineáskiliðobject
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

Telja upp staðreyndir sem skráðar eru á mál, með uppruna þeirra, og staðreyndir sem málið vantar enn.

Heimild:CASES_READ
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
caseáskiliðobject
factsáskiliðarray of object
countáskiliðinteger
caseReadsáskiliðobject | 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

Skrá staðreynd á mál, eða leiðrétta hana. Frestir sem reiknast frá henni færast með henni.

Heimild:CASES_WRITE
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
keyáskiliðstringThe 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
valueáskiliðstringThe 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)
Gögn svars (200)
ReiturTegundLýsing
caseIdáskiliðstring
outcomeáskilið"recorded" | "corrected" | "unchanged"recorded: a new fact; corrected: a new value replaced the old one; unchanged: it already held this value
factáskiliðobject
movedDeadlinesáskiliðarray of objectOpen deadlines counted from the fact that moved with the correction, due days before and after
urláskiliðstringWhere 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

Telja upp aðila máls og þau hlutverk sem málið býður upp á.

Heimild:CASES_READ
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
caseáskiliðobject
partiesáskiliðarray of object
countáskiliðinteger
rolesáskiliðarray 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

Bæta aðila við mál, í einu af hlutverkum þess.

Heimild:CASES_WRITE
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
roleKeyáskiliðstringThe role the party has in the case, as one of the roles parties_list returns (e.g. "landlord")
partyTypeáskilið"PERSON" | "ENTITY"PERSON for a person, ENTITY for a company or public body
nameáskiliðstringThe 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
Gögn svars (201)
ReiturTegundLýsing
caseIdáskiliðstring
partyáskiliðobject
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

Breyta upplýsingum um aðila máls.

Heimild:CASES_WRITE
Slóðarfæribreytur
ReiturTegundLýsing
caseIdáskiliðstring
partyIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
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
Gögn svars (200)
ReiturTegundLýsing
caseIdáskiliðstring
partyáskiliðobject
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)"

Aðgerðir

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

Sækja stöðu og niðurstöðu beiðni sem var send með Prefer eða Idempotency-Key.

Slóðarfæribreytur
ReiturTegundLýsing
operationIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstringop_…
objectáskilið"operation"
operationIdáskiliðstringThe REST operation that was called, e.g. createRedlines
statusáskilið"running" | "awaiting_approval" | "succeeded" | "failed"
livemodeáskiliðboolean
idempotencyKeystring | null
resultUrláskiliðstringWhere to poll: /api/v1/operations/{id}
createdAtáskiliðstring (date-time)
completedAtáskiliðstring (date-time) | null
expiresAtáskiliðstring (date-time)
httpStatusáskiliðinteger | null
resultáskiliðanyThe data of the successful call
metaobject
erroráskiliðobject | null
curl
curl "https://attorly.ai/api/v1/operations/op_abc123" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"

Vefkrókar

GET/api/v1/webhook-endpointslistWebhookEndpoints

Vefkrókaendapunktar fyrirtækis og hams lykilsins.

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

Búa til vefkrókaendapunkt. Svarið inniheldur undirritunarleyndarmálið, sem er aðeins sýnt einu sinni.

Meginmál beiðnar
ReiturTegundLýsing
urláskiliðstring (uri)HTTPS URL that receives the events
descriptionstring
enabledEventsáskiliðarray 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.
Gögn svars (201)
ReiturTegundLýsing
idáskiliðstringwe_…
objectáskilið"webhook_endpoint"
urláskiliðstring
descriptionstring | null
enabledEventsáskiliðarray of string
statusáskilið"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeáskiliðboolean
includeSnapshotsáskiliðboolean
apiVersionáskiliðstring
failingSincestring (date-time) | null
createdAtáskiliðstring (date-time)
updatedAtáskiliðstring (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

Sækja vefkrókaendapunkt.

Slóðarfæribreytur
ReiturTegundLýsing
endpointIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstringwe_…
objectáskilið"webhook_endpoint"
urláskiliðstring
descriptionstring | null
enabledEventsáskiliðarray of string
statusáskilið"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeáskiliðboolean
includeSnapshotsáskiliðboolean
apiVersionáskiliðstring
failingSincestring (date-time) | null
createdAtáskiliðstring (date-time)
updatedAtáskiliðstring (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

Breyta vefslóð, atburðum eða skyndimyndum endapunkts, eða slökkva og kveikja á honum.

Slóðarfæribreytur
ReiturTegundLýsing
endpointIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
urlstring (uri)
descriptionstring | null
enabledEventsarray of string
includeSnapshotsboolean
status"enabled" | "disabled"Disable to pause deliveries; enable to resume
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstringwe_…
objectáskilið"webhook_endpoint"
urláskiliðstring
descriptionstring | null
enabledEventsáskiliðarray of string
statusáskilið"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeáskiliðboolean
includeSnapshotsáskiliðboolean
apiVersionáskiliðstring
failingSincestring (date-time) | null
createdAtáskiliðstring (date-time)
updatedAtáskiliðstring (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

Eyða vefkrókaendapunkti og sendingasögu hans.

Slóðarfæribreytur
ReiturTegundLýsing
endpointIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstring
objectáskilið"webhook_endpoint"
deletedáskiliðtrue
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

Skipta um undirritunarleyndarmál. Það gamla undirritar áfram í 24 klukkustundir.

Slóðarfæribreytur
ReiturTegundLýsing
endpointIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstringwe_…
objectáskilið"webhook_endpoint"
urláskiliðstring
descriptionstring | null
enabledEventsáskiliðarray of string
statusáskilið"enabled" | "disabled"
disabledReasonstring | nulldisabled_by_user or failing_deliveries
livemodeáskiliðboolean
includeSnapshotsáskiliðboolean
apiVersionáskiliðstring
failingSincestring (date-time) | null
createdAtáskiliðstring (date-time)
updatedAtáskiliðstring (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

Senda atburðinn webhook_endpoint.test aðeins á þennan endapunkt.

Slóðarfæribreytur
ReiturTegundLýsing
endpointIdáskiliðstring
Gögn svars (202)
ReiturTegundLýsing
eventIdáskiliðstring
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

Sendingar endapunkts, nýjustu fyrst, með tilraunum og niðurstöðu.

Slóðarfæribreytur
ReiturTegundLýsing
endpointIdáskiliðstring
Fyrirspurnarfæribreytur
ReiturTegundLýsing
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"

Atburðir

GET/api/v1/eventslistEvents

Atburðir síðustu 30 daga, nýjustu fyrst.

Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

Sækja atburð eins og vefkrókaendapunktar fá hann.

Slóðarfæribreytur
ReiturTegundLýsing
eventIdáskiliðstring
Gögn svars (200)
ReiturTegundLýsing
idáskiliðstringevt_… — also sent as the webhook-id header; deduplicate on it
objectáskilið"event"
typeáskilið"analysis.completed" | "analysis.failed" | "redlines.generated" | "due_diligence.report.completed" | "operation.succeeded" | "operation.failed" | …
apiVersionáskiliðstring
createdAtáskiliðstring (date-time)
livemodeáskiliðboolean
dataáskiliðobject
curl
curl "https://attorly.ai/api/v1/events/your_eventId" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
POST/api/v1/events/{eventId}/redeliveriesredeliverEvent

Senda atburð aftur, á einn endapunkt eða alla sem eru áskrifendur að honum.

Slóðarfæribreytur
ReiturTegundLýsing
eventIdáskiliðstring
Meginmál beiðnar
ReiturTegundLýsing
endpointIdstringOnly this endpoint; default every endpoint subscribed to the event
Gögn svars (202)
ReiturTegundLýsing
eventIdáskiliðstring
deliveriesScheduledáskiliðinteger
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"
}'

Aðgangur, notkun og annálar

GET/api/v1/organizationgetOrganization

Fyrirtæki lykilsins: áskrift, gervigreindarinneign, sjálfgefin lögsaga og hvað lykillinn má gera.

Gögn svars (200)
ReiturTegundLýsing
organizationáskiliðobject
useráskiliðobject
planáskiliðstringSTANDARD, PRO or ENTERPRISE
billingáskiliðobject
defaultJurisdictionáskiliðstring | nullISO 3166-1 alpha-2 country used when a document names no governing law
credentialáskiliðobject
appUrláskiliðstring
curl
curl "https://attorly.ai/api/v1/organization" \
  -H "Authorization: Bearer $ATTORLY_API_KEY"
GET/api/v1/usagegetUsage

Beiðnir á dag, eftir lykli og aðgerð, með fjölda villna, í gegnum REST og MCP.

Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

API-beiðnir fyrirtækisins síðustu 30 daga, nýjustu fyrst.

Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

Hver kallaði á hvað, hvenær og með hvaða lykli. Fyrir eigendur og stjórnendur fyrirtækisins.

Fyrirspurnarfæribreytur
ReiturTegundLýsing
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

Eyða öllum hlutum, atburðum og aðgerðum fyrirtækisins í prófunarham. Aðeins prófunarlyklar.

Gögn svars (200)
ReiturTegundLýsing
objectáskilið"test_data_purge"
deletedáskiliðobject
curl
curl -X DELETE "https://attorly.ai/api/v1/test-data" \
  -H "Authorization: Bearer $ATTORLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"