This section provides an overview of the /documents/user API endpoint. It allows you to retrieve user-specific documents from our system.

Endpoint URL

  • /api-reference/documents/user

Request Method

  • GET

Parameters

  • user_id: The unique identifier for the user.

Response

The response will be a JSON object containing the user's documents. The structure of the response is as follows:

{
  "user_id": "123456",
  "documents": [
    {
      "document_id": "789012",
      "title": "User Agreement",
      "date": "2021-01-01"
    },
    {
      "document_id": "789013",
      "title": "Privacy Policy",
      "date": "2021-01-02"
    }
  ]
}

Usage Example

To retrieve the documents for a user with ID 123456, you would send a GET request to:

/api-reference/documents/user?user_id=123456

Related Links

User Documents