Use cases
Explore
Docs
Pricing

Web API

The official reference for the API routes used by Organigram.ai. Unlike the package references, these endpoints document the application layer itself, including RPC-style JSON routes, uploads, authentication callbacks, webhooks, and server-side integrations.

Conventions

  • Most application mutations are sent as POST requests with a JSON body containing an action field.
  • Upload and webhook routes disable the default Next.js body parser when they need raw bodies or multipart/form-data.
  • Authentication varies by route: some endpoints are public, while others require a NextAuth session, a walletless token, or a provider-specific secret.

Action routes

/api

Legacy RPC-style entrypoint that delegates an action payload to the concrete application route.

FieldValue
MethodsPOST
AuthDepends on the delegated action
BodyJSON payload with an action field
NotesPrefer the concrete route once the target endpoint is known.

/api/account

Account, profile, and privacy operations for the current signed-in user.

FieldValue
MethodsPOST
AuthSession required
BodyJSON payload with an action field
NotesAlso reachable through /api with the same action payload.

Actions

ActionAuthDescription
getProfileSession requiredLoads the profile attached to the current user.
createProfileSession requiredCreates a profile for the current user.
deleteUserSession requiredDeletes a user account on behalf of the current user.
updateProfileSession requiredUpdates profile fields for the current user.
getProfilePostalAddressesSession requiredLoads the current user postal-address sources.
updatePrivacySettingsSession requiredPersists the current user privacy settings.
getUserContactsSession requiredReturns the contacts linked to the current user.
getNotificationPreferencesSession requiredLoads the notification preferences attached to the current user.
requestNotificationEmailVerificationSession requiredSends a verification code before persisting the account email address.
updateNotificationPreferencesSession requiredPersists notification event email toggles for the current user.
verifyNotificationEmailCodeSession requiredValidates an account email verification code for the current user.
unlinkGoogleWorkspaceIdentitySession requiredDisconnects the current user Google Workspace identity and revokes administrator proofs.

/api/workspace

Workspace reads and mutations, including membership and ownership changes.

FieldValue
MethodsPOST
AuthMixed
BodyJSON payload with an action field
NotesAlso reachable through /api with the same action payload.

Actions

ActionAuthDescription
getWorkspacePublic or session-aware accessLoads a workspace by id when the caller is allowed to see it.
getWorkspaceBySlugPublic or session-aware accessLoads a workspace by slug when the caller is allowed to see it.
createWorkspaceSession requiredCreates a new personal or organization workspace for the current user.
updateWorkspaceSession requiredUpdates workspace details.
deleteWorkspaceSession requiredDeletes a workspace.
removeUserFromWorkspaceSession requiredRemoves a member from a workspace.
editUserRoleInWorkspaceSession requiredChanges a member role inside a workspace.
getWorkspaceUserEntriesSession requiredLists workspace member entry identities with encrypted profile content references only.
getWorkspaceFilesSession requiredLists workspace file metadata without exposing file contents.
inviteWorkspaceMemberAdministrator session requiredEmails a single-use link inviting someone to join some organs of the workspace.
listWorkspaceInvitationsAdministrator session requiredLists pending workspace invitations and accepted ones.
revokeWorkspaceInvitationAdministrator session requiredDeletes a workspace invitation.
acceptWorkspaceInvitationSession requiredJoins the draft organs of a workspace invitation; deployed organs wait for a proposal.
enableGoogleWorkspaceAccessForWorkspaceSession requiredAllows users from a verified Google Workspace tenant to access a workspace.
disableGoogleWorkspaceAccessForWorkspaceSession requiredRevokes Google Workspace tenant access for a workspace without removing the verified administrator proof.

/api/organigram

Organigram, organ, procedure, entry, and asset mutations for authenticated users.

FieldValue
MethodsPOST
AuthSession required
BodyJSON payload with an action field
NotesAlso reachable through /api with the same action payload.

Actions

ActionAuthDescription
createOrganigramFromTemplateSession requiredCreates an organigram from template data and options.
getOrganigramSession requiredFetches an organigram by id.
updateOrganigramSession requiredPersists organigram changes.
mergeOrganigramJsonSession requiredMerges imported organigram JSON into an existing organigram.
deleteOrganigramSession requiredDeletes an organigram.
retainGovernanceRecordsSession requiredArchives the meetings and register records of an organigram so it can be deleted.
saveDeployedOrganigramSession requiredStores deployment results for an organigram.
createOrganSession requiredCreates an organ.
updateOrganSession requiredUpdates an organ.
deleteOrganSession requiredDeletes an organ.
createProcedureSession requiredCreates a procedure and its target permissions.
updateProcedureSession requiredUpdates a procedure and its target permissions.
deleteProcedureSession requiredDeletes a procedure.
getEntryReferenceSession requiredResolves an entry reference for the authenticated user without profile contents.
getPrivateReferenceSession requiredResolves an entry reference for the authenticated user without profile contents.
deleteEntrySession requiredDeletes an entry.
createAssetSession requiredCreates an asset.
updateAssetSession requiredUpdates an asset.
getAssetSession requiredFetches an asset by address.
addAssetToOrganigramSession requiredLinks an asset to an organigram.
deleteAssetSession requiredRemoves an asset from an organigram.
createOrganigramLayerSession requiredCreates an empty shared organigram layer.
updateOrganigramLayerSession requiredUpdates a shared organigram layer.
reorderOrganigramLayersSession requiredReorders shared organigram layers.
deleteOrganigramLayerSession requiredDeletes a shared organigram layer.

/api/organization

Organization lookups plus authenticated organization mutations.

FieldValue
MethodsPOST
AuthMixed
BodyJSON payload with an action field
NotesAlso reachable through /api with the same action payload.

Actions

ActionAuthDescription
getPublicOrganizationsPublicLists public organizations.
lookupCompanyPublicLooks up a company in the national register of its country, from its registration number.
listCompanyTrademarksPublicLists the trademarks registered by a company, when the register of its country provides them.
getCompanyStatutesAvailabilitySession requiredChecks whether public articles of association can be downloaded from the register of the company country.
downloadCompanyStatutesSession requiredDownloads the latest public articles of association of a company from the register of its country.
createOrganizationSession requiredCreates an organization for the current user.
verifyOrganizationTaxIdAdministrator session requiredConfirms the registration number of the organization by matching the verified identity of the requesting administrator against the officers listed in the company register of its country.
listOrganizationMandatesAdministrator session requiredLists the active mandates by which RNE officers let administrators act on behalf of the company.
revokeOrganizationMandateVerified RNE officer session requiredRevokes a mandate and removes its holder from the administrators.
inviteOrganizationOfficerAdministrator session requiredEmails a single-use link inviting an officer to join an organization whose SIREN is not verified yet.
getOrganizationArchiveManifestAdministrator session requiredReturns everything Organigram reads in clear about the organization, for an export before deletion.
inviteOrganizationDelegateVerified RNE officer session requiredEmails a single-use link to someone who will administer the company under an officer mandate.
listPendingDelegatesAdministrator session requiredLists invited delegates waiting for an officer to sign their mandate.
appointOrganizationDelegateVerified RNE officer session requiredMakes an invited delegate administrator with a mandate the officer signed with their wallet.
acceptOrganizationInvitationSession requiredJoins an unverified organization as administrator with an invitation link.
attachStatutesToReferenceOrganOrganization-member session requiredLinks an uploaded articles of association file to the reference bylaws organ.
updateOrganizationSession requiredUpdates organization metadata.
updateOrganizationComplianceProfileSession requiredUpdates organization legal, tax, and default governance settings.
getOrganizationRegisterSituationAdministrator session requiredReturns whether the organization currently employs staff and processes personal data, as tracked by its conditional registers.
updateOrganizationRegisterSituationAdministrator session requiredUpdates whether the organization employs staff and processes personal data, refreshing the applicability of its conditional registers accordingly.
setOrganizationOfficialOrganigramSession requiredSets or clears the reference organigram used by organization pages.
getCertifiedComplianceStatusSession requiredCalculates the current Certified compliance status and its private proof reports.
saveCertifiedComplianceConfigurationSession requiredStores the validated component addresses for the organization compliance profile.
activateReferenceRegistersAdministrator session requiredAdds the missing reference-register layer without deploying it.
getCertifiedComplianceReportForExportAdministrator session requiredReturns one private Certified report for administrator export.
validateCertifiedSensitiveProposalSession requiredVerifies a proposed mutation of a Certified key organ before wallet signature.
getOrganizationByIdSession requiredFetches an organization by id.
getUserOrganizationsSession requiredLists the organizations linked to the current user.

/api/subscription

Subscription updates and invoice lookups for the current user or sponsor.

FieldValue
MethodsPOST
AuthSession required
BodyJSON payload with an action field
NotesAlso reachable through /api with the same action payload.

Actions

