Consents

API access to consents in Legal Monster.
https://app.legalmonster.com/api/v1/consents
This endpoint allows you to create a new consent.
Request
Response
Headers
x-api-key
required
string
You API key
Query Parameters
email
optional
string
The e-mail of the user.
name
optional
string
The name of the user.
cta_to_consent_text
required
string
The text on the CTA where the user gave consent.
active_consent
required
boolean
Did the user give an active consent to the terms in the documents?
identifier
required
string
Identifier to identify the current user.
document_public_key
required
string
The public_key of the document you are consenting to.
204: No Content
302: Found
{ "message": "No identifier provided" }
304: Not Modified
400: Bad Request
403: Forbidden
{ "message": "API key not found" }
404: Not Found
{ "message": "Document not found" }
422: Unprocessable Entity
{ "revision": "must exist" }
https://app.legalmonster.com/api/v1/consents/withdraw
If the user wishes to withdraw his or her consent to a document use this endpoint.
Request
Response
Headers
x-api-key
required
string
Your API key
Query Parameters
email
optional
string
The email of the user.
name
optional
string
The name of the user.
document_public_key
required
string
The public_key of the document that the user wishes to withdraw his or her consent from.
identifier
required
string
Identify the current user.
204: No Content
403: Forbidden
{ "message": "API key not found" }
404: Not Found
{ "message": "Document not found" }
422: Unprocessable Entity
{ "message": "No identifier provided" }
https://app.legalmonster.com/api/v1/consents/to_all_documents
Consent to all documents with one API call.
Request
Response
Headers
x-api-key
required
string
Your API key
Query Parameters
email
optional
string
The email of the user.
name
optional
string
The name of the user.
cta_to_consent_text
required
string
The CTA in connection with collecting the consent.
active_consent
required
boolean
Did the user give active consent? If yes true, if no, false.
identifier
required
string
The users identifier.
204: No Content
403: Forbidden
{ "message": "API key not found" }
422: Unprocessable Entity
{ "message": "No identifier provided" }