{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/veeva/refs/heads/main/json-schema/veeva-vault-auth-response-schema.json",
  "title": "AuthResponse",
  "description": "AuthResponse schema from Veeva Vault REST API",
  "type": "object",
  "properties": {
    "responseStatus": {
      "type": "string",
      "example": "SUCCESS"
    },
    "sessionId": {
      "type": "string",
      "description": "Session ID for Authorization header"
    },
    "userId": {
      "type": "integer"
    },
    "vaultId": {
      "type": "integer"
    },
    "vaultIds": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    }
  }
}