OK Capsule Pack Builder Client Products API

The Pack Builder Client Products API from OK Capsule — 3 operation(s) for pack builder client products.

Operations 4

POST /v2/pack-builders/{id}/bulk-add-products Add multiple client products to pack builder #
POST /v2/pack-builders/{id}/products Add a client product to pack builder #
GET /v2/pack-builders/{id}/products Retrieves a pack builders client products #
DELETE /v2/pack-builders/{id}/products/{productId} Delete a pack builder client product #

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/ok-capsule-pack-builder-client-products-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

ok-capsule-pack-builder-client-products-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: '## Overview


    The OK Capsule API enables you to programmatically create supplement orders, manage consumers, and track shipments.'
  version: 2.0.0
  title: OKC core API V2 Pack Builder Client Products API
  contact:
    name: Engineering Department, OKCapsule
    email: lukas@okcapsule.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- description: Production environment
  url: https://na1-prod.okcapsule.app
- description: Stage/Testing environment
  url: https://na1-stage.okcapsule.app
tags:
- name: Pack Builder Client Products
paths:
  /v2/pack-builders/{id}/bulk-add-products:
    post:
      tags:
      - Pack Builder Client Products
      security:
      - bearerAuth: []
      summary: Add multiple client products to pack builder
      operationId: createMultiplePackBuilderProduct
      description: Add multiple Client Products to Pack Builder.
      parameters:
      - $ref: '#/components/parameters/IdParameter'
      - in: query
        name: q
        description: For internal users only. Use Query DSL *query_string* syntax to send client id.
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - client_product_ids
              description: Add multiple products to a pack builder in bulk
              properties:
                client_product_ids:
                  type: array
                  description: Array of client product IDs to add
                  items:
                    type: string
                    format: uuid
                  example:
                  - 3ab920e6-9d59-4f33-aea0-5045f726dafb
                  - e640d058-ecda-4f48-ba2f-c0a59804f36f
                  - a1b2c3d4-e5f6-7890-abcd-ef1234567890
              example:
                client_product_ids:
                - 3ab920e6-9d59-4f33-aea0-5045f726dafb
                - e640d058-ecda-4f48-ba2f-c0a59804f36f
              x-examples:
                single-product:
                  summary: Add single product
                  value:
                    client_product_ids:
                    - 3ab920e6-9d59-4f33-aea0-5045f726dafb
                multiple-products:
                  summary: Add multiple products
                  value:
                    client_product_ids:
                    - 3ab920e6-9d59-4f33-aea0-5045f726dafb
                    - e640d058-ecda-4f48-ba2f-c0a59804f36f
                    - a1b2c3d4-e5f6-7890-abcd-ef1234567890
            examples:
              PackBuilderMultipleAddProductsSample:
                $ref: '#/components/examples/PackBuilderMultipleAddProductsSample'
              PackBuilderMultipleAddSingleProductSample:
                $ref: '#/components/examples/PackBuilderMultipleAddSingleProductSample'
      responses:
        '201':
          description: Returns an added SyncProcess object.
          content:
            application/json:
              schema:
                type: object
                $ref: '#/components/schemas/SyncProcessResponse'
        '422':
          $ref: '#/components/responses/422ValidationError'
        default:
          $ref: '#/components/responses/UnknownError'
  /v2/pack-builders/{id}/products:
    post:
      tags:
      - Pack Builder Client Products
      security:
      - bearerAuth: []
      summary: Add a client product to pack builder
      operationId: createPackBuilderProduct
      description: Add a Client Product to Pack Builder.
      parameters:
      - $ref: '#/components/parameters/IdParameter'
      - in: query
        name: q
        description: For internal users only. Use Query DSL *query_string* syntax to send client id.
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - client_product_id
              description: Add a single product to a pack builder
              properties:
                client_product_id:
                  type: string
                  format: uuid
                  description: ID of the client product to add
                  example: 3ab920e6-9d59-4f33-aea0-5045f726dafb
              example:
                client_product_id: 3ab920e6-9d59-4f33-aea0-5045f726dafb
            examples:
              PackBuilderProductSample:
                $ref: '#/components/examples/PackBuilderProductSample'
      responses:
        '201':
          description: Returns an added PackBuilderProduct object.
          content:
            application/json:
              schema:
                type: object
                properties:
                  pack_builder_product:
                    $ref: '#/components/schemas/PackBuilderProduct'
        '422':
          $ref: '#/components/responses/422ValidationError'
        default:
          $ref: '#/components/responses/UnknownError'
    get:
      tags:
      - Pack Builder Client Products
      security:
      - bearerAuth: []
      summary: Retrieves a pack builders client products
      operationId: listPackBuildersProducts
      description: Retrieves a pack builder client products.
      parameters:
      - $ref: '#/components/parameters/IdParameter'
      responses:
        '200':
          description: Search results matching criteria
          content:
            application/json:
              schema:
                type: object
                required:
                - pack_builder_products
                properties:
                  pack_builder_products:
                    type: array
                    items:
                      $ref: '#/components/schemas/PackBuilderProduct'
        default:
          $ref: '#/components/responses/UnknownError'
  /v2/pack-builders/{id}/products/{productId}:
    delete:
      tags:
      - Pack Builder Client Products
      security:
      - bearerAuth: []
      summary: Delete a pack builder client product
      operationId: deletePackBuilderProduct
      description: Delete a client product from a pack builder.
      parameters:
      - $ref: '#/components/parameters/IdParameter'
      - in: path
        name: productId
        required: true
        schema:
          type: string
          minimum: 1
      - in: query
        name: q
        description: For internal users only. Use Query DSL *query_string* syntax to send client id.
        schema:
          type: string
      responses:
        '204':
          $ref: '#/components/responses/204ConfirmDeletion'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error response.
