# List Documents

## GET or POST Request

{% hint style="info" %}
<https://v1.api19.com/ra/documents/list>
{% endhint %}

Get a list of all of your documents on your account for a specific company

| Argument    | Required | Type         |
| ----------- | -------- | ------------ |
| company\_id | yes      | company id   |
| key         | yes      | your api key |

{% tabs %}
{% tab title="Curl Post" %}

```php
curl https://v1.api19.com/ra/documents/list \
 -d 'company_id=h329fh23r' \
 -d 'key=api_token'
```

{% endtab %}

{% tab title="Curl Get" %}

```
curl https://v1.api19.com/ra/documents/list?company_id=32yg23&key=apikey
```

{% endtab %}

{% tab title="JSON Response" %}

```json
NO DOCUMENTS:
{
    "status": "error",
    "error": "No registered agent documents found",
    "verbose": "none"
}

BAD COMPANY:
{
    "status": "error",
    "error": "Cannot locate company",
    "verbose": "none"
}

LIST OF DOCUMENTS:
{
    "status": "ok",
    "document_id": "hwew-2gh23hf32-f32hf2",
    "title": "Subpeona for information",
    "pages": 4,
    "downloaded": "yes"
}

```

{% endtab %}
{% endtabs %}
