Arasaka Oy Campaign packs API

The Campaign packs API from Arasaka Oy — 6 operation(s) for campaign packs.

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 8

POST /v1/campaign-packs Prepare campaign pack #
GET /v1/campaign-packs/{campaign_id} Get campaign pack #
DELETE /v1/campaign-packs/{campaign_id} Delete campaign pack #
POST /v1/campaign-packs/{campaign_id}/retry Retry campaign pack items #
POST /v1/campaign-setups Save reusable campaign setup #
POST /v1/campaign-setups/{setup_id}/apply Apply campaign setup #
GET /v1/campaign-setups/{setup_id} Get campaign setup #
DELETE /v1/campaign-setups/{setup_id} Delete campaign setup #

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/xn-s7y-xn-3ds443g:xn-s7y-xn-3ds443g-campaign-packs-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

xn-s7y-xn-3ds443g-campaign-packs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Xn S7y Xn 3ds443g Campaign packs API
  version: 1.7.0
  contact:
    name: 短.在线
    url: https://短.在线/security
  description: 'Operations tagged Campaign packs across 2 of this provider''s published API definitions: openapi.json, xn-s7y-xn-3ds443g-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://xn--s7y.xn--3ds443g
- url: https://短.在线
tags:
- name: Campaign packs
paths:
  /v1/campaign-packs:
    post:
      operationId: prepareCampaignPack
      tags:
      - Campaign packs
      summary: Prepare campaign pack
      description: 'Create a campaign pack from rows you supply. Assigns item_id, creates short links and QR files, and returns per-item outcomes plus artifacts. At most 10000 rows, 64 original columns, 8192 characters per field, and 1048576 bytes of items JSON. These are request limits, not a plan allowance, and not the sync batch ceiling of 100. A row may omit destination_url; that row is an exception inside the 200 response, not a rejected request. Links that are created still count toward the account monthly creation limit. Idempotency-Key is not used. Sending the same body again creates another pack unless recovery_campaign_id names a pack you own. A recovery keeps rows you do not resubmit, and items that already succeeded stay when the same item_id is sent. The response is the full pack: every row and every file. ready_to_share is true only when every row is checked and every file is present and generated. REST: API key with links:create or batches:create, or a session cookie. An OAuth access token is not a REST credential (401). MCP accepts a Bearer API key or an OAuth access token with links:create or batches:create.'
      security:
      - apiKey: []
      - sessionCookie: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignPackPrepareRequest'
      responses:
        '200':
          description: Mixed per-item outcomes. A missing or invalid destination is an exception on that row, not an error for the whole request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignPackResponse'
        '400':
          description: Malformed JSON, or items is missing or empty.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Authentication required, or the presented Bearer credential is not a REST API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Insufficient scope (needs links:create or batches:create) or CSRF rejected.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /v1/campaign-packs/{campaign_id}:
    get:
      operationId: getCampaignPack
      tags:
      - Campaign packs
      summary: Get campaign pack
      description: 'Return the full pack you own: every row, the spreadsheet, and every generated QR file. ready_to_share is true only when every row is checked and every file is present and generated. REST: API key with links:read, or a session cookie. An OAuth access token is not a REST credential (401). Another account''s pack is 404.'
      parameters:
      - name: campaign_id
        in: path
        required: true
        description: Campaign pack id returned by prepare or retry.
        schema:
          type: string
          minLength: 1
      security:
      - apiKey: []
      - sessionCookie: []
      responses:
        '200':
          description: Campaign state and artifacts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignPackResponse'
        '401':
          description: Authentication required, or the presented Bearer credential is not a REST API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Insufficient scope (needs links:read) or CSRF rejected.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: No pack with this id for the authenticated owner.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
    delete:
      operationId: deleteCampaignPack
      tags:
      - Campaign packs
      summary: Delete campaign pack
      description: 'Delete a campaign pack you own. Another account''s id is 404. REST: API key with links:create or batches:create, or a session cookie. An OAuth access token is not a REST credential (401). MCP delete_campaign_pack accepts a Bearer API key or an OAuth access token with links:create or batches:create.'
      parameters:
      - name: campaign_id
        in: path
        required: true
        description: Campaign pack id returned by prepare or retry.
        schema:
          type: string
          minLength: 1
      security:
      - apiKey: []
      - sessionCookie: []
      responses:
        '204':
          description: The pack was deleted.
        '401':
          description: Authentication required, or the presented Bearer credential is not a REST API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Insufficient scope (needs links:create or batches:create) or CSRF rejected.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: No pack with this id for the authenticated owner.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /v1/campaign-packs/{campaign_id}/retry:
    post:
      operationId: retryCampaignPack
      tags:
      - Campaign packs
      summary: Retry campaign pack items
      description: 'Retry item_id values in a pack you own and return the full pack (every row and every file), not only the retried row. The body is item ids, not replacement rows. Items that already succeeded are not recreated. Items whose exception is missing_destination, missing_label, or invalid_destination are not repaired here. Submit the corrected row with POST /v1/campaign-packs and recovery_campaign_id set to this campaign_id and the same item_id. Omit item_ids to retry failed items that are not those missing-input exceptions. ready_to_share is true only when every row is checked and every file is present and generated. Idempotency-Key is not used. REST: API key with links:create or batches:create, or a session cookie. An OAuth access token is not a REST credential (401). MCP accepts a Bearer API key or an OAuth access token with links:create or batches:create.'
      parameters:
      - name: campaign_id
        in: path
        required: true
        description: Campaign pack id to retry.
        schema:
          type: string
          minLength: 1
      security:
      - apiKey: []
      - sessionCookie: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignPackRetryRequest'
      responses:
        '200':
          description: Updated campaign state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignPackResponse'
        '401':
          description: Authentication required, or the presented Bearer credential is not a REST API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Insufficient scope (needs links:create or batches:create) or CSRF rejected.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: No pack with this id for the authenticated owner.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /v1/campaign-setups:
    post:
      operationId: saveCampaignSetup
      tags:
      - Campaign packs
      summary: Save reusable campaign setup
      description: 'Save reusable column mappings and output options. Does not create links and does not copy link identities. Setup JSON is at most 65536 bytes. At most 50 setups per account. REST: API key with links:create or batches:create, or a session cookie. An OAuth access token is not a REST credential (401). MCP accepts a Bearer API key or an OAuth access token with links:create or batches:create.'
      security:
      - apiKey: []
      - sessionCookie: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignSetupSaveRequest'
      responses:
        '201':
          description: Setup saved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignSetupResponse'
        '400':
          description: Malformed JSON, or the setup exceeds the request limit.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Authentication required, or the presented Bearer credential is not a REST API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Insufficient scope (needs links:create or batches:create) or CSRF rejected.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /v1/campaign-setups/{setup_id}/apply:
    post:
      operationId: applyCampaignSetup
      tags:
      - Campaign packs
      summary: Apply campaign setup
      description: 'Apply a saved setup to rows. mode new_campaign creates a new pack. mode recovery requires recovery_campaign_id and keeps links for item ids that already succeeded. Row limits match POST /v1/campaign-packs. Idempotency-Key is not used. REST: API key with links:create or batches:create, or a session cookie. An OAuth access token is not a REST credential (401). MCP accepts a Bearer API key or an OAuth access token with links:create or batches:create.'
      parameters:
      - name: setup_id
        in: path
        required: true
        description: Saved setup id from POST /v1/campaign-setups.
        schema:
          type: string
          minLength: 1
      security:
      - apiKey: []
      - sessionCookie: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignSetupApplyRequest'
      responses:
        '200':
          description: New campaign, or the recovered campaign when mode is recovery.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignPackResponse'
        '400':
          description: Malformed JSON, items missing or empty, or recovery_campaign_id missing when mode is recovery.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Authentication required, or the presented Bearer credential is not a REST API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Insufficient scope (needs links:create or batches:create) or CSRF rejected.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: No setup with this id for the authenticated owner, or the recovery pack was not found.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /v1/campaign-setups/{setup_id}:
    get:
      operationId: getCampaignSetup
      tags:
      - Campaign packs
      summary: Get campaign setup
      description: 'Return a saved setup you own. Another account''s id is 404. REST: API key with links:read, or a session cookie. An OAuth access token is not a REST credential (401).'
      parameters:
      - name: setup_id
        in: path
        required: true
        description: Saved setup id from POST /v1/campaign-setups.
        schema:
          type: string
          minLength: 1
      security:
      - apiKey: []
      - sessionCookie: []
      responses:
        '200':
          description: Saved setup.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignSetupResponse'
        '401':
          description: Authentication required, or the presented Bearer credential is not a REST API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Insufficient scope (needs links:read) or CSRF rejected.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: No setup with this id for the authenticated owner.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
    delete:
      operationId: deleteCampaignSetup
      tags:
      - Campaign packs
      summary: Delete campaign setup
      description: 'Delete a saved setup you own. Another account''s id is 404. REST: API key with links:create or batches:create, or a session cookie. An OAuth access token is not a REST credential (401). MCP delete_campaign_setup accepts a Bearer API key or an OAuth access token with links:create or batches:create.'
      parameters:
      - name: setup_id
        in: path
        required: true
        description: Saved setup id from POST /v1/campaign-setups.
        schema:
          type: string
          minLength: 1
      security:
      - apiKey: []
      - sessionCookie: []
      responses:
        '204':
          description: The setup was deleted.
        '401':
          description: Authentication required, or the presented Bearer credential is not a REST API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Insufficient scope (needs links:create or batches:create) or CSRF rejected.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: No setup with this id for the authenticated owner.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
