# Documentos 🆕

<mark style="color:orange;">`POST`</mark> \ <mark style="color:$primary;">**Url Produção:**</mark> `https://api.acessorh.com.br`\ <mark style="color:$primary;">**Url Homologação:**</mark> `https://api.rh.homolog.acesso.io`\ <mark style="color:$primary;">**Endpoint:**</mark> `/v1/config/available-documents`    &#x20;

#### **Headers**

| Key                                             | Type   | Description                                                   |
| ----------------------------------------------- | ------ | ------------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Token de acesso adquirido pela plataforma Identity (*bearer*) |

### **Exemplo de requisição:**

```json
curl --location 'https://api.acessorh.com.br/v1/config/available-documents' \
--header 'Authorization: Bearer TOKEN DE AUTENTICAÇÃO'
```

### **Exemplo de response:**

```json
{
    "data": [
        {
            "id": "91b8e5ca-3817-4a82-b9e8-87d4a50421a4",
            "slug": "vspp",
            "title": "vspp",
            "kind": "hardcoded"
        },
        {
            "id": "6d58e6f3-5501-40b3-b1fb-3e6949d19960",
            "slug": "cpf",
            "title": "cpf",
            "kind": "hardcoded"
        },
        {
            "id": "93c3527c-1bed-45d0-8725-1705e580357d",
            "slug": "escolaridade",
            "title": "escolaridade",
            "kind": "hardcoded"
        },
        .
        .
        .
        ]
}
```

{% hint style="info" %}

* O "id" é usado para identificar o tipo do documento e é possível usa-lo no array de "docs" da api de "[create position](/unico-people/unico-people-v1/apis/posicoes.md#create-position)"
* O "slug" é o identificador do documento na resposta da api de "[get position](/unico-people/unico-people-v1/apis/posicoes.md#get-position)"
* O "kind" direciona a forma em que o documento é registrado no banco de dados e serve como direcionamento para identificar onde os metadados serão devolvidos na consulta do "[get position](/unico-people/unico-people-v1/apis/posicoes.md#get-position)"

<mark style="color:$warning;">**Obs 1:**</mark> Produção tem uma lista fixa de uids e homologação tem outra.\ <mark style="color:$warning;">**Obs 2:**</mark> Sempre que um novo documento for criado, é possível consultar o uid, slug e kind dele executando novamente a api.<br>
{% endhint %}


---

# 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://devcenter.unico.io/unico-people/unico-people-v1/apis/documentos.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.
