zSign Admin Promo Codes API

The admin-promo-codes API from zSign — 2 operation(s) for admin-promo-codes.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 4

GET /api/admin/promo-codes List Promo Codes #
POST /api/admin/promo-codes Create Promo Codes #
GET /api/admin/promo-codes/{code} Get Promo Code #
PATCH /api/admin/promo-codes/{code} Set Promo Code Active #

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/zsign-io:zsign-io-admin-promo-codes-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

zsign-io-admin-promo-codes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: zSign Admin Promo Codes API
  description: Document Processing and Signing Sessions API
  version: 1.0.0
tags:
- name: admin-promo-codes
paths:
  /api/admin/promo-codes:
    get:
      tags:
      - admin-promo-codes
      summary: List Promo Codes
      operationId: list_promo_codes_api_admin_promo_codes_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
    post:
      tags:
      - admin-promo-codes
      summary: Create Promo Codes
      operationId: create_promo_codes_api_admin_promo_codes_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePromoCodesRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/admin/promo-codes/{code}:
    get:
      tags:
      - admin-promo-codes
      summary: Get Promo Code
      description: 'Single-code validity check. require_admin, not require_admin_operator:

        this is a read the MCP admin tools proxy (admin_tools.admin_check_promo_code),

        and its whole job is answering "does this code exist and would it redeem

        now" -- exactly the information redeem() deliberately hides. Operators

        need it; arbitrary redeemers do not get it.'
      operationId: get_promo_code_api_admin_promo_codes__code__get
      security:
      - HTTPBearer: []
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
          title: Code
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - admin-promo-codes
      summary: Set Promo Code Active
      operationId: set_promo_code_active_api_admin_promo_codes__code__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
          title: Code
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromoCodePatchRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CreatePromoCodesRequest:
      properties:
        mode:
          type: string
          enum:
          - shared
          - batch
          title: Mode
        code:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: Code
        count:
          anyOf:
          - type: integer
            maximum: 500.0
            minimum: 1.0
          - type: 'null'
          title: Count
        campaign:
          type: string
          maxLength: 64
          minLength: 1
          title: Campaign
        batch:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: Batch
        credits:
          type: integer
          maximum: 250.0
          minimum: 1.0
          title: Credits
        max_redemptions:
          anyOf:
          - type: integer
            maximum: 10000.0
            minimum: 1.0
          - type: 'null'
          title: Max Redemptions
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
      type: object
      required:
      - mode
      - campaign
      - credits
      title: CreatePromoCodesRequest
      description: 'Two shapes in one body:


        mode "shared": one code, `max_redemptions` claims. `code` optional --

        blank mints a ZS-XXXX-XXXX like a batch code.

        mode "batch":  `count` single-use codes (cap 1 each), auto-generated.'
    PromoCodePatchRequest:
      properties:
        active:
          type: boolean
          title: Active
      type: object
      required:
      - active
      title: PromoCodePatchRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer