Send a contract for signature
curl --request POST \ --url https://example.com/api/v1/agreements \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form clientId=example \ --form dealAttachmentId=example \ --form dealId=example \ --form file=@file \ --form 'recipients=[ { "clientContactId": "example", "email": "hello@example.com", "memberId": "example", "name": "example", "role": "SIGNER", "signingOrder": 1 } ]' \ --form title=exampleUploads a PDF, or sends one already on the deal by dealAttachmentId (exactly one of file and dealAttachmentId; 400 otherwise, and 422 when the file is not a PDF on that deal in the caller’s deal scope), and starts the signing. An external recipient is emailed a signing link; a recipient with a memberId is a staff member who signs from their own session and is emailed a link to the signing page in the app, not a signing link. A signer with a signingOrder is invited only once every signer with a lower order has signed. Requires agreements.send. An optional dealId links it to an open or won sale on the same company that the caller reaches; a lost deal is refused with 422.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
A PDF already attached to the deal named by dealId, sent instead of file. The deal keeps its file; the contract stores its own copy.
Deal this contract closes; must be on the same company, in reach, and not lost.
The contract PDF to send for signature. Omit it when sending dealAttachmentId.
JSON-encoded array, sent as one form field.
object
An existing contact of the contract’s company. Their name and email come from the contact. Cannot be combined with memberId.
A staff member of this workspace who signs from their own session. They are emailed a link to the signing page in the app instead of a signing link, and their name and email come from the member. Cannot be combined with clientContactId.
Responses
Section titled “Responses”The created contract.
object
object
object
Example
{ "data": { "origin": "SYSTEM", "recipients": [ { "role": "SIGNER", "status": "PENDING" } ], "status": "DRAFT" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC