---
agentTools:
  projectIndex: https://identityradar.readme.io/llms.txt
---

# Documents

This API endpoint allows you to retrieve a list of all documents uploaded by a specific high-risk user

**Path Parameter:**

- `{user_id}`: The unique identifier of the high-risk user.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Back Office",
    "description": "**Introduction**\n\nThis document serves as a comprehensive guide for developers integrating with the Backoffice API (version 1.0). This API provides programmatic access to core functionalities of the back office system, including transaction management, data retrieval, and user administration.\n\n**Authentication**\n\nAll API requests must include an 'x-api-key' header set to your API key, which can be obtained from your dashboard.\n\n**Error Handling**\n\nThe Backoffice API utilizes standard HTTP status codes to indicate success or failure of a request. Here's a breakdown of some common codes:\n\n- **200 OK:** Request processed successfully.\n- **400 Bad Request:** Invalid request syntax or missing required parameters.\n- **401 Unauthorized:** Missing or invalid API key in the header.\n- **403 Forbidden:** Insufficient permissions to access the requested resource.\n- **404 Not Found:** The requested resource could not be found.\n- **500 Internal Server Error:** An unexpected error occurred on the server-side.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.prembly.com"
    }
  ],
  "tags": [
    {
      "name": "Onboarding > Profiles > Profile",
      "description": "For testing use \"**2a698fd6-1c72-4e11-8a4a-65a85919a037**\" as the risk profile id with your sandbox api key"
    }
  ],
  "paths": {
    "/radar/api/v1/back-office/risk/profiles/{risk_profile_id}/documents": {
      "get": {
        "tags": [
          "Onboarding > Profiles > Profile"
        ],
        "summary": "Documents",
        "description": "This API endpoint allows you to retrieve a list of all documents uploaded by a specific high-risk user\n\n**Path Parameter:**\n\n- `{user_id}`: The unique identifier of the high-risk user.",
        "parameters": [
          {
            "name": "x-api-key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "example": "{{X-API-KEY}}"
          },
          {
            "name": "risk_profile_id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Date": {
                "schema": {
                  "type": "string",
                  "example": "Wed, 14 Feb 2024 01:10:32 GMT"
                }
              },
              "Server": {
                "schema": {
                  "type": "string",
                  "example": "WSGIServer/0.2 CPython/3.9.0"
                }
              },
              "Content-Type": {
                "schema": {
                  "type": "string",
                  "example": "application/json"
                }
              },
              "Allow": {
                "schema": {
                  "type": "string",
                  "example": "GET, HEAD, OPTIONS"
                }
              },
              "X-Frame-Options": {
                "schema": {
                  "type": "string",
                  "example": "DENY"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "example": "288"
                }
              },
              "Vary": {
                "schema": {
                  "type": "string",
                  "example": "Origin, Cookie"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "example": "nosniff"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "example": "same-origin"
                }
              },
              "Cross-Origin-Opener-Policy": {
                "schema": {
                  "type": "string",
                  "example": "same-origin"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "status": true,
                  "message": "Success",
                  "detail": "Success",
                  "data": [
                    {
                      "id": "f2b7c46e-a882-4f85-9ea2-c9de12d213e0",
                      "file_url": "https://idradar-bucket.s3.amazonaws.com/img_9117-600x600.jpeg",
                      "file_type": "NIN",
                      "created_at": "2024-02-14T00:46:43.180905Z",
                      "updated_at": "2024-02-14T00:46:43.180938Z"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 71,
      "2": 21,
      "3": 77,
      "4": 41,
      "5": 255,
      "6": 114,
      "7": 0,
      "8": 37,
      "9": 200,
      "10": 243,
      "11": 52
    }
  }
}
```