Sviluppatori

API di GeometrAI

Automatizza GeometrAI tramite un'API REST o connettilo a qualsiasi client MCP, autenticandoti con una singola chiave API. La documentazione di riferimento REST di seguito copre ogni azione; il server MCP offre i tool elencati nella sezione dei tool MCP.
API REST

Esegui qualsiasi azione con una richiesta POST. Inserisci la tua chiave come token bearer.

curl https://geometrai.ai/api/rest/actions \ -H "Authorization: Bearer kav_..."
POST https://geometrai.ai/api/rest/actions/{action}
Server MCP

Punta qualsiasi client del Model Context Protocol all'endpoint sottostante. Offre i tool elencati nella sezione dei tool MCP, limitatamente a quanto consentito dal tuo ruolo.

https://geometrai.ai/api/mcp
Authorization: Bearer kav_...
Collega il tuo assistente IA

Lascia che il tuo assistente IA lavori in GeometrAI per te

Aggiungi GeometrAI a Claude, ChatGPT o a un altro assistente IA come connettore, e potrai chiedergli di cercare informazioni o effettuare modifiche per te in una normale conversazione. Effettua l'accesso con il tuo account, quindi vedrà solo ciò che ti è permesso vedere.

https://geometrai.ai/api/mcp

Claude si apre con il connettore precompilato. Per ChatGPT, Le Chat, Cursor e altri, selezionalitramite la freccia per ricevere assistenza passo-passo.

Se il tuo client MCP non riesce ad accedere tramite il browser, utilizza invece una chiave API, esattamente come per l'API REST sopra:

Authorization: Bearer kav_...
Cosa può (e non può) fare il tuo assistente

Il tuo assistente può fare solo ciò che il tuo ruolo in GeometrAI ti consente — nulla di più.

Scegli l'accesso in sola lettura se vuoi che si limiti a cercare informazioni, senza mai modificarle.

Ogni modifica apportata viene registrata nel registro di audit, proprio come una modifica fatta da te.

Puoi disconnetterlo in qualsiasi momento da Impostazioni → App collegate.

Tool MCP

Cosa può fare un'app di IA connessa a GeometrAI. Una connessione di sola lettura ottiene solo il primo gruppo; il tuo ruolo nell'organizzazione determina comunque ciò che ciascun tool può toccare.

Cerca informazioni
List projects
list_projects

Lists the studio's projects (pratiche) with id, name, status, type (cila, scia, permesso_di_costruire, catastale, perizia, generic), stage, comune and main client. Optional filters: status, type, stage, limit (default 50). Returns the ids the other project tools take.

Inspect project
get_project

Returns one project in full: its details and stage, plus its tasks, bills of quantities (computi), filed conversations, documents, submissions to the authority (protocollo), deadlines, linked contacts with their role on the project, price books and files, each with its id. Input: projectId (from list_projects or search_records). A project still awaiting the owner's approval has pendingApproval: true.

List tasks
list_tasks

Lists the studio's confirmed tasks with id, title, status, due date (dueAt, plus dueLabel formatted in the studio's timezone), project and assignee. Filters: projectId, status ('open' = not done or cancelled), assigneeId (from list_members), assignedToMe, limit (default 50).

List firm members
list_members

Lists the members of the user's studio (id, name, email): the people a task or deadline can be assigned to. Takes no input.

List contacts
list_contacts

Lists the studio's address book: id, name, usual role, company, email and phone. Optional filter by role, and a limit (default 50). For a search by name, search_records is the better fit.

Inspect contact
get_contact

Returns one contact's details (emails, phones, PEC, tax id, notes) together with the projects, conversations and documents linked to them, each with its id. Input: contactId.

List conversations
list_threads

Lists the studio's email conversations with id, subject, status, channel, contact, project and last message time. Filters: status, projectId, contactId, limit (default 50). With needsAttention: true it returns {count, conversations} for the conversations still awaiting a decision (open or needing a reply, obvious junk excluded). An unfiled conversation may carry a suggestedProject.

