Read Request

Get a collection request by ID

GET /di/collection-request/{id}

Path parameters

ParamRequiredDescription
idYesCollection request ID

Example

Production:

curl 'https://api.qidpro.xyz/di/collection-request/6b1f2a3c4d5e6f7a8b9c0d1e' \
  --header 'Authorization: Bearer your-secret-key' \
  --header 'tokenId: your-token-id'

Staging:

curl 'https://staging.qidpro.xyz/di/collection-request/6b1f2a3c4d5e6f7a8b9c0d1e' \
  --header 'Authorization: Bearer your-secret-key' \
  --header 'tokenId: your-token-id'

Example response

200 OK

{
  "_id": "6b1f2a3c4d5e6f7a8b9c0d1e",
  "deleteTime": null,
  "childAccountId": "6a0b1c2d3e4f5a6b7c8d9e10",
  "account_id": "6a0b1c2d3e4f5a6b7c8d9e0f",
  "title": "Guest Check-In",
  "templateId": "6a1c2e3f4a5b6c7d8e9f0a1b",
  "participantList": [
    {
      "email": "[email protected]",
      "phoneNumber": "916123456789",
      "name": "Guest One",
      "isAdmin": true
    },
    {
      "email": "[email protected]",
      "name": "Guest Two",
      "isAdmin": false
    }
  ],
  "minimumParticipants": 1,
  "maximumParticipants": 5,
  "shareStatus": "open",
  "webhookUrl": "https://your-server.com/webhooks/qid",
  "webhookSecret": "your-webhook-secret",
  "webhookIdentifier": "hotel_checkin_123",
  "createTime": "2026-11-10T11:45:00.242Z",
  "lastUpdateTime": "2026-11-10T11:45:00.242Z",
  "__v": 0,
  "template": {
    "_id": "6a1c2e3f4a5b6c7d8e9f0a1b",
    "createdBy": "6a0b1c2d3e4f5a6b7c8d9e01",
    "deleteTime": null,
    "purpose": "Guest Check-In",
    "acceptedIds": [],
    "otherInfo": [
      {
        "value": "",
        "isMandatory": false,
        "isEnabled": true,
        "data": null,
        "isForEachParticipant": false,
        "sectionBreak": null,
        "name": "roomNumber",
        "type": "text",
        "label": "Room number",
        "placeholder": "Room number"
      },
      {
        "value": "",
        "isMandatory": false,
        "isEnabled": true,
        "data": null,
        "isForEachParticipant": false,
        "sectionBreak": null,
        "name": "purposeOfVisit",
        "type": "dropdown",
        "options": "Business,Leisure,Other",
        "label": "Purpose of visit"
      }
    ],
    "participantAcceptedIds": [],
    "participantOtherInfo": [],
    "isAtLeastOneAmongOptional": false,
    "isPublic": true,
    "org": {
      "_id": "6a0b1c2d3e4f5a6b7c8d9e0f",
      "name": "Example Hotels",
      "industry": {
        "deleteTime": null,
        "_id": "6428a1b2c3d4e5f6a7b8c9d0",
        "createTime": "2023-04-02T03:30:28.056Z",
        "createdBy": "63c1a2b3c4d5e6f7a8b9c0d1",
        "lastUpdateTime": null,
        "name": "Hotel",
        "__v": 0
      },
      "createByUser": {
        "_id": "6a0b1c2d3e4f5a6b7c8d9e01",
        "name": "Docs Test Admin",
        "email": "[email protected]"
      },
      "displayPictureUrl": "a1b2c3d4e5.jpeg"
    },
    "isQuotaLocked": false,
    "isParticipantEmailRequired": false,
    "isParticipantPhoneRequired": false,
    "isParticipantSignature": false,
    "agreements": [
      {
        "urlButtonText": "Read the complete policy",
        "mandatory": true,
        "checkboxTitle": "I Agree",
        "bullets": [],
        "icons": [
          {
            "imgName": "no-drink.png"
          }
        ],
        "title": "House rules"
      }
    ],
    "isVerifiedSignUp": false,
    "isEmailRequired": false,
    "isPhoneRequired": false,
    "isOtpVerification": true,
    "isSelfieVerification": true,
    "createTime": "2026-02-03T10:55:22.926Z",
    "lastUpdateTime": "2026-10-21T10:40:49.302Z",
    "__v": 0,
    "type": "check-in",
    "identityVerificationSettings": {
      "verificationMethod": "digilocker",
      "isCollectCompleteAadhaar": true,
      "documentOptions": [],
      "allowManualIdUpload": false,
      "indianDocumentOptions": [
        {
          "sidKey": "ADHAR",
          "sidName": "Aadhaar",
          "acceptedSources": [
            "digilocker",
            "userUploaded"
          ]
        },
        {
          "sidKey": "DRVLC",
          "sidName": "Driving License",
          "acceptedSources": [
            "userUploaded"
          ]
        },
        {
          "sidKey": "PSPRT",
          "sidName": "Passport",
          "acceptedSources": [
            "userUploaded"
          ]
        }
      ],
      "otherCountryDocumentOptions": [
        {
          "sidKey": "PSPRT",
          "sidName": "Passport",
          "acceptedSources": [
            "userUploaded"
          ]
        }
      ],
      "captureCompleteDocument": true
    },
    "isIdentityVerification": true,
    "uiVersion": 2,
    "allowGroup": true,
    "isSignature": false,
    "successfulMessage": "Thank you for checking in!",
    "postSubmissionRedirectUrl": "",
    "automations": [
      "CFORM"
    ],
    "webhookIdentifier": "hotel_checkin",
    "webhookSecret": null,
    "webhookUrl": "https://your-server.com/webhooks/qid"
  }
}

The template object is the full form configuration. The example above shortens otherInfo to two fields.

Response fields

FieldDescription
_idCollection request ID
deleteTimenull unless the request was deleted
childAccountIdChild account Id. Only present when sent on create
account_idAccount that owns the request
titleCopied from the form's purpose. null if the request has no form
templateIdForm Id. Omitted if the request has no form
participantListParticipants as sent on create (email, phoneNumber, name, isAdmin)
minimumParticipantsMinimum number of participants
maximumParticipantsMaximum number of participants
shareStatusopen while waiting for participants, completed once a share has been created. The spec also lists closed
webhookUrlWebhook URL, or null
webhookSecretWebhook secret, or null
webhookIdentifierWebhook identifier, or null
createTimeCreation time (ISO 8601)
lastUpdateTimeLast update time (ISO 8601)
__vInternal version number
shareIdId of the share created from this request. Only present once a share exists (appears between __v and template)
templateFull form object. Omitted if the request has no form

Once a share is created, use the shareId to read the share.

Errors

StatusResponse
200Empty body (Content-Length: 0) when no collection request exists with that id
400Invalid Object ID when id is not a valid ObjectId
401Error: Token Missing or HttpException: No record found with the provided Token ID

Note that an unknown id does not return 404. Check for an empty body.

Example 400 response:

{
  "statusCode": 400,
  "message": "Invalid Object ID",
  "timestamp": "2026-11-10T11:44:31.090Z",
  "path": "/di/collection-request/not-an-id",
  "requestId": "a9e57f79-1237-4704-b88b-0ae05534e141"
}

Did this page help you?