Accessibility Tools

  • Content scaling 100%
  • Font size 100%
  • Line height 100%
  • Letter spacing 100%
  • Manifeste
  • Simplifier l'entreprise
  • Outils
  • Mieux travailler
  • Contact
Menu
  • Manifeste
  • Simplifier l'entreprise
  • Outils
  • Mieux travailler
  • Contact

Oui Engage

Non défini

5 minute de lecture
Document engagement tracking, CRM integration, and multi-channel notification system with Pennylane and ProjectFlow integrations.

Sur cette page

  • Overview
  • Authentication
  • POST /auth/token
  • Request Body
  • Response
  • POST /auth/refresh
  • Request Body
  • Document Engagements
  • GET /api/v1/document-engagements
  • Parameters
  • POST /api/v1/document-engagements
  • Parameters
  • GET /api/v1/document-engagements/{id}
  • Response
  • PUT /api/v1/document-engagements/{id}
  • DELETE /api/v1/document-engagements/{id}
  • GET /api/v1/document-engagements/stats
  • Parameters
  • POST /api/v1/document-engagements/{id}/send
  • Request Body
  • Access Tokens
  • POST /api/v1/document-engagements/{id}/tokens
  • Request Body
  • GET /api/v1/document-engagements/{id}/tokens
  • DELETE /api/v1/document-engagements/{id}/tokens/{token_id}
  • Event Tracking
  • GET /api/v1/document-engagements/{id}/events
  • Parameters
  • Bulk Operations
  • POST /api/v1/document-engagements/bulk/send
  • POST /api/v1/document-engagements/bulk/status
  • POST /api/v1/document-engagements/bulk/export
  • POST /api/v1/document-engagements/bulk/delete
  • Public Access Endpoints
  • GET /p/{token}
  • GET /p/{token}/pdf
  • POST /p/{token}/accept
  • POST /p/{token}/sign
  • POST /p/{token}/register
  • GET /t/{pixel_id}.gif
  • Sync Management
  • POST /api/v1/sync/pennylane
  • POST /api/v1/sync/projectflow
  • GET /api/v1/sync/jobs
  • Parameters
  • GET /api/v1/sync/jobs/{id}
  • Analytics & Reporting
  • GET /api/v1/analytics/overview
  • Parameters
  • GET /api/v1/analytics/timeline
  • Parameters
  • GET /api/v1/analytics/events
  • GET /api/v1/analytics/top
  • GET /api/v1/analytics/export
  • Webhooks
  • GET /api/v1/webhooks
  • POST /api/v1/webhooks
  • POST /api/v1/webhooks/{id}/test
  • GET /api/v1/webhooks/{id}/deliveries
  • POST /webhooks/pennylane
  • POST /webhooks/projectflow
  • CRM Endpoints
  • Multi-Channel Messaging
  • Error Codes

Autres documents

  • Oui Compose
  • Oui Device
  • Oui Humans
  • Oui Incoming
  • Oui Monitor
  • Oui Outgoing
  • Work
  • Oui Chat
  • Oui Answer
  • Oui Create
  • Gestion des cookies
Document engagement tracking, CRM integration, and multi-channel notification system with Pennylane and ProjectFlow integrations.

Document engagement tracking, CRM integration, and multi-channel notification system with Pennylane and ProjectFlow integrations.

Base URL: https://engage.yourdomain.com/api/v1

Overview

Authentication

POST /auth/token

Request Body

{
  "email": "Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.",
  "password": "your_password"
}

Response

{
  "success": true,
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIs...",
    "expires_at": "2025-01-22T15:00:00Z",
    "refresh_token": "refresh_token_here"
  }
}

POST /auth/refresh

Request Body

{
  "refresh_token": "your_refresh_token"
}

Document Engagements

GET /api/v1/document-engagements

Parameters

