curl --request POST \
--url https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe \
--header 'Authorization: Bearer <token>' \
--header 'Tenant-Name: <api-key>'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Tenant-Name': '<api-key>'}
};
fetch('https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Tenant-Name", "<api-key>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
import requests
url = "https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe"
headers = {
"Authorization": "Bearer <token>",
"Tenant-Name": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Tenant-Name: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Tenant-Name", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe")
.header("Authorization", "Bearer <token>")
.header("Tenant-Name", "<api-key>")
.asString();{
"id": "task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62",
"data": "{\"statusUpdate\":{\"taskId\":\"task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62\",\"contextId\":\"ctx.0192f4c8-3d6b-7c4f-a02b-4d9e7f3c8b51\",\"status\":{\"state\":\"TASK_STATE_COMPLETED\",\"timestamp\":\"2026-05-19T12:00:01Z\"}}}"
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Task not found.",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "TASK_NOT_FOUND",
"domain": "a2a-protocol.org",
"metadata": {
"taskId": "task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62"
}
}
]
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Task not found.",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "TASK_NOT_FOUND",
"domain": "a2a-protocol.org",
"metadata": {
"taskId": "task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62"
}
}
]
}
}Subscribe to task events (A2A REST)
Resubscribe to an in-flight task’s event stream over SSE.
curl --request POST \
--url https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe \
--header 'Authorization: Bearer <token>' \
--header 'Tenant-Name: <api-key>'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Tenant-Name': '<api-key>'}
};
fetch('https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Tenant-Name", "<api-key>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
import requests
url = "https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe"
headers = {
"Authorization": "Bearer <token>",
"Tenant-Name": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Tenant-Name: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Tenant-Name", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.{environment}.corti.app/v2/agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe")
.header("Authorization", "Bearer <token>")
.header("Tenant-Name", "<api-key>")
.asString();{
"id": "task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62",
"data": "{\"statusUpdate\":{\"taskId\":\"task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62\",\"contextId\":\"ctx.0192f4c8-3d6b-7c4f-a02b-4d9e7f3c8b51\",\"status\":{\"state\":\"TASK_STATE_COMPLETED\",\"timestamp\":\"2026-05-19T12:00:01Z\"}}}"
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Task not found.",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "TASK_NOT_FOUND",
"domain": "a2a-protocol.org",
"metadata": {
"taskId": "task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62"
}
}
]
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Task not found.",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "TASK_NOT_FOUND",
"domain": "a2a-protocol.org",
"metadata": {
"taskId": "task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62"
}
}
]
}
}Authorizations
OAuth 2.0 / OIDC bearer token.
The tenant the request operates within.
Headers
A2A protocol version in Major.Minor form (A2A §3.6). Optional; defaults to 1.0 when absent. This surface implements 1.0 only. Patch versions MUST NOT be sent and are not considered during negotiation.
^\d+\.\d+$Path Parameters
Agent identifier (prefixed UUIDv7).
Agent identifier. Accepts agt.<uuidv7> or a bare UUIDv7 on input; always returned prefixed.
^(agt\.)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"agt.0192f4c8-2c5a-7b3e-9f1a-3c8d6e2b7a40"
Task identifier (prefixed UUIDv7).
Task identifier. Accepts task.<uuidv7> or a bare UUIDv7 on input; always returned prefixed.
^(task\.)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"task.0192f4c8-4e7c-7d50-b13c-5eaf8a4d9c62"
Response
An SSE stream of task events. Each event's data is a JSON-encoded StreamResponse. The server writes event ids but does not yet read the Last-Event-ID request header, so resumption without gaps is not implemented.
An SSE event carrying an A2A HTTP+JSON streaming response.
SSE payload: an A2A HTTP+JSON streaming response.
Event type. Absent for the default message event.
Opaque event id. Clients echo the most recent value in the
Last-Event-ID header to resume a dropped stream.
Reconnection time in milliseconds the client should use.
x >= 0Was this page helpful?