---
updatedAt: 2026-07-13T07:05:39.000Z
agentTools:
  projectIndex: https://docs.getsmileapi.com/llms.txt
---

# View Document

View a user's document by ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Smile API",
    "version": "1.14.0",
    "description": "The Smile API provides employment and income data from a single API. ",
    "contact": {
      "name": "Smile Technology Pte Ltd",
      "url": "https://www.getsmileapi.com",
      "email": "info@getsmileapi.com"
    },
    "termsOfService": "https://www.getsmileapi.com/terms-and-conditions"
  },
  "servers": [
    {
      "url": "https://sandbox.smileapi.io/v1",
      "description": "Sandbox"
    },
    {
      "url": "https://open.smileapi.io/v1",
      "description": "Production"
    }
  ],
  "paths": {
    "/documents/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "summary": "View Document",
        "tags": [
          "Documents"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentGetResponse"
                },
                "examples": {
                  "Example": {
                    "value": {
                      "code": "OK",
                      "message": "Success",
                      "requestId": "5b79399a-6852-4234-bb0e-ad472648282d",
                      "data": {
                        "id": "d-17bbf36498de4d68a0d4f86c7b62f69f",
                        "name": "Facebook Social Media Marketing Professional Certificate",
                        "docId": "ABCD123456",
                        "issueDate": "2007-08-24",
                        "expiryDate": "2010-08-24",
                        "fileUrl": "https://images.credly.com/size/680x680/images/c4a900b7-8d1b-4e8f-a572-347985eeaa5c/Coursera_Badge__1_.png",
                        "metadata": {
                          "createdAt": "2021-04-14T09:30:24Z",
                          "sourceId": "a-17bbf36498de4d68a0d4f86c7b62f69f",
                          "sourceType": "ACCOUNT",
                          "userId": "tenant-5c1a2e8678e3494eba303ad1afa54ee8",
                          "providerId": "grab"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "get-document",
        "description": "View a user's document by ID."
      }
    }
  },
  "components": {
    "schemas": {
      "ObjectMetadataRefCode": {
        "type": "string",
        "title": "ObjectMetadataRefCode",
        "description": "Request status code",
        "enum": [
          "OK",
          "CREATED",
          "INVALID_CREDENTIALS",
          "INVALID_PARAMETERS",
          "INVALID_TOKEN",
          "UNAUTHORIZED_ACCESS",
          "MISSING_RESOURCE",
          "REQUEST_LIMIT_EXCEEDED",
          "SERVER_ERROR",
          "UNSUPPORTED_METHOD",
          "SERVER_UNAVAILABLE",
          "TIME_LIMIT_EXCEEDED"
        ],
        "example": "OK",
        "x-internal": false
      },
      "ObjectMetadataRefMessage": {
        "type": "string",
        "title": "ObjectMetadataRefMessage",
        "description": "Message response to the request",
        "example": "Success",
        "x-internal": false
      },
      "ObjectMetadataRefRequestID": {
        "type": "string",
        "title": "ObjectMetadataRefRequestID",
        "description": "Unique ID that is added to the body of every response for easy traceability of the request in our logs.",
        "x-internal": false,
        "example": "5b79399a-6852-4234-bb0e-ad472648282d"
      },
      "RefObjectID": {
        "type": "string",
        "title": "Object ID",
        "description": "Unique ID of this object",
        "example": "17bbf36498de4d68a0d4f86c7b62f69f"
      },
      "RefDateTime": {
        "type": "string",
        "title": "Date and Time string",
        "format": "date-time",
        "example": "2021-04-14T09:30:24Z",
        "description": "Date and time"
      },
      "DocumentPayload": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/RefObjectID"
          },
          "name": {
            "type": "string",
            "description": "Document name",
            "example": "Facebook Social Media Marketing Professional Certificate"
          },
          "docId": {
            "type": "string",
            "description": "Document number",
            "example": "ABCD123456",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Document status，only for NBI verification, It's VALID if the NBI verification status is valid.",
            "example": "VALID",
            "nullable": true
          },
          "documentType": {
            "type": "string",
            "description": "Document Type",
            "example": "IDENTIFICATION",
            "enum": [
              "IDENTIFICATION",
              "PAYSLIP",
              "CLEARANCE",
              "CERTIFICATE"
            ]
          },
          "issueDate": {
            "type": "string",
            "description": "Issue date",
            "format": "date",
            "example": "2007-08-24",
            "nullable": true
          },
          "expiryDate": {
            "type": "string",
            "description": "Expiry date",
            "format": "date",
            "example": "2010-08-24",
            "nullable": true
          },
          "fileUrl": {
            "type": "string",
            "description": "Publicly available URL reference for the document",
            "example": "https://images.credly.com/size/680x680/images/c4a900b7-8d1b-4e8f-a572-347985eeaa5c/Coursera_Badge__1_.png",
            "nullable": true
          },
          "remarks": {
            "type": "string",
            "description": "Remarks section",
            "example": "NO RECORD ON FILE",
            "nullable": true
          }
        }
      },
      "RefSourceType": {
        "type": "string",
        "nullable": true,
        "title": "Ref-Source-Type",
        "example": "Account",
        "enum": [
          "ACCOUNT",
          "UPLOAD",
          "ARCHIVE",
          "SOCIAL_SECURITY"
        ],
        "description": "Source Type"
      },
      "ObjectReferenceMetadata": {
        "title": "Reference Metadata",
        "type": "object",
        "description": "Metadata related to account-specific data",
        "properties": {
          "itemCreatedAt": {
            "$ref": "#/components/schemas/RefDateTime"
          },
          "createdAt": {
            "$ref": "#/components/schemas/RefDateTime"
          },
          "accountId": {
            "type": "string",
            "deprecated": true,
            "description": "The accountId of this object"
          },
          "sourceId": {
            "type": "string",
            "description": "The ACCOUNT or ARCHIVE ID associated with this object"
          },
          "sourceType": {
            "$ref": "#/components/schemas/RefSourceType"
          },
          "userId": {
            "type": "string",
            "description": "The user ID associated with this object"
          },
          "providerId": {
            "type": "string",
            "description": "The provider ID associated with this object"
          }
        },
        "required": [
          "createdAt",
          "itemCreatedAt",
          "sourceId",
          "sourceType",
          "userId",
          "providerId"
        ]
      },
      "Document": {
        "title": "Document",
        "type": "object",
        "x-internal": false,
        "description": "The stored document-related information of the user from an employment data provider.",
        "x-examples": {
          "Example": {
            "id": "d-17bbf36498de4d68a0d4f86c7b62f69f",
            "name": "Facebook Social Media Marketing Professional Certificate",
            "docId": "ABCD123456",
            "documentType": "IDENTIFICATION",
            "status": "VALID",
            "issueDate": "2007-08-24",
            "expiryDate": "2010-08-24",
            "fileUrl": "https://images.credly.com/size/680x680/images/c4a900b7-8d1b-4e8f-a572-347985eeaa5c/Coursera_Badge__1_.png",
            "remarks": "NO RECORD ON FILE",
            "metadata": {
              "createdAt": "2021-04-14T09:30:24Z",
              "sourceId": "a-17bbf36498de4d68a0d4f86c7b62f69f",
              "sourceType": "ACCOUNT",
              "userId": "tenant-5c1a2e8678e3494eba303ad1afa54ee8",
              "providerId": "upwork"
            }
          }
        },
        "x-tags": [
          "Documents"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentPayload"
          },
          {
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/ObjectReferenceMetadata"
              }
            }
          }
        ],
        "required": [
          "id",
          "name",
          "metadata"
        ]
      },
      "DocumentGetResponse": {
        "title": "Document Get Response",
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/ObjectMetadataRefCode"
          },
          "message": {
            "$ref": "#/components/schemas/ObjectMetadataRefMessage"
          },
          "requestId": {
            "$ref": "#/components/schemas/ObjectMetadataRefRequestID"
          },
          "data": {
            "$ref": "#/components/schemas/Document"
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "parameters": {
      "id": {
        "name": "id",
        "in": "path",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "description": "ID of the specific object in the collection.",
        "required": true
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ]
}
```