> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hotglue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getJobStatus

> Get the status of a job for a given tenant

## getJobStatus

The `getJobStatus` function retrieves the latest status of a job using the provided `tenantId`, `flowId`, and `jobRoot`.
See the [job status API docs](/api-reference/jobs/poll-job-status) for full details.

### Parameters:

* **tenantId**: `string`
  * A string identifier for the tenant.
* **flowId**: `string`
  * A string identifier for the flow.
* **jobRoot**: `string`
  * A string identifier for the job root.

### Example:

```javascript theme={null}
const jobStatus = getJobStatus('exampleTenantId', 'exampleFlowId', 'exampleJobRoot');
console.log(jobStatus);
```
