Uproc External API Reference

Authentication

All authenticated external API requests require a user API key bearer token:

HeaderDescriptionExample
AuthorizationUser API key bearer tokenBearer xxx-xxx-xxx

The token resolves the authenticated user, customer scope, and role.

Environment defaults

Use these environment variables in requests:

  • UPROC_PROCESSES_API_URL: VALUE
  • USER_API_KEY: VALUE

Base URL

https://api.uproc.io

Common Headers

Authorization: Bearer your_user_api_key

Index

Endpoints

GET /api/v1/external/data-management/transfer

Export the authenticated admin customer’s Data Management entities, columns, rows, and relations as a portable base64 ZIP. This endpoint is consumed by uproc applications data-management export-transfer.

POST /api/v1/external/data-management/transfer/import

Preview or replace the authenticated admin customer’s Data Management data. Send {"zip_base64":"...","confirm":false} for a preview; set confirm to true to replace the Data Management schema and rows. This endpoint is consumed by uproc applications data-management import-transfer.

GET /api/v1/external/modules

List all available modules.

Response

{
  "success": true,
  "message": "",
  "data": [
    {"slug": "purchase-invoices", "title": "Invoice Ingest"}
  ]
}

Curl

curl -s \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  "$UPROC_PROCESSES_API_URL/api/v1/external/modules"

GET /api/v1/external/install

Get combined install plan for the authenticated customer.

This endpoint returns:

  • customer_config (same configuration contract as /api/v1/external/config)
  • release (latest + history) from docs/releases.json
  • install (mode, required_services, minimum_requirements, requirements_check, and ordered steps)

Query params

  • dry_run (optional, default true)

Response

{
  "success": true,
  "message": "get.success",
  "data": {
    "customer_config": {
      "modules": ["purchase-invoices", "order-track"],
      "white_label": {"id": 10, "name": "Acme", "domain": "acme"},
      "users": []
    },
    "release": {
      "source": "docs/releases.json",
      "latest": {
        "release_id": "2026.03.21-1",
        "back_version": "0.1.72",
        "front_version": "0.1.63"
      },
      "history": []
    },
    "install": {
      "mode": "dry-run",
      "required_services": ["docker", "dokploy", "uproc-back", "uproc-front"],
      "minimum_requirements": {
        "vcpu_min": 4,
        "ram_gb_min": 16,
        "disk_gb_min": 200,
        "disk_type_required": "nvme"
      },
      "requirements_check": {
        "status": "unknown",
        "mode": "recommended",
        "checks": []
      },
      "steps": []
    }
  }
}

Curl

curl -s \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  "$UPROC_PROCESSES_API_URL/api/v1/external/install?dry_run=true"

GET /api/v1/external/modules/{module_slug}

Get module details by slug.

Response

{
  "success": true,
  "message": "",
  "data": {"slug": "purchase-invoices", "title": "Invoice Ingest"}
}

Curl

curl -s \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  "$UPROC_PROCESSES_API_URL/api/v1/external/modules/purchase-invoices"

GET /api/v1/external/modules/{module_slug}/kpis

Get KPIs for a module.

Response

{
  "success": true,
  "message": "",
  "data": {"series": [], "kpis": {}, "meta": {}}
}

Curl

curl -s \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  "$UPROC_PROCESSES_API_URL/api/v1/external/modules/purchase-invoices/kpis"

GET /api/v1/external/modules/{module_slug}/collections

Get collections available for a module.

Response

{
  "success": true,
  "message": "",
  "data": {"collections": ["invoices", "uploads"]}
}

Curl

curl -s \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  "$UPROC_PROCESSES_API_URL/api/v1/external/modules/purchase-invoices/collections"

GET /api/v1/external/modules/{module_slug}/collections/{collection_name}

Get data from a module collection.

Response

{
  "success": true,
  "message": "",
  "data": {
    "columns": [],
    "rows": [],
    "total_items": 0,
    "current_page": 1,
    "max_pages": 0
  }
}

Curl

curl -s \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  "$UPROC_PROCESSES_API_URL/api/v1/external/modules/purchase-invoices/collections/invoices?page=1"

GET /api/v1/external/modules/{module_slug}/data/{collection_name}

Get module data from the /data endpoint.

Query params

  • page (optional, default 1)
  • sort_field (optional)
  • sort_order (optional: asc or desc)
  • filter_field (optional)
  • filter_value (optional)

