{"components":{"schemas":{"Comment":{"properties":{"author":{"properties":{"kind":{"enum":["member","signer"],"type":"string"},"name":{"type":"string"}},"required":["kind","name"],"type":"object"},"body":{"description":"Plain text; null once deleted.","type":["string","null"]},"createdAt":{"format":"date-time","type":"string"},"deleted":{"type":"boolean"},"id":{"type":"string"},"object":{"const":"comment","type":"string"}},"required":["object","id","author","body","createdAt","deleted"],"type":"object"},"CommentThread":{"allOf":[{"$ref":"#/components/schemas/Comment"},{"properties":{"anchor":{"description":"Where the thread is pinned (x and y are fractions of the page), or null for a general comment.","properties":{"page":{"type":"integer"},"x":{"type":["number","null"]},"y":{"type":["number","null"]}},"type":["object","null"]},"replies":{"items":{"$ref":"#/components/schemas/Comment"},"type":"array"},"resolvedAt":{"format":"date-time","type":["string","null"]}},"required":["anchor","replies","resolvedAt"],"type":"object"}]},"CreateEnvelope":{"properties":{"copyRecipients":{"items":{"properties":{"email":{"format":"email","type":"string"},"name":{"maxLength":120,"minLength":1,"pattern":"\\S","type":"string"}},"required":["name","email"],"type":"object"},"maxItems":10,"type":"array"},"fields":{"items":{"$ref":"#/components/schemas/Field"},"maxItems":500,"minItems":1,"type":"array"},"filename":{"description":"With uploadId: the file name to keep.","type":"string"},"metadata":{"description":"Up to 2048 bytes of JSON, returned with the envelope.","type":"object"},"send":{"$ref":"#/components/schemas/SendOptions"},"signers":{"items":{"properties":{"accessCode":{"maxLength":64,"minLength":4,"type":"string"},"email":{"format":"email","type":"string"},"name":{"maxLength":120,"minLength":1,"pattern":"\\S","type":"string"},"ref":{"description":"Your name for this signer, used by fields.","pattern":"^[A-Za-z0-9._:-]{1,64}$","type":"string"},"requireEmailCode":{"type":"boolean"},"signatureMeaning":{"description":"Part 11 installs only.","enum":["approval","review","responsibility","authorship"],"type":"string"},"step":{"description":"The step of the signing order. Signers who share a step sign at the same time, and the next step starts once they all have. Give it for every signer or for none; left out, they sign one after the other.","maximum":100,"minimum":1,"type":"integer"}},"required":["ref","name","email"],"type":"object"},"maxItems":25,"minItems":1,"type":"array"},"title":{"maxLength":160,"minLength":1,"pattern":"\\S","type":"string"},"uploadId":{"description":"With JSON: the id from POST /uploads.","type":"string"}},"required":["title","signers","fields"],"type":"object"},"Envelope":{"properties":{"completedAt":{"format":"date-time","type":["string","null"]},"copyRecipients":{"items":{"properties":{"email":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}},"type":"object"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"declinedAt":{"format":"date-time","type":["string","null"]},"delivery":{"enum":["email","embedded"],"type":"string"},"expired":{"type":"boolean"},"expiresAt":{"format":"date-time","type":["string","null"]},"files":{"properties":{"certificate":{"type":["string","null"]},"signed":{"type":["string","null"]}},"type":"object"},"id":{"type":"string"},"metadata":{"type":["object","null"]},"object":{"const":"envelope"},"pageCount":{"type":"integer"},"sentAt":{"format":"date-time","type":["string","null"]},"signatureLevel":{"enum":["simple","advanced","qualified"],"type":"string"},"signers":{"items":{"$ref":"#/components/schemas/Signer"},"type":"array"},"status":{"enum":["draft","sent","completed","declined","voided"],"type":"string"},"title":{"type":"string"},"voidedAt":{"format":"date-time","type":["string","null"]}},"type":"object"},"Error":{"properties":{"error":{"properties":{"code":{"enum":["invalid_request","unauthorized","plan_required","plan_limit_reached","forbidden","not_found","wrong_state","payload_too_large","idempotency_key_reused","rate_limited","internal_error"],"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"}},"required":["error"],"type":"object"},"Field":{"description":"Position and size are fractions of the page (0 to 1), measured from its top left corner.","properties":{"groupId":{"description":"Radio buttons in one group.","maxLength":64,"minLength":1,"pattern":"\\S","type":"string"},"height":{"exclusiveMinimum":0,"maximum":1,"type":"number"},"label":{"maxLength":120,"type":"string"},"options":{"description":"Dropdowns only.","items":{"type":"string"},"type":"array"},"page":{"minimum":1,"type":"integer"},"required":{"default":true,"type":"boolean"},"signer":{"description":"The signer's ref.","type":"string"},"type":{"enum":["signature","initials","date","name","text","checkbox","number","dropdown","radio"],"type":"string"},"width":{"exclusiveMinimum":0,"maximum":1,"type":"number"},"x":{"maximum":1,"minimum":0,"type":"number"},"y":{"maximum":1,"minimum":0,"type":"number"}},"required":["signer","type","page","x","y","width","height"],"type":"object"},"SendOptions":{"properties":{"delivery":{"default":"email","description":"embedded: 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.","enum":["email","embedded"],"type":"string"},"expiresInDays":{"description":"Days signers get. Left out, the workspace's default deadline (Settings, Workspace).","maximum":365,"minimum":1,"type":"integer"},"permittedUseConfirmed":{"const":true,"description":"Confirms the envelope is an ordinary business agreement, as the web app's send button does."},"reminderIntervalDays":{"description":"Days between reminders, or null for none. Left out, the workspace's default.","maximum":30,"minimum":1,"type":["integer","null"]},"signatureLevel":{"description":"advanced and qualified are sent by email only, not with delivery embedded.","enum":["simple","advanced","qualified"],"type":"string"}},"required":["permittedUseConfirmed"],"type":"object"},"Signer":{"properties":{"declineReason":{"type":["string","null"]},"declinedAt":{"format":"date-time","type":["string","null"]},"email":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"order":{"type":"integer"},"ref":{"type":["string","null"]},"role":{"description":"approver: reviews the document and approves or rejects it instead of signing. An approval is signed, a rejection declined.","enum":["signer","approver"],"type":"string"},"signedAt":{"format":"date-time","type":["string","null"]},"status":{"description":"pending: not their turn yet. notified: their turn, invited. signed. declined.","enum":["pending","notified","signed","declined"],"type":"string"},"step":{"description":"Their step of the signing order. Signers who share a step sign at the same time.","type":"integer"},"viewedAt":{"format":"date-time","type":["string","null"]}},"type":"object"},"Template":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"const":"template","type":"string"},"roles":{"description":"Its roles, in signing order.","items":{"type":"string"},"type":"array"},"visibility":{"description":"private: only the key's user can see and use it. workspace: everyone in the workspace can.","enum":["private","workspace"],"type":"string"}},"required":["object","id","name","roles"],"type":"object"},"Upload":{"properties":{"expiresAt":{"format":"date-time","type":"string"},"headers":{"additionalProperties":{"type":"string"},"description":"Send these headers with the PUT.","type":"object"},"maxBytes":{"type":"integer"},"method":{"const":"PUT","type":"string"},"uploadId":{"description":"Pass it to POST /envelopes once the PUT is done.","type":"string"},"url":{"format":"uri","type":"string"}},"required":["uploadId","url","method","headers","expiresAt"],"type":"object"},"WebhookDelivery":{"properties":{"attempts":{"type":"integer"},"createdAt":{"format":"date-time","type":"string"},"deliveredAt":{"format":"date-time","type":["string","null"]},"endpointId":{"type":"string"},"envelopeId":{"type":["string","null"]},"id":{"description":"The webhook-id header it was sent with.","type":"string"},"lastStatusCode":{"type":["integer","null"]},"object":{"const":"webhook_delivery","type":"string"},"payload":{"description":"The 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.","type":["object","null"]},"status":{"enum":["delivered","failed","pending"],"type":"string"},"type":{"enum":["envelope.sent","signer.viewed","signer.signed","envelope.completed","envelope.declined","envelope.voided","envelope.expired"],"type":"string"}},"required":["object","id","type","status","attempts","endpointId","envelopeId","lastStatusCode","payload","createdAt","deliveredAt"],"type":"object"}},"securitySchemes":{"apiKey":{"description":"An API key from Settings, Developers, API keys.","scheme":"bearer","type":"http"}}},"info":{"description":"Create, send and track e-signature envelopes in your RapidAgree workspace: upload a PDF or start from a template, place fields, send, follow each signer, and download the sealed PDF and certificate of completion. API keys are on the Pro plan. AI assistants can use the same features through the MCP server at /mcp, on every plan.","title":"RapidAgree API","version":"1","contact":{"email":"support@rapidagree.com","name":"RapidAgree support","url":"https://rapidagree.com/contact"},"termsOfService":"https://rapidagree.com/terms","x-logo":{"url":"https://rapidagree.com/logo-512.png"}},"openapi":"3.1.0","paths":{"/envelopes":{"get":{"operationId":"listEnvelopes","tags":["Envelopes"],"parameters":[{"in":"query","name":"status","schema":{"enum":["draft","sent","completed","declined","voided"],"type":"string"}},{"in":"query","name":"limit","schema":{"default":25,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"cursor","schema":{"maxLength":200,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Envelope"},"type":"array"},"nextCursor":{"type":["string","null"]},"object":{"const":"list","type":"string"}},"required":["object","data","nextCursor"],"type":"object"}}},"description":"A page of envelopes, newest first."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"List envelopes"},"post":{"operationId":"createEnvelope","tags":["Envelopes"],"parameters":[{"description":"Any 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.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"pattern":"\\S","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/CreateEnvelope"},{"required":["uploadId"]}]}},"multipart/form-data":{"schema":{"properties":{"data":{"description":"CreateEnvelope as JSON, without uploadId.","type":"string"},"file":{"format":"binary","type":"string"}},"required":["file","data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}},"description":"The envelope, sent if send was given."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Email is not set up yet, so nothing was sent."}},"summary":"Create an envelope, and send it if asked","x-example-request":{"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"}}},"/envelopes/{id}":{"delete":{"operationId":"deleteDraftEnvelope","tags":["Envelopes"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"deleted":{"const":true,"type":"boolean"},"id":{"type":"string"},"object":{"const":"envelope","type":"string"}},"required":["deleted","id","object"],"type":"object"}}},"description":"Deleted."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"Delete a draft"},"get":{"operationId":"getEnvelope","tags":["Envelopes"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}},"description":"The envelope."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"Get an envelope"}},"/envelopes/{id}/comments":{"get":{"operationId":"listComments","tags":["Comments"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CommentThread"},"type":"array"},"object":{"const":"list","type":"string"},"readOnly":{"description":"True once the envelope is completed, declined, voided or past its deadline.","type":"boolean"}},"required":["object","data","readOnly"],"type":"object"}}},"description":"The comment threads, oldest first."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"List an envelope's comments"},"post":{"operationId":"createComment","tags":["Comments"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"body":{"description":"Plain text, 1 to 2000 characters once trimmed.","type":"string"},"page":{"description":"Pin a new comment to this page.","minimum":1,"type":"integer"},"parentId":{"description":"Reply in this thread (the id of its first comment).","type":"string"},"x":{"description":"With y and page: the point, left to right.","maximum":1,"minimum":0,"type":"number"},"y":{"description":"With x and page: the point, top to bottom.","maximum":1,"minimum":0,"type":"number"}},"required":["body"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}}},"description":"The comment."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"Comment on an envelope, or reply in a thread","x-example-request":{"body":"Can we change the start date to the 15th?"}}},"/envelopes/{id}/events":{"get":{"operationId":"listEnvelopeEvents","tags":["Envelopes"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"properties":{"actor":{"properties":{"email":{"type":["string","null"]},"type":{"type":"string"}},"type":"object"},"at":{"format":"date-time","type":"string"},"event":{"type":"string"},"id":{"type":"string"},"ipAddress":{"type":["string","null"]},"metadata":{"type":["object","null"]}},"required":["id","event","at","actor"],"type":"object"},"type":"array"},"object":{"const":"list","type":"string"}},"required":["object","data"],"type":"object"}}},"description":"The audit trail, oldest first."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"Get an envelope's audit trail"}},"/envelopes/{id}/files/{file}":{"get":{"operationId":"downloadEnvelopeFile","tags":["Envelopes"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"file","required":true,"schema":{"enum":["signed","certificate"],"type":"string"}}],"responses":{"200":{"content":{"application/pdf":{}},"description":"The PDF."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"Download the signed PDF or the certificate of completion"}},"/envelopes/{id}/remind":{"post":{"operationId":"remindSigners","tags":["Envelopes"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}},"description":"The envelope."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Email is not set up yet, so nothing was sent."}},"summary":"Remind each signer whose turn it is"}},"/envelopes/{id}/send":{"post":{"operationId":"sendEnvelope","tags":["Envelopes"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Any 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.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"pattern":"\\S","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendOptions"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}},"description":"The envelope, now sent."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Email is not set up yet, so nothing was sent."}},"summary":"Send a draft","x-example-request":{"expiresInDays":14,"permittedUseConfirmed":true,"reminderIntervalDays":3}}},"/envelopes/{id}/signers/{signerId}/embed-link":{"post":{"operationId":"createEmbedLink","tags":["Embedded signing"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"signerId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"origin":{"description":"The exact origin of the page that frames the signer, such as https://app.example.com. Must be allowed in Settings, Developers, Embedded signing.","type":"string"}},"required":["origin"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"expiresAt":{"description":"When the link stops working if it is not opened.","format":"date-time","type":"string"},"object":{"const":"embed_link","type":"string"},"url":{"description":"The page to show in the frame, with its origin parameter. Use it as it is.","format":"uri","type":"string"}},"required":["object","url","expiresAt"],"type":"object"}}},"description":"The link to frame (url) and when it stops working if not opened (expiresAt). Each call replaces the signer's last link."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"Get a signing link to show in a frame, for a signer whose turn it is","x-example-request":{"origin":"https://app.example.com"}}},"/envelopes/{id}/void":{"post":{"operationId":"voidEnvelope","tags":["Envelopes"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"reason":{"maxLength":1000,"type":["string","null"]}},"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}},"description":"The envelope, now voided."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"Void a sent envelope","x-example-request":{"reason":"Sent the wrong version."}}},"/me":{"get":{"operationId":"getMe","tags":["Account"],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"key":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"scope":{"enum":["read","write"],"type":"string"}},"type":"object"},"user":{"properties":{"email":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}},"type":"object"}},"type":"object"}}},"description":"The key and its administrator."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"Check a key"}},"/openapi.json":{"get":{"operationId":"getOpenApiDocument","tags":["Account"],"responses":{"200":{"description":"This document."}},"security":[],"summary":"This description"}},"/templates":{"get":{"operationId":"listTemplates","tags":["Templates"],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Template"},"type":"array"},"object":{"const":"list","type":"string"}},"required":["object","data"],"type":"object"}}},"description":"The templates the key's user can use: their own, and those shared with the workspace."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"List templates"}},"/templates/{id}/envelopes":{"post":{"operationId":"createEnvelopeFromTemplate","tags":["Templates"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Any 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.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"pattern":"\\S","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"metadata":{"description":"Up to 2048 bytes of JSON, returned with the envelope.","type":"object"},"send":{"$ref":"#/components/schemas/SendOptions"},"signers":{"description":"One per role, in the template's order.","items":{"properties":{"email":{"format":"email","type":"string"},"name":{"maxLength":120,"minLength":1,"pattern":"\\S","type":"string"},"signatureMeaning":{"description":"Part 11 installs only.","enum":["approval","review","responsibility","authorship"],"type":"string"}},"required":["name","email"],"type":"object"},"maxItems":25,"minItems":1,"type":"array"},"title":{"maxLength":160,"minLength":1,"pattern":"\\S","type":"string"}},"required":["title","signers"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}},"description":"The new envelope."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Email is not set up yet, so nothing was sent."}},"summary":"Create an envelope from a template","x-example-request":{"metadata":{"deal":"D-88"},"send":{"permittedUseConfirmed":true},"signers":[{"email":"casey@example.com","name":"Casey Client"}],"title":"Statement of work: Aster Health"}}},"/webhook-deliveries":{"get":{"operationId":"listWebhookDeliveries","tags":["Webhooks"],"parameters":[{"description":"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.","in":"query","name":"since","schema":{"format":"date-time","type":"string"}},{"in":"query","name":"status","schema":{"enum":["delivered","failed","pending"],"type":"string"}},{"in":"query","name":"type","schema":{"enum":["envelope.sent","signer.viewed","signer.signed","envelope.completed","envelope.declined","envelope.voided","envelope.expired"],"type":"string"}},{"in":"query","name":"limit","schema":{"default":25,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WebhookDelivery"},"type":"array"},"nextCursor":{"type":["string","null"]},"object":{"const":"list","type":"string"}},"required":["object","data","nextCursor"],"type":"object"}}},"description":"Webhook deliveries to every endpoint, newest first, each with the payload it carried (null until its first try)."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"List webhook deliveries, to catch up on missed events"}},"/uploads":{"post":{"operationId":"createUpload","tags":["Uploads"],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}},"description":"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":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The workspace's plan does not allow this: plan_required or plan_limit_reached."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error. See the code."}},"summary":"Get an upload URL for a PDF over 4 MB"}}},"security":[{"apiKey":[]}],"servers":[{"url":"https://rapidagree.com/api/v1"}],"externalDocs":{"description":"Guides, webhooks and the MCP server","url":"https://rapidagree.com/developers"},"tags":[{"description":"Create, send, follow and download envelopes.","name":"Envelopes"},{"description":"Saved templates, and envelopes made from them.","name":"Templates"},{"description":"Comments on an envelope, seen by its sender's team and signers.","name":"Comments"},{"description":"Signing pages shown inside your own site.","name":"Embedded signing"},{"description":"Catching up on webhook deliveries.","name":"Webhooks"},{"description":"Upload URLs for PDFs over 4 MB.","name":"Uploads"},{"description":"The key itself and this description.","name":"Account"}]}