# EasyPost Connect Public API

This API enables partners to programmatically manage the creation and consultation of outgoing sendings, as well as the automated consultation of incoming PePPOL documents. It provides endpoints for handling jobs (groupings of sendings), individual sending events, and workflows, supporting integration and automation of document exchange processes.

Version: 1.0.0

## Servers

```
https://api.acc.connect.easypost.eu
```

## Security

### Security

Type: oauth2
Token URL: https://auth.acc.connect.easypost.eu/oauth2/token
Scopes:

### api_key

Type: apiKey
In: header
Name: x-api-key

## Download OpenAPI description

 - [EasyPost Connect Public API](https://doc.acc.connect.easypost.eu/_bundle/public-api/openapi.yaml)

## Jobs

 - [GET /jobs/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/jobs/jobscontroller_findone.md): Retrieve Job based on ID
 - [GET /jobs](https://doc.acc.connect.easypost.eu/public-api/openapi/jobs/jobscontroller_findall.md): Retrieve Jobs sorted by ascending startDate. By default, the response contains the 100 (maxItems property) first items. To retrieve the next items matching the request, use the query parameter 'after'
 - [POST /jobs/single-file](https://doc.acc.connect.easypost.eu/public-api/openapi/jobs/jobscontroller_createsinglefilejob.md): Create a Job for a workflow based on a unique file. It returns the Job unique identifier and the url where to upload the file to be processed. Note that the Job will be in AWAITING_FOR_FILE status for
 - [POST /jobs/payload-pdf](https://doc.acc.connect.easypost.eu/public-api/openapi/jobs/jobscontroller_createpayloadpdfjob.md): Create a Job for a workflow based on a PDF payload. It stores the provided payload and returns the url where to upload the PDF file to be processed. Note that the Job will be in AWAITING_FOR_FILE stat
 - [POST /jobs/payload-word](https://doc.acc.connect.easypost.eu/public-api/openapi/jobs/jobscontroller_createpayloadwordjob.md): Create a Job for a workflow based on a Word payload. It stores the provided payload (including template data) and returns the Job unique identifier.
## SendingEvents

 - [GET /sending-events/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/sendingevents/sendingeventscontroller_findone.md): Retrieve SendingEvent based on ID
 - [GET /sending-events](https://doc.acc.connect.easypost.eu/public-api/openapi/sendingevents/sendingeventscontroller_findsendingevents.md): Retrieve SendingEvents sorted by ascending startDate. By default, the response contains the 100 (maxItems property) first items. To retrieve the next items matching the request, use the query paramete
 - [POST /sending-events/{id}/resend](https://doc.acc.connect.easypost.eu/public-api/openapi/sendingevents/sendingeventscontroller_resend.md): Creates a new Sending Event from an existing one in a final state (success or failure). All tasks are re-executed using the original document. Not allowed on Sending Events that are themselves a re-se
 - [GET /sending-events/{id}/files/{fileReference}/download-url](https://doc.acc.connect.easypost.eu/public-api/openapi/sendingevents/sendingeventscontroller_retrievedownloadurl.md): Retrieve Sending Event files (documents, ePod, Submission report). The file download can be initiated with a GET request on the received URL.
## Workflows

 - [GET /workflows/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/workflows/workflowscontroller_findone.md): Retrieve Workflow Configuration based on ID
 - [GET /workflows](https://doc.acc.connect.easypost.eu/public-api/openapi/workflows/workflowscontroller_findworkflows.md): Retrieve the Workflow Configurations. By default, the response contains the 100 (maxItems property) first items. To retrieve the next items matching the request, use the query parameter 'after' with t
## Peppol Incoming Documents

 - [GET /peppol-incoming-documents](https://doc.acc.connect.easypost.eu/public-api/openapi/peppol-incoming-documents/peppolcontroller_retrieveincomingpeppoldocumentsforfilter.md): Retrieve Incoming Peppol Documents. Use the 'sortField' parameter to choose the ordering field: 'createdAt' (default) or 'lastModifiedAt', and the 'sortOrder' parameter to choose the direction: 'desc'
 - [GET /peppol-incoming-documents/sender/{senderId}/document/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/peppol-incoming-documents/peppolcontroller_retrieveincomingpeppoldocument.md): Retrieve Incoming Peppol Document based on ID
 - [PATCH /peppol-incoming-documents/sender/{senderId}/document/{id}/status](https://doc.acc.connect.easypost.eu/public-api/openapi/peppol-incoming-documents/peppolcontroller_updateincomingpeppoldocumentstatus.md): Set the processing status of an Incoming Peppol Document. The portal shows the change as made through the Public API. Setting the status the document already has saves nothing. Send 'expectedStatus' t
 - [GET /peppol-incoming-documents/sender/{senderId}/document/{id}/download-url](https://doc.acc.connect.easypost.eu/public-api/openapi/peppol-incoming-documents/peppolcontroller_retrievedownloadurl.md): Retrieve a pre-signed URL for downloading the Incoming Peppol Document identified by the given ID. It is valid for 10 minutes
## Companies

 - [POST /companies](https://doc.acc.connect.easypost.eu/public-api/openapi/companies/companiescontroller_createcompany.md): Create a Company based on the provided details.
 - [GET /companies](https://doc.acc.connect.easypost.eu/public-api/openapi/companies/companiescontroller_findall.md): Retrieve all managed companies.
 - [GET /companies/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/companies/companiescontroller_findcompanybyid.md): Retrieve a Company based on ID
 - [PATCH /companies/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/companies/companiescontroller_updatecompany.md): Update a Company based on ID. It returns the updated Company.
## Departments

 - [POST /departments](https://doc.acc.connect.easypost.eu/public-api/openapi/departments/departmentscontroller_createdepartment.md): Create a Department based on the provided details.
 - [GET /departments](https://doc.acc.connect.easypost.eu/public-api/openapi/departments/departmentscontroller_findall.md): Retrieve all managed departments.
 - [PATCH /departments/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/departments/departmentscontroller_updatedepartment.md): Update a Department based on ID. It returns the updated Department.
 - [GET /departments/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/departments/departmentscontroller_finddepartmentbyid.md): Retrieve a Department based on ID
## Users

 - [POST /users](https://doc.acc.connect.easypost.eu/public-api/openapi/users/userscontroller_createuser.md): Create a User based on the provided details.
 - [GET /users](https://doc.acc.connect.easypost.eu/public-api/openapi/users/userscontroller_findall.md): Retrieve all managed users.
 - [PATCH /users/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/users/userscontroller_updateuser.md): Update a User based on ID. It returns the updated User.
 - [GET /users/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/users/userscontroller_finduserbyid.md): Retrieve a User based on ID
## Usage

 - [GET /usage](https://doc.acc.connect.easypost.eu/public-api/openapi/usage/usagecontroller_getusage.md): Retrieve usage data for a specific company with filters.
 - [GET /usage/details](https://doc.acc.connect.easypost.eu/public-api/openapi/usage/usagecontroller_getusagedetails.md): Retrieve detailed usage events for a specific company with filters.
## Webhook Subscriptions

 - [POST /webhooks](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-subscriptions/webhookscontroller_createwebhooksubscription.md): Create a webhook subscription for a given company.
 - [GET /webhooks](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-subscriptions/webhookscontroller_findwebhooksubscriptions.md): Retrieve all webhook subscriptions for a given company.
 - [GET /webhooks/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-subscriptions/webhookscontroller_findwebhookbyid.md): Retrieve a webhook subscription by ID.
 - [PATCH /webhooks/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-subscriptions/webhookscontroller_updatewebhook.md): Update a webhook subscription by ID.
 - [DELETE /webhooks/{id}](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-subscriptions/webhookscontroller_deletewebhook.md): Delete a webhook subscription by ID.
 - [POST /webhooks/{id}/reset-secret](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-subscriptions/webhookscontroller_resetwebhooksecret.md): Reset the secret for a webhook subscription by ID and return the new secret once.
 - [POST /webhooks/{id}/test](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-subscriptions/webhookscontroller_testwebhook.md): Sends a test event matching one of the subscribed event types to the subscription URL and returns the HTTP response status. When the subscription has more than one event type, eventType must be provid
## Webhook Events

 - [POST job.status.changed](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-events/jobstatuschangedwebhook.md): Sent when a job status changes.
 - [POST sending.event.status.changed](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-events/sendingeventstatuschangedwebhook.md): Sent when a sending event business status changes.
 - [POST sending.event.file.ready](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-events/sendingeventfilereadywebhook.md): Sent when a generated sending event file is ready for download.
 - [POST peppol.document.received](https://doc.acc.connect.easypost.eu/public-api/openapi/webhook-events/peppoldocumentreceivedwebhook.md): Sent when an incoming Peppol document is received.
