Source: https://atomicwork-preview.docs-staging.pageloop.ai/api-reference/workflows/getapi-v-1-workspaces-id-request-automations-type-query-conditions

# Get placeholders, adhoc query conditions for request automation

GET `https://{tenant}.atomicwork.com/api/v1/workspaces/{id}/request-automations/{type}/query-conditions`

## Authorization

#### X-Api-Key (header, string, required)

## Headers

#### X-Workspace-Id (header, string)

## Path Parameters

#### id (path, integer, required)

Workspace ID (numeric). Find yours under Settings → Workspace.

#### type (path, enum (string), required)

Automation entity type (see allowed values in the enum schema).

## Query Parameters

#### context (query, enum (string), required)

#### field\_type (query, string)

#### entity\_id (query, integer)

Overloaded parameter by QueryContext. For REQUEST/CHANGE: service item/change template ID. For CUSTOM\_OBJECT: use entity\_type\_id instead (new parameter).

#### entity\_type\_id (query, integer)

Entity type ID for typed entity automations (CUSTOM\_OBJECT today, ASSET in future). Preferred over entity\_id for these types.

#### q (query, string)

#### field\_id (query, integer)

#### trigger\_type (query, enum (string))

## Response

#### 200

Successful response

#### Request

```bash cURL
curl -X GET 'https://{tenant}.atomicwork.com/api/v1/workspaces/{id}/request-automations/{type}/query-conditions' \
  -H 'X-Api-Key: <api-key>'
```

```javascript JavaScript
const res = await fetch('https://{tenant}.atomicwork.com/api/v1/workspaces/{id}/request-automations/{type}/query-conditions', {
  method: 'GET',
  headers: {
    'X-Api-Key': '<api-key>',
  },
});
const data = await res.json();
```

```python Python
import requests

res = requests.get(
    'https://{tenant}.atomicwork.com/api/v1/workspaces/{id}/request-automations/{type}/query-conditions',
    headers={'X-Api-Key': '<api-key>'}
)
data = res.json()
```
