Get a token to submit a custom consent form.

This API is used to obtain an authenticated form submission token. This is useful for forms already defined on web sites or applications.

POST https://api.consentgrid.io"/v1/consentforms/web/{templateName}/subjects/{subjectType}/{subjectId}/submittoken?subjectOption=option&ok=ok_uri&err=err_uri&by.id=id&by.type=user
Content-Type: application/json
GET https://api.consentgrid.io"/v1/consentforms/web/{templateName}/subjects/{subjectType}/{subjectId}/submittoken?subjectOption=option&ok=ok_uri&err=err_uri&by.id=id&by.type=user

The query parameters and the request body are identical to other consent form APIs.

Response

200 Ok

The response contains the token to use for submit form API, as well as the full URL.

{
 "handle": token,
 "url": form submission url
}