Data Management note (read-only via generic endpoints)

  • For module_slug=data-management, use generic external endpoints only:
    • GET /api/v1/external/modules/data-management/collections
    • GET /api/v1/external/modules/data-management/data/{collection_name}
  • Read-only settings tabs are exposed in external API:
    • GET /api/v1/external/modules/data-management/settings/tabs
    • GET /api/v1/external/modules/data-management/settings/tab/{tab_key}
  • filter_value must include entity_id as JSON, for example:
    • {"entity_id":123}

Response

{
  "success": true,
  "message": "",
  "data": {
    "columns": [],
    "rows": [],
    "total_items": 0,
    "current_page": 1,
    "max_pages": 0
  }
}

POST /api/v1/external/modules/{module_slug}/data/{collection_name}

Create one item in a module collection using the generic external data endpoint.

Current allowlist:

  • lead-management/leads

Payload (lead-management/leads)

{
  "company": "Cliente X",
  "contact": "Laura Navarro",
  "email": "[email protected]",
  "phone": "+34 611 234 567",
  "industry": "Tecnologia",
  "status": "comercial",
  "estimated_value": 4200,
  "probability": 72,
  "source": "web",
  "notes": "Cliente interesado en instalar VPS + VPN."
}

Response

{
  "success": true,
  "message": "common.messages.create.success",
  "data": {
    "id": 123
  }
}

GET /api/v1/external/modules/{module_slug}/data/{collection_name}/contract

Get create contract metadata for a collection.

Query params

  • operation (optional, default create)

Response (lead-management/leads)

{
  "success": true,
  "message": "",
  "data": {
    "module_slug": "lead-management",
    "collection_name": "leads",
    "operation": "create",
    "required_fields": ["company"],
    "recommended_fields": ["email", "contact", "notes"],
    "optional_fields": ["phone", "industry", "status", "estimated_value", "probability", "source", "assigned_to", "interactions"],
    "notes": [
      "status accepts aliases and is normalized",
      "assigned_to accepts user id or email from same customer"
    ],
    "example": {
      "company": "Cliente X",
      "contact": "Laura Navarro"
    }
  }
}

GET /api/v1/external/modules/{module_slug}/actions

List available generic actions for a module with required fields.

Response (lead-management)

{
  "success": true,
  "message": "",
  "data": {
    "module_slug": "lead-management",
    "actions": [
      {"key": "generate_lead_proposal", "required_fields": ["lead_id"], "optional_fields": ["template_id", "title", "description", "output_format"]},
      {"key": "send_lead_proposal", "required_fields": ["lead_id", "mailbox_id", "to_email", "subject", "body"], "optional_fields": ["proposal_url"]},
      {"key": "rerun_lead_intelligence", "required_fields": ["lead_id"], "optional_fields": []}
    ]
  }
}

POST /api/v1/external/modules/{module_slug}/actions/{action}

Run one generic action.

Payload example (generate_lead_proposal)

{
  "lead_id": 123,
  "title": "Propuesta tecnica: VPS + VPN",
  "description": "Instalacion, hardening y puesta en marcha.",
  "output_format": "pdf"
}

Response

{
  "success": true,
  "message": "lead_management.proposal.generate.success",
  "data": {
    "lead_id": 123,
    "proposal_url": "https://.../proposal.pdf"
  }
}

data-process actions (consumed by CLI uproc applications data-process execute|batch):

execute — inline, no daily inline-call limit (balance + daily budget apply):

{ "processor": "check-creditcard-checksum", "params": { "credit_card": "4024007151839544" } }

batch — queue a background run over a data-management entity:

{ "tool": "check-creditcard-checksum", "source_entity_id": 5, "output_name": "Results" }

Migrated data-process tools are served by the native Python implementation; tools not yet migrated fall back to the legacy platform automatically (DATA_PROCESS_TOOLS_MODE=auto). A native tool depending on an external provider is used only when its TOOL_* credential env var is configured, otherwise it falls back to legacy. Tool catalog and execution responses include execution_mode (native or legacy_bypass).

GET /api/v1/external/profile

Get the connected user’s profile (identified via x-user-email). Consumed by CLI uproc me get.

Response

{
  "success": true,
  "message": "User data loaded OK",
  "data": { "id": 7, "first_name": "Jane", "last_name": "Doe", "email": "[email protected]", "language": "es", "default_app": "data-process" }
}

PUT /api/v1/external/profile

Update the connected user’s profile (consumed by CLI uproc me update).

Payload example

{ "first_name": "Jane", "language": "en", "default_app": "data-process" }

Response

{ "success": true, "message": "update.success" }

