Read Share

Get a share by ID

GET /di/share/{id}

Path parameters

ParamRequiredDescription
idYesShare ID

Example

Production:

curl 'https://api.qidpro.xyz/di/share/69ae9560ba7f6726e85f60ca' \
  --header 'Authorization: Bearer your-secret-key' \
  --header 'tokenId: your-token-id'

Staging:

curl 'https://staging.qidpro.xyz/di/share/69ae9560ba7f6726e85f60ca' \
  --header 'Authorization: Bearer your-secret-key' \
  --header 'tokenId: your-token-id'

Example response

Returns 200 OK. This example is a completed check-in where the guest filled the form, accepted the policy and shared a document.

{
  "_id": "69ae9560ba7f6726e85f60ca",
  "createdBy": "65dea5868910b6f5957a0fb5",
  "deleteTime": null,
  "schemaVersion": "3",
  "participants": [
    {
      "account_id": "6627c83c122f76583c42ff10",
      "accountType": "organisation",
      "accountSnapshot": {
        "_id": "6627c83c122f76583c42ff10",
        "name": "Test Adventures",
        "email": null,
        "phoneNumber": null,
        "displayPictureUrl": "c103be9234.jpeg",
        "parentAccountId": null,
        "countryIsoCode": null
      },
      "parentAccount_id": "6627c83c122f76583c42ff10",
      "roles": ["organiser", "admin"]
    },
    {
      "account_id": "65dea5868910b6f5957a0fb5",
      "accountType": "user",
      "accountSnapshot": {
        "_id": "65dea5868910b6f5957a0fb5",
        "name": "Rahul Sharma",
        "email": "[email protected]",
        "phoneNumber": "916123456780",
        "displayPictureUrl": "4b7e91c0d2.png",
        "countryIsoCode": "IN"
      },
      "roles": ["sharer", "admin"],
      "otherFields": [
        {
          "value": "",
          "isMandatory": false,
          "isEnabled": true,
          "data": null,
          "isForEachParticipant": true,
          "sectionBreak": null,
          "name": "date_of_arrival",
          "type": "date",
          "label": "Date of Arrival",
          "placeholder": "Select date"
        },
        {
          "value": "Business",
          "isMandatory": true,
          "isEnabled": true,
          "data": null,
          "isForEachParticipant": true,
          "sectionBreak": null,
          "name": "purpose_of_visit",
          "type": "textarea",
          "label": "Purpose of Visit",
          "placeholder": "Purpose of visit",
          "errorMessage": null
        }
      ],
      "facePhoto": {
        "isLive": false,
        "imageUrl": "4b7e91c0d2.png"
      },
      "sharedDocumentsIds": ["65df7d42fdfc8d3689057d8e"],
      "participantShareStatus": "completed"
    }
  ],
  "otherFields": [
    {
      "value": "",
      "isMandatory": false,
      "isEnabled": true,
      "data": null,
      "isForEachParticipant": false,
      "sectionBreak": null,
      "name": "booking_reference",
      "type": "text",
      "label": "Booking Reference",
      "placeholder": "Booking reference"
    },
    {
      "value": "",
      "isMandatory": false,
      "isEnabled": true,
      "data": null,
      "isForEachParticipant": false,
      "sectionBreak": null,
      "name": "emergency_contact_phone",
      "type": "phone",
      "label": "Emergency Contact Phone"
    },
    {
      "value": "",
      "isMandatory": false,
      "isEnabled": true,
      "data": null,
      "isForEachParticipant": false,
      "sectionBreak": null,
      "name": "emergency_contact_email",
      "type": "email",
      "label": "Emergency Contact Email"
    },
    {
      "value": "",
      "isMandatory": false,
      "isEnabled": true,
      "data": null,
      "isForEachParticipant": false,
      "sectionBreak": null,
      "name": "room_type",
      "type": "dropdown",
      "options": "Standard,Deluxe,Suite",
      "label": "Room Type"
    }
  ],
  "template": {
    "_id": "669d25bf4be6e965914a9e3e",
    "purpose": "Guest Check-in",
    "org": null,
    "type": "check-in",
    "uiVersion": 2,
    "otherInfo": null,
    "acceptedIds": null
  },
  "isQuotaLocked": false,
  "status": "completed",
  "agreements": [
    {
      "urlButtonText": "Read the complete policy",
      "mandatory": true,
      "checkboxTitle": "I Agree",
      "bullets": [],
      "icons": [
        {
          "imgName": "no-drink.png"
        }
      ],
      "title": "House Rules",
      "accepted": true
    }
  ],
  "updateLogs": [
    {
      "remark": "Share Started",
      "updatedByAccount_id": "65dea5868910b6f5957a0fb5",
      "updatedByAccountType": "user",
      "updatedByAccountSnapshot": {
        "name": "Rahul Sharma"
      },
      "updateTime": "2026-03-09T09:33:52.539Z"
    },
    {
      "remark": "Form Details Submitted",
      "updatedByAccount_id": "65dea5868910b6f5957a0fb5",
      "updatedByAccountSnapshot": {
        "name": "Rahul Sharma"
      },
      "updateTime": "2026-03-09T09:34:03.945Z"
    },
    {
      "remark": "Policies Accepted",
      "updatedByAccount_id": "65dea5868910b6f5957a0fb5",
      "updatedByAccountSnapshot": {
        "name": "Rahul Sharma"
      },
      "updateTime": "2026-03-09T09:34:06.349Z"
    },
    {
      "remark": "Share Completed",
      "updatedByAccount_id": "65dea5868910b6f5957a0fb5",
      "updatedByAccountType": "user",
      "updatedByAccountSnapshot": {
        "name": "Rahul Sharma"
      },
      "updateTime": "2026-03-09T09:34:06.745Z"
    }
  ],
  "isPublicJoin": false,
  "collectionRequestId": null,
  "automations": ["CFORM"],
  "webhookUrl": "https://example.com/webhooks/qid",
  "webhookSecret": null,
  "webhookIdentifier": "booking-1024",
  "createTime": "2026-03-09T09:33:52.539Z",
  "lastUpdateTime": "2026-03-09T09:34:06.745Z",
  "__v": 0,
  "masterKeyString": null
}

