Skip to content

Developers / API reference

API reference

Version 1 at https://rapidagree.com/api/v1. Bearer API key (Pro), JSON in and out, ISO 8601 times. Generated from the OpenAPI 3.1 description; also as a Postman collection.

Envelopes

Create, send, follow and download envelopes.

GET/api/v1/envelopes

List envelopes

operationId: listEnvelopes

Parameters

statusquery, stringOne of "draft", "sent", "completed", "declined", "voided".
limitquery, integer1 to 100. Default 25.
cursorquery, string

Responses

  • 200 A page of envelopes, newest first.
  • 400 401 402 403 404 409 429 500 errors
cURL
curl https://rapidagree.com/api/v1/envelopes \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"
POST/api/v1/envelopes

Create an envelope, and send it if asked

operationId: createEnvelope

Parameters

Idempotency-Keyheader, stringAny unique string of 1 to 255 characters, not only spaces (spaces at either end are ignored). A retry with the same key and body within 24 hours gets the first response again. While the first request is still running, a retry gets 409 with Retry-After. If the first request made its envelope but failed before answering, a retry gets that envelope as it is now.

Body (application/json)

copyRecipientsarray of object
fieldsrequiredarray of Field
filenamestringWith uploadId: the file name to keep.
metadataobjectUp to 2048 bytes of JSON, returned with the envelope.
sendSendOptions
signersrequiredarray of object
titlerequiredstring
uploadIdrequiredstringWith JSON: the id from POST /uploads.

Responses

  • 201 The envelope, sent if send was given.
  • 400 401 402 403 404 409 413 422 429 500 503 errors
cURL
curl -X POST https://rapidagree.com/api/v1/envelopes \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY" \
  -F file=@agreement.pdf \
  -F 'data={"fields":[{"height":0.05,"page":1,"signer":"client","type":"signature","width":0.3,"x":0.1,"y":0.8},{"height":0.03,"page":1,"signer":"client","type":"date","width":0.2,"x":0.5,"y":0.8}],"metadata":{"invoice":"INV-1042"},"send":{"expiresInDays":14,"permittedUseConfirmed":true},"signers":[{"email":"casey@example.com","name":"Casey Client","ref":"client"}],"title":"Service agreement"}'
DELETE/api/v1/envelopes/{id}

Delete a draft

operationId: deleteDraftEnvelope

Parameters

idrequiredpath, string

Responses

  • 200 Deleted.
  • 400 401 402 403 404 409 429 500 errors
cURL
curl -X DELETE https://rapidagree.com/api/v1/envelopes/ID \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"
GET/api/v1/envelopes/{id}

Get an envelope

operationId: getEnvelope

Parameters

idrequiredpath, string

Responses

  • 200 The envelope.
  • 400 401 402 403 404 409 429 500 errors
cURL
curl https://rapidagree.com/api/v1/envelopes/ID \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"
GET/api/v1/envelopes/{id}/events

Get an envelope's audit trail

operationId: listEnvelopeEvents

Parameters

idrequiredpath, string

Responses

  • 200 The audit trail, oldest first.
  • 400 401 402 403 404 409 429 500 errors
cURL
curl https://rapidagree.com/api/v1/envelopes/ID/events \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"
GET/api/v1/envelopes/{id}/files/{file}

Download the signed PDF or the certificate of completion

operationId: downloadEnvelopeFile

Parameters

idrequiredpath, string
filerequiredpath, stringOne of "signed", "certificate".

Responses

  • 200 The PDF.
  • 400 401 402 403 404 409 429 500 errors
cURL
curl https://rapidagree.com/api/v1/envelopes/ID/files/FILE \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"
POST/api/v1/envelopes/{id}/remind

Remind each signer whose turn it is

operationId: remindSigners

Parameters

idrequiredpath, string

Responses

  • 200 The envelope.
  • 400 401 402 403 404 409 429 500 503 errors
cURL
curl -X POST https://rapidagree.com/api/v1/envelopes/ID/remind \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"
POST/api/v1/envelopes/{id}/send

Send a draft

operationId: sendEnvelope

Parameters

idrequiredpath, string
Idempotency-Keyheader, stringAny unique string of 1 to 255 characters, not only spaces (spaces at either end are ignored). A retry with the same key and body within 24 hours gets the first response again. While the first request is still running, a retry gets 409 with Retry-After. If the first request made its envelope but failed before answering, a retry gets that envelope as it is now.

Body (application/json)

deliverystringembedded: signers sign inside your app (see POST /envelopes/{id}/signers/{signerId}/embed-link), and no invitations or reminders are emailed. It needs a site on the workspace's list of allowed sites (Settings, Developers, Embedded signing), simple signatures (signatureLevel simple), no signer accessCode or requireEmailCode, and an install that is not in Part 11 mode; otherwise the send is refused with 400. One of "email", "embedded". Default "email".
expiresInDaysintegerDays signers get. Left out, the workspace's default deadline (Settings, Workspace). 1 to 365.
permittedUseConfirmedrequiredtrueConfirms the envelope is an ordinary business agreement, as the web app's send button does.
reminderIntervalDaysinteger or nullDays between reminders, or null for none. Left out, the workspace's default. 1 to 30.
signatureLevelstringadvanced and qualified are sent by email only, not with delivery embedded. One of "simple", "advanced", "qualified".

