Skip to main content
GET
/
relay
/
v1
/
relay-tasks
/
{taskId}
Get a relay task by ID
curl --request GET \
  --url https://api.swarmd.ai/relay/v1/relay-tasks/{taskId} \
  --header 'Authorization: Bearer <token>'
{
  "taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sinkAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sourceUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sourceAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "method": "<string>",
  "contextId": "<string>",
  "currentState": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "lastUpdatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT token (USER, AGENT, or SERVICE auth)

Path Parameters

taskId
string<uuid>
required

Response

200 - application/json

OK

taskId
string<uuid>
tenantId
string<uuid>
correlationId
string<uuid>
sinkAgentId
string<uuid>
sourceUserId
string<uuid>
sourceAgentId
string<uuid>
method
string
contextId
string
currentState
string
createdAt
string<date-time>
lastUpdatedAt
string<date-time>