ParameterTypeDescription
pageintegerPage number (default: 1)
per_pageintegerItems per page (default: 20, max: 100)
statusstringFilter: draft, pending, sent, viewed, downloaded, accepted, signed, paid, rejected, expired, cancelled
document_typestringFilter: pennylane_quote, pennylane_invoice, project_approval, custom
external_sourcestringFilter: pennylane, projectflow
contact_idintegerFilter by contact
organization_idintegerFilter by organization
date_fromdateFilter by creation date (YYYY-MM-DD)
date_todateFilter by creation date (YYYY-MM-DD)
viewedbooleanFilter by viewed status
searchstringSearch in document number, title, external ID
sortstringSort: created_at, updated_at, document_type, status, total_amount, due_date
orderstringasc or desc (default: desc)

POST /api/v1/document-engagements

Parameters

FieldTypeRequiredDescription
document_typestringRequiredpennylane_quote, pennylane_invoice, project_approval, custom
titlestringRequiredDocument title (min 3 chars)
external_idstringOptionalExternal reference ID
external_sourcestringOptionalSource system (pennylane, projectflow)
external_urlstringOptionalURL to external document
contact_idintegerOptionalLink to contact
organization_idintegerOptionalLink to organization
total_amountdecimalOptionalDocument amount
currencystringOptionalCurrency code (default: EUR)
due_datedateOptionalPayment/action due date
pdf_urlstringOptionalURL to PDF file
payment_urlstringOptionalPayment link
metadataobjectOptionalCustom JSON metadata
prefill_dataobjectOptionalData to pre-fill forms

GET /api/v1/document-engagements/{id}

Response

{
  "success": true,
  "data": {
    "id": 1,
    "document_type": "pennylane_quote",
    "external_id": "Q-2024-001",
    "external_source": "pennylane",
    "external_url": "https://pennylane.com/quotes/...",
    "title": "Quote #2024-001",
    "description": "Website redesign project",
    "status": "viewed",
    "recipient_email": "Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.",
    "recipient_name": "John Doe",
    "recipient_company": "Acme Corp",
    "total_amount": 5000.00,
    "currency": "EUR",
    "due_date": "2025-02-15",
    "view_count": 3,
    "first_viewed_at": "2025-01-20T10:30:00Z",
    "downloaded_at": null,
    "accepted_at": null,
    "signed_at": null,
    "paid_at": null,
    "tokens": [
      {
        "id": 1,
        "token": "abc123...",
        "expires_at": "2025-02-20",
        "use_count": 2,
        "allowed_actions": ["view", "download", "sign"]
      }
    ],
    "recent_events": [
      {
        "event_type": "page_viewed",
        "created_at": "2025-01-20T10:30:00Z",
        "device_type": "desktop"
      }
    ]
  }
}

PUT /api/v1/document-engagements/{id}

Updatable fields: status, due_date, title, description, total_amount, currency, metadata, custom_message

DELETE /api/v1/document-engagements/{id}

Soft deletes the document engagement. Can be restored by admin.

GET /api/v1/document-engagements/stats

Returns statistics on statuses, types, conversion rates, and amounts.

Parameters

ParameterTypeDescription
date_fromdateStart date
date_todateEnd date
document_typestringFilter by type

POST /api/v1/document-engagements/{id}/send

Request Body

{
  "recipient_email": "Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.",
  "recipient_name": "John Doe",
  "subject": "Your Quote from Our Company",
  "message": "Please review the attached quote...",
  "template": "quote_notification",
  "cc": ["Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser."],
  "generate_token": true,
  "token_options": {
    "allowed_actions": ["view", "download", "sign"],
    "expires_in_days": 30
  }
}

Access Tokens

POST /api/v1/document-engagements/{id}/tokens

Returns token object with public URL and expiration.

Request Body

{
  "allowed_actions": ["view", "download", "sign"],
  "expires_in_days": 30,
  "max_uses": null,
  "recipient_email": "Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.",
  "prefill_data": {
    "name": "John Doe",
    "company": "Acme Corp"
  },
  "restricted_ips": ["192.168.1.0/24"]
}

