Get record

Request

GET https://www.activityinfo.org/resources/form/{formId}/record/{recordId}

Successful response

application/json

object
formId string required
recordId string required
parentRecordId string optional
lastEditTime float required
fields object required

Error responses

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated
403 FORBIDDEN Permission denied
404 NOT_FOUND The resource could not be found
410 DELETED The resource has been deleted

Example

GET https://www.activityinfo.org/resources/form/{formId}/record/{recordId}
curl -u anything:YOUR_API_TOKEN \
  https://www.activityinfo.org/resources/form/ck8oyloog8/record/ck34ujs6v8

The above command returns JSON structured like this:

{
  "recordId": "ci8l8aqlh1x8y8s8",
  "formId": "cdznrnclh1x8y8s7",
  "lastEditTime": 1616167934481,
  "fields": {
    "c2cs0e2lh1x8y8s9": "Simple text value",
    "cd0rp6jlh1x8y8sa": {
      "prefix": "AA",
      "number": 3423
    },
    "ccfwl4mlh1x8y8sb": 42.5,
    "clgbgivlh1x8y8sc": [
      "cvzu2o9lh1x8y8td",
      "cl9bepplh1x8y8te"
    ],
    "ce0x7gwlh1x8y8xf": {
      "latitude": 52.0705,
      "longitude": -4.3007
    },
    "csiiat3lh1x8y8yg": "ck8oyloog8:ck34ujs6v8",
    "cxpdo82lh1x8y8yh": "2019-12-31",
    "c896oiplh1x8y8yi": [
      {
        "mimeType": "application/pdf",
        "width": 0,
        "height": 0,
        "filename": "annual_report.pdf",
        "blobId": "xqp44flh1x8y8zj"
      }
    ]
  }
}
Next item
Get record history