Playable Gift Agent API

The Agent API from Playable Gift — 5 operation(s) for agent.

GitHub OpenAPI

Operations 6

GET /api/agent/catalog Read the requirements and limits for uploading your own game #
POST /api/agent/games Save your own HTML game as a free private draft, or replay the same request #
GET /api/agent/gift Read a draft's revision, preview link and status #
GET /api/agent/gift/revisions Read details of the last five private revisions #
POST /api/agent/gift/revisions Replace a draft, if expectedRevision still matches #
GET /api/agent/gift/export Export portable gift JSON with the self-contained game HTML (optional… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/playablegift-com:playablegift-com-agent-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

playablegift-com-agent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Playable Gift Agent API
  version: 0.3.0
  description: Make a small video game about one person with POST /api/make, then poll GET /api/make/{idempotencyKey} for the play link. Agents that write their own HTML game can also save, revise and export it as a free private draft.
servers:
- url: https://playablegift.com
tags:
- name: Agent
paths:
  /api/agent/catalog:
    get:
      operationId: get_gift_catalog
      summary: Read the requirements and limits for uploading your own game
      description: Read /SKILL.md for the workflow, privacy and retries.
      responses:
        '200':
          description: Success
        '400':
          description: Invalid input
        '401':
          description: Missing bearer token
        '403':
          description: Origin header missing or not allowed
        '404':
          description: Build or draft not found
        '409':
          description: Idempotency key or revision conflict
        '429':
          description: Daily allowance or traffic limit reached. Respect Retry-After.
        '503':
          description: Game making is paused for a moment
      tags:
      - Agent
  /api/agent/games:
    post:
      operationId: create_custom_game
      summary: Save your own HTML game as a free private draft, or replay the same request
      description: Read /SKILL.md for the workflow, privacy and retries.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateGift'
      responses:
        '200':
          description: Success
        '400':
          description: Invalid input
        '401':
          description: Missing bearer token
        '403':
          description: Origin header missing or not allowed
        '404':
          description: Build or draft not found
        '409':
          description: Idempotency key or revision conflict
        '429':
          description: Daily allowance or traffic limit reached. Respect Retry-After.
        '503':
          description: Game making is paused for a moment
      tags:
      - Agent
  /api/agent/gift:
    get:
      operationId: get_gift
      summary: Read a draft's revision, preview link and status
      description: Read /SKILL.md for the workflow, privacy and retries.
      security:
      - managementToken: []
      responses:
        '200':
          description: Success
        '400':
          description: Invalid input
        '401':
          description: Missing bearer token
        '403':
          description: Origin header missing or not allowed
        '404':
          description: Build or draft not found
        '409':
          description: Idempotency key or revision conflict
        '429':
          description: Daily allowance or traffic limit reached. Respect Retry-After.
        '503':
          description: Game making is paused for a moment
      tags:
      - Agent
  /api/agent/gift/revisions:
    get:
      operationId: get_gift_history
      summary: Read details of the last five private revisions
      description: Read /SKILL.md for the workflow, privacy and retries.
      security:
      - managementToken: []
      responses:
        '200':
          description: Success
        '400':
          description: Invalid input
        '401':
          description: Missing bearer token
        '403':
          description: Origin header missing or not allowed
        '404':
          description: Build or draft not found
        '409':
          description: Idempotency key or revision conflict
        '429':
          description: Daily allowance or traffic limit reached. Respect Retry-After.
        '503':
          description: Game making is paused for a moment
      tags:
      - Agent
    post:
      operationId: revise_custom_game
      summary: Replace a draft, if expectedRevision still matches
      description: Read /SKILL.md for the workflow, privacy and retries.
      security:
      - managementToken: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReviseGift'
      responses:
        '200':
          description: Success
        '400':
          description: Invalid input
        '401':
          description: Missing bearer token
        '403':
          description: Origin header missing or not allowed
        '404':
          description: Build or draft not found
        '409':
          description: Idempotency key or revision conflict
        '429':
          description: Daily allowance or traffic limit reached. Respect Retry-After.
        '503':
          description: Game making is paused for a moment
      tags:
      - Agent
  /api/agent/gift/export:
    get:
      operationId: export_gift
      summary: Export portable gift JSON with the self-contained game HTML (optional…
      description: Read /SKILL.md for the workflow, privacy and retries.
      security:
      - managementToken: []
      responses:
        '200':
          description: Success
        '400':
          description: Invalid input
        '401':
          description: Missing bearer token
        '403':
          description: Origin header missing or not allowed
        '404':
          description: Build or draft not found
        '409':
          description: Idempotency key or revision conflict
        '429':
          description: Daily allowance or traffic limit reached. Respect Retry-After.
        '503':
          description: Game making is paused for a moment
      tags:
      - Agent
components:
  schemas:
    ReviseGift:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        recipient:
          type: string
          minLength: 1
          maxLength: 60
        sender:
          type: string
          minLength: 1
          maxLength: 60
        title:
          type: string
          minLength: 1
          maxLength: 80
        concept:
          type: string
          minLength: 1
          maxLength: 2000
        occasion:
          default: just-because
          type: string
          enum:
          - birthday
          - anniversary
          - thank-you
          - just-because
        theme:
          default: sunshine
          type: string
          enum:
          - sunshine
          - midnight
          - rose
        message:
          default: ''
          type: string
          maxLength: 2000
        recipientEmail:
          default: ''
          anyOf:
          - type: string
            maxLength: 254
            format: email
            pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
          - type: string
            const: ''
        game:
          type: object
          properties:
            html:
              type: string
              minLength: 100
              maxLength: 120000
              description: Complete self-contained HTML game with inline CSS/JS and embedded assets. External dependencies, fetches, forms, popups, payments and personal-data collection are prohibited. Supported controls are canvas or DOM with keyboard and touch input. The game includes restart and clear win/lose states. Completion notification is parent.postMessage({type:'playablegift:complete'}, '*').
          required:
          - html
          additionalProperties: false
        expectedRevision:
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
      required:
      - recipient
      - sender
      - title
      - concept
      - game
      - expectedRevision
      additionalProperties: false
    CreateGift:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        recipient:
          type: string
          minLength: 1
          maxLength: 60
        sender:
          type: string
          minLength: 1
          maxLength: 60
        title:
          type: string
          minLength: 1
          maxLength: 80
        concept:
          type: string
          minLength: 1
          maxLength: 2000
        occasion:
          default: just-because
          type: string
          enum:
          - birthday
          - anniversary
          - thank-you
          - just-because
        theme:
          default: sunshine
          type: string
          enum:
          - sunshine
          - midnight
          - rose
        message:
          default: ''
          type: string
          maxLength: 2000
        recipientEmail:
          default: ''
          anyOf:
          - type: string
            maxLength: 254
            format: email
            pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
          - type: string
            const: ''
        game:
          type: object
          properties:
            html:
              type: string
              minLength: 100
              maxLength: 120000
              description: Complete self-contained HTML game with inline CSS/JS and embedded assets. External dependencies, fetches, forms, popups, payments and personal-data collection are prohibited. Supported controls are canvas or DOM with keyboard and touch input. The game includes restart and clear win/lose states. Completion notification is parent.postMessage({type:'playablegift:complete'}, '*').
          required:
          - html
          additionalProperties: false
        idempotencyKey:
          type: string
          pattern: ^[a-f0-9]{64}$
      required:
      - recipient
      - sender
      - title
      - concept
      - game
      - idempotencyKey
      additionalProperties: false
  securitySchemes:
    managementToken:
      type: http
      scheme: bearer
      description: Private 64-character management token returned only when creating a draft. Keep it out of public content.
externalDocs:
  url: https://playablegift.com/SKILL.md