The response has the same fields as Create Share, with these differences:

PropertyTypeDescription
createdBystringAccount ID that started the share. Only present on shares started from the qid app; not returned for shares created with POST /di/share.
templateobject | nullTemplate details: _id, purpose, org, type, uiVersion, otherInfo, acceptedIds. null if the share's template ID does not match a template.
masterKeyStringstring | nullAlways present on read

Participants that have filled the share can also include:

FieldTypeDescription
parentAccount_idstringParent account ID
otherFieldsFields[]Form fields filled by this participant (fields with isForEachParticipant: true)
facePhotoobjectSelfie: isLive, imageUrl
participantShareStatusstringThis participant's share status, for example completed

accountSnapshot is returned as stored. For a share created with POST /di/share it contains only what was sent in the request.

Form fields

Fields that come from a template have these properties:

FieldTypeDescription
valuestringValue entered
isMandatorybooleanWhether the field is required
isEnabledbooleanWhether the field is shown
dataany | nullExtra field data
isForEachParticipantbooleantrue if each participant fills the field, false if it is filled once for the share
sectionBreakany | nullSection break before the field
namestringField key
typestringField type, for example text, textarea, date, phone, email, dropdown
labelstringField label
placeholderstringPlaceholder text (optional)
optionsstringComma-separated options for dropdown fields
errorMessagestring | nullValidation message (optional)

Errors

StatusWhenmessage
400id is not a valid ObjectIdInvalid Object ID
401Authorization or tokenId header missingError: Token Missing
401tokenId not recognisedHttpException: No record found with the provided Token ID
500No share exists with this idInternal server error

Note: A well-formed ID that does not match any share returns 500, not 404.

{
  "statusCode": 400,
  "message": "Invalid Object ID",
  "timestamp": "2026-03-09T09:39:44.886Z",
  "path": "/di/share/not-an-id",
  "requestId": "3f2b8c1e-7d4a-4e9b-a1c6-5d8e2f0b9a71"
}

Did this page help you?