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-
actionList: array
actionList
-
applicationContext: string
-
applicationName: string
-
assignedDate: string
-
assignees: object
Collection
-
attachments: array
attachments
-
comments: object
comments
-
createdBy: string
-
createdDate: string
-
detailsURL: object
link
-
dueDate: string
-
externalUIURL: string
-
formMetadata: string
-
fromUserDisplayName: string
-
fromUserName: string
-
getcListURL: object
link
-
groupByName: string
-
groupByValue: string
-
hasSubTasksFlag: boolean
Default Value:
false -
history: object
taskHistories
-
href(required): string
(uri)
-
hreflang: string
-
identificationKey: string
-
length: integer
(int32)
-
linkId: string
-
links: array
links
-
mediaType(required): string
-
number: integer
(int32)
-
outcome: string
-
ownerGroup: string
-
ownerRole: string
-
ownerUser: string
-
payload: object
payload
-
permissions: array
permissions
-
priority: integer
(int32)
-
rel(required): string
-
rootTaskNumber: string
-
startDate: string
-
state: string
-
taskDefinitionName: string
-
taskId: string
-
taskNamespace: string
-
title: string
-
titlePrefix: string
shown only for current assignee or creator of task
-
type: string
-
updatedDate: string
Nested Schema : Collection
Type:
Show Source
object-
count: integer
(int32)
-
hasMore: boolean
Default Value:
false -
items: array
items
-
limit: integer
(int32)
-
links: array
links
-
offset: integer
(int32)
-
totalResult: boolean
Default Value:
false -
userLink: object
link
Nested Schema : link
Type:
Show Source
object-
href: string
(uri)
href of the provided link
-
rel: string
relationship with the returned resourceExample:
self
400 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.
-
traceId: string
Trace identifier for troubleshooting the failed trigger.
-
userDetails: string
Instructions or hint for the user to act upon.
404 Response
Workflow not found.