GET /api/v1/document-engagements/{id}/tokens

Returns all access tokens created for this document.

DELETE /api/v1/document-engagements/{id}/tokens/{token_id}

Revokes an access token, preventing further access.

Event Tracking

GET /api/v1/document-engagements/{id}/events

Parameters

ParameterTypeDescription
event_typestringFilter by event type
date_fromdateStart date
date_todateEnd date
pageintegerPage number
per_pageintegerItems per page

Bulk Operations

POST /api/v1/document-engagements/bulk/send

POST /api/v1/document-engagements/bulk/status

POST /api/v1/document-engagements/bulk/export

Returns download URL with 1-hour expiration.

POST /api/v1/document-engagements/bulk/delete

Public Access Endpoints

These endpoints use token-based access. No API key required.

GET /p/{token}

Returns HTML page for viewing the document. Tracks view event.

GET /p/{token}/pdf

Downloads the PDF file. Tracks download event.

POST /p/{token}/accept

POST /p/{token}/sign

POST /p/{token}/register

GET /t/{pixel_id}.gif

Returns 1x1 transparent GIF. Tracks email open event.

Sync Management

POST /api/v1/sync/pennylane

POST /api/v1/sync/projectflow

GET /api/v1/sync/jobs

Parameters

ParameterTypeDescription
sourcestringFilter: pennylane, projectflow
statusstringFilter: running, completed, failed
pageintegerPage number
per_pageintegerItems per page

GET /api/v1/sync/jobs/{id}

Returns detailed information including documents_processed, documents_created, documents_updated, and errors.

Analytics & Reporting

GET /api/v1/analytics/overview

Returns by_status, by_type, financial (total/accepted/pending amounts), and engagement (view/download/conversion rates).

Parameters

ParameterTypeDescription
periodstringtoday, week, month, quarter, year (default: 30d)
comparebooleanInclude comparison with previous period

GET /api/v1/analytics/timeline

Parameters

ParameterTypeDescription
date_fromdateStart date
date_todateEnd date
intervalstringday, week, month
metricsstringComma-separated: views, downloads, signatures

GET /api/v1/analytics/events

Returns detailed breakdown of all event types and their counts.

GET /api/v1/analytics/top

Returns top documents by views and conversions.

GET /api/v1/analytics/export

Export analytics data to CSV/Excel format.

Webhooks

GET /api/v1/webhooks

Returns registered webhooks with available events and delivery statistics.

POST /api/v1/webhooks

POST /api/v1/webhooks/{id}/test

Sends a test payload to verify webhook configuration.

GET /api/v1/webhooks/{id}/deliveries

View webhook delivery history with status, response codes, and errors.

POST /webhooks/pennylane

Security: HMAC-SHA256 signature via X-Pennylane-Signature header.

POST /webhooks/projectflow

CRM Endpoints

Multi-Channel Messaging

Error Codes

CodeHTTPDescription
AUTH_INVALID_CREDENTIALS401Invalid API key or credentials
AUTH_TOKEN_EXPIRED401JWT token expired
AUTH_INSUFFICIENT_PERMISSIONS403Not authorized
RESOURCE_NOT_FOUND404Resource not found
TOKEN_INVALID401Invalid/expired access token
DOCUMENT_ALREADY_SIGNED400Document already signed
DOCUMENT_EXPIRED400Access expired
VALIDATION_REQUIRED_FIELD400Required field missing
RATE_LIMIT_EXCEEDED429Too many requests
EXTERNAL_SERVICE_UNAVAILABLE503External service down

Et vous ?

Mieux travailler Discutons de vos besoins
  • Mentions légales
  • Confidentialité des données
  • Cgv

Oui © 2026

Merci de soutenir le projet


Ce projet ne peut pas exister sans votre soutien
Télécharger Soutenir