Send task, send message, or get task
post
<servername>/api/fusion-ai/orchestrator/a2a/v1/{workflowCode}
Execute a JSON-RPC operation against a published workflow. Supported methods are `tasks/send`, `message/send`, and `tasks/get`.
Request
Path Parameters
-
workflowCode(required): string
Published workflow code.
Supported Media Types
- application/json
Nested Schema : SendTaskJSONRPCRequest
Type:
Show Source
object-
id: string
-
jsonrpc: string
Default Value:
2.0 -
method(required): string
Allowed Values:
[ "tasks/send" ] -
params(required):
TaskSendRequest
Nested Schema : SendMessageJSONRPCRequest
Type:
Show Source
object-
id: string
-
jsonrpc: string
Default Value:
2.0 -
method(required): string
Allowed Values:
[ "message/send" ] -
params(required): object
MessageSendParams
Nested Schema : GetTaskJSONRPCRequest
Type:
Show Source
object-
id: string
-
jsonrpc: string
Default Value:
2.0 -
method(required): string
Allowed Values:
[ "tasks/get" ] -
params(required):
TaskQueryRequest
Nested Schema : TaskIdRequest
Type:
Show Source
object-
id: string
Unique task identifier.
-
metadata: object
metadata
Additional Properties Allowed:
trueOptional metadata associated with the request.
Nested Schema : TaskQueryRequest-allOf[1]
Type:
Show Source
object-
historyLength: integer
Optional number of history messages to retrieve.
Nested Schema : TaskSendRequest-allOf[1]
Type:
Show Source
object-
contextId: string
Optional conversation or context identifier.
-
message: object
Message
Nested Schema : metadata
Type:
objectAdditional Properties Allowed:
trueOptional metadata associated with the request.
Nested Schema : Message
Type:
Show Source
object-
contextId: string
Conversation identifier. For `message/stream`, this must be nested under `params.message`.
-
kind: string
Default Value:
message -
messageId: string
-
metadata: object
metadata
Additional Properties Allowed:
true -
parts: array
parts
-
role: string
Allowed Values:
[ "user", "agent" ] -
taskId: string
Optional task identifier used for resumed or task-associated message flows.
Nested Schema : metadata
Type:
objectAdditional Properties Allowed:
trueNested Schema : TextPart
Type:
Show Source
object-
kind: string
Default Value:
text -
metadata: object
metadata
Additional Properties Allowed:
true -
text: string
Text content.
-
type: string
Part type.Example:
text
Nested Schema : metadata
Type:
objectAdditional Properties Allowed:
trueNested Schema : MessageSendParams
Type:
Show Source
object-
configuration: object
MessageSendConfiguration
-
message: object
Message
-
metadata: object
metadata
Additional Properties Allowed:
true
Nested Schema : metadata
Type:
objectAdditional Properties Allowed:
trueResponse
Supported Media Types
- application/json
200 Response
Operation completed or task state retrieved.
Nested Schema : TaskResponse
Type:
Show Source
object-
error: object
JSONRPCError
-
id: string
-
jsonrpc: string
Default Value:
2.0 -
method: string
-
result: object
Task
Nested Schema : SendMessageResponse
Type:
Show Source
object-
error: object
JSONRPCError
-
id: string
-
jsonrpc: string
Default Value:
2.0 -
method: string
-
result: object
Task
Nested Schema : JSONRPCError
Type:
Show Source
object-
code: integer
JSON-RPC error code.
-
message: string
JSON-RPC error message.
Nested Schema : Task
Type:
Show Source
object-
artifacts: array
artifacts
-
contextId: string
-
final: boolean
Indicates whether the task update is the final update.
-
history: array
history
-
id: string
-
kind: string
Default Value:
task -
metadata: object
metadata
Additional Properties Allowed:
true -
status: object
TaskStatus
Nested Schema : metadata
Type:
objectAdditional Properties Allowed:
trueNested Schema : TaskStatus
Type:
Show Source
object-
message: object
Message
-
state: string
Allowed Values:
[ "submitted", "working", "input-required", "completed", "canceled", "failed", "unknown" ] -
timestamp: string
UTC timestamp string.
Nested Schema : Artifact
Type:
Show Source
object-
append: boolean
-
artifactId: string
-
description: string
-
lastChunk: boolean
-
metadata: object
metadata
Additional Properties Allowed:
true -
name: string
-
parts: array
parts
Nested Schema : metadata
Type:
objectAdditional Properties Allowed:
trueNested Schema : TextPart
Type:
Show Source
object-
kind: string
Default Value:
text -
metadata: object
metadata
Additional Properties Allowed:
true -
text: string
Text content.
-
type: string
Part type.Example:
text
Nested Schema : metadata
Type:
objectAdditional Properties Allowed:
trueNested Schema : Message
Type:
Show Source
object-
contextId: string
Conversation identifier. For `message/stream`, this must be nested under `params.message`.
-
kind: string
Default Value:
message -
messageId: string
-
metadata: object
metadata
Additional Properties Allowed:
true -
parts: array
parts
-
role: string
Allowed Values:
[ "user", "agent" ] -
taskId: string
Optional task identifier used for resumed or task-associated message flows.
Nested Schema : metadata
Type:
objectAdditional Properties Allowed:
true400 Response
Invalid request or unsupported JSON-RPC method.
Root Schema : ErrorResponse
Type:
Show Source
object-
message: string
Description of the error.
-
status: string
Short status code of the error.
-
userDetails: string
Instructions or hint for user to action upon.
404 Response
Workflow not found.