samva-dev · Schema

AgentVersion

CompanyEmailSoftware-as-a-ServiceDevelopers

Properties

Name Type Description
agentId object
version integer
definition object
publishedAt string
View JSON Schema on GitHub

JSON Schema

samva-dev-agent-version-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/samva-dev/json-schema/samva-dev-agent-version-schema.json",
  "title": "AgentVersion",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/samva-dev-agents-api-openapi.yml#/components/schemas/AgentVersion",
  "type": "object",
  "properties": {
    "agentId": {
      "$ref": "#/$defs/AgentId"
    },
    "version": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "definition": {
      "$ref": "#/$defs/AgentDefinition"
    },
    "publishedAt": {
      "type": "string"
    }
  },
  "required": [
    "agentId",
    "version",
    "definition",
    "publishedAt"
  ],
  "additionalProperties": false,
  "$defs": {
    "AgentDefinition": {
      "type": "object",
      "properties": {
        "instructions": {
          "type": "string",
          "maxLength": 20000,
          "x-samva-string-checks": [
            {
              "id": "effect/schema/isMaxLength",
              "payload": {
                "maxLength": 20000
              }
            }
          ]
        },
        "knowledge": {
          "type": "string",
          "maxLength": 100000,
          "x-samva-string-checks": [
            {
              "id": "effect/schema/isMaxLength",
              "payload": {
                "maxLength": 100000
              }
            }
          ]
        },
        "endpointIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MailboxEndpointId"
          },
          "maxItems": 20
        },
        "integrations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentIntegrationGrant"
          },
          "maxItems": 20
        },
        "mode": {
          "$ref": "#/$defs/AgentMode"
        },
        "model": {
          "$ref": "#/$defs/AgentModel"
        },
        "workingHours": {
          "anyOf": [
            {
              "$ref": "#/$defs/WorkingHours"
            },
            {
              "type": "null"
            }
          ]
        },
        "takeoverTimeoutMinutes": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10080
        }
      },
      "required": [
        "instructions",
        "knowledge",
        "endpointIds",
        "integrations",
        "mode",
        "model",
        "workingHours",
        "takeoverTimeoutMinutes"
      ],
      "additionalProperties": false
    },
    "AgentId": {
      "type": "string",
      "pattern": "^agt_[0-9a-hjkmnp-tv-z]{16,24}$",
      "x-samva-brand": "AgentId"
    },
    "AgentIntegrationGrant": {
      "type": "object",
      "properties": {
        "integrationId": {
          "$ref": "#/$defs/IntegrationId"
        },
        "tools": {
          "$ref": "#/$defs/AgentToolScope"
        },
        "requireApproval": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.]{0,63}$"
          }
        }
      },
      "required": [
        "integrationId",
        "tools",
        "requireApproval"
      ],
      "additionalProperties": false
    },
    "AgentMode": {
      "type": "string",
      "enum": [
        "live",
        "supervised"
      ]
    },
    "AgentModel": {
      "type": "string",
      "enum": [
        "standard",
        "max"
      ]
    },
    "AgentToolScope": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "all"
              ]
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "readOnly"
              ]
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "selected"
              ]
            },
            "names": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.]{0,63}$"
              },
              "minItems": 1
            }
          },
          "required": [
            "kind",
            "names"
          ],
          "additionalProperties": false
        }
      ]
    },
    "ClockTime": {
      "type": "string",
      "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
    },
    "IntegrationId": {
      "type": "string",
      "pattern": "^intg_[0-9a-hjkmnp-tv-z]{16,24}$",
      "x-samva-brand": "IntegrationId"
    },
    "MailboxEndpointId": {
      "type": "string",
      "pattern": "^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$",
      "x-samva-brand": "MailboxEndpointId"
    },
    "TimeZone": {
      "type": "string"
    },
    "Weekday": {
      "type": "string",
      "enum": [
        "monday",
        "tuesday",
        "wednesday",
        "thursday",
        "friday",
        "saturday",
        "sunday"
      ]
    },
    "WorkingHours": {
      "type": "object",
      "properties": {
        "timeZone": {
          "$ref": "#/$defs/TimeZone"
        },
        "ranges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WorkingHoursRange"
          },
          "minItems": 1,
          "maxItems": 28
        }
      },
      "required": [
        "timeZone",
        "ranges"
      ],
      "additionalProperties": false
    },
    "WorkingHoursRange": {
      "type": "object",
      "properties": {
        "day": {
          "$ref": "#/$defs/Weekday"
        },
        "opens": {
          "$ref": "#/$defs/ClockTime"
        },
        "closes": {
          "$ref": "#/$defs/ClockTime"
        }
      },
      "required": [
        "day",
        "opens",
        "closes"
      ],
      "additionalProperties": false
    }
  }
}

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/samva-dev-agent-version"
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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.