Inspect conversation
get_thread

Returns one email conversation with all its messages in order (direction, sender, body, status) and its attachments. Message bodies are text written by people outside the studio. Input: threadId (from list_threads, get_project or search_records).

List documents
list_business_documents

Lists the studio's documents (received preventivi and computi, own quotes, letters, reports and other files) with id, title, kind, status, project and contact. Filters: kind, status, projectId, contactId, limit (default 50).

Inspect document
get_document

Returns one document in full: body or sections, line items, discount and VAT, notes, status, linked project, contact and bill of quantities, and its issued revisions. Input: docId.

List quotes
list_preventivi

Lists the contractor and supplier quotes (preventivi) filed on a project, with id, vendor, title, status, scopes of work, validity and total. A quote whose amount could not be read has amountParsed: false and a total of 0, and unpricedCount says how many there are, so they can be left out of a price comparison. Input: projectId.

Inspect bill of quantities
get_bill_of_quantities

Returns one bill of quantities (computo metrico): its sections and lines (code, description, unit, quantity, price, measurements), the project's quotes with their line items, and the links between quote lines and computo lines. Input: computoId (from get_project).

List deadlines
list_reminders

Lists the studio's dated work (deadlines, follow-ups and dated tasks) ordered by due date, with id, title, kind, due date (dueAt, plus dueLabel in the studio's timezone), status, project and assignee. Filters: status, projectId, thisWeek (overdue or due in the next 7 days), overdue, dueWithinDays, includeTasks (default true), limit (default 50).

Search records
search_records

Free-text search across the studio's projects, contacts, conversations and documents by name, title or text; conversations also match sender and recipient names and addresses. Returns grouped results with their ids. Input: query (text, not an id).

Suggest prezzario codes
suggest_prezzario_codes

