ByDomuDevelopers

Detalle de documento

GEThttps://api.bydomu.com/v1/documents/{id}

This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.

Un documento con su URL de descarga.

Permission required

documents:read

Required header

X-API-Key · secret key

Access level

Level 2 · automatic on Inmobiliaria Pro

Path parameters

1 · required
idstring · required
ID del documento

Response 200

Document · 8 fields
dataid · name · url · mimeType · size · dealId · createdAt · uploadedBy
idstring
namestring
urlstring
mimeTypestring
sizeintegerTamaño en bytes
dealIdstring
createdAtstring
uploadedByid · firstName · lastName
idstring
firstNamestring
lastNamestring

Possible errors

shaped as { "error": { "code", "message" } }
  • 401UNAUTHORIZED
  • 403FORBIDDEN
  • 404NOT_FOUND
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
RequestGET/v1/documents/{id}
Official SDK · @bydomu/sdk · not on npm yet
import { ByDomu } from "@bydomu/sdk";

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

const { data } = await bydomu.documents.get("clx1doc001");
200 OK · example
{
  "data": {
    "id": "clx1doc001",
    "name": "Promesa de compraventa.pdf",
    "url": "https://cdn.bydomu.com/docs/promesa.pdf",
    "mimeType": "application/pdf",
    "size": 245760,
    "dealId": "clx1deal001",
    "createdAt": "2026-09-18T11:30:00.000Z",
    "uploadedBy": {
      "id": "clx1usr001",
      "firstName": "Carlos",
      "lastName": "Rodríguez"
    }
  }
}