GET /api/v1/external/modules/{module_slug}/tools

Search the data-process tool catalog (read-only, no cost). Consumed by CLI uproc applications data-process search [query].

Response

{
  "success": true,
  "data": {
    "rows": [ { "key": "get-company-by-name", "name": "by-name", "description": "Company by name", "params": [ { "name": "name", "required": true } ] } ],
    "total": 1
  }
}

GET /api/v1/external/modules/{module_slug}/tools/{tool_key}

Get the full spec of a single data-process tool (params with accepted/format, output, cost, extended_description). Consumed by CLI uproc applications data-process tool <key> and MCP data-process.tool.

Response

{
  "success": true,
  "data": {
    "key": "get-company-by-name",
    "name": "by-name",
    "description": "Company by name",
    "cost": 80,
    "params": [ { "name": "name", "required": true, "ok_sample": "Cyberclick S.L." }, { "name": "country", "required": false, "accepted": ["Afghanistan", "Albania", "..."] } ],
    "output": [ { "name": "name" }, { "name": "email" } ]
  }
}

PUT /api/v1/external/modules/{module_slug}/data/{collection_name}/{item_id}/status

Change the status of a module collection item. The transition is validated by the module facade (for purchase-invoices: received -> validated -> paid). Consumed by the CLI purchase-invoices validate|pay commands.

Payload example (purchase-invoices)

{
  "status": "paid",
  "reason": "bank transfer"
}

Response

{
  "success": true,
  "message": "common.messages.status.update.success",
  "data": {}
}

GET /api/v1/external/modules/{module_slug}/data_domains

List the data domains (channels) of a module with their sample questions, localized to the user’s language. Consumed by the CLI data-chatbot domains command.

Response

{
  "success": true,
  "message": "",
  "data": {
    "data_domains": [
      {
        "id": 1,
        "name": "Sales",
        "sample_queries": [
          {"category": "Leads", "type": "count", "text": "How many leads this week?"}
        ]
      }
    ]
  }
}

GET /api/v1/external/modules/{module_slug}/settings/tabs

List available settings tabs for a module (read-only).

Response

{
  "success": true,
  "message": "",
  "data": {
    "tabs": [
      {"key": "mailboxes", "source_key": "mailboxes_rows", "items_count": 2}
    ]
  }
}

Curl

curl -s \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  "$UPROC_PROCESSES_API_URL/api/v1/external/modules/data-management/settings/tabs"

GET /api/v1/external/modules/{module_slug}/settings/tab/{tab_key}

Get values for one settings tab (read-only).

Response

{
  "success": true,
  "message": "",
  "data": {
    "key": "mailboxes",
    "source_key": "mailboxes_rows",
    "columns": [],
    "items": [],
    "items_count": 0
  }
}

Curl

curl -s \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  "$UPROC_PROCESSES_API_URL/api/v1/external/modules/data-management/settings/tab/mailboxes"

Curl

curl -s \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  "$UPROC_PROCESSES_API_URL/api/v1/external/modules/purchase-invoices/data/invoices?page=1"

POST /api/v1/external/modules/{module_slug}/collections/{collection_name}/inputs/file

Upload a file (Base64 content) to a module collection.

Payload

{
  "file_name": "invoice.pdf",
  "content": "JVBERi0xLjQKJ..."
}

Response

{
  "success": true,
  "message": "",
  "data": {}
}

Curl

curl -s -X POST \
  -H "Content-Type: application/json" \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  -d '{"file_name":"invoice.pdf","content":"JVBERi0xLjQKJ..."}' \
  "$UPROC_PROCESSES_API_URL/api/v1/external/modules/purchase-invoices/collections/invoices/inputs/file"

POST /api/v1/external/modules/{module_slug}/collections/{collection_name}/inputs/webhook

Send a webhook to a module collection.

Payload

{
  "name": "Process Invoice",
  "message": "New invoice to process",
  "reply_callback": "https://example.com/callback",
  "raw": {"invoice_id": "INV-001"}
}

Response

{
  "success": true,
  "message": "",
  "data": {"job_id": 123}
}

Curl

curl -s -X POST \
  -H "Content-Type: application/json" \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  -d '{"name":"Process Invoice","message":"New invoice to process","reply_callback":"https://example.com/callback","raw":{"invoice_id":"INV-001"}}' \
  "$UPROC_PROCESSES_API_URL/api/v1/external/modules/purchase-invoices/collections/invoices/inputs/webhook"

POST /api/v1/external/public/modules/form-generator/forms/{customer_domain}/{form_slug}/submit

