Appearance
A2A server API ​
Every operation the A2A server answers, on both bindings, rendered from a2a-server.openapi.json (OpenAPI 3.1) at build time. How a client uses them (follow-ups, push notifications, the streams, the extended card) is in the A2A server reference.
A durable AI agent: a task in, a verified pull request out.
An A2A 1.0 agent. Two bindings answer at the same base URL and go through the same handler: JSON-RPC (POST /, the method in the body) and HTTP+JSON (POST /message:send, GET /tasks/{id}, ...). Every call needs a bearer token: press Authorize and paste one. This page and the document are public; the calls are not.
Push notifications: off. Extended agent card: off. Streaming calls answer text/event-stream, which Swagger UI cannot show as it arrives: their descriptions give the curl to use.
Servers
.This server, at the address this document was read from
Call a JSON-RPC method
POST
/
One endpoint for every A2A 1.0 method: pick one in Examples.
SendMessage(params:SendMessageRequest): Send a message;result:SendMessageResponse.SendStreamingMessage(params:SendMessageRequest): Send a message and stream the task; each event'sresult:StreamResponse.GetTask(params:GetTaskRequest): Get a task;result:Task.ListTasks(params:ListTasksRequest): List the caller's tasks;result:ListTasksResponse.CancelTask(params:CancelTaskRequest): Cancel a task;result:Task.SubscribeToTask(params:SubscribeToTaskRequest): Stream a task's updates; each event'sresult:StreamResponse.CreateTaskPushNotificationConfig(params:TaskPushNotificationConfig): Register a webhook for a task;result:TaskPushNotificationConfig.GetTaskPushNotificationConfig(params:GetTaskPushNotificationConfigRequest): Get a webhook of a task;result:TaskPushNotificationConfig.ListTaskPushNotificationConfigs(params:ListTaskPushNotificationConfigsRequest): List the webhooks of a task;result:ListTaskPushNotificationConfigsResponse.DeleteTaskPushNotificationConfig(params:DeleteTaskPushNotificationConfigRequest): Remove a webhook of a task;result: empty.GetExtendedAgentCard(params:GetExtendedAgentCardRequest): Get the extended agent card;result:AgentCard.
Errors come back as HTTP 200 with a JSON-RPC error object, A2A's codes (-32001 task not found, ...). SendStreamingMessage and SubscribeToTask answer text/event-stream, which Swagger UI cannot show as it arrives: the examples give the curl.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Request Body
application/json
Cancels a task that has not finished; a finished one is TaskNotCancelable.
JSON "id": 1, "jsonrpc": "2.0", "method": "CancelTask", "params": { "id": "replace-with-a-task-id" }
{
}
Responses
A JSON-RPC response (result or error), or, for a streaming method, Server-Sent Events whose data lines are JSON-RPC responses with a StreamResponse result.
JSON
"string"
POST
/
Samples
The public agent card
GET
/.well-known/agent-card.json
Responses
The card: the interfaces (JSON-RPC first, then HTTP+JSON, at the same URL), skills, extensions and security schemes.
application/json
JSON "capabilities": { }, "defaultInputModes": [ "string" ], "defaultOutputModes": [ "string" ], "description": "string", "name": "string", "securityRequirements": [ ], "securitySchemes": { }, "signatures": [ ], "skills": [ { } ], "supportedInterfaces": [ { "protocolBinding": "JSONRPC", "protocolVersion": "string", "tenant": "string", "url": "string" } ], "version": "string"
{
}
GET
/.well-known/agent-card.json
Samples
Deprecated
Get the extended agent card
GET
/agent-card/extended
An alias of an earlier draft that the SDK still answers: use GET /extendedAgentCard instead.
What an authenticated caller sees on top of the public card. The extended card is off on this server; when off, this answers UnsupportedOperation.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Responses
The result.
application/json
JSON "capabilities": { }, "defaultInputModes": [ "string" ], "defaultOutputModes": [ "string" ], "description": "string", "name": "string", "securityRequirements": [ ], "securitySchemes": { }, "signatures": [ ], "skills": [ { } ], "supportedInterfaces": [ { "protocolBinding": "JSONRPC", "protocolVersion": "string", "tenant": "string", "url": "string" } ], "version": "string"
{
}
GET
/agent-card/extended
Samples
Deprecated
Send a message
POST
/message/send
An alias of an earlier draft that the SDK still answers: use POST /message:send instead.
Starts a task, or continues one (message.taskId). The example sets configuration.returnImmediately, so the task comes back at once: poll it with GetTask. Without it the call waits until the task finishes or needs input. The messageId identifies the message: sending the same one again is a retry and gives the same task, so change it for a new message.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Request Body
JSON "configuration": { "acceptedOutputModes": [ "string" ], "historyLength": 0, "returnImmediately": true, "taskPushNotificationConfig": { "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string" } }, "message": { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" }, "metadata": { "additionalProperties": "string" }, "tenant": "string"
{
}
Responses
The result.
application/json
JSON "task": { "artifacts": [ { "artifactId": "string", "description": "string", "extensions": [ "string" ], "metadata": { "additionalProperties": "string" }, "name": "string", "parts": [ { } ] } ], "contextId": "string", "history": [ { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" } ], "id": "string", "metadata": { "additionalProperties": "string" }, "status": { "message": { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" }, "state": "TASK_STATE_SUBMITTED", "timestamp": "2024-01-01T00:00:00Z" } }
{
}
POST
/message/send
Samples
Deprecated
Send a message and stream the task
POST
/message/stream
An alias of an earlier draft that the SDK still answers: use POST /message:stream instead.
Like SendMessage, answered with Server-Sent Events: the task, then its status and artifact updates, until it finishes or needs input.
Swagger UI cannot show a stream as it arrives: it waits for the whole response, which ends only when the task finishes or needs input. Use curl instead ($A2A_TOKEN holds a bearer token; the URL is the card's):
curl -N -X POST -H "Authorization: Bearer $A2A_TOKEN" -H 'Content-Type: application/json' --data '{"message":{"messageId":"swagger-1","parts":[{"text":"Hello"}],"role":"ROLE_USER"}}' http://localhost:8080/message/stream
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Request Body
JSON "configuration": { "acceptedOutputModes": [ "string" ], "historyLength": 0, "returnImmediately": true, "taskPushNotificationConfig": { "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string" } }, "message": { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" }, "metadata": { "additionalProperties": "string" }, "tenant": "string"
{
}
Responses
Server-Sent Events: each data line is a StreamResponse (A2A 1.0 §11.7).
text/event-stream
JSON
"string"
POST
/message/stream
Samples
Deprecated
Cancel a task
POST
/tasks/{id}/cancel
An alias of an earlier draft that the SDK still answers: use POST /tasks/{id}:cancel instead.
Cancels a task that has not finished; a finished one is TaskNotCancelable.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Responses
The result.
application/json
JSON "artifacts": [ { "artifactId": "string", "description": "string", "extensions": [ "string" ], "metadata": { "additionalProperties": "string" }, "name": "string", "parts": [ { } ] } ], "contextId": "string", "history": [ { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" } ], "id": "string", "metadata": { "additionalProperties": "string" }, "status": { "message": { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" }, "state": "TASK_STATE_SUBMITTED", "timestamp": "2024-01-01T00:00:00Z" }
{
}
POST
/tasks/{id}/cancel
Samples
Deprecated
List the webhooks of a task
GET
/tasks/{id}/push-configs
An alias of an earlier draft that the SDK still answers: use GET /tasks/{id}/pushNotificationConfigs instead.
Without token and credentials. Push notifications are off on this server (the card's capabilities.pushNotifications); when off, this answers PushNotificationNotSupported.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Query Parameters
pageSize
Configs per page.
Type
integer
Format
"int32"Maximum
100Minimum
1pageToken
The nextPageToken of the page before.
Type
string
Responses
The result.
application/json
JSON "configs": [ { "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string" } ], "nextPageToken": "string"
{
}
GET
/tasks/{id}/push-configs
Samples
Deprecated
Register a webhook for a task
POST
/tasks/{id}/push-configs
An alias of an earlier draft that the SDK still answers: use POST /tasks/{id}/pushNotificationConfigs instead.
The deployment's policy decides which webhooks are allowed. token and authentication.credentials are write-only: no answer returns them. Push notifications are off on this server (the card's capabilities.pushNotifications); when off, this answers PushNotificationNotSupported.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Request Body
JSON "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string"
{
}
Responses
The result.
application/json
JSON "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string"
{
}
POST
/tasks/{id}/push-configs
Samples
Deprecated
Get a webhook of a task
GET
/tasks/{id}/push-configs/{configId}
An alias of an earlier draft that the SDK still answers: use GET /tasks/{id}/pushNotificationConfigs/{configId} instead.
Without token and credentials. Push notifications are off on this server (the card's capabilities.pushNotifications); when off, this answers PushNotificationNotSupported.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
configId*
The webhook config's id.
Type
Requiredstring
Responses
The result.
application/json
JSON "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string"
{
}
GET
/tasks/{id}/push-configs/{configId}
Samples
Deprecated
Remove a webhook of a task
DELETE
/tasks/{id}/push-configs/{configId}
An alias of an earlier draft that the SDK still answers: use DELETE /tasks/{id}/pushNotificationConfigs/{configId} instead.
Push notifications are off on this server (the card's capabilities.pushNotifications); when off, this answers PushNotificationNotSupported.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
configId*
The webhook config's id.
Type
Requiredstring
Responses
Removed (an empty body).
DELETE
/tasks/{id}/push-configs/{configId}
Samples
Deprecated
Stream a task's updates
GET
/tasks/{id}/subscribe
An alias of an earlier draft that the SDK still answers: use POST /tasks/{id}:subscribe instead.
Server-Sent Events from the task's current state on, on any replica; a finished task is UnsupportedOperation.
Swagger UI cannot show a stream as it arrives: it waits for the whole response, which ends only when the task finishes or needs input. Use curl instead ($A2A_TOKEN holds a bearer token; the URL is the card's):
curl -N -X GET -H "Authorization: Bearer $A2A_TOKEN" http://localhost:8080/tasks/replace-with-a-task-id/subscribe
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Responses
Server-Sent Events: each data line is a StreamResponse (A2A 1.0 §11.7).
text/event-stream
JSON
"string"
GET
/tasks/{id}/subscribe
Samples
Deprecated
Stream a task's updates
POST
/tasks/{id}/subscribe
An alias of an earlier draft that the SDK still answers: use POST /tasks/{id}:subscribe instead.
Server-Sent Events from the task's current state on, on any replica; a finished task is UnsupportedOperation.
Swagger UI cannot show a stream as it arrives: it waits for the whole response, which ends only when the task finishes or needs input. Use curl instead ($A2A_TOKEN holds a bearer token; the URL is the card's):
curl -N -X POST -H "Authorization: Bearer $A2A_TOKEN" http://localhost:8080/tasks/replace-with-a-task-id/subscribe
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Responses
Server-Sent Events: each data line is a StreamResponse (A2A 1.0 §11.7).
text/event-stream
JSON
"string"
POST
/tasks/{id}/subscribe
Samples
Deprecated
Stream a task's updates
GET
/tasks/{id}:subscribe
An alias of an earlier draft that the SDK still answers: use POST /tasks/{id}:subscribe instead.
Server-Sent Events from the task's current state on, on any replica; a finished task is UnsupportedOperation.
Swagger UI cannot show a stream as it arrives: it waits for the whole response, which ends only when the task finishes or needs input. Use curl instead ($A2A_TOKEN holds a bearer token; the URL is the card's):
curl -N -X GET -H "Authorization: Bearer $A2A_TOKEN" http://localhost:8080/tasks/replace-with-a-task-id:subscribe
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Responses
Server-Sent Events: each data line is a StreamResponse (A2A 1.0 §11.7).
text/event-stream
JSON
"string"
GET
/tasks/{id}:subscribe
Samples
HTTP+JSON
A2A 1.0 over HTTP+JSON (REST), A2A 1.0 §11. The same handler as JSON-RPC.
Operations
GET/extendedAgentCardPOST/message:sendPOST/message:streamGET/tasksGET/tasks/{id}GET/tasks/{id}/pushNotificationConfigsPOST/tasks/{id}/pushNotificationConfigsGET/tasks/{id}/pushNotificationConfigs/{configId}DELETE/tasks/{id}/pushNotificationConfigs/{configId}POST/tasks/{id}:cancelPOST/tasks/{id}:subscribe
Get the extended agent card
GET
/extendedAgentCard
What an authenticated caller sees on top of the public card. The extended card is off on this server; when off, this answers UnsupportedOperation.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Responses
The result.
application/json
JSON "capabilities": { }, "defaultInputModes": [ "string" ], "defaultOutputModes": [ "string" ], "description": "string", "name": "string", "securityRequirements": [ ], "securitySchemes": { }, "signatures": [ ], "skills": [ { } ], "supportedInterfaces": [ { "protocolBinding": "JSONRPC", "protocolVersion": "string", "tenant": "string", "url": "string" } ], "version": "string"
{
}
GET
/extendedAgentCard
Samples
Send a message
POST
/message:send
Starts a task, or continues one (message.taskId). The example sets configuration.returnImmediately, so the task comes back at once: poll it with GetTask. Without it the call waits until the task finishes or needs input. The messageId identifies the message: sending the same one again is a retry and gives the same task, so change it for a new message.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Request Body
JSON "configuration": { "acceptedOutputModes": [ "string" ], "historyLength": 0, "returnImmediately": true, "taskPushNotificationConfig": { "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string" } }, "message": { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" }, "metadata": { "additionalProperties": "string" }, "tenant": "string"
{
}
Responses
The result.
application/json
JSON "task": { "artifacts": [ { "artifactId": "string", "description": "string", "extensions": [ "string" ], "metadata": { "additionalProperties": "string" }, "name": "string", "parts": [ { } ] } ], "contextId": "string", "history": [ { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" } ], "id": "string", "metadata": { "additionalProperties": "string" }, "status": { "message": { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" }, "state": "TASK_STATE_SUBMITTED", "timestamp": "2024-01-01T00:00:00Z" } }
{
}
POST
/message:send
Samples
Send a message and stream the task
POST
/message:stream
Like SendMessage, answered with Server-Sent Events: the task, then its status and artifact updates, until it finishes or needs input.
Swagger UI cannot show a stream as it arrives: it waits for the whole response, which ends only when the task finishes or needs input. Use curl instead ($A2A_TOKEN holds a bearer token; the URL is the card's):
curl -N -X POST -H "Authorization: Bearer $A2A_TOKEN" -H 'Content-Type: application/json' --data '{"message":{"messageId":"swagger-1","parts":[{"text":"Hello"}],"role":"ROLE_USER"}}' http://localhost:8080/message:stream
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Request Body
JSON "configuration": { "acceptedOutputModes": [ "string" ], "historyLength": 0, "returnImmediately": true, "taskPushNotificationConfig": { "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string" } }, "message": { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" }, "metadata": { "additionalProperties": "string" }, "tenant": "string"
{
}
Responses
Server-Sent Events: each data line is a StreamResponse (A2A 1.0 §11.7).
text/event-stream
JSON
"string"
POST
/message:stream
Samples
List the caller's tasks
GET
/tasks
The caller's own tasks, most recently updated first, a page at a time (pageSize 1 to 100, 50 by default; nextPageToken is empty on the last page).
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Query Parameters
contextId
Only the tasks of this context.
Type
string
status
Only the tasks in this state.
Type
string
Valid values
"TASK_STATE_SUBMITTED""TASK_STATE_WORKING""TASK_STATE_COMPLETED""TASK_STATE_FAILED""TASK_STATE_CANCELED""TASK_STATE_INPUT_REQUIRED""TASK_STATE_REJECTED""TASK_STATE_AUTH_REQUIRED""TASK_STATE_UNSPECIFIED"pageSize
Tasks per page (50 by default).
Type
integer
Format
"int32"Maximum
100Minimum
1pageToken
The nextPageToken of the page before.
Type
string
historyLength
Keep only the last messages of each task's history.
Type
integer
Format
"int32"Minimum
0statusTimestampAfter
Only the tasks whose status changed after this time.
Type
string
Format
"date-time"includeArtifacts
Include the artifacts (left out by default).
Type
boolean
Responses
The result.
application/json
JSON "nextPageToken": "string", "pageSize": 0, "tasks": [ { "artifacts": [ { "artifactId": "string", "description": "string", "extensions": [ "string" ], "metadata": { "additionalProperties": "string" }, "name": "string", "parts": [ { } ] } ], "contextId": "string", "history": [ { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" } ], "id": "string", "metadata": { "additionalProperties": "string" }, "status": { "message": { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" }, "state": "TASK_STATE_SUBMITTED", "timestamp": "2024-01-01T00:00:00Z" } } ], "totalSize": 0
{
}
GET
/tasks
Samples
Get a task
GET
/tasks/{id}
The task as it is now. historyLength keeps the last messages only. Another caller's task is TaskNotFound.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Query Parameters
historyLength
Keep only the last messages of the history.
Type
integer
Format
"int32"Minimum
0Responses
The result.
application/json
JSON "artifacts": [ { "artifactId": "string", "description": "string", "extensions": [ "string" ], "metadata": { "additionalProperties": "string" }, "name": "string", "parts": [ { } ] } ], "contextId": "string", "history": [ { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" } ], "id": "string", "metadata": { "additionalProperties": "string" }, "status": { "message": { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" }, "state": "TASK_STATE_SUBMITTED", "timestamp": "2024-01-01T00:00:00Z" }
{
}
GET
/tasks/{id}
Samples
List the webhooks of a task
GET
/tasks/{id}/pushNotificationConfigs
Without token and credentials. Push notifications are off on this server (the card's capabilities.pushNotifications); when off, this answers PushNotificationNotSupported.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Query Parameters
pageSize
Configs per page.
Type
integer
Format
"int32"Maximum
100Minimum
1pageToken
The nextPageToken of the page before.
Type
string
Responses
The result.
application/json
JSON "configs": [ { "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string" } ], "nextPageToken": "string"
{
}
GET
/tasks/{id}/pushNotificationConfigs
Samples
Register a webhook for a task
POST
/tasks/{id}/pushNotificationConfigs
The deployment's policy decides which webhooks are allowed. token and authentication.credentials are write-only: no answer returns them. Push notifications are off on this server (the card's capabilities.pushNotifications); when off, this answers PushNotificationNotSupported.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Request Body
JSON "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string"
{
}
Responses
The result.
application/json
JSON "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string"
{
}
POST
/tasks/{id}/pushNotificationConfigs
Samples
Get a webhook of a task
GET
/tasks/{id}/pushNotificationConfigs/{configId}
Without token and credentials. Push notifications are off on this server (the card's capabilities.pushNotifications); when off, this answers PushNotificationNotSupported.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
configId*
The webhook config's id.
Type
Requiredstring
Responses
The result.
application/json
JSON "authentication": { "credentials": "string", "scheme": "string" }, "id": "string", "taskId": "string", "tenant": "string", "token": "string", "url": "string"
{
}
GET
/tasks/{id}/pushNotificationConfigs/{configId}
Samples
Remove a webhook of a task
DELETE
/tasks/{id}/pushNotificationConfigs/{configId}
Push notifications are off on this server (the card's capabilities.pushNotifications); when off, this answers PushNotificationNotSupported.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
configId*
The webhook config's id.
Type
Requiredstring
Responses
Removed (an empty body).
DELETE
/tasks/{id}/pushNotificationConfigs/{configId}
Samples
Cancel a task
POST
/tasks/{id}:cancel
Cancels a task that has not finished; a finished one is TaskNotCancelable.
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Responses
The result.
application/json
JSON "artifacts": [ { "artifactId": "string", "description": "string", "extensions": [ "string" ], "metadata": { "additionalProperties": "string" }, "name": "string", "parts": [ { } ] } ], "contextId": "string", "history": [ { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" } ], "id": "string", "metadata": { "additionalProperties": "string" }, "status": { "message": { "contextId": "string", "extensions": [ "string" ], "messageId": "string", "metadata": { "additionalProperties": "string" }, "parts": [ { } ], "referenceTaskIds": [ "string" ], "role": "ROLE_USER", "taskId": "string" }, "state": "TASK_STATE_SUBMITTED", "timestamp": "2024-01-01T00:00:00Z" }
{
}
POST
/tasks/{id}:cancel
Samples
Stream a task's updates
POST
/tasks/{id}:subscribe
Server-Sent Events from the task's current state on, on any replica; a finished task is UnsupportedOperation.
Swagger UI cannot show a stream as it arrives: it waits for the whole response, which ends only when the task finishes or needs input. Use curl instead ($A2A_TOKEN holds a bearer token; the URL is the card's):
curl -N -X POST -H "Authorization: Bearer $A2A_TOKEN" http://localhost:8080/tasks/replace-with-a-task-id:subscribe
Authorizations
bearer
One of the tokens the deployment configured (A2A_BEARER_TOKENS).
Type
HTTP (bearer)
Parameters
Header Parameters
A2A-Extensions
Comma-separated URIs of the extensions this call activates; only those the card declares count, and the response's A2A-Extensions header lists them. The public card declares none.
Type
string
Path Parameters
id*
The task's id.
Type
Requiredstring
Responses
Server-Sent Events: each data line is a StreamResponse (A2A 1.0 §11.7).
text/event-stream
JSON
"string"
POST
/tasks/{id}:subscribe