▸ IndieLogs operation reference

sponsorships.create

Input validation and access metadata generated from the shared operation registry.

Access: Signed-in browser session required. Additional scope: —. MCP allowed: No.

Input JSON Schema

This schema is generated from the canonical Zod input schema in the shared contract package, not copied into the docs source. JSON Schema describes representable structure; runtime refinements and transforms remain enforced by the canonical parser and may not be fully represented here.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "starts_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "creative": {
      "type": "object",
      "properties": {
        "sponsor_name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "logo": {
          "type": "string",
          "maxLength": 2048,
          "format": "uri"
        },
        "headline": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "body": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500
        },
        "url": {
          "type": "string",
          "maxLength": 2048,
          "format": "uri"
        }
      },
      "required": [
        "sponsor_name",
        "logo",
        "headline",
        "body",
        "url"
      ]
    },
    "idempotency_key": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:-]{1,120}$"
    }
  },
  "required": [
    "starts_on",
    "creative",
    "idempotency_key"
  ]
}

HTTP and CLI

POST the versioned operation envelope to /api/v2/execute. Replace the placeholder with a valid input object from the schema above; this shape is not a runnable request.

{"version":1,"operation":"sponsorships.create","input":<input-object matching schema>}

CLI command shape: indielogs call sponsorships.create '<input-json>'. The placeholder is not a valid sample input.