Forms & enquiries
4 routes. Paths are relative to https://api.intersink.com/v1.
- POST/formsSubmit a new form / enquiry (Public)
- GET/forms/{id}Get form submission details by ID
- PATCH/forms/{id}/statusUpdate form submission status & log audit comment (Manager)
- GET/forms/myGet my submitted forms
Submit a new form / enquiry (Public)
POST/forms
Public: no sign-in needed.
Request body application/json
| Field | Type | Description |
|---|---|---|
| namerequired | string | Name of the person submitting |
| emailrequired | string | Email address of the submitter |
| mobile | string | Mobile/Phone number |
| subject | string | Subject of the form/enquiry |
| description | string | Detailed description |
| budget | string | Budget value/range |
| city | string | City |
| company | string | Company Name |
| job_title | string | Job Title |
| type | string | Type of form (e.g. contact_us, enquiry) |
| channel_id | string | Channel UUID |
| active_profile_id | string | Active profile ID of the submitter |
| business_id | object | Business ID (M2O) |
| country | object | Country ID (M2O) |
| zone | object | Zone ID (M2O) |
| rm_id | object | Relationship Manager ID (M2O) |
Response
201. The payload in data is not described in the spec yet.
Get form submission details by ID
GET/forms/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | number, path |
Response
200. The payload in data is not described in the spec yet.
Update form submission status & log audit comment (Manager)
PATCH/forms/{id}/status
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | number, path |
Request body application/json
| Field | Type | Description |
|---|---|---|
| statusrequired | number | New workflow status (form_status id) Minimum 1. |
| comment | string | Manager comment for the status update |
| notify | boolean | Flag to notify the user |
Response
200. The payload in data is not described in the spec yet.
Get my submitted forms
GET/forms/my
Needs a signed-in user (Bearer token or access_token cookie).
Response
200. The payload in data is not described in the spec yet.