# Get daemon job

> Source: https://truto.one/docs/api-reference/admin/daemon-jobs/get/

`GET /daemon-job/{id}`

Resource: **Daemon jobs**

## Response body

- **`id`** _(string)_
  The ID of the daemon job.
- **`environment_id`** _(string)_
  The environment the daemon job belongs to.
- **`label`** _(string)_
  A name for the daemon job.
- **`args_schema`** _(object)_
  Describes the `args` a run of this job takes, keyed by arg name. An arg whose value has `format: integrated_account_id` must be the ID of an integrated account in the job's environment, and `required: true` makes it mandatory. Other entries are stored but not checked.
- **`args_validation`** _(string)_
  A JSONata expression evaluated against `{ args }` when a run or a cron trigger is created. Return an object with a `message` to reject the args with a `400` carrying that message.
- **`created_at`** _(string)_
- **`updated_at`** _(string)_

## Code examples

### curl

```bash
curl -X GET 'https://api.truto.one/daemon-job/{id}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/daemon-job/{id}', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/daemon-job/{id}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```