components:
  schemas:
    CampaignException:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
        message:
          type: string
    ProblemDetails:
      type: object
      required:
      - type
      - title
      - status
      - detail
      - instance
      - error
      - message
      - code
      - request_id
      properties:
        type:
          type: string
          format: uri
          description: RFC 9457 type URI under /problems/{slug}
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
          description: RFC 9457 instance URI for this occurrence
        error:
          type: string
          enum:
          - INVALID_URL
          - BLOCKED_DESTINATION
          - RATE_LIMITED
          - ALIAS_TAKEN
          - RESERVED_ALIAS
          - PREMIUM_ALIAS
          - PREMIUM_ALIAS_FROZEN
          - AUTH_REQUIRED
          - LINK_QUARANTINED
          - LINK_DISABLED
          - LINK_BLOCKED
          - LINK_EXPIRED
          - LINK_NOT_FOUND
          - IDEMPOTENCY_KEY_REQUIRED
          - IDEMPOTENCY_CONFLICT
          - IDEMPOTENCY_IN_PROGRESS
          - INTERNAL_ERROR
          - VALIDATION_ERROR
          - FIELD_CONFLICT
          - EMAIL_UNVERIFIED
          - ACCOUNT_TOO_NEW
          - BATCH_TOO_LARGE
          - INSUFFICIENT_SCOPE
          - UPSTREAM_TIMEOUT
          - INVALID_BODY
          - INVALID_ARGUMENT
          - FEATURE_NOT_AVAILABLE
          - BAD_REQUEST
          - NOT_FOUND
          description: Legacy machine code (same as code)
        message:
          type: string
          description: Legacy human message (same as detail)
        code:
          type: string
          enum:
          - INVALID_URL
          - BLOCKED_DESTINATION
          - RATE_LIMITED
          - ALIAS_TAKEN
          - RESERVED_ALIAS
          - PREMIUM_ALIAS
          - PREMIUM_ALIAS_FROZEN
          - AUTH_REQUIRED
          - LINK_QUARANTINED
          - LINK_DISABLED
          - LINK_BLOCKED
          - LINK_EXPIRED
          - LINK_NOT_FOUND
          - IDEMPOTENCY_KEY_REQUIRED
          - IDEMPOTENCY_CONFLICT
          - IDEMPOTENCY_IN_PROGRESS
          - INTERNAL_ERROR
          - VALIDATION_ERROR
          - FIELD_CONFLICT
          - EMAIL_UNVERIFIED
          - ACCOUNT_TOO_NEW
          - BATCH_TOO_LARGE
          - INSUFFICIENT_SCOPE
          - UPSTREAM_TIMEOUT
          - INVALID_BODY
          - INVALID_ARGUMENT
          - FEATURE_NOT_AVAILABLE
          - BAD_REQUEST
          - NOT_FOUND
        request_id:
          type: string
          pattern: ^[A-Za-z0-9._-]{1,128}$
          maxLength: 128
          description: 'Same value as the X-Request-Id response header: the inbound X-Request-Id if it matches [A-Za-z0-9._-]{1,128}, otherwise a fresh server-generated id.'
        plans_url:
          type: string
          format: uri
          description: Absolute pricing page URL. Present on RATE_LIMITED for the verified monthly new-link cap when the plan is not Business, on PREMIUM_ALIAS when the response offers an upgrade, and on FEATURE_NOT_AVAILABLE when a free plan asks for a 30-day or 90-day click window. The same URL remains in message. Absent on the Business monthly cap, on burst limits, and on other errors.
        aliases:
          type: array
          items:
            type: string
          description: Older codes for the same failure. Match code, or any alias. error and code stay equal to the current code. INVALID_BODY on POST /v1/links lists INVALID_URL. INVALID_BODY on batch and PATCH lists VALIDATION_ERROR. INVALID_ARGUMENT lists VALIDATION_ERROR and INVALID_ARGUMENTS. An unsigned MCP tools/call lists invalid_token.
        accepted:
          type: array
          items:
            type: string
          description: Parameter names accepted by an MCP tool. Present on INVALID_ARGUMENT.
    CampaignPackOptions:
      type: object
      additionalProperties: false
      properties:
        png_size:
          type: integer
          enum:
          - 256
          - 512
          - 1024
        qr_format:
          type: string
          enum:
          - png
          - svg
        preferred_language:
          type: string
          maxLength: 8192
        setup_id:
          type: string
          minLength: 1
    CampaignPackItemInput:
      type: object
      description: One supplied row. destination_url is optional. An omitted or empty destination is an exception row, not a schema error. Additional string columns are kept in the order they appear.
      properties:
        destination_url:
          type: string
          maxLength: 8192
          description: HTTP or HTTPS destination. Omit or leave empty to record a missing-destination exception.
        label:
          type: string
          maxLength: 8192
        language:
          type: string
          maxLength: 8192
        item_id:
          type: string
          maxLength: 8192
          description: Optional stable id. The server assigns one when this is omitted.
      additionalProperties:
        type: string
        maxLength: 8192
    CampaignQrFile:
      type: object
      required:
      - filename
      - item_id
      - mime_type
      - bytes_base64
      properties:
        filename:
          type: string
        alias_filename:
          type: string
        item_id:
          type: string
        mime_type:
          type: string
        bytes_base64:
          type: string
        uri:
          type: string
          description: Present on the MCP result. REST omits it. MCP resource uri for this QR file. Read it with resources/read.
        svg_uri:
          type: string
          description: Present on the MCP result. REST omits it. Text resource uri for the same QR as SVG (image/svg+xml). For a PNG file the name is that filename with .svg. Read it with resources/read to save the QR.
    CampaignSetupSaveRequest:
      type: object
      properties:
        column_mappings:
          $ref: '#/components/schemas/CampaignColumnMappings'
        naming_convention:
          type: string
          maxLength: 8192
        output_format:
          $ref: '#/components/schemas/CampaignPackOptions'
        preferred_language:
          type: string
          maxLength: 8192
    CampaignPackResponse:
      type: object
      required:
      - campaign_id
      - ready_to_share
      - request_id
      - items
      - artifacts
      properties:
        ok:
          type: boolean
          const: true
          description: Present on the MCP result. REST omits it.
        campaign_id:
          type: string
        ready_to_share:
          type: boolean
          description: True only when every row is checked and every file is present and generated. False while any row or file is still missing.
        request_id:
          type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/CampaignPackItemResult'
        artifacts:
          $ref: '#/components/schemas/CampaignPackArtifacts'
    CampaignCheck:
      type: object
      required:
      - check
      - passed
      properties:
        check:
          type: string
        passed:
          type:
          - boolean
          - 'null'
        detail:
          type: string
    CampaignChanged:
      type: object
      required:
      - changed
      properties:
        changed:
          type: boolean
        fields:
          type: array
          items:
            type: string
        baseline:
          type: string
          enum:
          - first_version
          description: Present when this campaign has no earlier pack for this item_id.
    CampaignPackRetryRequest:
      type: object
      description: Item ids only. Do not send replacement rows or destination fields.
      properties:
        item_ids:
          type: array
          maxItems: 10000
          items:
            type: string
            minLength: 1
            maxLength: 8192
    CampaignColumnMappings:
      type: object
      properties:
        destination_column:
          type: string
          maxLength: 8192
        label_column:
          type: string
          maxLength: 8192
        retain_columns:
          type: array
          maxItems: 64
          items:
            type: string
            maxLength: 8192
    CampaignPackPrepareRequest:
      type: object
      required:
      - items
      properties:
        items:
          type: array
          minItems: 1
          maxItems: 10000
          description: At most 10000 rows and 1048576 bytes. Not a plan allowance. Not the sync batch ceiling of 100.
          items:
            $ref: '#/components/schemas/CampaignPackItemInput'
        options:
          $ref: '#/components/schemas/CampaignPackOptions'
        recovery_campaign_id:
          type: string
          minLength: 1
          description: Existing pack you own. Items that already succeeded are kept when the same item_id is sent.
      example:
        items:
        - label: Saturday workshop
          destination_url: https://example.com/workshop
        - label: Venue map
    CampaignSetupRecord:
      type: object
      required:
      - setup_id
      - user_id
      - created_at
      properties:
        setup_id:
          type: string
        user_id:
          type: string
        column_mappings:
          $ref: '#/components/schemas/CampaignColumnMappings'
        naming_convention:
          type: string
        output_format:
          type: object
          additionalProperties: true
        preferred_language:
          type: string
        created_at:
          type: string
    CampaignSetupApplyRequest:
      type: object
      required:
      - items
      properties:
        items:
          type: array
          minItems: 1
          maxItems: 10000
          items:
            $ref: '#/components/schemas/CampaignPackItemInput'
        mode:
          type: string
          enum:
          - new_campaign
          - recovery
        recovery_campaign_id:
          type: string
          minLength: 1
          description: Required when mode is recovery.
    CampaignPackArtifacts:
      type: object
      required:
      - spreadsheet_csv
      - spreadsheet_notice
      - index_markdown
      - exception_list_markdown
      - ownership_instructions_slot_markdown
      - qr_files
      properties:
        spreadsheet_csv:
          type: string
          description: Original columns in first-seen input order, then item_id, returned_url, qr_filename, check_status, exception_code, exception_note, changed_since_previous. check_status is a customer label (matched to your approved list, or Needs your attention), not the machine enum.
        spreadsheet_notice:
          type: object
          required:
          - en
          - zh-CN
          properties:
            en:
              type: string
            zh-CN:
              type: string
          additionalProperties: false
        index_markdown:
          type: string
        exception_list_markdown:
          type: string
          description: Headed “Needs your attention · 需要你处理”.
        ownership_instructions_slot_markdown:
          type: string
        qr_files:
          type: array
          items:
            $ref: '#/components/schemas/CampaignQrFile'
    CampaignPackItemResult:
      type: object
      required:
      - item_id
      - status
      - checks
      - changed_since_previous
      properties:
        item_id:
          type: string
        status:
          type: string
          description: 'Machine status: pending, checked, exception, or failed. The spreadsheet does not repeat the bare word checked.'
          enum:
          - pending
          - checked
          - exception
          - failed
        checks:
          type: array
          items:
            $ref: '#/components/schemas/CampaignCheck'
        changed_since_previous:
          $ref: '#/components/schemas/CampaignChanged'
        returned_url:
          type: string
        short_url_ascii:
          type: string
        short_url_unicode:
          type: string
        qr_tracking_url:
          type: string
        qr_filename:
          type: string
        qr_filename_alias:
          type: string
        qr_revision:
          type: integer
        exception:
          $ref: '#/components/schemas/CampaignException'
    CampaignSetupResponse:
      type: object
      required:
      - ok
      - request_id
      - setup_id
      - setup
      properties:
        ok:
          type: boolean
          const: true
        request_id:
          type: string
        setup_id:
          type: string
        setup:
          $ref: '#/components/schemas/CampaignSetupRecord'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: cookie
      name: duan_session
      description: Session cookie `duan_session` for the web app. Accepted on owner REST list, update, enable, and QR, and as optional account auth on REST create and batch. Required for POST /api/oauth/consent. Does not authorize POST /mcp. Not a public /v1 login route. Anonymous create does not require this cookie.
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: APIKey
      description: 'Bearer API key (`Authorization: Bearer <key>`). Dashboard-minted scoped keys with `links:create`, `links:read`, `links:update`, `links:disable`, `analytics:read`, `batches:create`. Not a god-key / `*`. Not an OAuth access token. Accepted on REST `/v1` and on `POST /mcp`. A presented Bearer that does not verify is 401 and is not anonymous access. Missing scope → 403 INSUFFICIENT_SCOPE. Anonymous REST create remains available when the Authorization header is absent.'
    oauth2:
      type: oauth2
      description: 'Authorization code + PKCE S256 for a public client (no client secret). Token endpoint auth method is `none`. Flows are authorization code and refresh only: no client-credentials grant, no implicit grant, and no device code. An omitted scope grants `links:read` only. `links:disable` is granted only when explicitly requested. `analytics:read` is granted only when explicitly requested. Access tokens are sent as `Authorization: Bearer` on `POST /mcp` only and are bound to the canonical MCP resource. REST `/v1` does not accept them.'
      flows:
        authorizationCode:
          authorizationUrl: https://xn--s7y.xn--3ds443g/oauth/authorize
          tokenUrl: https://xn--s7y.xn--3ds443g/oauth/token
          refreshUrl: https://xn--s7y.xn--3ds443g/oauth/token
          scopes:
            links:create: Create short links
            links:read: Read links you own
            links:update: Update links you own
            links:disable: Disable links you own
            analytics:read: Read aggregate click statistics for your links
            batches:create: Create a sync batch of short links
x-refined-from:
- openapi.json
- xn-s7y-xn-3ds443g-openapi.json
x-provenance:
  method: harvested
  publisher: Arasaka Oy
  source: https://xn--s7y.xn--3ds443g/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)