Online form API

Home > Online Form API

Online Form API

Notification Email Subject Line

To retrieve the current email subject line for a from, insert the form's ID into the URL and submit a GET request:

API Endpoint
https://formsmarts.com/api/v1/forms/Form_ID/email_subject
HTTP Method
GET

To customize the subject line of the notification email, insert the form's ID into the URL and submit a PUT request:

API Endpoint
https://formsmarts.com/api/v1/forms/Form_ID/email_subject
HTTP Method
PUT
Parameter (in query string)DescriptionNotes
template The email subject template. May contain placeholders $form_name, $form_id, $fs_ref_num, $1, $2,… $n. Required

Submit a DELETE request to cancel the customized email subject line and revert to the default one.

API Endpoint
https://formsmarts.com/api/v1/forms/Form_ID/email_subject
HTTP Method
DELETE

Errors

Error 400 - Bad Request

Your request was not processed because some parameters are missing or invalid. Check the documentation for the resource you are trying to access.

Error 401 - Authentication Failed

You're not signed in to FormSmarts or are using an incorrect FormSmarts account number and API key to authenticate the request.

Error 403 - Forbidden

You are trying to access a resource which is not yours. You're probably signed in to the wrong FormSmarts account or are using the wrong FormSmarts account number and API key to authenticate the request.

Error 404 - Resource Not Found

No resource was found at this URL (endpoint) you specified.

Error 405 - Method Not Allowed

The HTTP request method (POST, GET, PUT or DELETE) you're using to access a resource is not supported by this resource. For example, you might be trying to create (POST) a resource that can only be modified (PUT).

Error 500 - Internal Server Error

There is a problem with our systems. If the issue persists, please let us know.
©2016 Syronex