> For the complete documentation index, see [llms.txt](https://formdr.gitbook.io/formdr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://formdr.gitbook.io/formdr/documentation/documents-coming-soon/get-document-by-id.md).

# Get Document By Id

Get a document data by id

#### Returns a submission

<mark style="color:blue;">`GET`</mark> `https://api.formdr.com/api/v1/practice/{practiceId}/document/{documentId}`

#### Path Parameters

| Name       | Type   | Description |
| ---------- | ------ | ----------- |
| practiceId | number | Practice Id |
| documentId | number | Document Id |

#### Response

{% tabs %}
{% tab title="200: OK Returns submission data of the submission." %}

```javascript
{
  data: [
    {
      id: number;
      practiceId: number;
      userId: number;
      name: string;
      fields: string;
      documentUuid: string;
      createdAt: Date;
      updatedAt: Date;
      sentToSign: boolean;
      isTemplate: boolean;
      fromTemplateId: number;
      subject: string;
      message: string;
      signed: boolean;
      signedAt: Date;
      signOrder: boolean;
      signersOrder: number[];
      pagesOrder: string[];
      signers: [
        {
          id: number;
          documentId: number;
          signerName: string;
          signerEmail: string;
          signerRole: string;
          signerUuid: string;
          isRecipient: boolean;
          createdAt: string;
          signed: boolean;
          declined: boolean;
          declinedAt: Date;
          signedAt: Date;
          recordId: number;
        }
      ];
    }
  ];
  total: number;
}
```

{% endtab %}

{% tab title="401: Unauthorized " %}

```javascript
"Error: Wrong Credentials"
```

{% endtab %}
{% endtabs %}
