# Obtener Etiqueta

Para obtener los datos de una etiqueta conocida, se debe realizar la siguiente consulta.

<mark style="color:blue;">`GET`</mark> `https://api.persat.com.ar/v1/deliveries-labels/label_id`

#### Path Parameters

| Name                                        | Type   | Description                                                 |
| ------------------------------------------- | ------ | ----------------------------------------------------------- |
| label\_id<mark style="color:red;">\*</mark> | Number | Nro. de identificación de la etiqueta que se desea obtener. |

#### Headers

| Name                                            | Type   | Description     |
| ----------------------------------------------- | ------ | --------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer API\_KEY |

{% tabs %}
{% tab title="200: OK La consulta se ejecutó con éxito" %}

```json
{
    "success": true,
    "data": {
        "id": 15,
        "name": "Urgente",
        "color": "RED_2"
    }
}
```

{% endtab %}

{% tab title="400: Bad Request Error en la consulta" %}

```json
{
    "success": false,
    "error": {
        "status": 400,
        "type": "BAD_REQUEST",
        "userMessage": "'label_id' debe ser un number (entero) obligatorio"
    }
}
```

{% endtab %}

{% tab title="404: Not Found Etiqueta inexistente" %}

```json
{
    "success": false,
    "error": {
        "status": 404,
        "type": "NOT_FOUND",
        "userMessage": "No existe el label con id: 3215"
    }
}
```

{% endtab %}
{% endtabs %}

### Análisis de la Respuesta

```json
{
    "success": true,
    "data": {
        "id": 15,
        "name": "Urgente",
        "color": "RED_2"
    }
}
```

**data.id:** Number identificando de forma univoca a la etiqueta

**data.name:** String. Nombre de la etiqueta. Máx. 20 caracteres.

**data.color:** String que identifica el color de la etiqueta. La lista de colores disponibles es la siguiente

<figure><img src="/files/XyKfxcPKWjixJkntiUxi" alt=""><figcaption></figcaption></figure>

Cada uno de los colores tiene 3 tonos disponibles.

* RED\
  RED\_2\
  RED\_3
* ORANGE\
  ORANGE\_2\
  ORANGE\_3
* YELLOW\
  YELLOW\_2\
  YELLOW\_3
* GREEN\
  GREEN\_2\
  GREEN\_3
* LIGHTBLUE\
  LIGHTBLUE\_2\
  LIGHTBLUE\_3
* BLUE\
  BLUE\_2\
  BLUE\_3
* VIOLET\
  VIOLET\_2\
  VIOLET\_3
* PINK\
  PINK\_2\
  PINK\_3
* BLACK\
  BLACK\_2\
  BLACK\_3


---

# 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.api.persat.com.ar/modulos/gestion-de-entregas/administrar-etiquetas/obtener-etiqueta.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.
