Authorizations
Body
application/json
curl --request POST \
--url http://localhost:3773/message/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "message/send",
"params": {
"message": {
"role": "user",
"parts": [
{
"kind": "text",
"text": "whats the capital of india"
}
],
"kind": "message",
"messageId": "550e8400-e29b-41d4-a716-446655440038",
"contextId": "550e8400-e29b-41d4-a716-446655440038",
"taskId": "550e8400-e29b-41d4-a716-446655440078"
},
"configuration": {
"acceptedOutputModes": [
"application/json"
]
}
},
"id": "550e8400-e29b-41d4-a716-446655440024"
}'{
"jsonrpc": "2.0",
"id": "550e8400-e29b-41d4-a716-446655440024",
"result": {
"id": "550e8400-e29b-41d4-a716-446655440078",
"context_id": "550e8400-e29b-41d4-a716-446655440038",
"kind": "task",
"status": {
"state": "submitted",
"timestamp": "2025-11-03T12:48:51.692372+00:00"
},
"history": [
{
"message_id": "550e8400-e29b-41d4-a716-446655440038",
"context_id": "550e8400-e29b-41d4-a716-446655440038",
"task_id": "550e8400-e29b-41d4-a716-446655440078",
"kind": "message",
"parts": [
{
"kind": "text",
"text": "whats the capital of india"
}
],
"role": "user"
}
]
}
}Send a message to the agent and receive a response
curl --request POST \
--url http://localhost:3773/message/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "message/send",
"params": {
"message": {
"role": "user",
"parts": [
{
"kind": "text",
"text": "whats the capital of india"
}
],
"kind": "message",
"messageId": "550e8400-e29b-41d4-a716-446655440038",
"contextId": "550e8400-e29b-41d4-a716-446655440038",
"taskId": "550e8400-e29b-41d4-a716-446655440078"
},
"configuration": {
"acceptedOutputModes": [
"application/json"
]
}
},
"id": "550e8400-e29b-41d4-a716-446655440024"
}'{
"jsonrpc": "2.0",
"id": "550e8400-e29b-41d4-a716-446655440024",
"result": {
"id": "550e8400-e29b-41d4-a716-446655440078",
"context_id": "550e8400-e29b-41d4-a716-446655440038",
"kind": "task",
"status": {
"state": "submitted",
"timestamp": "2025-11-03T12:48:51.692372+00:00"
},
"history": [
{
"message_id": "550e8400-e29b-41d4-a716-446655440038",
"context_id": "550e8400-e29b-41d4-a716-446655440038",
"task_id": "550e8400-e29b-41d4-a716-446655440078",
"kind": "message",
"parts": [
{
"kind": "text",
"text": "whats the capital of india"
}
],
"role": "user"
}
]
}
}Was this page helpful?