{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swiftsign-ca/json-schema/swiftsign-ca-signup-result-schema.json",
  "title": "SignupResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/swiftsign-ca-api-openapi.json#/components/schemas/SignupResult",
  "type": "object",
  "properties": {
    "api_key": {
      "type": "string",
      "description": "The plaintext secret — shown once, never again."
    },
    "mode": {
      "type": "string",
      "enum": [
        "test",
        "live"
      ]
    },
    "key": {
      "$ref": "#/$defs/ApiKeyView"
    },
    "message": {
      "type": "string"
    },
    "verify_url": {
      "type": "string",
      "format": "uri"
    },
    "docs_url": {
      "type": "string",
      "format": "uri"
    },
    "terms_url": {
      "type": "string",
      "format": "uri"
    },
    "privacy_url": {
      "type": "string",
      "format": "uri"
    }
  },
  "required": [
    "api_key",
    "mode",
    "key",
    "message",
    "verify_url",
    "docs_url",
    "terms_url",
    "privacy_url"
  ],
  "$defs": {
    "ApiKeyView": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "mode": {
          "type": "string",
          "enum": [
            "TEST",
            "LIVE"
          ]
        },
        "prefix": {
          "type": "string"
        },
        "last4": {
          "type": "string"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "createdAt": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "mode",
        "prefix",
        "last4",
        "scopes",
        "createdAt"
      ]
    }
  }
}