{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deploy-social/json-schema/deploy-social-me-schema.json",
  "title": "Me",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deploy-social-openapi.yml#/components/schemas/Me",
  "type": "object",
  "properties": {
    "key": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The API key's id. Starts with `key_`."
        },
        "name": {
          "type": "string",
          "description": "The name you gave the key."
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "read",
              "write"
            ]
          },
          "description": "What the key can do. `write` includes `read`."
        }
      },
      "required": [
        "id",
        "name",
        "scopes"
      ],
      "additionalProperties": false
    },
    "workspace": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The workspace's id. Starts with `ws_`."
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false
    },
    "plan": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
    },
    "usage": {
      "type": "object",
      "properties": {
        "period": {
          "type": "string",
          "description": "The month the allowance counts, as YYYY-MM (UTC)."
        },
        "resets_at": {
          "type": "string",
          "description": "When the allowance starts over.",
          "format": "date-time"
        },
        "videos": {
          "type": "object",
          "properties": {
            "used": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Posts this month, of any kind."
            },
            "limit": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ],
              "description": "Posts you can make each month, of any kind. `null` means no monthly limit."
            }
          },
          "required": [
            "used",
            "limit"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "period",
        "resets_at",
        "videos"
      ],
      "additionalProperties": false
    },
    "limits": {
      "type": "object",
      "properties": {
        "requests_per_minute": {
          "type": "object",
          "properties": {
            "read": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "GET requests this key can make each minute."
            },
            "write": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Other requests this key can make each minute."
            }
          },
          "required": [
            "read",
            "write"
          ],
          "additionalProperties": false,
          "description": "Per-key limits. REST and MCP calls share them."
        },
        "api_posts_per_day": {
          "type": "object",
          "properties": {
            "limit": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Posts the API and MCP can publish or schedule each UTC day."
            },
            "used": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Posts the API and MCP have published or scheduled today."
            },
            "scope": {
              "type": "string",
              "enum": [
                "organization",
                "workspace"
              ],
              "description": "What the allowance is shared across: every workspace in your account (Standard) or this workspace alone (Studio)."
            },
            "resets_at": {
              "type": "string",
              "description": "The next midnight UTC, when `used` starts over.",
              "format": "date-time"
            }
          },
          "required": [
            "limit",
            "used",
            "scope",
            "resets_at"
          ],
          "additionalProperties": false,
          "description": "Drafts, reschedules, cancels and retries don't count, and neither does anything posted in the app."
        }
      },
      "required": [
        "requests_per_minute",
        "api_posts_per_day"
      ],
      "additionalProperties": false,
      "description": "What your plan allows through the API."
    }
  },
  "required": [
    "key",
    "workspace",
    "plan",
    "usage",
    "limits"
  ],
  "additionalProperties": false
}