---
title: "network.account-export@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/network.account-export"
updated: null
---

# network.account-export@1 · OpenVibe.Services

HTML: [network.account-export@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.account-export)

# NetworkAccountExport `network.account-export@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-033](/docs/adr/ADR-033)
- Schema: [`https://openvibe.network/contracts/network/account-export.v1.json`](/docs/contracts/network.account-export.json)

network.account-export@1 (OpenVibe.Network; roadmap WS-B task 7, ADR-033): a person's data export job. POST /api/v1/account/export starts one (one open at a time, one a day) and GET /api/v1/account/export/{id} answers its state. When ready or partial, GET /api/v1/account/export/{id}/download serves the zip to the same person until expires\_at.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `export_id` | string | yes |  | - `pattern ^exp_[0-9A-HJKMNP-TV-Z]{26}$` |
| `status` | enum | yes | pending: waiting for the services' parts. ready: every expected service answered. partial: the deadline passed without some (services\[\].status missing). expired: the archive is gone (7 days). failed: the archive could not be built. | - `one of "pending", "ready", "partial", "expired", "failed"` |
| `requested_at` | string | yes |  | - `format date-time` |
| `deadline` | string | yes |  | - `format date-time` |
| `ready_at` | string |  | When the archive was built. | - `format date-time` |
| `expires_at` | string |  | The archive is deleted then (7 days after ready\_at). | - `format date-time` |
| `size_bytes` | integer |  |  | - `minimum 0` |
| `services` | array of object | yes |  | - `maxItems 64`<br>- `items: no other fields` |
| `services[].service` | string | yes |  | - `pattern ^[a-z][a-z0-9-]{1,31}$` |
| `services[].status` | enum | yes |  | - `one of "received", "waiting", "missing"` |
| `services[].files` | integer |  |  | - `minimum 0` |
| `services[].bytes` | integer |  |  | - `minimum 0` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: partial

~~~~
{
  "export_id": "exp_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "status": "partial",
  "requested_at": "2026-09-27T21:00:00.000Z",
  "deadline": "2026-09-27T21:30:00.000Z",
  "ready_at": "2026-09-27T21:30:02.000Z",
  "expires_at": "2026-10-04T21:30:02.000Z",
  "size_bytes": 48213,
  "services": [
    {
      "service": "network",
      "status": "received",
      "files": 9,
      "bytes": 30100
    },
    {
      "service": "live",
      "status": "received",
      "files": 6,
      "bytes": 18113
    },
    {
      "service": "games",
      "status": "missing"
    }
  ]
}
~~~~

Rejected: unknown-status

~~~~
{
  "export_id": "exp_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "status": "done",
  "requested_at": "2026-09-27T21:00:00.000Z",
  "deadline": "2026-09-27T21:30:00.000Z",
  "services": []
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('network.account-export@1', value);   // { valid, errors: [{ path, message }] }
~~~~
