🎉  Build a workflow powerhouse. Learn more about our new Airtable integration.   ðŸŽ‰

Close

Developer Resources

Easily integrate document generation into any application using our open REST API.

Get Started

Developers hero graphic

API Authentication

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:

"Key:Secret"

Example: "3K83KMN1AL6M1MXMVVCKR66BP9NA:I51BBZ5R"

cURL

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");

Example Request
    curl https://www.webmerge.me/api/documents \
    -u 3K83KMN1AL6M1MXMVVCKR66BP9NA:I51BBZ5R