> ## Documentation Index
> Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate Agent Card

> Dry-run validation of an agent card (no persistence).



## OpenAPI

````yaml /openapi/em-runtime-assets-v2.yaml post /assets/agents:validate
openapi: 3.1.0
info:
  title: em_runtime_assets
  version: 5.27.0
servers: []
security: []
paths:
  /assets/agents:validate:
    post:
      tags:
        - agents
      summary: Validate Agent Card
      description: Dry-run validation of an agent card (no persistence).
      operationId: validate_agent_card
      parameters:
        - name: X-Project-ID
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Project-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentCardPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationResult'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    AgentCardPayload:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        description:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Description
        version:
          type: string
          title: Version
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        protocolVersion:
          anyOf:
            - type: string
            - type: 'null'
          title: Protocolversion
        supportedInterfaces:
          anyOf:
            - items:
                $ref: '#/components/schemas/A2AInterface'
              type: array
            - type: 'null'
          title: Supportedinterfaces
        provider:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Provider
        capabilities:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Capabilities
        skills:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Skills
        defaultInputModes:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Defaultinputmodes
        defaultOutputModes:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Defaultoutputmodes
        securitySchemes:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Securityschemes
        security:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Security
        extensions:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Extensions
        signatures:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Signatures
      additionalProperties: true
      type: object
      required:
        - name
        - version
      title: AgentCardPayload
      description: >-
        A2A Agent Card JSON — supports both v0.3 and v1.0 formats.


        v0.3 cards have a required top-level `url` and optional
        `supportedInterfaces`.

        v1.0 cards have required `supportedInterfaces` and no top-level `url`.

        The validator ensures at least one transport declaration is present.
    ValidationResult:
      properties:
        valid:
          type: boolean
          title: Valid
        errors:
          items:
            additionalProperties:
              type: string
            type: object
          type: array
          title: Errors
          default: []
        warnings:
          items:
            additionalProperties:
              type: string
            type: object
          type: array
          title: Warnings
          default: []
      type: object
      required:
        - valid
      title: ValidationResult
      description: Response from dry-run validation endpoint.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorResponse
      description: Standard error response model.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    A2AInterface:
      properties:
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        protocolVersion:
          anyOf:
            - type: string
            - type: 'null'
          title: Protocolversion
        protocolBinding:
          anyOf:
            - type: string
            - type: 'null'
          title: Protocolbinding
        transportType:
          anyOf:
            - type: string
            - type: 'null'
          title: Transporttype
      additionalProperties: true
      type: object
      title: A2AInterface
      description: >-
        A single A2A v1.0 interface entry inside supportedInterfaces.


        Known fields are typed; unknown fields are allowed for
        forward-compatibility

        with evolving A2A spec versions.
    ErrorBody:
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          title: Message
        details:
          additionalProperties: true
          type: object
          title: Details
        request_id:
          type: string
          title: Request Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - code
        - message
        - request_id
        - timestamp
      title: ErrorBody
      description: Error body with structured details.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - INVALID_TOKEN
        - INSUFFICIENT_PERMISSIONS
        - RESOURCE_NOT_FOUND
        - RESOURCE_ALREADY_EXISTS
        - VALIDATION_ERROR
        - RATE_LIMIT_EXCEEDED
        - SERVICE_UNAVAILABLE
        - INTERNAL_ERROR
      title: ErrorCode
      description: Standard error codes for API responses.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````