/procedures

POST {{base-api-url}}/procedures

Here is a procedure with the right way to add from value in the subject of the email.

Request Body

{"name"=>"Subject prefix - OK", "description"=>"This is the way you have to use to customize the prefix of the subject for the e-mails.", "start"=>true, "members"=>[{"firstname"=>"John", "lastname"=>"Doe", "email"=>"john.doe@yousign.fr", "phone"=>"+33612345678", "fileObjects"=>[{"position"=>"191,497,507,603", "page"=>2, "file"=>"/files/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"}]}], "config"=>{"email"=>{"member.started"=>[{"subject"=>"==> Here is the prefix! <== Hey! You are invited to sign!", "message"=>"Hello <tag data-tag-type=\"string\" data-tag-name=\"recipient.firstname\"></tag> <tag data-tag-type=\"string\" data-tag-name=\"recipient.lastname\"></tag>, <br><br> You have ben invited to sign a document, please click on the following button to read it: <tag data-tag-type=\"button\" data-tag-name=\"url\" data-tag-title=\"Access to documents\">Access to documents</tag>", "to"=>["@member"]}]}}}

HEADERS

KeyDatatypeRequiredDescription
AuthorizationstringThis value is a secret and needs to be replaced by your API Key (Bearer).
Content-TypestringThis header specifies the format of the exchanges in JSON.

RESPONSES

status: Created

{&quot;id&quot;:&quot;/procedures/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&quot;,&quot;name&quot;:&quot;Subject prefix - OK&quot;,&quot;description&quot;:&quot;This is the way you have to use to customize the prefix of the subject for the e-mails.&quot;,&quot;createdAt&quot;:&quot;2018-12-05T06:28:56+01:00&quot;,&quot;updatedAt&quot;:&quot;2018-12-05T06:28:56+01:00&quot;,&quot;finishedAt&quot;:null,&quot;expiresAt&quot;:null,&quot;status&quot;:&quot;active&quot;,&quot;creator&quot;:null,&quot;creatorFirstName&quot;:null,&quot;creatorLastName&quot;:null,&quot;workspace&quot;:&quot;/workspaces/XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&quot;,&quot;template&quot;:false,&quot;ordered&quot;:false,&quot;parent&quot;:null,&quot;metadata&quot;:[],&quot;config&quot;:{&quot;email&quot;:{&quot;member.started&quot;:[{&quot;subject&quot;:&quot;==\u003e Here is the prefix! \u003c== Hey! You are invited to sign!&quot;,&quot;message&quot;:&quot;Hello \u003ctag data-tag-type=\&quot;string\&quot; data-tag-name=\&quot;recipient.firstname\&quot;\u003e\u003c/tag\u003e \u003ctag data-tag-type=\&quot;string\&quot; data-tag-name=\&quot;recipient.lastname\&quot;\u003e\u003c/tag\u003e, \u003cbr\u003e\u003cbr\u003e You have ben invited to sign a document, please click on the following button to read it: \u003ctag data-tag-type=\&quot;button\&quot; data-tag-name=\&quot;url\&quot; data-tag-title=\&quot;Access to documents\&quot;\u003eAccess to documents\u003c/tag\u003e&quot;,&quot;to&quot;:[&quot;@member&quot;]}]}},&quot;members&quot;:[{&quot;id&quot;:&quot;/members/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&quot;,&quot;user&quot;:null,&quot;type&quot;:&quot;signer&quot;,&quot;firstname&quot;:&quot;John&quot;,&quot;lastname&quot;:&quot;Doe&quot;,&quot;email&quot;:&quot;john.doe@yousign.fr&quot;,&quot;phone&quot;:&quot;+33612345678&quot;,&quot;position&quot;:1,&quot;createdAt&quot;:&quot;2018-12-05T06:28:56+01:00&quot;,&quot;updatedAt&quot;:&quot;2018-12-05T06:28:56+01:00&quot;,&quot;finishedAt&quot;:null,&quot;status&quot;:&quot;pending&quot;,&quot;fileObjects&quot;:[{&quot;id&quot;:&quot;/file_objects/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&quot;,&quot;file&quot;:{&quot;id&quot;:&quot;/files/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&quot;,&quot;name&quot;:&quot;The best name for my file.pdf&quot;,&quot;type&quot;:&quot;signable&quot;,&quot;contentType&quot;:&quot;application/pdf&quot;,&quot;description&quot;:null,&quot;createdAt&quot;:&quot;2018-12-05T06:28:42+01:00&quot;,&quot;updatedAt&quot;:&quot;2018-12-05T06:28:56+01:00&quot;,&quot;sha256&quot;:&quot;bb57ae2b2ca6ad0133a699350d1a6f6c8cdfde3cf872cf526585d306e4675cc2&quot;,&quot;metadata&quot;:[],&quot;workspace&quot;:&quot;/workspaces/XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&quot;,&quot;creator&quot;:null,&quot;protected&quot;:false,&quot;position&quot;:0,&quot;parent&quot;:null},&quot;page&quot;:2,&quot;position&quot;:&quot;191,497,507,603&quot;,&quot;fieldName&quot;:null,&quot;mention&quot;:null,&quot;mention2&quot;:null,&quot;createdAt&quot;:&quot;2018-12-05T06:28:56+01:00&quot;,&quot;updatedAt&quot;:&quot;2018-12-05T06:28:56+01:00&quot;,&quot;parent&quot;:null,&quot;reason&quot;:&quot;Signed by Yousign&quot;}],&quot;comment&quot;:null,&quot;notificationsEmail&quot;:[],&quot;operationLevel&quot;:&quot;custom&quot;,&quot;operationCustomModes&quot;:[&quot;sms&quot;],&quot;operationModeSmsConfig&quot;:null,&quot;parent&quot;:null}],&quot;subscribers&quot;:[],&quot;files&quot;:[{&quot;id&quot;:&quot;/files/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&quot;,&quot;name&quot;:&quot;The best name for my file.pdf&quot;,&quot;type&quot;:&quot;signable&quot;,&quot;contentType&quot;:&quot;application/pdf&quot;,&quot;description&quot;:null,&quot;createdAt&quot;:&quot;2018-12-05T06:28:42+01:00&quot;,&quot;updatedAt&quot;:&quot;2018-12-05T06:28:56+01:00&quot;,&quot;sha256&quot;:&quot;bb57ae2b2ca6ad0133a699350d1a6f6c8cdfde3cf872cf526585d306e4675cc2&quot;,&quot;metadata&quot;:[],&quot;workspace&quot;:&quot;/workspaces/XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&quot;,&quot;creator&quot;:null,&quot;protected&quot;:false,&quot;position&quot;:0,&quot;parent&quot;:null}],&quot;relatedFilesEnable&quot;:false,&quot;archive&quot;:false,&quot;archiveMetadata&quot;:[],&quot;fields&quot;:[],&quot;permissions&quot;:[]}