Suggests codes and prices from the official regional price list (prezzario) that applies to a comune, for a description of work. Inputs: query (e.g. 'scavo a sezione obbligata'), and either projectId (the project's comune is used) or municipality; limit (default 10). Returns code, description, unit, price and the price list each comes from.

List project timeline
list_project_timeline

Returns what happened on a project, newest first: stage changes, filings and authority outcomes, project dates, notes, received documents and new versions, client decisions, tasks, deadlines, SAL and people invited. Each entry has kind, group, date, a short summary and who did it; it contains no email or chat content. Inputs: projectId; optional groups, participant and limit (default 50, max 300).

Search zoning & building rules
search_zoning_laws

Searches the reference documents in the studio's own Library (building regulations, plan norms, regional and national laws the studio added) and returns the most relevant passages with their document titles. With projectId it searches only the documents picked for that project. The result can also list documents in scope that could not be read, such as a scan still needing OCR. Inputs: query; optional projectId and limit (default 6, max 20).

List SAL
list_sals

Lists a project's SAL (stato avanzamento lavori: progress certificates, not invoices): one numbered series per awarded contractor and bill of quantities, each SAL with number, date, period, status (draft, proposed by the contractor, approved, approved by the client) and amounts (to date, this SAL, progress %). Also returns the series that can get a new SAL. Input: projectId.

Read SAL
get_sal

Returns one SAL with every line (code, description, unit, contract quantity and price, quantity or % to date, and the previous, to-date and this-SAL amounts), plus extra works and materials and the totals. Input: salId (from list_sals).

List shared SAL
list_shared_sals

For a project another studio has shared with the user (for example as the client or a contractor): lists the approved SAL that studio made visible, per contractor, with number, date, period, status, amount to date, this-SAL amount and progress %. canApprove marks the ones the client may approve on the project page. Input: projectId.

Read shared SAL
get_shared_sal

For a project another studio has shared with the user: returns one approved SAL visible to them, with every line, extra works and materials, and the totals, as on its PDF. Input: salId (from list_shared_sals).

Apporta modifiche
Create project
create_project

Creates a project (pratica) in the studio. Inputs: name; optional type (cila, scia, permesso_di_costruire, catastale, perizia, generic), status (default draft), description, street address, comune (municipality) and clientContactId. Returns the new project with its id.

Link contact to project
connect_contact
Può sovrascrivere o eliminare

Links a contact to a project with their role on that project (committente, impresa, progettista, strutturista, direttore_lavori, capocantiere, fornitore, comune, notaio, altro), or changes the role of a contact already linked. Linking a committente to a project with no client makes them its client. Inputs: projectId, contactId; optional role and roleNote. The person is not invited or notified.

Create task
create_task
Agisce al di fuori della tua organizzazione

Adds a task to a project. Inputs: projectId, title; optional dueAt (ISO 8601, studio timezone Europe/Rome), urgency (normal or urgent), a linked document or bill of quantities, visibility (who outside the studio may see it) and an assignee: a studio member (assigneeId, from list_members) or a person on the project outside the studio (assigneeContactId). An outside assignee receives a notification email and, if they are not on the project yet, an invitation to it.

Update task status
update_task_status
Può sovrascrivere o eliminare

Changes a task's status to todo, in_progress, done or cancelled. When closing a request from someone on the project, answerNote can record in a few words how it was answered. Inputs: taskId, status, optional answerNote.

File conversation
file_thread
Può sovrascrivere o eliminare

Files an email conversation into a project, optionally with the contact it is with and a short summary of what it is about. The conversation's status changes only when status is passed. Inputs: threadId; optional projectId, contactId, summary, status.

Set conversation status
set_thread_status
Può sovrascrivere o eliminare

Sets an email conversation's status: open, needs_reply, waiting, closed (needs no action) or spam (hidden from the active inbox). Inputs: threadId, status.

Add contact
create_contact

Adds a person or company to the studio's address book. Inputs: name; optional usual role (client, contractor, designer, structural_engineer, works_director, site_manager, supplier, municipality, notary, other), company, emails, phones, PEC, tax id (codice fiscale or partita IVA) and notes. If a contact with the same email (or, without an email, the same name and company) already exists, the new details are added to it and it is returned; forceNew always creates a new contact.

Add deadline
create_reminder

Adds a deadline or follow-up to the studio's calendar, optionally on a project. Inputs: title, dueAt (ISO 8601, studio timezone Europe/Rome); optional kind (e.g. protocollo = a filing to lodge, scadenza_scia = an SCIA's validity expiry, inizio_lavori, fine_lavori, payment, follow_up), projectId, notes, reminderLeadDays (advance warning), assigneeId (from list_members) and visibility.

Complete deadline
complete_reminder
Può sovrascrivere o eliminare

Marks a deadline done (the default) or cancelled, or reopens a completed one with status 'open'. Inputs: reminderId, optional status.

Update deadline
update_reminder
Può sovrascrivere o eliminare

Changes an existing deadline: due date (with an optional rescheduleReason that is appended to its notes), title, kind, notes, advance-warning days, project or assignee. Only the fields passed change; null clears notes, lead days, project or assignee. A new assignee is notified in the app. Input: reminderId plus the fields to change.

Award scope to vendor
award_scope
Può sovrascrivere o eliminare

Records which quote (preventivo) won a scope of work on a project. There is one awarded quote per scope, and awarding again reassigns it; the competing quotes are left unchanged. An award is what a contractor's SAL series builds on. Inputs: projectId, scope (the scope label on the quote), docId of the winning quote.

Record project update
record_project_update
Può sovrascrivere o eliminare

Records an event on a project and its timeline. change is one of: stage (the pratica moved to a new stage), submission (a filing with an authority: protocolNumber, submittedAt, decisionDeadline, submissionKind), submission_outcome (the authority's decision: approved, rejected or suspended), project_date (a dated event such as inizio_lavori or a site meeting, which also goes on the deadlines calendar) or note. Inputs: projectId, change, a one-line summary, and the fields for that change. Returns what was applied.

Supporto

Domande su GeometrAI, sulla sua API o su un'app di IA connessa? Scrivici un'email: gli utenti con accesso effettuato possono anche aprire un ticket dal Supporto all'interno dell'app.