Agent2Agent (A2A)
Your agent reads the platform’s skills in the agent card and sends tasks as JSON-RPC with message/send. The response is a completed task with the result, or a question if something is missing.
POST https://avropsplatsen.se/api/a2a
Authorization: Bearer ap_live_…
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "message/send",
"params": {
"message": {
"role": "user",
"messageId": "1",
"parts": [{
"kind": "data",
"data": {
"skill": "search_avrop",
"input": { "q": "sjuksköterska", "city": "Östersund" }
}
}]
}
}
}