components:
  schemas:
    ErrorModel:
      title: Error Model
      description: An error response from the OK Capsule API
      type: object
      properties:
        error:
          title: Error Model Content
          type: object
          description: Error details object
          required:
          - message
          properties:
            errorCode:
              description: For some errors that could be handled programmatically, a short string indicating the error code.
              maxLength: 5000
              type: string
              example: RESOURCE_NOT_FOUND
            message:
              description: A human-readable message providing more details about the error.
              maxLength: 40000
              type: string
              example: The requested resource was not found
        message:
          description: Top-level error message (present in some error responses)
          type: string
          example: Internal Server Error
      required:
      - error
    PackBuilderProduct:
      allOf:
      - type: object
        required:
        - pack_builder_id
        - client_product_id
        - client_product
        properties:
          pack_builder_id:
            type: string
            format: uuid
            example: a0d671e2-591a-42ce-b336-df256262b0d2
          client_product_id:
            type: string
            format: uuid
            example: 3ab920e6-9d59-4f33-aea0-5045f726dafb
          client_product:
            type: object
            required:
            - id
            - product_line_id
            - name
            - product_name
            properties:
              id:
                type: string
                format: uuid
                example: 3ab920e6-9d59-4f33-aea0-5045f726dafb
              product_line_id:
                type: string
                format: uuid
                example: 3ab920e6-9d59-4f33-aea0-5045f726dafb
              name:
                type: string
                example: SP-0084
              product_name:
                type: string
                example: Vegan Women's pack (energy+joint)
    SyncProcessResponse:
      allOf:
      - type: object
        properties:
          sync_process_id:
            type: string
            format: uuid
            example: a390f1ab-6c54-4b01-90e6-d701748f1837
  examples:
    PackBuilderMultipleAddSingleProductSample:
      summary: Add single client product.
      value:
        client_product_ids:
        - d290f1ee-6c54-4b01-90e6-d701748f0851
    PackBuilderMultipleAddProductsSample:
      summary: Add multiple client products.
      value:
        client_product_ids:
        - d290f1ee-6c54-4b01-90e6-d701748f0851
        - e640d058-ecda-4f48-ba2f-c0a59804f36f
        - a390f1ab-6c54-4b01-90e6-d701748f1837
    PackBuilderProductSample:
      summary: Create pack builder client product.
      value:
        client_product_id: 6d28a691-1d4c-48fb-8c18-23e3557b1e05
  responses:
    UnknownError:
      description: Error response.
      content:
        application/json:
          schema:
            title: Error Model
            description: An error response from the OK Capsule API
            type: object
            properties:
              error:
                title: Error Model Content
                type: object
                description: Error details object
                required:
                - message
                properties:
                  errorCode:
                    description: For some errors that could be handled programmatically, a short string indicating the error code.
                    maxLength: 5000
                    type: string
                    example: RESOURCE_NOT_FOUND
                  message:
                    description: A human-readable message providing more details about the error.
                    maxLength: 40000
                    type: string
                    example: The requested resource was not found
              message:
                description: Top-level error message (present in some error responses)
                type: string
                example: Internal Server Error
            required:
            - error
    422ValidationError:
      description: Validation error response.
      content:
        application/json:
          schema:
            type: object
            title: Validation Error
            required:
            - message
            - errors
            description: A validation error response from the OK Capsule API (Joi validation)
            properties:
              message:
                description: A human-readable message indicating a validation error occurred.
                maxLength: 40000
                type: string
                example: Validation error
              errors:
                description: An array of validation errors from Joi schema validation
                type: array
                items:
                  type: object
                  required:
                  - message
                  - type
                  properties:
                    message:
                      description: A human-readable message providing more details about the validation error.
                      type: string
                      example: '''business_name'' is required'
                    type:
                      description: The Joi validation type that failed.
                      type: string
                      example: any.required
    204ConfirmDeletion:
      description: Confirms resource deletion.
  parameters:
    IdParameter:
      in: path
      name: id
      required: true
      schema:
        type: string
        minimum: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT