CAIN-42 CAIN Studio

API reference · schema

CreateAttestationRequest

7 fields · used by 0 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
attestation_type requiredstring
subject_typestringdefault "deployment"
subject_id requiredstring
subject_name requiredstring
claimsarray of objectdefault []
security_levelstringdefault "unknown"
ttl_secondsinteger or null

Smallest valid example

{
  "attestation_type": "attestation-type",
  "subject_type": "deployment",
  "subject_id": "subject-id",
  "subject_name": "subject-name",
  "claims": [],
  "security_level": "unknown"
}

JSON Schema

Show the raw definition
{
  "properties": {
    "attestation_type": {
      "type": "string",
      "title": "Attestation Type"
    },
    "subject_type": {
      "type": "string",
      "title": "Subject Type",
      "default": "deployment"
    },
    "subject_id": {
      "type": "string",
      "title": "Subject Id"
    },
    "subject_name": {
      "type": "string",
      "title": "Subject Name"
    },
    "claims": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Claims",
      "default": []
    },
    "security_level": {
      "type": "string",
      "title": "Security Level",
      "default": "unknown"
    },
    "ttl_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ttl Seconds"
    }
  },
  "type": "object",
  "required": [
    "attestation_type",
    "subject_id",
    "subject_name"
  ],
  "title": "CreateAttestationRequest"
}

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 7-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem