# POST /methods/sections

Get the methods section of a scientific paper structured into distinct protocols, given a DOI or a PDF of a scientific paper.

### Request

**Content-Type:** `multipart/form-data`&#x20;

**Accepted keys:** `doi` and `file`

**JSON Body (if using DOI):**

```json
{
  "doi": "10.1038/s41592-020-01005-z"
}
```

**JSON Body (if uploading a PDF):**

```
file: "path_to_file.pdf"
```

**Note:** If both a `doi` and a `file` key are present in the request, the API uses the file key by default.

### Response

```json
{
    "doi": "10.3390/ijms22031484",
    "paper_input_type": "file"
    "pdf_url": null, 
    "pdf_source_filename": "ijms-22-01484-v3.pdf",
    "pmcid": "PMC7867340",
    "methods_sections": [
        {
            "id": "method_1",
            "doi": "10.3390/ijms22031484",
            "order": 1,
            "title": "Title of protocol"
            "raw_text": "...text as extracted from the paper..."
            "mentioned_figures": ["Figure 1B"],
            "mentioned_tables": ["Table 2"],
            "mentioned_supplementary_files": ["Supplementary Figure 3"],
            "software_tools": [
                {
                  "name": "FastQC",
                  "version": "0.11.9",
                  "role": "Data quality check"
                },
            ]
        },
        {
            // additional sections here
        }
    ]
}
```

