
This request method returns the task matching the given criteria.
On the Cloud, this API is available via SSL-secured HTTPS connection using the REST GET verb.
The format query string parameter controls the desired response format. Specify either XML or JSON.
/api/v2/task?format=xml/json
You may use either JSON or XML formats in your GET submission.
You indicate this by setting the ContentType HTTP header as “application/json” or “application/xml”.
If no ContentType is specified, XML format is assumed.
All XML formatted requests must specify the following XML namespace in the data source root element:
xmlns:i=”http://www.w3.org/2001/XMLSchema-instance”
Endpoints & API Explorer
| Node | API Endpoint | API Explorer |
|---|---|---|
| US | /api/v2/task | Model Description/Schema & Parameters |
Parameters
The GET verb allows you to return details of the specified task matching the given criteria.
The required and optional parameters for a GET call to the Task API are outlined below.
| Name | Type | Description | Required |
|---|---|---|---|
| CompanyId | Integer | Your unique Company Id is found on the Organisation Setup page of the secure website. | ✓ |
| IntegrationKey | String | Your unique Integration Key is found on the Organisation Setup page of the secure website. | ✓ |
| Id | String | The Task’s unique identifier | ✓ |
| RetrieveEntries | Boolean | Whether to include form entries on ‘Fill Out Form’ activities. | |
| MediaAsUrl | Boolean | When including form entries, Media field answers are returned as full file download URLs instead of just the file name. True by default. | |
| AnswerFormat | String | Specify which structure to use for answers when retrieve entries is true (Raw does not apply). |
Example
Given that the API is REST-based, you can access the API directly via your web browser to test or by using Postman API Platform.
Request URL
https://eforms.mobileform.net:443/api/v2/task?Id=dd3XXXXXXXXXXXXXXXXXXXXXXXXXX&CompanyId=6XXXX&IntegrationKey=995XXXXXXXXXXXXXXXXXXXXXXXXXXXXXResponse Body
{
"Task": {
"Id": "dd3XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"UserId": "c9bXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"UserEmail": "XXXXXXXXX@XXXXXXXXX.com",
"UserExternalId": "test_user_extid",
"Name": "Test task",
"Icon": "Flag",
"Status": "InProgress",
"CompleteBy": "2021-04-02T22:27:00.0000000Z",
"StartBy": "2021-04-02T21:27:00.0000000Z",
"IsAllDay": false,
"CompleteAtText": "",
"AdditionalInfo": "This is a test.",
"DisableNotes": false,
"UserCanReject": false,
"RestrictToGroup": "00000000000000000000000000000000",
"UserCanReassign": false,
"ReassignType": "Any",
"Activities": [
{
"FormId": "84cXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"EntryId": "b19XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"ActivityType": "FillOutForm",
"ActivityId": "221XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
{
"FormId": "088XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"EntryId": "ec9XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"ActivityType": "FillOutForm",
"ActivityId": "87fXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
{
"Instruction": "Please make sure you bring the keys back.",
"ActivityType": "Instruction",
"ActivityId": "f62XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
],
"Files": [],
"History": [
{
"EventDate": "2021-04-01T14:28:00.7670000Z",
"Status": "Draft"
},
{
"EventDate": "2021-04-01T14:28:31.4800000Z",
"Status": "Sent"
},
{
"EventDate": "2021-04-01T14:28:49.1230000Z",
"Status": "InProgress"
}
],
"StartTime": "2021-04-01T14:28:48.5400000Z",
"CompleteTime": "1990-01-01T00:00:01.0000000Z",
"CompanyId": 6XXXX
}
}