# Detalle de sobre de firma

GET `https://api.bydomu.com/v1/envelopes/{id}`

El sobre con su documento, sus campos y el estado de cada destinatario. Las fotos de verificación (selfie y documento de identidad) llegan como URLs firmadas de lectura temporal.

Permiso que pide

`documents:read`

Encabezado obligatorio

`X-API-Key` · clave secreta

Nivel de acceso

Nivel 2 · automático en Inmobiliaria Pro

## Parámetros de ruta

1 · obligatorios

`id` string · **obligatorio**

ID del sobre

## Respuesta 200

`EnvelopeDetail` · 20 campos

**`data` id · name · status · signingMode · expiresAt · completedAt · createdAt · updatedAt · deal · createdBy · subject · message · documentHtml · documentPdfUrl · documentHash · requireSelfie · requireEmailOtp · requireIdDocument · fields · recipients**

`id` string

`name` string

`status` string DRAFT, IN_PROGRESS, COMPLETED, EXPIRED, CANCELLED, DECLINED

`signingMode` string SEQUENTIAL, PARALLEL

`expiresAt` string

`completedAt` string

`createdAt` string

`updatedAt` string

**`deal` id · title**

`id` string

`title` string

**`createdBy` firstName · lastName**

`firstName` string

`lastName` string

`subject` string

`message` string

`documentHtml` string HTML saneado del documento

`documentPdfUrl` string

`documentHash` string

`requireSelfie` boolean

`requireEmailOtp` boolean

`requireIdDocument` boolean

**`fields[]` id · type · recipientId**

`id` string

`type` string

`recipientId` string

**`recipients[]` id · name · email · role · order · status · signedAt · signerIp · otpVerified · openedAt · selfieData · idDocumentData · fields**

`id` string

`name` string

`email` string

`role` string SIGNER, CC, VIEWER

`order` integer

`status` string PENDING, NOTIFIED, SIGNED, DECLINED

`signedAt` string

`signerIp` string

`otpVerified` boolean

`openedAt` string

`selfieData` string URL firmada de lectura temporal

`idDocumentData` string URL firmada de lectura temporal

**`fields[]` id · type · pageNumber · positionX · positionY · width · height · required · label · value**

`id` string

`type` string

`pageNumber` integer

`positionX` number

`positionY` number

`width` number

`height` number

`required` boolean

`label` string

`value` string

## Errores posibles

con la forma `{ "error": { "code", "message" } }`

- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **404** NOT_FOUND
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/envelopes/clx1env001" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.envelopes.get("clx1env001");
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/envelopes/clx1env001",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Respuesta · 200 · ejemplo**

```json
{
  "data": {
    "id": "clx1env001",
    "name": "Contrato de arrendamiento - Apto 301",
    "status": "DRAFT",
    "signingMode": "SEQUENTIAL",
    "expiresAt": "2026-10-30T23:59:59.000Z",
    "completedAt": "2026-09-22T15:10:00.000Z",
    "createdAt": "2026-09-15T09:00:00.000Z",
    "updatedAt": "2026-09-22T15:10:00.000Z",
    "deal": {
      "id": "clx1deal002",
      "title": "Arriendo Apto 301"
    },
    "createdBy": {
      "firstName": "Carlos",
      "lastName": "Rodríguez"
    },
    "subject": "Firma del contrato",
    "message": "Adjunto el contrato para tu firma.",
    "documentHtml": "<h1>Contrato de arrendamiento</h1>…",
    "documentPdfUrl": "https://cdn.bydomu.com/envelopes/clx1env001.pdf",
    "documentHash": "9f86d081884c7d65…",
    "requireSelfie": false,
    "requireEmailOtp": true,
    "requireIdDocument": false,
    "fields": [
      {
        "id": "clx1fld001",
        "type": "SIGNATURE",
        "recipientId": "clx1rcp001"
      }
    ],
    "recipients": [
      {
        "id": "clx1rcp001",
        "name": "María González",
        "email": "maria.gonzalez@email.com",
        "role": "SIGNER",
        "order": 1,
        "status": "PENDING",
        "signedAt": "2026-09-22T15:10:00.000Z",
        "signerIp": "181.49.10.2",
        "otpVerified": true,
        "openedAt": "2026-09-22T15:00:00.000Z",
        "selfieData": "https://files.bydomu.com/signed/selfie.jpg?sig=…",
        "idDocumentData": "https://files.bydomu.com/signed/cedula.jpg?sig=…",
        "fields": [
          {
            "id": "clx1fld001",
            "type": "SIGNATURE",
            "pageNumber": 1,
            "positionX": 120,
            "positionY": 640,
            "width": 180,
            "height": 48,
            "required": true,
            "label": "Firma del arrendatario",
            "value": "María González"
          }
  …
```
