Arasaka Oy · Schema

BatchCreateLinksResponse

CompanyShort LinksQR CodesFinland

Properties

Name Type Description
batch_id string
batch_mode string
request_id string 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.
ok_count integer
fail_count integer
results array Per-item outcomes. Join only on client_ref — never by array index.
View JSON Schema on GitHub

JSON Schema

xn-s7y-xn-3ds443g-batch-create-links-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xn-s7y-xn-3ds443g/json-schema/xn-s7y-xn-3ds443g-batch-create-links-response-schema.json",
  "title": "BatchCreateLinksResponse",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xn-s7y-xn-3ds443g-openapi.json#/components/schemas/BatchCreateLinksResponse",
  "type": "object",
  "required": [
    "batch_id",
    "batch_mode",
    "request_id",
    "ok_count",
    "fail_count",
    "results"
  ],
  "additionalProperties": false,
  "properties": {
    "batch_id": {
      "type": "string",
      "format": "uuid"
    },
    "batch_mode": {
      "type": "string",
      "const": "sync"
    },
    "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."
    },
    "ok_count": {
      "type": "integer",
      "minimum": 0
    },
    "fail_count": {
      "type": "integer",
      "minimum": 0
    },
    "results": {
      "type": "array",
      "description": "Per-item outcomes. Join only on client_ref — never by array index.",
      "items": {
        "$ref": "#/$defs/BatchCreateLinkResultItem"
      }
    }
  },
  "$defs": {
    "ActiveLinkCreated": {
      "type": "object",
      "required": [
        "id",
        "state",
        "short_url",
        "short_url_ascii",
        "destination",
        "qr_tracking_url",
        "created_at",
        "status_url",
        "request_id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Short code"
        },
        "state": {
          "type": "string",
          "const": "active"
        },
        "short_url": {
          "type": "string",
          "format": "uri",
          "description": "Unicode brand host form for humans"
        },
        "short_url_ascii": {
          "type": "string",
          "format": "uri",
          "description": "Punycode host form — prefer for machine clients"
        },
        "destination": {
          "type": "string",
          "format": "uri"
        },
        "qr_tracking_url": {
          "type": "string",
          "format": "uri",
          "description": "Tagged short URL encoded into QR images (?s=qr). Image bytes: GET /v1/links/{id}/qr (PNG default, or ?format=svg)."
        },
        "qr_url": {
          "type": "string",
          "format": "uri",
          "deprecated": true,
          "description": "Deprecated synonym of qr_tracking_url (optional in 1.4.0; prefer qr_tracking_url)"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "status_url": {
          "type": "string",
          "format": "uri",
          "description": "Absolute URL for GET /v1/links/{id}"
        },
        "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."
        }
      }
    },
    "BatchCreateLinkItemFailure": {
      "type": "object",
      "required": [
        "client_ref",
        "ok",
        "retryable",
        "problem"
      ],
      "additionalProperties": false,
      "properties": {
        "client_ref": {
          "type": "string"
        },
        "ok": {
          "type": "boolean",
          "const": false
        },
        "retryable": {
          "type": "boolean",
          "description": "true for RATE_LIMITED, INTERNAL_ERROR, IDEMPOTENCY_IN_PROGRESS; false otherwise"
        },
        "problem": {
          "$ref": "#/$defs/ProblemDetails"
        }
      }
    },
    "BatchCreateLinkItemSuccess": {
      "type": "object",
      "required": [
        "client_ref",
        "ok",
        "result"
      ],
      "additionalProperties": false,
      "properties": {
        "client_ref": {
          "type": "string"
        },
        "ok": {
          "type": "boolean",
          "const": true
        },
        "result": {
          "$ref": "#/$defs/CreateLinkResult"
        }
      }
    },
    "BatchCreateLinkResultItem": {
      "oneOf": [
        {
          "$ref": "#/$defs/BatchCreateLinkItemSuccess"
        },
        {
          "$ref": "#/$defs/BatchCreateLinkItemFailure"
        }
      ]
    },
    "CreateLinkResult": {
      "oneOf": [
        {
          "$ref": "#/$defs/ActiveLinkCreated"
        },
        {
          "$ref": "#/$defs/NonActiveLinkCreated"
        }
      ]
    },
    "NonActiveLinkCreated": {
      "type": "object",
      "required": [
        "id",
        "state",
        "created_at",
        "status_url",
        "request_id"
      ],
      "description": "Quarantined or other non-active create outcome. short_url, short_url_ascii, destination, and qr_tracking_url are omitted.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Short code"
        },
        "state": {
          "type": "string",
          "enum": [
            "quarantined",
            "disabled",
            "blocked",
            "expired"
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "status_url": {
          "type": "string",
          "format": "uri",
          "description": "Absolute URL for GET /v1/links/{id}"
        },
        "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."
        },
        "error": {
          "type": "string",
          "const": "LINK_QUARANTINED"
        },
        "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."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/xn-s7y-xn-3ds443g-batch-create-links-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.