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

# Create a wishlist

> Creates a Private wishlist. Share it with `POST /api/v1/wishlists/{wishlistId}/share`.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/wishlists
openapi: 3.0.0
info:
  title: Onio API
  description: Read and change your Onio wishlists and wishes from your own tools.
  version: 1.2.0
  contact: {}
servers:
  - url: https://web.onio.app
security: []
tags: []
paths:
  /api/v1/wishlists:
    post:
      tags:
        - Wishlists
      summary: Create a wishlist
      description: >-
        Creates a Private wishlist. Share it with `POST
        /api/v1/wishlists/{wishlistId}/share`.
      operationId: createWishlist
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWishlist'
      responses:
        '201':
          description: The new wishlist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Wishlist'
        '400':
          description: The request body is invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 400
                message: >-
                  Invalid request body: `title`: Too small: expected string to
                  have >=1 characters
                error: Bad Request
        '401':
          description: The access token is missing, invalid or revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 401
                message: Missing or invalid access token
                error: Unauthorized
        '403':
          description: The access token lacks the `wishlists:write` scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 403
                message: Access token lacks the required scope
                error: Forbidden
        '409':
          description: Your wishlists changed during the request. Retry it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 409
                message: Your wishlists changed during the request. Try again.
                error: Conflict
        '429':
          description: Rate limit exceeded; retry after `Retry-After` seconds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 429
                message: 'ThrottlerException: Too Many Requests'
      security:
        - accessToken: []
components:
  schemas:
    CreateWishlist:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 100
          example: Birthday 2027
        occasion:
          default: other
          type: string
          enum:
            - birthday
            - christmas
            - wedding
            - baby
            - anniversary
            - graduation
            - housewarming
            - other
        notes:
          nullable: true
          type: string
          maxLength: 500
      required:
        - title
      additionalProperties: false
    Wishlist:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 3f6c1a52-8d1e-4b7a-9c2e-1f5d7a9b0c41
        title:
          type: string
          example: Birthday 2027
        occasion:
          type: string
          enum:
            - birthday
            - christmas
            - wedding
            - baby
            - anniversary
            - graduation
            - housewarming
            - other
          example: birthday
        notes:
          nullable: true
          type: string
          example: Anything green is great.
        status:
          type: string
          enum:
            - draft
            - published
            - archived
          description: >-
            The app shows `draft` as Private, `published` as Published and
            `archived` as Archived.
          example: published
        createdAt:
          type: string
          format: date-time
          example: '2026-11-02T09:15:00.000Z'
        updatedAt:
          type: string
          format: date-time
          example: '2026-11-10T18:42:00.000Z'
      required:
        - id
        - title
        - occasion
        - notes
        - status
        - createdAt
        - updatedAt
    Error:
      type: object
      properties:
        statusCode:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        message:
          type: string
        error:
          type: string
      required:
        - statusCode
        - message
  securitySchemes:
    accessToken:
      type: http
      scheme: bearer
      description: >-
        A personal access token from your Onio profile. It starts with
        `onio_pat_`.

````

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