Documents

Send a document

When you send a document via GetAccept, an email with a unique, secured link is delivered to every recipient. Sending can only be performed on documents with status draft, and the document is sent to the recipients provided when it was created. A document created from a file has status importing until the file is processed, and sending it before then returns 400; poll get document status until it reports draft. If the document was created with the self-sign option it is also self-signed by the authenticated or specified user before sending.

Sending is asynchronous. The response is the document as it was when the send was accepted: status draft, or processing when sender_id or sender_email names another user, with send_date null. The document is sent once its PDF has been generated; poll get document status or subscribe to the document.sent event to know when.

The optional User-Agent and CLIENT_IP headers specify the client device information and IP address recorded for the send.

post/v1/documents/{id}/send

Request

  • Base URL: https://api.getaccept.com
  • URL: https://api.getaccept.com/v1/documents/{id}/send
  • Auth: HTTP bearer

Path parameters

idstring required

Id of the document.

Request body

sender_idstring

Id of a user of the entity who may send documents. Send document sends the document from this user and makes them its owner; send and seal both self-sign the document as this user when it was created with the self-sign option.

sender_emailstring

Email address of a user of the entity who may send documents, an alternative to sender_id that wins when both are set. Send document sends the document from this user and makes them its owner; send and seal both self-sign the document as this user when it was created with the self-sign option.

Response

The request succeeded.

idstring required

Unique identifier of the document.

namestring required

Name of the document as it is presented to the recipients.

valuenumber required

Monetary value of the document in the entity currency.

typestring required

Document type, which sets the defaults and the look of the document.

tagsstring required

Comma separated document tags.

thumb_urlstring required

URL of the thumbnail of the first document page.

external_idstring required

External identifier of the document, empty unless it was set by the caller.

external_client_idstring required

Client that created the document. Create document stores the client id of the access token: the client_id sent when authenticating, the OAuth client id, or api when neither is set. Empty when the document has no client stored.

external_editor_typestring required

External editor the document content is edited in.

external_editor_idstring required

Identifier of the document in its external editor.

company_namestring required

Company the document is sent to.

company_numberstring required

Registration number of the company the document is sent to.

company_idstring required

Identifier of the company the document is sent to.

company_logo_urlstring required

URL of the logo of the company the document is sent to.

unique_idnumber required

Number the document was given in the running order of the entity.

is_selfsignboolean required

Whether the sender also signs the document, inherited from the entity when unset on the document.

is_signing_biometricboolean required

Whether signers draw their signature on screen, inherited from the entity when unset on the document.

is_signing_initialsboolean required

Whether signers write their initials when signing, inherited from the entity when unset on the document.

is_signing_forwardboolean required

Whether a recipient may forward the signing rights, inherited from the entity when unset on the document.

is_identify_recipientboolean required

Whether returning recipients are identified by cookie, inherited from the entity when unset on the document.

is_privateboolean required

Whether the document can only be viewed by its owner.

status'draft' | 'archived' | 'expired' | 'hardbounced' | 'importing' | 'lost' | 'processing' | 'recalled' | 'rejected' | 'reviewed' | 'scheduled' | 'sealed' | 'sent' | 'signed' | 'signedwithoutverification' | 'viewed' required

Current status of the document.

send_datestring nullable required

When the document was sent, or null while it is a draft.

sign_datestring nullable required

When the last required signature was collected, or null while the document is unsigned.

created_atstring required

When the document was created.

updated_atstring nullable required

When the document was last updated, or null when that is unavailable.

download_urlstring required

URL the document file can be downloaded from.

app_urlstring required

URL of the document view page in the app.

user_idstring required

Id of the user that owns the document.

sender_namestring required

Full name of the user that owns the document.

sender_thumb_urlstring required

URL of the avatar of the user that owns the document.

sender_emailstring required

Email address of the user that owns the document.

parent_idstring required

Id of the document this document is a new version of. Empty when the document is not a new version.

email_send_template_idstring required

Id of the email template the document is sent with, 0 when none is set.

email_send_subjectstring required

Subject line the document is sent with.

email_send_messagestring required

Message to the recipients the document is sent with.

is_signingboolean required

Whether the document is signable.

is_signing_orderboolean required

Whether signers are notified one at a time in their given order instead of all at once.

is_signedboolean required

Whether the document has been signed.

expiration_datestring nullable required

When the document stops being available to the recipients, or null when it never expires.

is_scheduled_sendingboolean required

Whether the automatic sending is scheduled instead of immediate.

scheduled_sending_timestring nullable required

When the scheduled sending runs, or null when no sending is scheduled.

is_reminder_sendingboolean required

Whether reminders are sent automatically, inherited from the entity when unset on the document.

is_videoboolean required

Whether a video is presented before the document is opened.

video_idstring nullable required

Id of the video presented before the document is opened, or null when there is none.

is_auto_commentboolean required

Whether a comment is posted automatically, inherited from the entity when unset on the document.

auto_comment_textstring required

Text of the automatic comment on the document.

is_auto_comment_emailboolean required

Whether the automatic comment is also emailed, inherited from the entity when unset on the document.

auto_comment_emailstring required

Email address the automatic comment of the document is sent to.

entity_auto_comment_textstring required

Automatic comment text configured on the entity.

entity_auto_comment_emailstring required

Email address for automatic comments configured on the entity.

field_countnumber required

Number of fields on the document.

contract_start_datestring nullable required

Start date of the contract for contract management, or null when unset.

contract_end_datestring nullable required

End date of the contract for contract management, or null when unset.

preview_urlstring required

URL that opens the document in preview mode.

name_templatestring

Contract name template configured on this template, returned raw. May contain {{entity.company_name}}, {{document.company_name}}, {{document.id}}, {{document.unique_id}} and {{date}}; Create document resolves {{document.company_name}} from the top-level company_name, {{document.id}} to the newly created document ID and {{document.unique_id}} to its unique ID, or removes {{document.unique_id}} when the company has no unique ID counter. Only present on templates that have one configured.

page_countnumber

Number of pages in the document, included when the pages were requested.

rejection_reasonstring nullable

Reason given by the recipient who rejected the document. Null when the document is not rejected or no reason was given.

Changes

No recorded changes to this operation across all 1 revision of this API.