Guía de Integración de la API de AccessibleDocs

Esta guía explica cómo cargar documentos en AccessibleDocs para su procesamiento de accesibilidad, recibir notificaciones de finalización y descargar el documento accesible final. Incluye todos los endpoints necesarios, formatos de solicitud/respuesta y pasos del flujo de trabajo.

Servicios de Accesibilidad para Empresas No Públicas

Nuestra solución permite a las empresas alojar el sistema de accesibilidad en sus instalaciones, mejorando la accesibilidad digital y garantizando el cumplimiento de las normas internacionales.

Guía de Integración de la API

Explicación de la guía sobre cómo trabajar con la API de AccessibleDocs.

All API requests must include your API key in the headers:
You can obtain your API key and webhook secret key (used for validating incoming webhook requests) from your AccessibleDocs dashboard under:

https://platform.accessibledocs.ai/ → Settings → API Integration 
x-api-key: YOUR_API_KEY

Set up a webhook to receive status updates when a file has completed processing.

Endpoint

POST /v1/admin/company/webhooks

Request Body

{
   «event»: «file_processed»,
   «url»: «https://yourdomain.com/webhook-endpoint»
}

Response

[
  {
     «id»: «abc123»,
     «event»: «file_processed»,
     «url»: «https://yourdomain.com/webhook-endpoint»
  }
]

Create a file record and receive a secure URL for uploading the document.

Endpoint

POST /v1/external/user/files

Request Body

{
   «name»: «file_processed»,
   «size»: 1048576,
   «mime»: «file_processed»,
   «comment»: «Optional comment for fixer»,
   «tags»: [«tag-id-1», «tag-id-2»],
   «purchaseOrderId»: «optional-id-if-needed»,
   «excludeWatermark»: false,
   «additionalNotification»: {
      «email»: «[email protected]»
  }
}

Response

{
   «id»: «file_123»,
   «name»: «file.pdf»,
   «size»: 1048576,
   «tags»: [«tag-id-1», «tag-id-2»],
   «state»: «in_progress»,
   «owner»: {
      «userid»: «user001»,
      «firstName»: «John»,
      «lastName»: «Doe»,
  },
   «extension»: «pdf»,
   «pageCount»: 0,
   «comments»: [],
   «createdAt»: «2025-06-12T13:24:57.402Z»,
   «updatedAt»: «2025-06-12T13:24:57.402Z»,
   «excludeWatermark»: false,
   «refunded»: false,
   «publiclyAvailable»: false,
   «uploadUrl»: «https://upload.accessibledocs.ai/ …»,

}

Upload the document binary using the uploadUrl from the previous step.

Example (cURL)

curl -X PUT \-H «Content-Type: application/pdf» \–data-binary @«file.pdf» \«https://upload.accessibledocs.ai/ …»

Any webhook sent from AccessibleDocs will include a secret key header (x-webhook-signature) for security purposes.
To verify authenticity, you must:

Step 1

Use the secret webhook key from the platform (available under: 
https://platform.accessibledocs.ai/ → Settings → API Integration) to create your own HMAC-SHA256 signature of the received JSON payload.

Step 2

Compare your generated signature with the x-webhook-signature header sent in the webhook request.

If they match, the request is valid and came from AccessibleDocs.
Once the document is completed (**only one event type currently: **«), AccessibleDocs 
will send a POST request to your webhook URL.

Webhook Payload

{
   «event»: «file_processed»,
   «file»: {
      «id»: «file_123»,
      «name»: «file.pdf»,
},
   «owner»: {
      «id»: «user_001»,
}

}

Retrieve a temporary download link for the processed file.

Endpoint

POST /v1/external/admin/company/files/{id}/processed/create-get-url

Response

{
   «url»: «https://download.accessibledocs.ai/file_123 …»,
   «name»: «file-accessible.pdf»
}

List All Files

GET /v1/external/admin/company/files 
Supports filters: user IDs, tags, name, pagination, and sorting.

Get File Details

GET /v1/external/admin/company/files/{id}

View Webhooks

GET /v1/admin/company/webhooks

Get File Details

DELETE /v1/admin/company/webhooks/{id} 
Returns: 204 No Content

Step 1 →

Register a webhook for file_processed

Step 2 →

Register file metadata and receive uploadUrl

Step 3 →

Upload the file to uploadUrl

Step 4 →

Wait for webhook callback

Step 5 →

Use the file ID to request the download URL

Step 6 →

Download the processed file

¡Busque ayuda sobre accesibilidad!

Los campos marcados con un asterisco son campos de «¡Estamos aquí para ayudarte!». Si tienes preguntas, necesitas ayuda o quieres hablar sobre tus necesidades, no dudes en contactarnos. Nuestro equipo está listo para ayudarte y garantizar que tengas la mejor experiencia posible.
Tenga en cuenta que los campos marcados con un asterisco (*) son obligatorios.