---
title: "play.player-achievements@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/play.player-achievements"
updated: null
---

# play.player-achievements@1 · OpenVibe.Services

HTML: [play.player-achievements@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/play.player-achievements)

# PlayPlayerAchievements `play.player-achievements@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: play
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [Games ADR-0007](/docs/adr/Games%20ADR-0007)
- Schema: [`https://openvibe.network/contracts/play/player-achievements.v1.json`](/docs/contracts/play.player-achievements.json)

One player's unlocked achievements in a title the caller manages (play.player.read), newest first.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `title` | string | yes |  | - `pattern ^[a-z0-9][a-z0-9-]{1,39}$` |
| `player` | string | yes | a person (usr\_) or a guest the title names (guest:<opaque>) | - `pattern ^(usr_[0-9A-HJKMNP-TV-Z]{26}\|guest:[A-Za-z0-9_-]{8,128})$` |
| `achievements` | array of object | yes |  | - `items: no other fields` |
| `achievements[].id` | string | yes |  | - `pattern ^[a-z0-9][a-z0-9_-]{0,63}$` |
| `achievements[].name` | string | yes |  |  |
| `achievements[].description` | string |  |  |  |
| `achievements[].unlocked_at` | string | yes |  | - `format date-time` |

## Examples

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

 Valid: basic

~~~~
{
  "title": "salvage-rush",
  "player": "usr_01JABCDEFGHJKMNPQRSTVWXYZ0",
  "achievements": [
    {
      "id": "first-haul",
      "name": "First Haul",
      "description": "Finish a round with scrap.",
      "unlocked_at": "2026-10-14T12:00:00.000Z"
    }
  ]
}
~~~~

Rejected: basic

~~~~
{
  "title": "salvage-rush",
  "player": "nobody",
  "achievements": []
}
~~~~

## Validate

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