Responses

  • 200 The envelope, now sent.
  • 400 401 402 403 404 409 413 422 429 500 503 errors
cURL
curl -X POST https://rapidagree.com/api/v1/envelopes/ID/send \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expiresInDays":14,"permittedUseConfirmed":true,"reminderIntervalDays":3}'
POST/api/v1/envelopes/{id}/void

Void a sent envelope

operationId: voidEnvelope

Parameters

idrequiredpath, string

Body (application/json)

reasonstring or null

Responses

  • 200 The envelope, now voided.
  • 400 401 402 403 404 409 413 429 500 errors
cURL
curl -X POST https://rapidagree.com/api/v1/envelopes/ID/void \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"reason":"Sent the wrong version."}'

Templates

Saved templates, and envelopes made from them.

GET/api/v1/templates

List templates

operationId: listTemplates

Responses

  • 200 The templates the key's user can use: their own, and those shared with the workspace.
  • 400 401 402 403 404 409 429 500 errors
cURL
curl https://rapidagree.com/api/v1/templates \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"
POST/api/v1/templates/{id}/envelopes

Create an envelope from a template

operationId: createEnvelopeFromTemplate

Parameters

idrequiredpath, string
Idempotency-Keyheader, stringAny unique string of 1 to 255 characters, not only spaces (spaces at either end are ignored). A retry with the same key and body within 24 hours gets the first response again. While the first request is still running, a retry gets 409 with Retry-After. If the first request made its envelope but failed before answering, a retry gets that envelope as it is now.

Body (application/json)

metadataobjectUp to 2048 bytes of JSON, returned with the envelope.
sendSendOptions
signersrequiredarray of objectOne per role, in the template's order.
titlerequiredstring

Responses

  • 201 The new envelope.
  • 400 401 402 403 404 409 413 422 429 500 503 errors
cURL
curl -X POST https://rapidagree.com/api/v1/templates/ID/envelopes \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"metadata":{"deal":"D-88"},"send":{"permittedUseConfirmed":true},"signers":[{"email":"casey@example.com","name":"Casey Client"}],"title":"Statement of work: Aster Health"}'

Comments

Comments on an envelope, seen by its sender's team and signers.

GET/api/v1/envelopes/{id}/comments

List an envelope's comments

operationId: listComments

Parameters

idrequiredpath, string

Responses

  • 200 The comment threads, oldest first.
  • 400 401 402 403 404 409 429 500 errors
cURL
curl https://rapidagree.com/api/v1/envelopes/ID/comments \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"
POST/api/v1/envelopes/{id}/comments

Comment on an envelope, or reply in a thread

operationId: createComment

Parameters

idrequiredpath, string

Body (application/json)

bodyrequiredstringPlain text, 1 to 2000 characters once trimmed.
pageintegerPin a new comment to this page. 1 to ….
parentIdstringReply in this thread (the id of its first comment).
xnumberWith y and page: the point, left to right. 0 to 1.
ynumberWith x and page: the point, top to bottom. 0 to 1.

Responses

  • 201 The comment.
  • 400 401 402 403 404 409 413 429 500 errors
cURL
curl -X POST https://rapidagree.com/api/v1/envelopes/ID/comments \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"body":"Can we change the start date to the 15th?"}'

Embedded signing

Signing pages shown inside your own site.

Webhooks

Catching up on webhook deliveries.

GET/api/v1/webhook-deliveries

List webhook deliveries, to catch up on missed events

operationId: listWebhookDeliveries

Parameters

sincequery, string (date-time)Only deliveries queued at or after this time, which is when their event happened, not when they were sent. Times are kept to the second, so a time with a fraction counts from the start of its second.
statusquery, stringOne of "delivered", "failed", "pending".
typequery, stringOne of "envelope.sent", "signer.viewed", "signer.signed", "envelope.completed", "envelope.declined", "envelope.voided", "envelope.expired".
limitquery, integer1 to 100. Default 25.
cursorquery, string

Responses

  • 200 Webhook deliveries to every endpoint, newest first, each with the payload it carried (null until its first try).
  • 400 401 402 403 404 409 429 500 errors
cURL
curl https://rapidagree.com/api/v1/webhook-deliveries \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"

Uploads

Upload URLs for PDFs over 4 MB.

POST/api/v1/uploads

Get an upload URL for a PDF over 4 MB

operationId: createUpload

Responses

  • 201 Where to PUT the PDF (url, method, headers) and the uploadId to create the envelope with. Only on installs that store files in Vercel Blob.
  • 400 401 402 403 404 409 429 500 errors
