Facture Électronique France

v0.9.1
io.github.cmendezs/mcp-facture-electronique-fr Checked 1 day ago Published 2 months ago

MCP server for French e-invoicing (XP Z12-013).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

submit_flow Submit Flow

Submit an electronic invoice, e-reporting, or lifecycle status to the Approved Platform. Scope: Compatible Solution (CS) mode, no payload validation. See README "Scope" section. This is the primary action for sending B2B invoices (Factur-X, UBL, CII), B2BInt/B2C e-reportings, or CDAR lifecycle status messages. HUMAN-IN-THE-LOOP: This tool requires explicit user confirmation. Call without confirmation_token first; show the returned summary to the user; then call again with the provided token to execute the submission. BEHAVIOR: - Submission is asynchronous: the AP returns a flowId and an in…

ParameterTypeDescription
file_base64 *stringFile content encoded in base64. Accepted formats: Factur-X (PDF/A-3 with embedded XML), UBL 2.1 (XML), UN/CEFACT CII D22B (XML). Maximum file size is defined by the Approved Platform (typically a few…
file_name *stringFile name with extension (e.g. 'invoice_2024_001.xml', 'invoice_2024_001.pdf'). The AP uses the extension to detect the format when flow_syntax is ambiguous.
flow_syntax *stringSyntax/format of the submitted file (required). Common values: FacturX — PDF/A-3 with embedded Factur-X XML; UBL — UBL 2.1 XML invoice or credit note; CII — UN/CEFACT CII D22B XML invoice; CDAR…
flow_type *stringBusiness type of the submitted flow. Common values: Invoice, CreditNote, DebitNote, EReportingB2B, EReportingB2C, LifecycleStatus. Refer to your Approved Platform's documentation for the exhaustive li…
processing_rule *stringProcessing rule that determines routing and PPF transmission obligations. B2B: domestic invoice between French VAT-registered entities (routed + reported to PPF). B2BInt: international invoice or cros…
confirmation_tokenConfirmation token returned by a previous call to this tool. Required to actually submit; omit on the first call to receive a summary and token for user approval.
tracking_idSender-assigned tracking identifier (free-form, maxLength 36). Recommended: use the invoice number or an internal UUID. Allows retrieving this specific flow later via search_flows(tracking_id=...).

search_flows Search Flows

Search flows (invoices, statuses, e-reportings) in the Approved Platform by criteria: flow type, status, processingRule, period, trackingId. Pagination via updatedAfter: use the 'nextUpdatedAfter' field from the response as the updated_after parameter value to get the next page.

ParameterTypeDescription
flow_typeFilter by flow type: Invoice, CreditNote, EReportingB2B, EReportingB2C, LifecycleStatus, etc.
limitintegerMaximum number of flows to return (1-500, default 50).
processing_ruleFilter by processing rule: B2B, B2BInt, B2C, OutOfScope, ArchiveOnly, NotApplicable.
statusFilter by flow status. Examples: Deposited, Processing, Delivered, Rejected, Approved, Refused. Refer to the AP documentation for the complete list.
tracking_idFilter by trackingId (sender free-form identifier, maxLength 36).
updated_afterPagination: only return flows updated after this date/time (ISO 8601 format, e.g. 2024-09-01T00:00:00Z). Use the 'nextUpdatedAfter' value from the previous response to paginate.

get_flow Get Flow

Retrieve a flow by its identifier. docType allows choosing between JSON metadata (Metadata), the original document (Original), the converted document (Converted), or the readable representation (ReadableView). By default, returns the JSON metadata (status, dates, identifiers).

ParameterTypeDescription
flow_id *stringFlow identifier assigned by the Approved Platform (returned by submit_flow or search_flows, maxLength 36).
doc_typestringDocument type to retrieve: Metadata (default, returns the flow's JSON metadata — recommended), Original (original submitted document, returned as base64), Converted (document converted by the AP, re…

submit_lifecycle_status Submit Lifecycle Status

Emit a processing status on a received invoice: Refused, Approved, PartiallyApproved, Disputed, Suspended, Cashed, PaymentTransmitted, Cancelled. Refused and Cashed are mandatory transmissions to PPF. Reason is mandatory for Refused, Disputed, PartiallyApproved, and Suspended. Builds a real CDAR (CrossDomainAcknowledgementAndResponse, XP Z12-014 v1.4) document — see mcp_facture_electronique_fr.clients.flow_client for the MDT-* field mapping this depends on. HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again wi…

ParameterTypeDescription
invoice_id *stringBT-1 invoice number of the referenced invoice (CDAR MDT-87).
invoice_issue_date *stringBT-2 invoice date, ISO 8601 (YYYY-MM-DD) (CDAR MDT-100).
issuer_party_id *stringGlobalID (e.g. SIREN) of the party emitting this status — you or the counterparty, whichever this MCP server acts on behalf of (CDAR MDT-38).
issuer_party_name *stringName of the emitting party (CDAR MDT-39).
issuer_role_code *stringRole of the emitting party: SE (seller) or BY (buyer) (CDAR MDT-40).
recipient_party_id *stringGlobalID of the counterparty receiving this status (CDAR MDT-57).
recipient_party_name *stringName of the counterparty (CDAR MDT-58).
recipient_role_code *stringRole of the counterparty — opposite of issuer_role_code (CDAR MDT-59).
referenced_flow_id *stringIdentifier of the invoice flow to which this status applies (flowId returned upon receipt, maxLength 36). Used only for the platform's own flow tracking (flowInfo.trackingId) — not part of the CDAR…
status_code *stringLifecycle status code to emit. Values defined in XP Z12-014 v1.4 (June 2026): Refused (transmitted to PPF), Approved, PartiallyApproved, Disputed, Suspended, Cashed (transmitted to PPF), PaymentTransm…
confirmation_tokenConfirmation token from a previous call. Omit on the first call; supply on the second call to execute.
currencystringISO 4217 currency code for payment_amount (default EUR).
included_noteFree-text note (CDAR IncludedNote/Content) per the bundled Rejetee worked example.
invoice_type_codestringBT-3 invoice type code (CDAR MDT-91, default '380' = Invoice).
party_id_schemestringschemeID attribute shared by both party GlobalIDs (default '0002' = SIRENE, per every bundled AFNOR worked example).
payment_amountPayment amount (decimal string, e.g. '1250.00'). Provided for Cashed and PaymentTransmitted statuses.
payment_datePayment date (ISO 8601 format: YYYY-MM-DD). Provided for Cashed and PaymentTransmitted statuses.
reasonStatus reason (CDAR MDT-114), mandatory per XP Z12-014 Annex A for Refused, Disputed, PartiallyApproved, and Suspended. Free text.
reason_codeCoded reason (CDAR MDT-113) from the per-status motif list in XP Z12-014 Annex A 'Tableau des motifs de STATUTS' (e.g. TX_TVA_ERR, DOUBLON). Not validated against that list.
receipt_datetimeOriginal receipt timestamp of the referenced invoice, ISO 8601 (CDAR MDT-95). Defaults to the current time if omitted — supply the real value when known for an accurate audit trail.
recipient_uriCounterparty's electronic address on the CEF network, if known (CDAR MDT-73).
requested_actionFree-text requested action (CDAR MDT-122).
requested_action_codeCoded requested action (CDAR MDT-121), e.g. 'CNF' ('Créer un Avoir total') per the bundled En_litige worked example. Typically used with Disputed.

healthcheck_flow Healthcheck Flow

Check the availability of the Approved Platform's Flow Service. Returns the operational status of the service (ok/degraded/unavailable). Use before an invoice submission session to ensure the AP is reachable.

validate_ereporting_xml Validate Ereporting Xml

Validate a DGFiP e-reporting (Flux 10) FRR XML payload. Scope: XSD schema validation only, no business-rule checks. See README "Scope" section. Checks the XML against the DGFiP Spécifications Externes v3.2 ereporting.xsd. Returns validation result with errors if any. Use this before submitting to catch structural problems early. Validation levels (in order of preference): - xsd — full schema validation - wellformedness — XML failed to parse (malformed or unsafe input) - none — XSD files not found on disk

ParameterTypeDescription
xml_content *stringFRR XML content to validate. Must be a complete Report document per DGFiP Spécifications Externes v3.2 ereporting.xsd.

submit_transaction_report Submit Transaction Report

Submit a DGFiP Flux 10.1 / 10.3 transaction e-reporting flow. Scope: Compatible Solution (CS) mode, no payload validation. See README "Scope" section. Builds a FRR XML payload conforming to DGFiP Spécifications Externes v3.2 (transaction.xsd / ereporting.xsd) and submits it to the Approved Platform via POST /v1/flows with flowSyntax="FRR". Use for: - International B2B outbound sales (processing_rule=B2BInt, flow_type=IndividualCustomerTransactionReport) - International B2B inbound purchases (processing_rule=B2BInt, flow_type=UnitarySupplierTransactionReport) - B2C individual…

ParameterTypeDescription
flow_type *stringXP Z12-013 FlowType for this e-reporting submission: IndividualCustomerTransactionReport — Flux 10.1 individual B2C or intl B2B AggregatedCustomerTransactionReport — Flux 10.3 aggregated B2C…
invoices_json *stringJSON array of invoice transaction records. Each invoice in the `invoices` JSON list must have: Required fields: id TT-19 Invoice number / identifier issue_date…
issue_datetime *stringTT-3: Transmission creation timestamp, e.g. '20250115T120000+0100'.
issuer_id *stringTT-13: SIREN or SIRET of the French taxable entity (déclarant).
issuer_id_scheme *stringTT-12: ID scheme for issuer, typically 'SIREN' or 'SIRET'.
issuer_name *stringTT-14: Legal name of the declarant.
issuer_role_code *stringTT-15: Issuer role code. Use 'MOA' (assujetti / declarant) or 'OD' (obligataire délégant).
period_end *stringTT-18: Report period end date in ISO 8601 format (e.g. '2025-01-31').
period_start *stringTT-17: Report period start date in ISO 8601 format (e.g. '2025-01-01').
processing_rule *stringXP Z12-013 ProcessingRule: B2BInt — international B2B e-reporting B2C — B2C e-reporting
sender_id *stringTT-8: Identifier of the CS/PDP platform submitting the report.
sender_id_scheme *stringTT-7: ID scheme for sender, e.g. 'SIREN', 'SIRET', 'TVA', '0088'.
sender_name *stringTT-9: Legal name of the sender platform.
sender_role_code *stringTT-10: Sender role code. Use 'CS' (Compatible Solution), 'PDP', 'OD' (obligataire délégant), or 'MOA' (assujetti).
transmission_id *stringTT-1: Unique identifier for this transmission (generated by sender).
type_code *stringTT-4: Transmission type code, e.g. '380' (invoice report).
confirmation_tokenConfirmation token returned by a prior pending response.
tracking_idOptional external tracking identifier for this flow.
transmission_nameTT-2: Optional human-readable name for the transmission.

submit_payment_report Submit Payment Report

Submit a DGFiP Flux 10.2 / 10.4 payment e-reporting flow. Scope: Compatible Solution (CS) mode, no payload validation. See README "Scope" section. Builds a FRR XML payload conforming to DGFiP Spécifications Externes v3.2 (payment.xsd / ereporting.xsd) and submits it to the Approved Platform via POST /v1/flows with flowSyntax="FRR". Use for: - International B2B payment reporting (processing_rule=B2BInt, flow_type=UnitaryCustomerPaymentReport) - B2C individual payment reporting (processing_rule=B2C, flow_type=UnitaryCustomerPaymentReport) - Aggregated B2C payment reporting (pro…

ParameterTypeDescription
flow_type *stringXP Z12-013 FlowType for this payment report: UnitaryCustomerPaymentReport — Flux 10.2 unit payment AggregatedCustomerPaymentReport — Flux 10.4 aggregated B2C payment
invoices_json *stringJSON array of payment records. Each invoice in the `invoices` JSON list must have: Required fields: invoice_id TT-91 Invoice number (reference to the original invoice) issue_date TT-102 I…
issue_datetime *stringTT-3: Transmission creation timestamp, e.g. '20250115T120000+0100'.
issuer_id *stringTT-13: SIREN or SIRET of the French declarant.
issuer_id_scheme *stringTT-12: ID scheme for issuer: 'SIREN' or 'SIRET'.
issuer_name *stringTT-14: Legal name of the declarant.
issuer_role_code *stringTT-15: Issuer role: 'MOA' or 'OD'.
period_end *stringTT-90: Report period end date (ISO 8601, e.g. '2025-01-31').
period_start *stringTT-89: Report period start date (ISO 8601, e.g. '2025-01-01').
processing_rule *stringB2BInt for international B2B payments, B2C for B2C payments.
sender_id *stringTT-8: Identifier of the CS/PDP platform submitting the report.
sender_id_scheme *stringTT-7: ID scheme for sender, e.g. 'SIREN', 'SIRET'.
sender_name *stringTT-9: Legal name of the sender platform.
sender_role_code *stringTT-10: Sender role code: 'CS', 'PDP', 'OD', or 'MOA'.
transmission_id *stringTT-1: Unique identifier for this transmission (generated by sender).
type_code *stringTT-4: Transmission type code, e.g. '380'.
confirmation_tokenConfirmation token returned by a prior pending response.
tracking_idOptional external tracking identifier for this flow.
transmission_nameTT-2: Optional human-readable name for the transmission.

validate_facturx Validate Facturx

Validate a Factur-X CII XML document against its profile's Schematron ruleset. Scope: Schematron (SVRL) business-rule validation only, no XSD structural check. Returns is_valid, errors, and warnings (rule_id, location, text). Use this before embedding the XML into a PDF/A-3 or submitting via submit_flow. Requires the optional `saxonche` extra (FR-XSLT2-1, resolved in mcp-einvoicing-core 1.14.0): the bundled Factur-X 1.09.2 Schematron stylesheets require XSLT 2.0, which lxml/libxslt (XSLT 1.0 only) cannot compile. Install with `pip install mcp-facture-electronique-fr[xslt2]`. If it is missing…

ParameterTypeDescription
profile *stringFactur-X profile to validate against. One of: MINIMUM, BASICWL, BASIC, EN16931, EXTENDED, EXTENDED-CTC-FR. EXTENDED-CTC-FR is validated against the generic EXTENDED ruleset only — AFNOR has not publ…
xml_content *stringFactur-X CII XML content to validate (the embedded XML, not the PDF/A-3).

search_company Search Company

Search legal units (SIRENs) in the PPF Annuaire (POST /siren/recherche). A company must appear here before its establishments (SIRETs) or directory lines (ligne-annuaire) can be resolved. Prefer get_company_by_siren when the exact SIREN is already known.

ParameterTypeDescription
etat_administratifAdministrative status filter (etatAdministratif).
ignorerintegerNumber of results to skip for pagination (ignorer).
limiteintegerMaximum number of results (limite).
raison_socialeLegal/trade name (partial match). Use when the SIREN is unknown.
sirenExact SIREN (9 digits, no spaces).
type_entiteEntity type filter (typeEntite).

get_company_by_siren Get Company By Siren

Look up a legal unit by SIREN (GET /siren/code-insee:{siren}).

ParameterTypeDescription
siren *stringExact SIREN (9 digits, no spaces).

get_company_by_id_instance Get Company By Id Instance

Look up a legal unit by directory instance ID (GET /siren/id-instance:{id-instance}).

ParameterTypeDescription
id_instance *stringDirectory instance ID (idInstance) of the legal unit, from a previous search.

search_establishment Search Establishment

Search establishments (SIRETs) in the PPF Annuaire (POST /siret/recherche).

ParameterTypeDescription
denominationEstablishment name (partial match).
etat_administratifAdministrative status filter (etatAdministratif).
ignorerintegerNumber of results to skip for pagination (ignorer).
limiteintegerMaximum number of results (limite).
sirenParent SIREN (9 digits). Lists all establishments.
siretExact SIRET (14 digits, no spaces).

get_establishment_by_siret Get Establishment By Siret

Look up an establishment by SIRET (GET /siret/code-insee:{siret}).

ParameterTypeDescription
siret *stringExact SIRET (14 digits, no spaces).

get_establishment_by_id_instance Get Establishment By Id Instance

Look up an establishment by directory instance ID (GET /siret/id-instance:{id-instance}).

ParameterTypeDescription
id_instance *stringDirectory instance ID (idInstance) of the establishment, from a previous search.

search_routing_code Search Routing Code

Search routing codes (POST /code-routage/recherche).

ParameterTypeDescription
etat_administratif'A' (active) or 'F' (closed).
identifiant_routageExact routing-code identifier (identifiantRoutage).
ignorerintegerNumber of results to skip for pagination (ignorer).
libelle_code_routageRouting code label (partial match).
limiteintegerMaximum number of results (limite).
siretEstablishment SIRET (14 digits).

get_routing_code_by_siret_and_code Get Routing Code By Siret And Code

Look up a routing code by SIRET and code (GET /code-routage/siret:{siret}/code:{identifiant-routage}).

ParameterTypeDescription
identifiant_routage *stringRouting-code identifier (identifiantRoutage).
siret *stringEstablishment SIRET (14 digits).

get_routing_code_by_id_instance Get Routing Code By Id Instance

Look up a routing code by directory instance ID (GET /code-routage/id-instance:{id-instance}).

ParameterTypeDescription
id_instance *stringDirectory instance ID (idInstance) of the routing code.

create_routing_code Create Routing Code

Create a routing code (POST /code-routage). HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.

ParameterTypeDescription
identifiant_routage *stringRouting-code identifier to create (max 100 chars, pattern [-_/@a-zA-Z0-9]).
libelle_code_routage *stringHuman-readable label for the routing code.
nature_etablissement *stringWhether the establishment is private or public.
siret *stringEstablishment SIRET (14 digits) this routing code belongs to.
type_identifiant_routage *string4-digit type code for the routing-code identifier (typeIdentifiantRoutage).
confirmation_tokenConfirmation token from a previous call. Omit on the first call.
etat_administratifstring'A' (active) or 'F' (closed).
gestion_engagement_juridiqueWhether a legal-commitment number (engagement juridique) is mandatory.

update_routing_code Update Routing Code

Partially update a routing code (PATCH /code-routage/id-instance:{id-instance}). Only provided fields are modified.

ParameterTypeDescription
id_instance *stringDirectory instance ID (idInstance) of the routing code.
etat_administratifNew status. Omit to leave unchanged.
libelle_code_routageNew label. Omit to leave unchanged.
type_identifiant_routageNew 4-digit type code. Omit to leave unchanged.

replace_routing_code Replace Routing Code

Fully replace a routing code (PUT /code-routage/id-instance:{id-instance}). Unlike update_routing_code, all fields are required and replace the existing object entirely. HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.

ParameterTypeDescription
etat_administratif *string'A' (active) or 'F' (closed).
id_instance *stringDirectory instance ID (idInstance) of the routing code.
libelle_code_routage *stringLabel for the routing code.
type_identifiant_routage *string4-digit type code (typeIdentifiantRoutage).
confirmation_tokenConfirmation token from a previous call. Omit on the first call.

search_directory_line Search Directory Line

Search directory lines (electronic invoice receiving addresses) (POST /ligne-annuaire/recherche). Call before sending an invoice to verify the recipient has a registered line and to identify their Approved Platform.

ParameterTypeDescription
identifiant_adressageExact addressing identifier (identifiantAdressage).
identifiant_routageRouting-code identifier.
ignorerintegerNumber of results to skip for pagination (ignorer).
limiteintegerMaximum number of results (limite).
matricule_plateforme4-digit Approved Platform registration number.
sirenSIREN (9 digits).
siretSIRET (14 digits).

get_directory_line_by_code Get Directory Line By Code

Look up a directory line by addressing code (GET /ligne-annuaire/code:{identifiant-adressage}).

ParameterTypeDescription
identifiant_adressage *stringAddressing identifier (identifiantAdressage).

get_directory_line Get Directory Line

Look up a directory line by directory instance ID (GET /ligne-annuaire/id-instance:{id-instance}).

ParameterTypeDescription
id_instance *stringDirectory instance ID (idInstance) of the directory line.

create_directory_line Create Directory Line

Create a directory line (electronic invoice receiving address) (POST /ligne-annuaire). HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.

ParameterTypeDescription
date_debut_effet *stringEffective start date, ISO YYYY-MM-DD (dateDebutEffet).
matricule_plateforme *string4-digit Approved Platform registration number receiving the invoices.
siren *stringSIREN of the taxable entity creating this receiving address.
confirmation_tokenConfirmation token from a previous call. Omit on the first call.
date_fin_effetEffective end date, ISO YYYY-MM-DD, if known.
identifiant_routageRouting-code identifier to refine the address.
siretSpecific establishment SIRET. If absent, applies to the whole SIREN.
suffixe_adressageAddressing suffix (suffixeAdressage).

update_directory_line Update Directory Line

Partially update a directory line (PATCH /ligne-annuaire/id-instance:{id-instance}). Only provided fields are modified.

ParameterTypeDescription
id_instance *stringDirectory instance ID (idInstance) of the directory line.
date_fin_effetNew effective end date, ISO YYYY-MM-DD.
matricule_plateformeNew Approved Platform registration number.

replace_directory_line Replace Directory Line

Fully replace a directory line (PUT /ligne-annuaire/id-instance:{id-instance}). HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.

ParameterTypeDescription
id_instance *stringDirectory instance ID (idInstance) of the directory line.
matricule_plateforme *stringApproved Platform registration number.
confirmation_tokenConfirmation token from a previous call. Omit on the first call.
date_fin_effetEffective end date, ISO YYYY-MM-DD, if any.

delete_directory_line Delete Directory Line

Delete a directory line (DELETE /ligne-annuaire/id-instance:{id-instance}). HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.

ParameterTypeDescription
id_instance *stringDirectory instance ID (idInstance) of the directory line to delete. WARNING: this action is permanent. After deletion, senders will no longer be able to send invoices via this address.
confirmation_tokenConfirmation token from a previous call. Omit on the first call.

check_ppf_annuaire_health Check Ppf Annuaire Health

Check the availability of the PPF Annuaire service (GET /healthcheck). Use before a directory-management session to ensure the service is reachable.

list_webhooks List Webhooks

List all webhook subscription IDs owned by the current OAuth2 token holder. Returns a list of webhook UUIDs. Use get_webhook with each ID to retrieve the full subscription details (callback URL, filters, authentication).

get_webhook Get Webhook

Retrieve the full details of a webhook subscription: callback URL, authentication mode, signature configuration, and metadata filters (flow type, direction, processing rule, ack status).

ParameterTypeDescription
webhook_uid *stringUUID of the webhook subscription to retrieve.

create_webhook Create Webhook

Subscribe to webhook notifications from the Approved Platform. The AP will POST event payloads to the callback URL whenever a flow matching the specified filters (flow type, direction, processing rule, ack status) is created or updated. HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.

ParameterTypeDescription
callback_url *stringURL the Approved Platform will POST notifications to. Must be HTTPS and reachable from the AP network.
flow_direction *stringDirection filter: 'In' for incoming flows (from PDP to OD), 'Out' for outgoing flows (from OD to PDP).
flow_type *stringFlow type to subscribe to: CustomerInvoice, SupplierInvoice, CustomerInvoiceLC, SupplierInvoiceLC, AggregatedCustomerTransactionReport, UnitaryCustomerTransactionReport, AggregatedCustomerPaymentRepor…
ack_statusOptional acknowledgement status filter: Pending, Ok, Error.
auth_client_idClient ID for OAUTH2 authentication on the callback.
auth_client_secretClient secret for OAUTH2 authentication on the callback.
auth_token_urlToken URL for OAUTH2 authentication on the callback.
auth_typeAuthentication type for the callback: BASIC or OAUTH2.
auth_user_idUser ID for BASIC authentication on the callback URL.
auth_user_passwordPassword for BASIC authentication on the callback URL.
confirmation_tokenConfirmation token from a previous call. Omit on the first call; supply on the second call to execute.
processing_ruleOptional processing rule filter: B2B, B2BInt, B2C, B2G, etc.
signature_algoSignature algorithm: RS256, HS256, ECDSA, EDDSA_25519, RSA_PSS, EDDSA_448.
signature_keyBase64-encoded signing key for webhook payload verification.

update_webhook Update Webhook

Update a webhook subscription's technical parameters (authentication, signature, custom headers). Metadata filters (flow type, direction) cannot be changed; delete and recreate the webhook instead. Only provided fields are modified (PATCH semantics).

ParameterTypeDescription
webhook_uid *stringUUID of the webhook subscription to update.
auth_client_idClient ID for OAUTH2 authentication.
auth_client_secretClient secret for OAUTH2 authentication.
auth_token_urlToken URL for OAUTH2 authentication.
auth_typeNew authentication type for the callback: BASIC or OAUTH2.
auth_user_idUser ID for BASIC authentication.
auth_user_passwordPassword for BASIC authentication.
signature_algoNew signature algorithm.
signature_keyNew base64-encoded signing key.

delete_webhook Delete Webhook

Delete (unsubscribe from) a webhook. After deletion, the AP will stop sending notifications to the callback URL. HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.

ParameterTypeDescription
webhook_uid *stringUUID of the webhook subscription to delete.
confirmation_tokenConfirmation token from a previous call. Omit on the first call; supply on the second call to execute.