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

# Fetch an A2A agent's Agent Card live

> Fetches the remote Agent Card now, from inside the serverless sandbox, and reports whether it differs from the stored summary. Nothing is cached or persisted, so a fixed URL or rotated credential is reflected immediately; POST /a2a-agents/{id}/sync applies a change.



## OpenAPI

````yaml https://api-trial.cognigy.ai/swagger/openapi.json get /a2a-agents/{id}/card
openapi: 3.0.3
info:
  contact:
    email: support@example.com
    name: API Support
  description: API for managing agents and related resources
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: http://swagger.io/terms/
  title: Agents API
  version: '1.0'
servers:
  - url: https://api-trial.cognigy.ai/v1
security:
  - ApiKey: []
tags:
  - name: Agents
  - name: Brand personas
  - name: Tools
  - name: Built-in tools
  - name: Skills
  - name: Built-in skills
  - name: MCP servers
  - description: >-
      Remote agents that speak the A2A (Agent2Agent) protocol. Available only
      while FEATURE_ENABLE_A2A_TOOLS is on; every route answers 404 otherwise.
    name: A2A agents
  - name: Tool references
paths:
  /a2a-agents/{id}/card:
    get:
      tags:
        - A2A agents
      summary: Fetch an A2A agent's Agent Card live
      description: >-
        Fetches the remote Agent Card now, from inside the serverless sandbox,
        and reports whether it differs from the stored summary. Nothing is
        cached or persisted, so a fixed URL or rotated credential is reflected
        immediately; POST /a2a-agents/{id}/sync applies a change.
      parameters:
        - description: A2A agent ID
          in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_a2aagents.FetchCardResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailBadRequest
          description: >-
            Invalid ID format, or the remote agent refused the request (HTTP
            401/403) — a configuration error the caller must fix, deliberately
            NOT a 502 so that no layer retries it
        '403':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailForbidden
          description: Access denied
        '404':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailNotFound
          description: A2A agent not found
        '500':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailInternalError
          description: Internal server error
        '502':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailBadGateway
          description: >-
            The remote agent could not be reached or returned an unusable Agent
            Card
components:
  schemas:
    internal_a2aagents.FetchCardResponse:
      properties:
        capabilities:
          $ref: '#/components/schemas/internal_a2aagents.CardCapabilitiesResponse'
        description:
          type: string
        drift:
          description: >-
            Drift is "changed" when the live card differs from the summary
            stored at

            the last register, address change or sync. A sync applies it.
          enum:
            - unchanged
            - changed
          example: unchanged
          type: string
        name:
          type: string
        protocolVersion:
          example: '0.3'
          type: string
        skills:
          items:
            $ref: >-
              #/components/schemas/github_com_cognigy_ai-agents-v2_internal_a2acall.AgentCardSkill
          type: array
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailBadRequest:
      properties:
        code:
          description: |-
            Code is a stable machine-readable reason, present on some 400s only
            (for example "reserved_tool_name").
          example: reserved_tool_name
          type: string
        detail:
          example: request body validation failed
          type: string
        errors:
          items:
            $ref: >-
              #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.FieldError
          type: array
        instance:
          example: /v1/{resource}
          type: string
        status:
          example: 400
          type: integer
        title:
          example: Bad Request
          type: string
        traceId:
          example: api--a4d2f126-bec4-4544-a049-7c0cf08524ed
          type: string
        type:
          example: about:blank
          type: string
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailForbidden:
      properties:
        detail:
          example: 'access denied: insufficient permissions'
          type: string
        instance:
          example: /v1/{resource}/{id}
          type: string
        status:
          example: 403
          type: integer
        title:
          example: Forbidden
          type: string
        traceId:
          example: api--a4d2f126-bec4-4544-a049-7c0cf08524ed
          type: string
        type:
          example: about:blank
          type: string
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailNotFound:
      properties:
        detail:
          example: the requested resource does not exist
          type: string
        instance:
          example: /v1/{resource}/{id}
          type: string
        status:
          example: 404
          type: integer
        title:
          example: Not Found
          type: string
        traceId:
          example: api--a4d2f126-bec4-4544-a049-7c0cf08524ed
          type: string
        type:
          example: about:blank
          type: string
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailInternalError:
      properties:
        detail:
          example: internal server error
          type: string
        instance:
          example: /v1/{resource}
          type: string
        status:
          example: 500
          type: integer
        title:
          example: Internal Server Error
          type: string
        traceId:
          example: api--a4d2f126-bec4-4544-a049-7c0cf08524ed
          type: string
        type:
          example: about:blank
          type: string
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailBadGateway:
      properties:
        detail:
          example: the MCP server did not respond
          type: string
        instance:
          example: /v1/{resource}/{id}
          type: string
        status:
          example: 502
          type: integer
        title:
          example: Bad Gateway
          type: string
        traceId:
          example: api--a4d2f126-bec4-4544-a049-7c0cf08524ed
          type: string
        type:
          example: about:blank
          type: string
      type: object
    internal_a2aagents.CardCapabilitiesResponse:
      properties:
        streaming:
          type: boolean
      type: object
    github_com_cognigy_ai-agents-v2_internal_a2acall.AgentCardSkill:
      properties:
        description:
          type: string
        examples:
          items:
            type: string
          type: array
        id:
          type: string
        name:
          type: string
        tags:
          items:
            type: string
          type: array
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.FieldError:
      properties:
        field:
          type: string
        message:
          type: string
      type: object
  securitySchemes:
    ApiKey:
      description: '[Production] API key for production authentication'
      in: header
      name: X-API-Key
      type: apiKey

````