ActionAuthDescription
authorizeOrganizationOperationSession requiredChecks whether the current user can run an operation that requires an active Certified Entity.
authorizeCertifiedProcedureUseSession requiredChecks whether the current user can use a Certified procedure.
quoteSponsoredTransactionSession requiredQuotes the euro price of a sponsored transaction from a gas estimate.
getEntityActivationSession requiredSyncs a confirmed Stripe intent for an organization, then returns its Certified Entity access state.
reconcilePersonalBillingSession requiredSyncs the current user’s personal storage and transaction subscriptions from a confirmed Stripe intent.
startCryptoEntitySubscriptionSession requiredCreates a Certified Entity Stripe invoice to be paid in EURC.
getCryptoInvoicePaymentSession requiredReturns the authenticated billing manager’s EURC payment request for a Stripe invoice.
declareCryptoInvoicePayerSession requiredDeclares, with its signature, the wallet that will send the EURC transfer for a Stripe invoice.
submitCryptoInvoiceTransactionSession requiredSubmits and verifies an Ethereum EURC transaction for an open Stripe invoice.
reconcileCryptoInvoicePaymentSession requiredRechecks the submitted EURC transaction of a Stripe invoice and records its payment once confirmed.
getBillingAddressSession requiredReturns the billing address of the current user or of an organization they manage.
updateBillingAddressSession requiredSaves the billing address of the current user or of an organization they manage.
getCryptoCreditSession requiredReturns the prepaid credit an organization billed in EURC holds for its next invoices.
startCryptoCreditTopUpSession requiredCreates the EURC payment request that brings an organization prepaid credit up to a target of at least 5 €.
renewCryptoInvoicePaymentSession requiredExtends an expired EURC payment request for the same open Stripe invoice.
updateSubscriptionSession requiredUpdates subscription settings.
getIncomingInvoiceSession requiredReturns the next Stripe invoice for the provided customer id.
getPastInvoicesSession requiredLists the past invoices for the current user Stripe customer.
getSponsoredTransactionsSession requiredLists the latest transactions sponsored by an organization, for its billing managers.
createBillingPortalSessionSession requiredReturns a Stripe customer portal URL for an organization billing manager.
deleteSubscriptionSession requiredCancels or deletes a sponsor subscription for the current user.

/api/notification

Notification reads, sync, and read-state mutations.

FieldValue
MethodsPOST
AuthSession required
BodyJSON payload with an action field
NotesAlso reachable through /api with the same action payload.

Actions

ActionAuthDescription
listNotificationsSession requiredLists the current user notifications and unread count.
markNotificationReadSession requiredMarks one notification as read.
markAllNotificationsReadSession requiredMarks all notifications as read.
syncWorkspaceNotificationsSession requiredSynchronizes proposal and asset notifications for one workspace.

/api/governance

Authenticated governance-case, register, document, and workflow operations for organization workspaces.

FieldValue
MethodsPOST
AuthSession required
BodyJSON payload with an action field and, except for getGovernanceBundle, a data object

Actions

ActionAuthDescription
getGovernanceBundleSession requiredLoads governance cases, register applicability, compliance tasks, and organization settings for an organigram.
createGovernanceCaseSession requiredCreates a governance case with an idempotency key.
createRecurringAssemblySession requiredCreates a schedule that automatically creates governance-case drafts at each due date.
deleteGovernanceCaseSession requiredPermanently deletes a governance case before its first convocation, provided it has no linked on-chain proposal.
deleteRecurringAssemblySession requiredDeletes a recurring assembly schedule without deleting its existing drafts.
updateRecurringAssemblySession requiredUpdates a recurring assembly schedule without changing its existing drafts.
updateGovernanceCaseSession requiredUpdates an editable governance case and its agenda details.
confirmGovernanceRulesSession requiredConfirms and freezes the governance rules that apply to a case.
transitionGovernanceCaseSession requiredMoves a governance case through its lifecycle and triggers applicable workflow work.
sendGovernanceConvocationErratumSession requiredSends a corrected convocation to the case participants.
upsertGovernanceParticipantSession requiredCreates or updates a governance-case participant and voting rights.
synchronizeGovernanceParticipantsFromRightsSession requiredSynchronizes governance-case participants from the organigram rights.
upsertGovernanceDocumentSession requiredCreates or updates a document attached to a governance case.
upsertGovernanceResolutionSession requiredCreates or updates an agenda resolution for a governance case.
deleteGovernanceResolutionSession requiredDeletes an agenda resolution from a governance case.
prepareGovernanceMinutesSession requiredPrepares the governance-case minutes document.
signGovernanceMinutesSession requiredVerifies and records the signature of the governance-case minutes.
recordGovernanceProposalCreatedSession requiredLinks an on-chain proposal to a governance-case resolution.
recordGovernanceProposalWorkflowEventSession requiredRecords an on-chain proposal workflow event for a governance case.
recordGovernanceWorkflowProposalOutputSession requiredRecords the on-chain proposal produced by a governance workflow.
upsertRegisterApplicabilitySession requiredConfirms or updates whether a governance register applies to an organigram.
createRegisterRecordSession requiredAdds a record to an applicable governance register.
runGovernanceAutomationSession requiredRuns the governance automations currently due for the signed-in user.

