Serves a consent form using a token obtained from build consent form API

This API does not use caller authentication. The token query parameter has the authentication information embedded in it.

Because of this, you can use this API to fetch consent forms from ConsentGrid™ and embed into your web front-end using AJAX calls or other Javascript methods.

GET https://aws.consentgrid.io/v1/consentforms/serve?token=token
Accept: application/json | ""

If Accept header is omitted or it is anything other than application/json, then this API will return the HTML contents of the consent form. If Accept=application/json, then the return value is JSON encoded HTML:

{ 
 "text": "htmlForm..."
}