Easily integrate WebMerge document generation into any application using our open REST API.
To access our API, each user must create an API Key from within their Account page. When they generate an API Key, we also generate a Secret that belongs to that Key. The Secret is used in validating the authentication of the API Key.
In every API call that is made, the API Key and Secret must be supplied using "Basic HTTP Authentication". You will need to pass the Key and Secret in the following format in the HTTP-Authentication header of the request:
If you are using cURL, there is an option (CURLOPT_USERPWD) that you can use to set the authentication string:
curl_setopt($ch, CURLOPT_USERPWD, "3K83KMN1AL6M1MXMVVCKR66BP9NA:I51BBZ5R");
curl https://www.webmerge.me/api/documents \ -u 3K83KMN1AL6M1MXMVVCKR66BP9NA:I51BBZ5R