WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Stages Tasks → Get task by ID (Stages)

AI-generated

Summary

Retrieves a stage task by its identifier and optional parameters

Inputs

  • stageId (required) — Stage ID or stage number
  • id (required) — Task ID
  • jobId (required) — Job ID
  • requestOptions — Additional request configuration options
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
  • proxy — HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128
  • timeout — Time in ms to wait for the server to send response headers (and start the response body) before aborting the request

Output shape

a single task record

Returns the matching task or an error if not found; fields reflect the task's data.

Examples

Example 1: Retrieve a stage task by its ID using default settings

stageId: "123", id: "task-456"

Example 2: Fetch a task with custom request options for batching

id: "task-789", requestOptions: {"batching": {"batchSize": 100}}

Example 3: Call the endpoint with a proxy and increased timeout

id: "task-001", timeout: 30000, proxy: "http://proxy.example.com:8080"

Links

Discussion