User Uploads

Retrieve manually uploaded documents.



#The user upload object

Attributes
  • #
    idstring (uuid)

    Unique ID of the uploaded document.

  • #
    accountstring (uuid)

    ID of the account associated with the uploaded document.

  • #
    document_typestring (enum)

    The document category in Link the user selected.

  • #
    file_urlstring

    URL linking to the original uploaded document file.


    This static URL redirects to a download page that requires Argyle authentication headers. See the dropdown below for more information.

  • #
    file_namestring

    File name of the uploaded document on the user's computer or phone.

  • #
    metadataobject

    Contains document OCR and authenticity information.

  • #
    ocr_dataobject

    Contains Ocrolus OCR data.

    Available for paystubs, W-2s, and 1099s when Ocrolus is enabled.

  • #
    ocr_authenticityobject

    Contains Ocrolus authenticity data.


    Includes individual instances of tampering or other authenticity-related edits made to the uploaded document that were detected.

    Available for paystubs, W-2s, and 1099s when Ocrolus is enabled.

  • #
    ocr_authenticity_scoreinteger

    Ocrolus authenticity score.


    Single score that captures the likelihood the uploaded document is authentic, as determined by Ocrolus.

    Available for paystubs, W-2s, and 1099s when Ocrolus is enabled.

  • #
    created_atstring (datetime)

    Timestamp (ISO 8601) when the uploaded document was submitted.

  • #
    updated_atstring (datetime)

    Timestamp (ISO 8601) when the user upload object was last updated.

Example
1{
2  "id": "01320596-2c3d-189c-53e7-a8ce6d625b33",
3  "account": "01856c65-43b6-8b5d-b32a-56b8fbda5c28",
4  "document_type": "proof-of-identity",
5  "file_url": "www.argyle.com/storagename",
6  "file_name": "my_drivers_license.pdf",
7  "metadata": {
8    "ocr_data": {},
9    "ocr_authenticity": {},
10    "ocr_authenticity_score": null
11  },
12  "created_at": "2024-07-08T13:43:49.864033Z",
13  "updated_at": "2024-07-08T13:43:51.868787Z"
14}

#Retrieve a user upload

get/v2/user-uploads/{id}

Retrieves a user upload object.

Path parameters
  • #
    idstring (uuid)
    required

    ID of the user upload object to be retrieved.

Example Request
1curl --request GET \
2     --url https://api.argyle.com/v2/user-uploads/{id} \
3     --header 'accept: application/json' \
4     --header 'content-type: application/json'
Example Response
1{
2  "id": "01320596-2c3d-189c-53e7-a8ce6d625b33",
3  "account": "01856c65-43b6-8b5d-b32a-56b8fbda5c28",
4  "document_type": "proof-of-identity",
5  "file_url": "www.argyle.com/storagename",
6  "file_name": "my_drivers_license.pdf",
7  "metadata": {
8    "ocr_data": {},
9    "ocr_authenticity": {},
10    "ocr_authenticity_score": null
11  },
12  "created_at": "2024-07-08T13:43:49.864033Z",
13  "updated_at": "2024-07-08T13:43:51.868787Z"
14}

#List all user uploads

get/v2/user-uploads

Returns an array of all user upload objects.

Query parameters
  • #
    accountstring (uuid)
    optional

    Filter by account ID.

  • #
    userstring (uuid)
    optional

    Filter by user ID.

  • #
    document_typestring (uuid)
    optional

    Filter by document_type.

  • #
    limitinteger
    optional

    Number of user upload objects returned per page. Default: 10. Maximum: 200.

Example Request
1curl --request GET \
2     --url https://api.argyle.com/v2/user-uploads?limit=2 \
3     --header 'accept: application/json' \
4     --header 'content-type: application/json'
Example Response
1[
2  {
3    "id": "01320596-2c3d-189c-53e7-a8ce6d625b33",
4    "account": "01856c65-43b6-8b5d-b32a-56b8fbda5c28",
5    "document_type": "proof-of-identity",
6    "file_url": "www.argyle.com/storagename",
7    "file_name": "my_drivers_license.pdf",
8    "metadata": {
9      "ocr_data": {},
10      "ocr_authenticity": {},
11      "ocr_authenticity_score": null
12    },
13    "created_at": "2024-07-08T13:43:49.864033Z",
14    "updated_at": "2024-07-08T13:43:51.868787Z"
15  },
16  {
17    "id": "01305921-2ce3-723b-3309-14a27983e765",
18    "account": "01856c65-43b6-8b5d-b32a-56b8fbda5c28",
19    "document_type": "W-2",
20    "file_url": "www.argyle.com/storagename",
21    "file_name": "2024_W2.pdf",
22    "metadata": {
23      "ocr_data": {},
24      "ocr_authenticity": {},
25      "ocr_authenticity_score": null
26    },
27    "created_at": "2024-07-08T13:44:27.734038Z",
28    "updated_at": "2024-07-08T13:44:29.738182Z"
29  }
30]
Updating Argyle status...
© 2024 Argyle Systems Inc.argyle.com