# A2AClient.fromCardUrl stops working

Calls to SDK @a2a-js/sdk fromCardUrl from major 1 on Agent2Agent Protocol stopped working on July 22, 2026.

On July 22, 2026, the method fromCardUrl was removed. This change affects calls using SDK @a2a-js/sdk fromCardUrl from major 1. Requests made with this method fail since that date, as A2AClient was deprecated in favor of ClientFactory and Client.

## What to use instead

Create the client with new ClientFactory().createFromUrl(baseUrl) from @a2a-js/sdk/client and call sendMessage on it, using the v1.0 messages with one Part type and no kind field. Alternatively, pin @a2a-js/sdk below 1.

- API: Agent2Agent Protocol (a2a-protocol.org)
- Kind: Removal
- Takes effect: July 22, 2026
- Calls after that day: fail
- Calls it hits: `SDK @a2a-js/sdk fromCardUrl from major 1`
- Source: [Announcement](https://raw.githubusercontent.com/a2aproject/a2a-js/main/docs/migration-guide.md)
- Verified: November 6, 2026, against Agent2Agent Protocol's own pages
- Page: https://www.okapi.bot/providers/agent2agent-protocol/breaking-changes/a2aclient-fromcardurl-stops-working/

## Agent2Agent Protocol's words

> `A2AClient` was deprecated in v0.3 in favor of `ClientFactory` and `Client`

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
