# Create a new consent Endpoint: POST /api/Consent Version: v1 ## Header parameters: - `apiKey` (string, required) ## Request fields (application/json): - `agreementGroupGuid` (string, required) Specifies the guid of the agreementGroup - `consentGroupGuid` (string,null) Specifies the guid of the consentGroup - `userIp` (string, required) Specifies the user ip address Example: "127.0.0.1" - `externalID` (string, required) Specifies the external ID Example: "2c65cf53-d083-4cab-8f13-402d73b24463" - `environment` (integer, required) Enum: 0, 1 - `screenshot` (string, required) - `clauses` (array, required) - `clauses.tag` (string,null) The tag of the clause Example: "my_tag" - `clauses.accepted` (boolean) Specifies wether the clause was accepted Example: true - `fieldCollection` (object, required) ## Response 201 fields (application/json): - `guid` (string) - `agreement` (object) - `agreement.version` (string,null) - `agreement.enviroment` (integer) Enum: 0, 1 - `agreement.groupGuid` (string) - `agreement.nameOfAgreement` (string,null) - `fieldCollection` (string,null) - `consentDate` (string) - `platform` (string,null) - `userIdentifier` (string,null) - `clauses` (array,null) - `clauses.tag` (string,null) The tag of the clause Example: "my_tag" - `clauses.accepted` (boolean) Specifies wether the clause was accepted Example: true - `agreementHash` (string,null) - `externalID` (string,null) - `consentGroupGuid` (string) - `screenshot` (string,null) - `userIp` (string,null) ## Response 400 fields (application/json): - `type` (string,null) - `title` (string,null) - `status` (integer,null) - `detail` (string,null) - `instance` (string,null) - `errors` (object,null) ## Response 401 fields ## Response 403 fields ## Response 404 fields ## Response 500 fields