> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gamavas.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# This game's achievements, with the player's unlocks

> Hidden achievements appear once unlocked. Needs the `progress` scope.



## OpenAPI

````yaml /api-reference/openapi.json get /pass/v1/achievements
openapi: 3.1.0
info:
  title: Gamavas Pass API
  version: 1.0.0
  summary: Sign in with Gamavas, achievements and XP, selling games, and webhooks.
  description: >-
    Games sign players in with OAuth 2.1 and PKCE (the SDKs do this for you),
    then call the game API with the player's access token. A game's server uses
    a secret key (`gmv_sk_live_…`, or `gmv_sk_test_…` for test purchases) and
    never sends it from a browser. Errors are JSON: `{ "error": "what happened"
    }`.
  contact:
    name: Gamavas developers
    url: https://docs.gamavas.fun
servers:
  - url: https://gamavas.fun/api
    description: Gamavas
security: []
tags:
  - name: Sign-in
    description: OAuth 2.1 and OpenID Connect. The SDKs do this for you.
  - name: Game
    description: Called by your game with the player's access token.
  - name: Server
    description: Called by your server with a secret key.
  - name: Webhooks
    description: Sent by Gamavas to your server.
paths:
  /pass/v1/achievements:
    get:
      tags:
        - Game
      summary: This game's achievements, with the player's unlocks
      description: Hidden achievements appear once unlocked. Needs the `progress` scope.
      responses:
        '200':
          description: The achievements.
          content:
            application/json:
              schema:
                type: object
                required:
                  - achievements
                additionalProperties: false
                properties:
                  achievements:
                    type: array
                    items:
                      $ref: '#/components/schemas/Achievement'
        '401':
          description: >-
            The access token is missing, expired or revoked: sign the player in
            again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The sign-in didn't ask for `progress`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - playerToken: []
components:
  schemas:
    Achievement:
      type: object
      required:
        - key
        - name
        - description
        - iconUrl
        - xp
        - unlocked
        - unlockedAt
      properties:
        key:
          type: string
        name:
          type: string
        description:
          type: string
        iconUrl:
          type:
            - string
            - 'null'
        xp:
          type: integer
        unlocked:
          type: boolean
        unlockedAt:
          type:
            - string
            - 'null'
    Error:
      type: object
      required:
        - error
      additionalProperties: false
      properties:
        error:
          type: string
          description: What happened, in words.
  securitySchemes:
    playerToken:
      type: http
      scheme: bearer
      description: The player's access token from sign-in.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.