Token Canopy · Schema

ShareCreateOut

The create/rotate response — the ONLY response carrying the plaintext secret.

Artificial IntelligenceCollaborationWorkspacePrivacyEmail

Properties

Name Type Description
id string
drive_id string
resource_type string
resource_id string
created_by object
revision string
state string
expires_at object
revoked_at object
created_at string
rotated_at object
secret object Plaintext share secret. Present only on first execution of a create or rotate; null on idempotent replay — rotate to obtain a new secret.
url object The redemption URL for this share, on the public share origin. Present exactly when `secret` is — the URL EMBEDS the secret, so it is a credential and is never returned by list or get, and never store
View JSON Schema on GitHub

JSON Schema

tokencanopy-com-share-create-out-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tokencanopy-com/json-schema/tokencanopy-com-share-create-out-schema.json",
  "title": "ShareCreateOut",
  "description": "The create/rotate response — the ONLY response carrying the plaintext\nsecret.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tokencanopy-com-openapi.json#/components/schemas/ShareCreateOut",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^shr_[a-f0-9]{16}$",
      "title": "Id"
    },
    "drive_id": {
      "type": "string",
      "pattern": "^drv_[a-f0-9]{16}$",
      "title": "Drive Id"
    },
    "resource_type": {
      "type": "string",
      "enum": [
        "artifact",
        "artifact_version",
        "folder"
      ],
      "title": "Resource Type"
    },
    "resource_id": {
      "type": "string",
      "title": "Resource Id"
    },
    "created_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created By"
    },
    "revision": {
      "type": "string",
      "pattern": "^rev_[a-f0-9]{16}$",
      "title": "Revision"
    },
    "state": {
      "type": "string",
      "enum": [
        "active",
        "revoked",
        "expired"
      ],
      "title": "State"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "revoked_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Revoked At"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "rotated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rotated At"
    },
    "secret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Secret",
      "description": "Plaintext share secret. Present only on first execution of a create or rotate; null on idempotent replay — rotate to obtain a new secret."
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Url",
      "description": "The redemption URL for this share, on the public share origin. Present exactly when `secret` is — the URL EMBEDS the secret, so it is a credential and is never returned by list or get, and never stored in the idempotency ledger. A caller cannot compose this itself: the origin is deployment configuration, not something a client can know."
    }
  },
  "type": "object",
  "required": [
    "id",
    "drive_id",
    "resource_type",
    "resource_id",
    "created_by",
    "revision",
    "state",
    "expires_at",
    "revoked_at",
    "created_at",
    "rotated_at"
  ]
}

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/tokencanopy-com-share-create-out"
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.