API REST & Webhooks

API de ReceiveIt

Integre la recepción de archivos en sus aplicaciones con nuestra API REST segura y documentada.

REST JSON
Upload direct S3
Webhooks temps réel
Bearer Auth
01Authentification

Autenticación

La API de ReceiveIt utiliza autenticación por clave API. Todas las solicitudes deben incluir su clave API en el encabezado.

Clave API

Su clave API está disponible en su panel de control. Debe incluirse en todas las solicitudes HTTP.

http
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Plan Gratuito

1 000

sol/día

Plan Pro

10 000

sol/día

Plan Empresa

Sur mesure

Ilimitado

02Endpoints

Endpoints de la API

POST
/api/v1/pages

Crear una página de depósito

Cree una nueva página de depósito personalizada

Request Body

json
{
  "name": "Mi página",
  "description": "Descripción",
  "logo_url": "https://example.com/logo.png",
  "primary_color": "#3B82F6",
  "secondary_color": "#8B5CF6",
  "welcome_message": "Bienvenido",
  "max_file_size": 10485760,
  "allowed_extensions": ["jpg", "png", "pdf"],
  "expires_at": "2024-12-31T23:59:59Z"
}

Response

json
{
  "success": true,
  "data": {
    "id": "page_123456",
    "name": "Mi página",
    "url": "https://receiveit.io/depot/abc123",
    "created_at": "2024-01-15T10:30:00Z",
    "status": "active"
  }
}
GET
/api/v1/pages

Listar páginas

Obtenga la lista de todas sus páginas de depósito

Query Parameters

text
?page=1&limit=20&status=active&search=nombre

Response

json
{
  "success": true,
  "data": {
    "pages": [
      {
        "id": "page_123456",
        "name": "Mi página",
        "url": "https://receiveit.io/depot/abc123",
        "status": "active",
        "file_count": 15,
        "created_at": "2024-01-15T10:30:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 45
    }
  }
}
GET
/api/v1/pages/{page_id}/files

Obtener archivos

Listar todos los archivos recibidos en una página

Query Parameters

text
?page=1&limit=50&sort=created_at&order=desc

Response

json
{
  "success": true,
  "data": {
    "files": [
      {
        "id": "file_789012",
        "name": "documento.pdf",
        "size": 2048576,
        "type": "application/pdf",
        "url": "https://receiveit.io/files/abc123",
        "uploaded_at": "2024-01-15T14:30:00Z",
        "uploader_ip": "192.168.1.1"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 50,
      "total": 125
    }
  }
}
03Événements temps réel

Webhooks

Reciba notificaciones en tiempo real cuando se suban archivos a sus páginas.

file.uploaded

Api.webhooks.events.fileUploaded.title

Api.webhooks.events.fileUploaded.description

page.created

Api.webhooks.events.pageCreated.title

Api.webhooks.events.pageCreated.description

file.downloaded

Api.webhooks.events.fileDownloaded.title

Api.webhooks.events.fileDownloaded.description

Example Webhook Payload

json
{
  "event": "file.uploaded",
  "timestamp": "2026-03-18T10:30:00Z",
  "data": {
    "file_id": "file_abc123",
    "page_id": "page_xyz789",
    "filename": "catalogue-print-v2.pdf",
    "size": 14857600,
    "mime_type": "application/pdf",
    "download_url": "https://cdn.receiveit.io/files/file_abc123"
  }
}
04SDK & Snippets

Ejemplos de código

Create an upload page via API in just a few lines in your preferred language.

bash
curl -X POST https://api.receiveit.io/v1/pages \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Dépôt client — Campagne Printemps",
    "description": "Déposez vos fichiers HD au format PDF ou TIFF",
    "max_file_size": 5368709120
  }'

¿Listo para empezar?

Generate your API key from the dashboard and test your first requests for free.