cURL
curl -X POST https://rapidagree.com/api/v1/uploads \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"

Account

The key itself and this description.

GET/api/v1/me

Check a key

operationId: getMe

Responses

  • 200 The key and its administrator.
  • 400 401 402 403 404 409 429 500 errors
cURL
curl https://rapidagree.com/api/v1/me \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"
GET/api/v1/openapi.json

This description

operationId: getOpenApiDocument

Responses

cURL
curl https://rapidagree.com/api/v1/openapi.json \
  -H "Authorization: Bearer $RAPIDAGREE_API_KEY"

Objects

Envelope

completedAtstring or null (date-time)
copyRecipientsarray of object
createdAtstring (date-time)
declinedAtstring or null (date-time)
deliverystringOne of "email", "embedded".
expiredboolean
expiresAtstring or null (date-time)
filesobject
idstring
metadataobject or null
object"envelope"
pageCountinteger
sentAtstring or null (date-time)
signatureLevelstringOne of "simple", "advanced", "qualified".
signersarray of Signer
statusstringOne of "draft", "sent", "completed", "declined", "voided".
titlestring
voidedAtstring or null (date-time)

Signer

declineReasonstring or null
declinedAtstring or null (date-time)
emailstring
idstring
namestring
orderinteger
refstring or null
rolestringapprover: reviews the document and approves or rejects it instead of signing. An approval is signed, a rejection declined. One of "signer", "approver".
signedAtstring or null (date-time)
statusstringpending: not their turn yet. notified: their turn, invited. signed. declined. One of "pending", "notified", "signed", "declined".
stepintegerTheir step of the signing order. Signers who share a step sign at the same time.
viewedAtstring or null (date-time)

CreateEnvelope

copyRecipientsarray of object
fieldsrequiredarray of Field
filenamestringWith uploadId: the file name to keep.
metadataobjectUp to 2048 bytes of JSON, returned with the envelope.
sendSendOptions
signersrequiredarray of object
titlerequiredstring
uploadIdstringWith JSON: the id from POST /uploads.

Field

Position and size are fractions of the page (0 to 1), measured from its top left corner.

groupIdstringRadio buttons in one group.
heightrequirednumber… to 1.
labelstring
optionsarray of stringDropdowns only.
pagerequiredinteger1 to ….
requiredbooleanDefault true.
signerrequiredstringThe signer's ref.
typerequiredstringOne of "signature", "initials", "date", "name", "text", "checkbox", "number", "dropdown", "radio".
widthrequirednumber… to 1.
xrequirednumber0 to 1.
yrequirednumber0 to 1.

SendOptions

deliverystringembedded: signers sign inside your app (see POST /envelopes/{id}/signers/{signerId}/embed-link), and no invitations or reminders are emailed. It needs a site on the workspace's list of allowed sites (Settings, Developers, Embedded signing), simple signatures (signatureLevel simple), no signer accessCode or requireEmailCode, and an install that is not in Part 11 mode; otherwise the send is refused with 400. One of "email", "embedded". Default "email".
expiresInDaysintegerDays signers get. Left out, the workspace's default deadline (Settings, Workspace). 1 to 365.
permittedUseConfirmedrequiredtrueConfirms the envelope is an ordinary business agreement, as the web app's send button does.
reminderIntervalDaysinteger or nullDays between reminders, or null for none. Left out, the workspace's default. 1 to 30.
signatureLevelstringadvanced and qualified are sent by email only, not with delivery embedded. One of "simple", "advanced", "qualified".

Template

idrequiredstring
namerequiredstring
objectrequired"template"
rolesrequiredarray of stringIts roles, in signing order.
visibilitystringprivate: only the key's user can see and use it. workspace: everyone in the workspace can. One of "private", "workspace".

Comment

authorrequiredobject
bodyrequiredstring or nullPlain text; null once deleted.
createdAtrequiredstring (date-time)
deletedrequiredboolean
idrequiredstring
objectrequired"comment"

WebhookDelivery

attemptsrequiredinteger
createdAtrequiredstring (date-time)
deliveredAtrequiredstring or null (date-time)
endpointIdrequiredstring
envelopeIdrequiredstring or null
idrequiredstringThe webhook-id header it was sent with.
lastStatusCoderequiredinteger or null
objectrequired"webhook_delivery"
payloadrequiredobject or nullThe JSON body it carries: made at its first try and sent unchanged on every later one. Null before its first try. A delivery that failed because its signing secret could not be read has one but was never sent.
statusrequiredstringOne of "delivered", "failed", "pending".
typerequiredstringOne of "envelope.sent", "signer.viewed", "signer.signed", "envelope.completed", "envelope.declined", "envelope.voided", "envelope.expired".

Upload

expiresAtrequiredstring (date-time)
headersrequiredobjectSend these headers with the PUT.
maxBytesinteger
methodrequired"PUT"
uploadIdrequiredstringPass it to POST /envelopes once the PUT is done.
urlrequiredstring (uri)

Error

errorrequiredobject