# Document Types

***

### <mark style="color:green;">GET</mark> /documents-type

{% hint style="info" %}
**Request**
{% endhint %}

```bash
curl -v --location --request GET 'https://sandbox.smartfastpay.com/documents-type?country=BRA' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <Access-Token>' \'
```

{% hint style="info" %}
**Parameters details**
{% endhint %}

<table><thead><tr><th width="138.33333333333331">Parameter</th><th width="197" align="center">Type</th><th width="103">Required</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:red;"><code>country</code></mark></td><td align="center"><mark style="color:red;"><code>string (3)</code></mark><br><mark style="color:red;"><code>min: 3 | max: 3</code></mark></td><td><strong>yes</strong></td><td>This parameter is required. Please, choose a country.<br><br><strong>Eg.: BRA, COL, ECU ...</strong></td></tr></tbody></table>

{% hint style="info" %}
**Response**
{% endhint %}

```bash
{
    "requestId": "167ffff1-b58b-4d1b-909e-ff714c594967",
    "data": [
        {
            "id": 1,
            "abbreviation": "CPF",
            "name": "Cadastro de Pessoa Física",
            "country": "BRA",
            "regex_validation": null
        },
        {
            "id": 2,
            "abbreviation": "CNPJ",
            "name": "Cadastro Nacional de Pessoa Jurídica",
            "country": "BRA",
            "regex_validation": null
        }
    ]
}
```

{% hint style="info" %}
**Response details**
{% endhint %}

<table><thead><tr><th width="189">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:red;"><code>abbreviation</code></mark></td><td>Acronym for document type abbreviation</td></tr><tr><td><mark style="color:red;"><code>name</code></mark></td><td>Document type name</td></tr><tr><td><mark style="color:red;"><code>country</code></mark></td><td>Country</td></tr><tr><td><mark style="color:red;"><code>regex_validation</code></mark></td><td>Regex validation (if there is)</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.smartfastpay.com/thesmartway/api-requests/document-type.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