Submit a public form payload for Form Generator.

This endpoint is consumed by CLI command:

  • uproc applications module submit-public-form <customer_domain> <form_slug> <payload_json>

Path params

  • customer_domain: customer slug/domain identifier (for example demo)
  • form_slug: form slug (for example contact-form)

Payload

{
  "payload": {
    "email": "[email protected]",
    "country": "ES"
  }
}

Response (success)

{
  "success": true,
  "message": "common.messages.create.success",
  "data": {
    "submission_id": 99,
    "job_id": 321
  }
}

Response (validation failed)

{
  "success": false,
  "message": "validation.failed",
  "data": {
    "errors": [
      {"field": "email", "reason": "required"},
      {"field": "country", "reason": "invalid_value"}
    ]
  }
}

Response (rate limit exceeded)

{
  "success": false,
  "message": "rate.limit.exceeded",
  "data": {
    "limit": 30,
    "window": "minute"
  }
}

The rate limit is enforced both per form and per requester IP. Default per-IP limit is 10 submissions per minute (setting key: rules.public_rate_limit_per_minute_per_ip).

Validation reasons returned in data.errors[*].reason can include:

  • required
  • invalid_type
  • invalid_format
  • invalid_value
  • unknown_field
  • max_length_exceeded
  • too_many_fields
  • payload_too_large

Curl

curl -s -X POST \
  -H "Content-Type: application/json" \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  -d '{"payload":{"email":"[email protected]","country":"ES"}}' \
  "$UPROC_PROCESSES_API_URL/api/v1/external/public/modules/form-generator/forms/demo/contact-form/submit"

GET /api/v1/external/public/modules/form-generator/forms/{customer_domain}/{form_slug}

Get public form schema for external rendering.

Path params

  • customer_domain: customer slug/domain identifier (for example demo)
  • form_slug: form slug (for example contact-form)

Response (success)

{
  "success": true,
  "message": "common.messages.item.found",
  "data": {
    "form": {
      "name": "Contact Form",
      "slug": "contact-form",
      "description": "Collect leads"
    },
    "fields": [
      {
        "key": "email",
        "label": "Email",
        "type": "email",
        "required": true,
        "position": 1,
        "placeholder": "[email protected]",
        "help_text": "",
        "config": {}
      },
      {
        "key": "country",
        "label": "Country",
        "type": "select",
        "required": false,
        "position": 2,
        "placeholder": "Select country",
        "help_text": "Choose your country",
        "config": {
          "allowed_values": ["ES", "FR", "IT"],
          "max_length": 20
        }
      }
    ]
  }
}

External integration flow (render + submit)

async function loadPublicForm(baseUrl, customerDomain, formSlug, headers) {
  const response = await fetch(
    `${baseUrl}/api/v1/external/public/modules/form-generator/forms/${customerDomain}/${formSlug}`,
    { headers },
  )
  const data = await response.json()
  if (!data.success) throw new Error(data.message)
  return data.data
}

async function submitPublicForm(baseUrl, customerDomain, formSlug, payload, headers) {
  const response = await fetch(
    `${baseUrl}/api/v1/external/public/modules/form-generator/forms/${customerDomain}/${formSlug}/submit`,
    {
      method: 'POST',
      headers: { 'Content-Type': 'application/json', ...headers },
      body: JSON.stringify({ payload }),
    },
  )
  const data = await response.json()
  if (!data.success && data.message === 'validation.failed') {
    return { ok: false, fieldErrors: data.data?.errors || [] }
  }
  return { ok: data.success, data: data.data, message: data.message }
}

Response (form not available)

{
  "success": false,
  "message": "form.public.disabled",
  "data": {}
}

Curl

curl -s \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  "$UPROC_PROCESSES_API_URL/api/v1/external/public/modules/form-generator/forms/demo/contact-form"

My Data API

Endpoints for external users (providers, customers, candidates) to query their own data. Authentication is via user-level API key (x-user-api-key), not the customer-level key.

Authentication

HeaderDescriptionExample
x-user-api-keyUser API key (generated per user by the admin)abc-123-def

Each user sees only the records that the admin has configured in users.filters. Without filter configuration, the endpoint returns empty results.

GET /api/v1/my-data/invoices

Query supplier invoices from purchase-invoices. Filtered by the user’s NIF when users.filters is configured with purchase-invoices rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/invoices"

GET /api/v1/my-data/my-invoices

Query customer-facing invoices from sales-invoices. Filtered by the user’s tax ID when users.filters is configured with sales-invoices rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/my-invoices"

GET /api/v1/my-data/processes

Query process visibility records. Filtered by the user’s NIF when users.filters is configured with process-visibility rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/processes"

GET /api/v1/my-data/tickets

Query customer care tickets. Filtered by the user’s email when users.filters is configured with customer-care rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/tickets"

GET /api/v1/my-data/contracts

Query contract lifecycle records. Filtered by the user’s NIF when users.filters is configured with contract-lifecycle rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/contracts"

GET /api/v1/my-data/debts

Query debt track invoices. Filtered by the user’s NIF when users.filters is configured with debt-track rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/debts"

GET /api/v1/my-data/orders

Query order track records. Filtered by the user’s NIF when users.filters is configured with order-track rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/orders"

GET /api/v1/my-data/signing-requests

Query document signing requests. Filtered by the user’s email when users.filters is configured with document-signing rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/signing-requests"

GET /api/v1/my-data/cases

Query case lifecycle records. Filtered by the user’s NIF when users.filters is configured with case-lifecycle rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/cases"

GET /api/v1/my-data/candidates

Query candidate evaluation applications. Filtered by the user’s email when users.filters is configured with candidate-evaluation rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/candidates"

GET /api/v1/my-data/approvals

Query approval management requests. Filtered by the user’s email when users.filters is configured with approval-management rules.

Curl

curl -s \
  -H "x-user-api-key: $USER_API_KEY" \
  "$UPROC_PROCESSES_API_URL/api/v1/my-data/approvals"

ERP sync & VeriFactu (external)

POST /api/v1/external/modules/data-sync/actions/push_to_erp

Write a record to an ERP provider using a stored ERP credential. Consumed by uproc applications sync push-to-erp.

curl -X POST "$UPROC_PROCESSES_API_URL/api/v1/external/modules/data-sync/actions/push_to_erp" \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  -H "Content-Type: application/json" \
  -d '{"credential_id":3,"resource":"invoices","operation":"create","item":{"number":"H-1","total":121}}'

POST /api/v1/external/modules/sales-invoices/actions/resubmit_verifactu

Retry the VeriFactu registration of an invoice. Consumed by uproc applications sales-invoices verifactu resubmit.

curl -X POST "$UPROC_PROCESSES_API_URL/api/v1/external/modules/sales-invoices/actions/resubmit_verifactu" \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  -H "Content-Type: application/json" \
  -d '{"invoice_id":9}'

POST /api/v1/external/modules/sales-invoices/actions/backfill_verifactu

Register already-issued invoices into the VeriFactu chain. Consumed by uproc applications sales-invoices verifactu backfill.

curl -X POST "$UPROC_PROCESSES_API_URL/api/v1/external/modules/sales-invoices/actions/backfill_verifactu" \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/external/modules/sales-invoices/data/invoices/{invoice_id}/verifactu_xml

Fetch the AEAT SF v1.1 XML generated for an invoice. Consumed by uproc applications sales-invoices verifactu xml.

curl "$UPROC_PROCESSES_API_URL/api/v1/external/modules/sales-invoices/data/invoices/9/verifactu_xml" \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL"

Data chatbot sessions

GET /api/v1/external/modules/data-chatbot/sessions

List the connected user’s chatbot sessions (filter by source web/cli/mcp and/or channel). Consumed by uproc applications data-chatbot sessions.

curl "$UPROC_PROCESSES_API_URL/api/v1/external/modules/data-chatbot/sessions?source=cli" \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL"

Run VeriFactu workflow

POST /api/v1/external/modules/sales-invoices/actions/run_verifactu

Run the VeriFactu AEAT data-sync workflow now. Consumed by uproc applications sales-invoices verifactu run.

curl -X POST "$UPROC_PROCESSES_API_URL/api/v1/external/modules/sales-invoices/actions/run_verifactu" \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  -H "Content-Type: application/json" \
  -d '{}'

FileSync

POST /api/v1/external/modules/file-sync/actions/run_transfer

Run a FileSync transfer now (copies files with overwrite). Consumed by uproc applications file-sync run.

curl -X POST "$UPROC_PROCESSES_API_URL/api/v1/external/modules/file-sync/actions/run_transfer" \
  -H "x-api-key: $CUSTOMER_API_KEY" \
  -H "x-customer-domain: $CUSTOMER_DOMAIN" \
  -H "x-user-email: $CUSTOMER_USER_EMAIL" \
  -H "Content-Type: application/json" \
  -d '{"transfer_id":1}'