/api/recurringProposal

Authenticated recurring-proposal schedule and worker-prepared draft operations for organization workspaces.

FieldValue
MethodsPOST
AuthSession required
BodyJSON payload with an action field and a data object
NotesAlso reachable through /api with the same action payload.

Actions

ActionAuthDescription
getRecurringProposalBundleSession requiredLists the caller’s recurring-proposal schedules and prepared drafts for the requested category.
createRecurringProposalSession requiredCreates a reusable proposal template for a deployed procedure without creating an on-chain proposal.
disableRecurringProposalSession requiredDisables a recurring proposal and cancels its unsubmitted prepared drafts.
deleteRecurringProposalSession requiredDeletes a recurring proposal and its prepared drafts.
runRecurringProposalAutomationSession requiredPrepares drafts for recurring proposals currently due and notifies their creator; it never signs or creates an on-chain proposal.
markPreparedRecurringProposalSubmittedSession requiredLinks a prepared recurring-proposal draft to the on-chain proposal created by its owner.

/api/equityTransfer

Collects the seller and buyer wallet signatures for an equity transfer before its governance proposal is created.

FieldValue
MethodsPOST
AuthSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitations
BodyJSON body with an action and action-specific data
NotesAlso reachable through /api with the same action payload.

Actions

ActionAuthDescription
createSignatureRequestSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsCreates a seller-signed request for a buyer wallet signature.
getSignatureRequestSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsReturns the request to its seller or buyer.
signSignatureRequestSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsRecords the buyer wallet signature.
listSellerSignatureRequestsSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsLists open requests that a seller can turn into proposals.
renderSignatureRequestPdfSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsGenerates the transfer agreement PDF for a participant.
markSignatureRequestSubmittedSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsAnchors both wallet signatures to the on-chain proposal transaction.
listRegisterSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsLists settled equity movements after verifying their ProposalApplied event.
exportRegisterSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsGenerates a private CSV or PDF extract of the register.
listEligibleBuyersSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsLists KYC-verified users who explicitly share their information with the workspace or its organization.
getInvitationSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsNames the organization a transferee invitation link points to (invited wallet only).
createInvitationSession wallet must be either the seller or buyer named in the request, or a workspace member for buyer lookups and invitationsInvites a wallet to have its identity verified at the organization's expense.

Uploads and generated assets

/api/ipfs/[...workspaceId]

Uploads a workspace file to IPFS and tracks billable storage usage.

FieldValue
MethodsPOST
AuthSession with workspace access required
Bodymultipart/form-data
NotesThe default Next.js body parser is disabled for this route.

Operations

OperationTriggerAuthDescription
uploadSession with workspace access requiredUploads the first file from the multipart payload and returns its filename and CID.

/api/certifiedProof/[...workspaceId]

Generates, signs, stores, and bills a certified proof PDF for a workspace transaction.

FieldValue
MethodsPOST
AuthSession with workspace access required
BodyJSON body containing transaction proof data

Operations

OperationTriggerAuthDescription
create certified proofSession with workspace access requiredCreates a certified proof, uploads the signed PDF, and records the related usage.

/api/agent/[...workspaceId]

Answers questions about a workspace and can return additive organigram previews.

FieldValue
MethodsGET, POST
AuthSession with workspace access required
Bodymessage or messages with optional threadId, source, and currentOrganigramId

Operations

OperationTriggerAuthDescription
ask workspace agentSession with workspace access requiredBuilds a safe workspace snapshot, persists the exchange in a workspace thread, and asks the configured inference service for a structured answer.
list workspace agent threadsSession with workspace access requiredLists persisted workspace agent conversations for the signed-in user across workspaces.
record workspace agent threadSession with workspace access requiredStores a workspace agent conversation created by another surface, such as the home hero.

Authentication, billing, and integrations

/api/auth/[...nextauth]

NextAuth endpoint used for SIWE sign-in, session resolution, and auth callbacks.

FieldValue
MethodsGET, POST
AuthManaged by NextAuth
BodyProvider-specific query parameters or form data
NotesBacked by the SIWE credentials provider in lib/auth/server.ts.

/api/gasStation

Relays a transaction through the gas station after verifying signer and workspace access.

FieldValue
MethodsPOST
AuthSession required
BodyJSON body with txRequest, chainId, and workspaceId

Edit this page

On this page:

Conventions
/apiLegacy RPC-style entrypoint that delegates an action payload to the concrete application route.

Follow us:

© 2026 Organigram SAS

All Rights Reserved.