---
title: "media.avatar-ingest-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/media.avatar-ingest-result"
updated: null
---

# media.avatar-ingest-result@1 · OpenVibe.Services

HTML: [media.avatar-ingest-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/media.avatar-ingest-result)

# MediaAvatarIngestResult `media.avatar-ingest-result@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: media
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/media/avatar-ingest-result.v1.json`](/docs/contracts/media.avatar-ingest-result.json)

media.avatar-ingest-result@1: the answer of POST /internal/avatar-ingest on OpenVibe.Media: { ok: true, slug, url, width, height, bytes } — the unlisted paste holding the re-encoded avatar and its public https://openvibe.media/p/<slug>/screenshot address (always a 512×512 WebP). Refusals are { ok: false, error } (400, 422).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `ok` | const | yes |  | - `= true` |
| `slug` | string | yes |  |  |
| `url` | string | yes |  |  |
| `width` | integer | yes |  | - `minimum 1` |
| `height` | integer | yes |  | - `minimum 1` |
| `bytes` | integer | yes |  | - `minimum 1` |

## Examples

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

 Valid: stored

~~~~
{
  "ok": true,
  "slug": "avatar-9f3k2",
  "url": "https://openvibe.media/p/avatar-9f3k2/screenshot",
  "width": 512,
  "height": 512,
  "bytes": 40231
}
~~~~

Rejected: not-ok

~~~~
{
  "ok": false,
  "error": "That link is not a picture"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('media.avatar-ingest-result@1', value);   // { valid, errors: [{ path, message }] }
~~~~
