Blueink OpenAPI Specfication
BlueInk API v2 (2.2.4)
Download OpenAPI specification:Download
This document contains the detailed specification for version 2 of the BlueInk eSignature API. If just starting with the BlueInk API, you might want to checkout the Walkthroughs and Guides that supplement this API specification.
List Bundles
Returns a paginated list of Bundles in your Account, ordered by created date (from most recent to
least recent). Pagination can be controlled via Pagination paramaters (see Overview->Pagination).
Querystring filters paramaters can be combined, e.g.
/bundles/?search=Gibbons&status__in=se,co&tag=needs-attention
. When combining filters, only Bundles
matching ALL the filters are returned.
query Parameters
search | string A search query. Only bundles matching the search will be returned. The following data in the the Bundle is searched:
E.g. |
status | string Enum: "dr" "se" "st" "co" "ca" "ex" "fa" Limit bundles to those with the specified status.
E.g. |
status__in | string Enum: "dr" "se" "st" "co" "ca" "ex" "fa" Limit bundles to those with one of the specified statuses. Statuses should be comma separated.
E.g. |
tag | string Return Bundles that have the given tag. E.g. |
tag__in | string Return Bundles that have at least one of the given tags. Tags should be comma separated.
E.g. |
ordering | string Enum: "created" "sent" "completed_at" Control the sort order of Bundles. Prefix with "-" to reverse the sort order. By default Bundles are sorted by "-created", ie the Bundle creation date from most to least recent. |
created | string <date-time> Retrieve Bundles created within a specified date range Note: Dates are expressed as YYYY-MM-DD format. E.g. |
sent | string <date-time> E.g. |
completed | string <date-time> E.g. |
Responses
Response samples
- 200
[- {
- "label": "string",
- "in_order": false,
- "email_subject": "string",
- "email_message": "string",
- "sms_message": "string",
- "requester_name": "string",
- "custom_key": "string",
- "team": "95527efb-6695-4aae-916e-c9869b1fb2bd",
- "is_test": true,
- "status": "dr",
- "payment": {
- "billed_to": "signer-1",
- "amount_due": 999,
- "payment_method_types": [
- "card_payments"
]
}, - "id": "string",
- "created": "2019-08-24T14:15:22Z",
- "docs_ready": true,
- "errors": [
- {
- "code": "authentication_failed",
- "message": "string",
- "errors": [
- {
- "field": "string",
- "messsage": "string"
}
]
}
], - "packets": [
- {
- "name": "string",
- "phone": "string",
- "auth_sms": true,
- "auth_selfie": true,
- "auth_id": true,
- "id": "string",
- "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
- "status": "ne",
- "deliver_via": "email",
- "completed_at": "string",
- "last_accessed_at": "string",
- "order": 0
}
], - "documents": [
- {
- "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
- "key": "string",
- "name": "string"
}
], - "tags": [
- "string"
], - "data": [
- {
- "key": "string",
- "kind": "string",
- "label": "string",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "packet_id": "7320cc64-cc5d-4058-b442-4f3247dcb469",
- "value": "string"
}
]
}
]
Create a Bundle
Request Body schema:
label | string A label to help you identify this Bundle |
in_order | boolean Default: false If true, Signers are required to sign in order, and a signing message (email or SMS) is sent to a Signer when previous signers have signed. |
email_subject | string A custom email subject that will be included in the email sent to each Signer. |
email_message | string A custom message that will be included in the email sent to each Signers via email. A message set on the individual PacketRequest takes precedence. |
sms_message | string A custom message that will be included in the SMS sent to each Signers. A message set on the individual PacketRequest takes precedence. |
requester_name | string The name of the requester. Defaults to the value configured for the Account (or Team). |
requester_email | string <email> The email address of the requester. Defaults to the value configured for the Account (or Team). |
cc_emails | Array of strings <email> [ items <email > ] An array of email addresses that should be cc'd when the documents are complete |
custom_key | string <= 200 characters An optional, unique custom key you can use to identify and retrieve this Bundle (e.g via search) |
team | string <uuid> A team ID, if teams are activated for your Account and you want to assign this Bundle to a particular team. |
is_test | boolean Set to True if this a test bundle. Test Bundles do not count against any account usage limits and cannot be used to create legally binding eSignatures. This should always be set to true while you App or integration is under development. |
status | string Enum: "" "dr" Leave blank to send a bundle normally. Set to "dr" to create a draft bundle that is not sent automatically |
object (BundlePayment) You need to set up payout settings (Stripe Connect). After the signer has made the payment, the amount will be transferred to you via the previously set up Stripe account. | |
required | Array of objects (PacketRequest) |
required | Array of DocumentRequest (object) or TemplateRequest (object) |
Responses
Request samples
- Payload
{- "label": "string",
- "in_order": false,
- "email_subject": "string",
- "email_message": "string",
- "sms_message": "string",
- "requester_name": "string",
- "custom_key": "string",
- "team": "95527efb-6695-4aae-916e-c9869b1fb2bd",
- "is_test": true,
- "status": "",
- "payment": {
- "billed_to": "signer-1",
- "amount_due": 999,
- "payment_method_types": [
- "card_payments"
]
}, - "packets": [
- {
- "name": "string",
- "phone": "string",
- "auth_sms": true,
- "auth_selfie": true,
- "auth_id": true,
- "key": "string",
- "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
- "deliver_via": "email",
- "order": 0
}
], - "documents": [
- {
- "key": "string",
- "file_url": "string",
- "file_b64": "string",
- "file_index": 0,
- "fields": [
- {
- "kind": "att",
- "label": "string",
- "required": false,
- "page": 0,
- "x": 0,
- "y": 0,
- "w": 0,
- "h": 0,
- "v_pattern": "email",
- "v_min": 0,
- "v_max": 0,
- "v_attachment_types": [
- "jpg"
], - "initial_value": "string",
- "editors": [ ]
}
], - "auto_placements": [
- {
- "kind": "apr",
- "label": "string",
- "search": "string",
- "required": false,
- "w": 0,
- "h": 0,
- "offset_x": 0,
- "offset_y": 0,
- "editors": [ ]
}
], - "parse_tags": false
}
]
}
Response samples
- 201
- 400
{- "label": "string",
- "in_order": false,
- "email_subject": "string",
- "email_message": "string",
- "sms_message": "string",
- "requester_name": "string",
- "custom_key": "string",
- "team": "95527efb-6695-4aae-916e-c9869b1fb2bd",
- "is_test": true,
- "status": "dr",
- "payment": {
- "billed_to": "signer-1",
- "amount_due": 999,
- "payment_method_types": [
- "card_payments"
]
}, - "id": "string",
- "created": "2019-08-24T14:15:22Z",
- "docs_ready": true,
- "errors": [
- {
- "code": "authentication_failed",
- "message": "string",
- "errors": [
- {
- "field": "string",
- "messsage": "string"
}
]
}
], - "packets": [
- {
- "name": "string",
- "phone": "string",
- "auth_sms": true,
- "auth_selfie": true,
- "auth_id": true,
- "id": "string",
- "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
- "status": "ne",
- "deliver_via": "email",
- "completed_at": "string",
- "last_accessed_at": "string",
- "order": 0
}
], - "documents": [
- {
- "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
- "key": "string",
- "name": "string"
}
], - "tags": [
- "string"
], - "data": [
- {
- "key": "string",
- "kind": "string",
- "label": "string",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "packet_id": "7320cc64-cc5d-4058-b442-4f3247dcb469",
- "value": "string"
}
]
}
Retrieve a Bundle
path Parameters
bundleSlug required | string The slug that uniquely identifies the Bundle |
Responses
Response samples
- 200
- 404
{- "label": "string",
- "in_order": false,
- "email_subject": "string",
- "email_message": "string",
- "sms_message": "string",
- "requester_name": "string",
- "custom_key": "string",
- "team": "95527efb-6695-4aae-916e-c9869b1fb2bd",
- "is_test": true,
- "status": "dr",
- "payment": {
- "billed_to": "signer-1",
- "amount_due": 999,
- "payment_method_types": [
- "card_payments"
]
}, - "id": "string",
- "created": "2019-08-24T14:15:22Z",
- "docs_ready": true,
- "errors": [
- {
- "code": "authentication_failed",
- "message": "string",
- "errors": [
- {
- "field": "string",
- "messsage": "string"
}
]
}
], - "packets": [
- {
- "name": "string",
- "phone": "string",
- "auth_sms": true,
- "auth_selfie": true,
- "auth_id": true,
- "id": "string",
- "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
- "status": "ne",
- "deliver_via": "email",
- "completed_at": "string",
- "last_accessed_at": "string",
- "order": 0
}
], - "documents": [
- {
- "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
- "key": "string",
- "name": "string"
}
], - "tags": [
- "string"
], - "data": [
- {
- "key": "string",
- "kind": "string",
- "label": "string",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "packet_id": "7320cc64-cc5d-4058-b442-4f3247dcb469",
- "value": "string"
}
]
}
Cancel a Bundle
path Parameters
bundleSlug required | string The slug that uniquely identifies the Bundle |
Responses
Response samples
- 200
- 400
- 404
- 409
{- "label": "string",
- "in_order": false,
- "email_subject": "string",
- "email_message": "string",
- "sms_message": "string",
- "requester_name": "string",
- "custom_key": "string",
- "team": "95527efb-6695-4aae-916e-c9869b1fb2bd",
- "is_test": true,
- "status": "dr",
- "payment": {
- "billed_to": "signer-1",
- "amount_due": 999,
- "payment_method_types": [
- "card_payments"
]
}, - "id": "string",
- "created": "2019-08-24T14:15:22Z",
- "docs_ready": true,
- "errors": [
- {
- "code": "authentication_failed",
- "message": "string",
- "errors": [
- {
- "field": "string",
- "messsage": "string"
}
]
}
], - "packets": [
- {
- "name": "string",
- "phone": "string",
- "auth_sms": true,
- "auth_selfie": true,
- "auth_id": true,
- "id": "string",
- "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
- "status": "ne",
- "deliver_via": "email",
- "completed_at": "string",
- "last_accessed_at": "string",
- "order": 0
}
], - "documents": [
- {
- "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
- "key": "string",
- "name": "string"
}
], - "tags": [
- "string"
], - "data": [
- {
- "key": "string",
- "kind": "string",
- "label": "string",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "packet_id": "7320cc64-cc5d-4058-b442-4f3247dcb469",
- "value": "string"
}
]
}
List Bundle Events
Get a list of Events that are associated with the Bundle
path Parameters
bundleSlug required | string The slug that uniquely identifies the Bundle |
Responses
Response samples
- 200
- 404
[- {
- "kind": "string",
- "description": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "packet_id": "7320cc64-cc5d-4058-b442-4f3247dcb469"
}
]
Generate Interim Bundle Files
Trigger generation of interim files. The Bundle cannot have a terminal status (Complete, Expired, etc). The files are generated asynchronously. You can poll the /bundles/{bundleSlug}/files/ endpoint with a GET request to retrieve the generated files. Note that the ability to generate interim files is not active for all API-enabled accounts. Check with Blueink support with any questions.
path Parameters
bundleSlug required | string The slug that uniquely identifies the Bundle |
Responses
Response samples
- 400
- 403
- 404
- 409
{- "code": "authentication_failed",
- "message": "string",
- "errors": [
- {
- "field": "string",
- "messsage": "string"
}
]
}
Retrieve Bundle Data
Get data entered into fields for a completed Bundle
path Parameters
bundleSlug required | string The slug that uniquely identifies the Bundle |
Responses
Response samples
- 200
- 404
- 409
[- {
- "doc_key": "string",
- "field_key": "string",
- "label": "string",
- "kind": "att",
- "value": "string",
- "filled_by": "string",
- "packet_id": null,
- "attachments": [
- {
- "url": "string",
- "name": "string",
- "size": 0,
- "num": 0,
- "ext": "string",
- "is_image": true
}
]
}
]
Add Tags to a bundle
Add additional tags to a Bundle. No existing tags on the Bundle are removed. The result of this call is that Bundle.tags is the union of the set of previous tags with the set of new tags. Duplicate tags are ignored.
path Parameters
bundleSlug required | string The slug that uniquely identifies the Bundle |
Request Body schema: application/json
tags | Array of strings (Tags) An array of tags |
Responses
Request samples
- Payload
{- "tags": [
- "string"
]
}
Response samples
- 200
- 400
- 404
{- "label": "string",
- "in_order": false,
- "email_subject": "string",
- "email_message": "string",
- "sms_message": "string",
- "requester_name": "string",
- "custom_key": "string",
- "team": "95527efb-6695-4aae-916e-c9869b1fb2bd",
- "is_test": true,
- "status": "dr",
- "payment": {
- "billed_to": "signer-1",
- "amount_due": 999,
- "payment_method_types": [
- "card_payments"
]
}, - "id": "string",
- "created": "2019-08-24T14:15:22Z",
- "docs_ready": true,
- "errors": [
- {
- "code": "authentication_failed",
- "message": "string",
- "errors": [
- {
- "field": "string",
- "messsage": "string"
}
]
}
], - "packets": [
- {
- "name": "string",
- "phone": "string",
- "auth_sms": true,
- "auth_selfie": true,
- "auth_id": true,
- "id": "string",
- "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
- "status": "ne",
- "deliver_via": "email",
- "completed_at": "string",
- "last_accessed_at": "string",
- "order": 0
}
], - "documents": [
- {
- "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
- "key": "string",
- "name": "string"
}
], - "tags": [
- "string"
], - "data": [
- {
- "key": "string",
- "kind": "string",
- "label": "string",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "packet_id": "7320cc64-cc5d-4058-b442-4f3247dcb469",
- "value": "string"
}
]
}
Remove Tags from a bundle
Remove tags from a Bundle. If a tag in the request does not exist on the Bundle, it is ignored.
path Parameters
bundleSlug required | string The slug that uniquely identifies the Bundle |
Request Body schema: application/json
tags | Array of strings (Tags) An array of tags |
Responses
Request samples
- Payload
{- "tags": [
- "string"
]
}
Response samples
- 200
- 400
- 404
{- "label": "string",
- "in_order": false,
- "email_subject": "string",
- "email_message": "string",
- "sms_message": "string",
- "requester_name": "string",
- "custom_key": "string",
- "team": "95527efb-6695-4aae-916e-c9869b1fb2bd",
- "is_test": true,
- "status": "dr",
- "payment": {
- "billed_to": "signer-1",
- "amount_due": 999,
- "payment_method_types": [
- "card_payments"
]
}, - "id": "string",
- "created": "2019-08-24T14:15:22Z",
- "docs_ready": true,
- "errors": [
- {
- "code": "authentication_failed",
- "message": "string",
- "errors": [
- {
- "field": "string",
- "messsage": "string"
}
]
}
], - "packets": [
- {
- "name": "string",
- "phone": "string",
- "auth_sms": true,
- "auth_selfie": true,
- "auth_id": true,
- "id": "string",
- "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
- "status": "ne",
- "deliver_via": "email",
- "completed_at": "string",
- "last_accessed_at": "string",
- "order": 0
}
], - "documents": [
- {
- "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
- "key": "string",
- "name": "string"
}
], - "tags": [
- "string"
], - "data": [
- {
- "key": "string",
- "kind": "string",
- "label": "string",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "packet_id": "7320cc64-cc5d-4058-b442-4f3247dcb469",
- "value": "string"
}
]
}
Update a Packet
Update a Packet (aka signer) with a new email, phone number, name or authentication options
The updated packet must still be deliverable. For instance, if you specify a deliver_via
value of 'phone', but there was no phone number set in the original PacketRequest, then
this request must include a phone
as well, or an error will be returned.
You can change a Packet that was originally configured for embedded signing (that is, deliver_via was 'embed') to be delivered via email or SMS. However, no signing notifications or reminders will be automatically sent. You must call /packet/{packetId}/remind/ to send a signing notification email (or SMS).
If this Signer is associated with a Person, the person will be updated as well - the Person name will be changed (if provided) and any new email or phone number will be added.
path Parameters
packetId required | string The slug that uniquely identifies the Packet |
Request Body schema: application/json
name | string The name of the signer |
string <email> The email address of the signer | |
phone | string <phone> The phone number of the signer. Required if SMS Pin authentication is used. |
auth_sms | boolean True if you would like to require SMS pin authentication before a signer can sign the documents in this Bundle |
auth_selfie | boolean True if you would like to require Selfie authentication before a signer can sign the documents in this Bundle |
auth_id | boolean True if you would like to require ID authentication before a signer can sign the documents in this Bundle |
deliver_via | string Enum: "email" "phone" Note that "embed" is not an option |
Responses
Request samples
- Payload
{- "name": "string",
- "phone": "string",
- "auth_sms": true,
- "auth_selfie": true,
- "auth_id": true,
- "deliver_via": "email"
}
Response samples
- 200
- 400
- 404
{- "name": "string",
- "phone": "string",
- "auth_sms": true,
- "auth_selfie": true,
- "auth_id": true,
- "id": "string",
- "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
- "status": "ne",
- "deliver_via": "email",
- "completed_at": "string",
- "last_accessed_at": "string",
- "order": 0
}
Create an Embedded Signing URL
Create a URL which can be used for embedded signing
Example Websites
path Parameters
packetId required | string The slug that uniquely identifies the Packet |
Responses
Response samples
- 201
- 400
- 404
- 409
{- "url": "string",
- "expires": "2019-08-24T14:15:22Z"
}
Send a Reminder
Send a Reminder email or SMS to a Signer. A reminder can only be sent once every hour. The reminder will be sent via the delivery method (email or SMS) and to the email address (or phone number) previously designated for this Packet.
path Parameters
packetId required | string The slug that uniquely identifies the Packet |
Responses
Response samples
- 200
- 400
- 404
- 409
{- "name": "string",
- "phone": "string",
- "auth_sms": true,
- "auth_selfie": true,
- "auth_id": true,
- "id": "string",
- "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
- "status": "ne",
- "deliver_via": "email",
- "completed_at": "string",
- "last_accessed_at": "string",
- "order": 0
}
Retrieve Packet Certificate of Evidence
Get a link and checksum of the Certificate of Evidence for this Packet
path Parameters
packetId required | string The slug that uniquely identifies the Packet |
Responses
Response samples
- 200
- 400
- 404
- 409
{- "file_url": "string",
- "expires": "string",
- "sha256": "string"
}
Response samples
- 200
{- "is_shared": true,
- "name": "string",
- "file_url": "string",
- "roles": [
- {
- "key": "string",
- "label": "string"
}
], - "fields": [
- {
- "kind": "att",
- "label": "string",
- "required": false,
- "page": 0,
- "x": 0,
- "y": 0,
- "w": 0,
- "h": 0,
- "v_pattern": "email",
- "v_min": 0,
- "v_max": 0,
- "v_attachment_types": [
- "jpg"
], - "default_value": "string",
- "editor_roles": [ ]
}
]
}
Retrieve a Document Template
path Parameters
templateId required | string <uuid> The ID that uniquely identifies the Template |
Responses
Response samples
- 200
- 404
{- "is_shared": true,
- "name": "string",
- "file_url": "string",
- "roles": [
- {
- "key": "string",
- "label": "string"
}
], - "fields": [
- {
- "kind": "att",
- "label": "string",
- "required": false,
- "page": 0,
- "x": 0,
- "y": 0,
- "w": 0,
- "h": 0,
- "v_pattern": "email",
- "v_min": 0,
- "v_max": 0,
- "v_attachment_types": [
- "jpg"
], - "default_value": "string",
- "editor_roles": [ ]
}
]
}
Response samples
- 200
[- {
- "name": "string",
- "metadata": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "is_user": true,
- "channels": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "phone": "string",
- "kind": "em"
}
]
}
]
Create a Person
Request Body schema: application/json
name | string The name of the person |
metadata | object Metadata to associate with this person. Metadata can be used in SmartFill to automatically populate documents. See SmartFill documentation for details. |
Array of objects (ContactChannel) |
Responses
Request samples
- Payload
{- "name": "string",
- "metadata": { },
- "channels": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "phone": "string",
- "kind": "em"
}
]
}
Response samples
- 201
- 400
{- "name": "string",
- "metadata": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "is_user": true,
- "channels": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "phone": "string",
- "kind": "em"
}
]
}
Retrieve a Person
path Parameters
personId required | string <uuid> The ID that uniquely identifies the Person |
Responses
Response samples
- 200
- 404
{- "name": "string",
- "metadata": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "is_user": true,
- "channels": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "phone": "string",
- "kind": "em"
}
]
}
Update a Person
Update the Person with new data. NOTE that any contact channels that are omitted from this request will be DELETED. If you don't want to replace all data on the Person, you probably want to use PATCH instead.
path Parameters
personId required | string <uuid> The ID that uniquely identifies the Person |
Request Body schema: application/json
name | string The name of the person |
metadata | object Metadata to associate with this person. Metadata can be used in SmartFill to automatically populate documents. See SmartFill documentation for details. |
Array of objects (ContactChannel) |
Responses
Request samples
- Payload
{- "name": "string",
- "metadata": { },
- "channels": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "phone": "string",
- "kind": "em"
}
]
}
Response samples
- 200
- 400
- 404
{- "name": "string",
- "metadata": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "is_user": true,
- "channels": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "phone": "string",
- "kind": "em"
}
]
}
Partially update a Person
Partially update the Person with new data.
To add a new email or phone to the Person, include a ContactChannel in the 'channels' array without an 'id'.
To update an existing ContactChannel associated with the Person, include an 'id'. That existing ContactChannel will be updated with the new email or phone. This will update any live Bundles associated with the Person that are sending to that email (or phone).
If a ContactChannel does not include an 'id', but the email (or phone) matches an existing ContactChannel, then that ContactChannel will not be changed.
path Parameters
personId required | string <uuid> The ID that uniquely identifies the Person |
Request Body schema: application/json
name | string The name of the person |
metadata | object Metadata to associate with this person. Metadata can be used in SmartFill to automatically populate documents. See SmartFill documentation for details. |
Array of objects (ContactChannel) |
Responses
Request samples
- Payload
{- "name": "string",
- "metadata": { },
- "channels": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "phone": "string",
- "kind": "em"
}
]
}
Response samples
- 200
- 400
- 404
{- "name": "string",
- "metadata": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "is_user": true,
- "channels": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "phone": "string",
- "kind": "em"
}
]
}
List Webhooks
query Parameters
enabled | boolean Only Webhooks matching the selected 'enabled' state will be returned. E.g. |
event_type | string Enum: "bundle_sent" "bundle_complete" "bundle_docs_ready" "bundle_error" "bundle_cancelled" "packet_viewed" "packet_complete" Only Webhooks matching the selected event_type or event_types will be returned. E.g. |
Responses
Response samples
- 200
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "url": "string",
- "enabled": true,
- "json": true,
- "event_types": [
- "bundle_sent"
], - "extra_headers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
]
}
]
Create a Webhook
Request Body schema: application/json
id | string <uuid> |
url | string <url> should be the full URL, including http/https |
enabled | boolean Default: true |
json | boolean Default: true |
event_types | Array of strings Items Enum: "bundle_sent" "bundle_complete" "bundle_docs_ready" "bundle_error" "bundle_cancelled" "packet_viewed" "packet_complete" types of events that will fire the webhook |
Array of objects (WebhookExtraHeader) |
Responses
Request samples
- Payload
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "url": "string",
- "enabled": true,
- "json": true,
- "event_types": [
- "bundle_sent"
], - "extra_headers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
]
}
Response samples
- 201
- 400
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "url": "string",
- "enabled": true,
- "json": true,
- "event_types": [
- "bundle_sent"
], - "extra_headers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
]
}
Retrieve a Webhook
path Parameters
webhookId required | string <uuid> The ID that uniquely identifies the Webhook |
Responses
Response samples
- 200
- 404
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "url": "string",
- "enabled": true,
- "json": true,
- "event_types": [
- "bundle_sent"
], - "extra_headers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
]
}
Update a Webhook
Update the Webhook with new data. NOTE that any subscriptions that are omitted from this request will be DELETED. If you don't want to replace all data on the Webhook, you probably want to use PATCH instead.
path Parameters
webhookId required | string <uuid> The ID that uniquely identifies the Webhook |
Request Body schema: application/json
id | string <uuid> |
url | string <url> should be the full URL, including http/https |
enabled | boolean Default: true |
json | boolean Default: true |
event_types | Array of strings Items Enum: "bundle_sent" "bundle_complete" "bundle_docs_ready" "bundle_error" "bundle_cancelled" "packet_viewed" "packet_complete" types of events that will fire the webhook |
Array of objects (WebhookExtraHeader) |
Responses
Request samples
- Payload
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "url": "string",
- "enabled": true,
- "json": true,
- "event_types": [
- "bundle_sent"
], - "extra_headers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
]
}
Response samples
- 200
- 400
- 404
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "url": "string",
- "enabled": true,
- "json": true,
- "event_types": [
- "bundle_sent"
], - "extra_headers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
]
}
Partially update a Webhook
Partially update the Webhook with new data.
path Parameters
webhookId required | string <uuid> The ID that uniquely identifies the Webhook |
Request Body schema: application/json
id | string <uuid> |
url | string <url> should be the full URL, including http/https |
enabled | boolean Default: true |
json | boolean Default: true |
event_types | Array of strings Items Enum: "bundle_sent" "bundle_complete" "bundle_docs_ready" "bundle_error" "bundle_cancelled" "packet_viewed" "packet_complete" types of events that will fire the webhook |
Array of objects (WebhookExtraHeader) |
Responses
Request samples
- Payload
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "url": "string",
- "enabled": true,
- "json": true,
- "event_types": [
- "bundle_sent"
], - "extra_headers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
]
}
Response samples
- 200
- 400
- 404
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "url": "string",
- "enabled": true,
- "json": true,
- "event_types": [
- "bundle_sent"
], - "extra_headers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
]
}
Retrieve a WebhookExtraHeader
path Parameters
webhookExtraHeaderId required | string <uuid> The ID that uniquely identifies the WebhookExtraHeader |
Responses
Response samples
- 200
- 404
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
List WebhookExtraHeaders
query Parameters
webhook | string <uuid> Only WebhookExtraHeaders matching the selected webhook ID will be returned. E.g. |
event_type | string Enum: "bundle_sent" "bundle_complete" "bundle_docs_ready" "bundle_error" "bundle_cancelled" "packet_viewed" "packet_complete" Only WebhookExtraHeaders with webhooks matching the selected event_type or event_types will be returned. E.g. |
Responses
Response samples
- 200
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
]
Create a WebhookExtraHeader
Request Body schema: application/json
id | string <uuid> |
webhook | string <uuid> |
name | string <= 80 characters must adhere to RFC 7230 |
value | string <= 240 characters must adhere to RFC 7230 |
order | integer Default: 1 |
Responses
Request samples
- Payload
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
Response samples
- 201
- 400
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
Update a WebhookExtraHeader
Update the WebhookExtraHeader with new data
path Parameters
webhookExtraHeaderId required | string <uuid> The ID that uniquely identifies the WebhookExtraHeader |
Request Body schema: application/json
id | string <uuid> |
webhook | string <uuid> |
name | string <= 80 characters must adhere to RFC 7230 |
value | string <= 240 characters must adhere to RFC 7230 |
order | integer Default: 1 |
Responses
Request samples
- Payload
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
Response samples
- 200
- 400
- 404
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
Partially update a WebhookExtraHeader
Partially update the WebhookExtraHeader with new data.
path Parameters
webhookExtraHeaderId required | string <uuid> The ID that uniquely identifies the WebhookExtraHeader |
Request Body schema: application/json
id | string <uuid> |
webhook | string <uuid> |
name | string <= 80 characters must adhere to RFC 7230 |
value | string <= 240 characters must adhere to RFC 7230 |
order | integer Default: 1 |
Responses
Request samples
- Payload
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
Response samples
- 200
- 400
- 404
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "name": "string",
- "value": "string",
- "order": 1
}
Delete a WebhookExtraHeader
path Parameters
webhookExtraHeaderId required | string <uuid> The ID that uniquely identifies the WebhookExtraHeader |
Responses
Response samples
- 400
- 404
- 409
{- "code": "authentication_failed",
- "message": "string",
- "errors": [
- {
- "field": "string",
- "messsage": "string"
}
]
}
List WebhookEvents
query Parameters
webhook | string <uuid> Only WebhookEvents matching the selected webhook ID will be returned. E.g. |
event_type | string Enum: "bundle_sent" "bundle_complete" "bundle_docs_ready" "bundle_error" "bundle_cancelled" "packet_viewed" "packet_complete" Only WebhookEvents with webhooks matching the selected event_type or event_types will be returned. E.g. |
status | integer Only WebhookEvents matching the selected status will be returned. E.g. |
success | boolean Only WebhookEvents matching the selected success status will be returned. E.g. |
date | string <date-time> Only WebhookEvents occurring between a date range will be returned. Note: Dates are expressed as YYYY-MM-DD format. E.g. |
Responses
Response samples
- 200
[- {
- "pk": "4af43191-2f37-4a16-8471-4e8e40c314af",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "event_type": "bundle_sent",
- "created": "2019-08-24T14:15:22Z",
- "status": 0,
- "success": false,
- "payload": "string",
- "deliveries": [
- {
- "pk": "4af43191-2f37-4a16-8471-4e8e40c314af",
- "timestamp": "2019-08-24T14:15:22Z",
- "status": 0,
- "message": "string"
}
]
}
]
List WebhookEvents
query Parameters
webhook | string <uuid> Only WebhookDeliveries matching the selected webhook ID will be returned. E.g. |
webhook_event | string <uuid> Only WebhookDeliveries matching the selected webhook_event ID will be returned. E.g. |
event_type | string Enum: "bundle_sent" "bundle_complete" "bundle_docs_ready" "bundle_error" "bundle_cancelled" "packet_viewed" "packet_complete" Only WebhookDeliveries with webhooks matching the selected event_type or event_types will be returned. E.g. |
status | integer Only WebhookDeliveries matching the selected status will be returned. E.g. |
date | string <date-time> Only WebhookDeliveries occurring between a date range will be returned. Note: Dates are expressed as YYYY-MM-DD format. E.g. |
Responses
Response samples
- 200
[- {
- "pk": "4af43191-2f37-4a16-8471-4e8e40c314af",
- "webhook": "34cff408-bf77-4bc5-b31b-e3f4b806d7e8",
- "event_type": "bundle_sent",
- "created": "2019-08-24T14:15:22Z",
- "status": 0,
- "success": false,
- "payload": "string",
- "deliveries": [
- {
- "pk": "4af43191-2f37-4a16-8471-4e8e40c314af",
- "timestamp": "2019-08-24T14:15:22Z",
- "status": 0,
- "message": "string"
}
]
}
]