Calling the A2A agent
Available bindings for A2A calls
Binding type
Endpoint
Description
Using a Textual API key
curl https://<host>/a2a \
-H "Authorization: Bearer <api_key>" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "message/send",
"params": {
"message": {
"role": "user",
"messageId": "msg-1",
"parts": [{"kind": "text", "text": "/detect John Smith lives at 123 Main St."}]
}
}
}'Using an OAuth2 access token
Authentication flow
Starting the request
Get an access code
Obtain the access token
Make the call to /a2a with the access token
Selecting the protocol version
Task lifecycle
About the response
Last updated
Was this helpful?