Skip to main content
POST
/
a2a
/
{assistant_id}
A2A Post
curl --request POST \
  --url https://api.b-bot.space/v2/a2a/{assistant_id} \
  --header 'Accept: <accept>' \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "<string>",
  "method": "message/send",
  "params": {
    "message": {
      "role": "user",
      "parts": [
        {
          "kind": "text",
          "text": "<string>"
        }
      ],
      "messageId": "<string>"
    },
    "thread": {
      "threadId": "<string>"
    }
  }
}'
{
  "jsonrpc": "2.0",
  "id": "<string>",
  "result": {},
  "error": {
    "code": 123,
    "message": "<string>"
  }
}

Headers

Accept
enum<string>
required

Must be application/json

Available options:
application/json

Path Parameters

assistant_id
string<uuid>
required

The ID of the assistant to communicate with

Body

application/json
jsonrpc
enum<string>
required

JSON-RPC version

Available options:
2.0
id
string
required

Request identifier

method
enum<string>
required

The method to invoke

Available options:
message/send,
tasks/get
params
object

Method parameters

  • Message Send Parameters
  • Task Get Parameters

Response

JSON-RPC response

jsonrpc
enum<string>
required
Available options:
2.0
id
string
required
result
object

Success result containing task information or task details

error
object

Error information if request failed

I