> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://support.atomicwork.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://support.atomicwork.com/_mcp/server.

# Get placeholders, adhoc query conditions for request automation

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

Reference: https://support.atomicwork.com/api-reference/atomicwork-public-api/workflows/getapi-v-1-workspaces-id-request-automations-type-query-conditions

## Authentication

- `X-Api-Key` header (required) — API Key authentication via header

## Request

### Path parameters

- `id` (long, required) — Workspace ID (numeric). Find yours under Settings → Workspace.
- `type` (enum, required) — Automation entity type (see allowed values in the enum schema).
  - Allowed values: `QUESTION_REQUEST`, `SERVICE_REQUEST`, `INCIDENT_REQUEST`, `REQUEST`, `CHANGE`, `NOTIFICATIONS`, `CUSTOM_OBJECT`, `ASSET`, `EXTERNAL_WEBHOOK`, `USER`, `STANDALONE`

### Query parameters

- `context` (enum, required)
  - Allowed values: `EMAIL`, `SLACK`, `COLLABORATOR`, `ASSIGNEE`, `PLACEHOLDERS`, `DATE`, `EMAIL_SEND`, `REQUEST_UPDATE_FIELDS`, `ID`, `CATALOG_ITEM_PLACEHOLDERS`, `REQUEST_ASSIGNEE`, `REQUESTER_PLACEHOLDERS`, `REQUEST_PLACEHOLDERS`, `CATALOG_CATEGORY`, `CATALOG_ITEM`, `PLACEHOLDER_OPTIONS`, `CHANGE_PLACEHOLDERS`, `CHANGE_REQUESTER_PLACEHOLDERS`, `CHANGE_TEMPLATE_PLACEHOLDERS`, `CHANGE_TEMPLATE`, `SEND_REPLY_PLACEHOLDERS`, `SEND_PRIVATE_COMMENT_PLACEHOLDERS`, `REQUEST_SUMMARY_PLACEHOLDER`, `ACCOUNT_PLACEHOLDERS`, `PEOPLE`, `SERVICE_CATEGORY_PLACEHOLDERS`, `ASSET`, `PEOPLE_PLACEHOLDERS`, `APPROVAL_PLACEHOLDER_OPTIONS`, `CHANGE_APPROVAL_PLACEHOLDER_OPTIONS`, `REQUEST_PEOPLE_PLACEHOLDERS`, `REQUEST_ASSET_PEOPLE_PLACEHOLDERS`, `REQUEST_CATALOG_ITEM_PEOPLE_PLACEHOLDERS`, `APPROVAL_PLACEHOLDER_TABS`, `SERVICE_CATEGORY_APPROVERS`, `SERVICE_ITEMS_APPROVERS`, `REQUEST_RELATIONSHIP_PLACEHOLDERS`, `SERVICE_ITEM_RELATIONSHIP_PLACEHOLDERS`, `CATALOG_ITEMS_APPROVERS`, `INCIDENT_CATEGORY_APPROVERS`, `INCIDENT_CATEGORY`, `CANNED_RESPONSES_PLACEHOLDER_OPTIONS`, `REQUEST_ADD_TAGS`, `EVENT_PLACEHOLDERS`, `EVENT_ADD_TAGS_PLACEHOLDER`, `EVENT_REMOVE_TAGS_PLACEHOLDER`, `EVENT_BODY_PLACEHOLDERS`, `EVENT_BODY_FIELDS_PLACEHOLDERS`, `APPROVER_PLACEHOLDER_OPTIONS`, `CHANGE_PEOPLE_PLACEHOLDERS`, `CHANGE_RELATIONSHIP_PLACEHOLDERS`, `CHANGE_TEMPLATE_RELATIONSHIP_PLACEHOLDERS`, `CHANGE_RELATIONSHIP_PEOPLE_PLACEHOLDERS`, `CHANGE_TEMPLATE_RELATIONSHIP_PEOPLE_PLACEHOLDERS`, `CONVERSATION_PLACEHOLDERS`, `IDENTITY_ACCESS_PLACEHOLDERS`, `CUSTOM_OBJECT_PLACEHOLDERS`, `CUSTOM_OBJECT_TYPE_PLACEHOLDERS`, `CUSTOM_OBJECT_RELATIONSHIP_PLACEHOLDERS`, `ASSET_PLACEHOLDERS`, `USER_PLACEHOLDERS`, `WORKSPACE_PLACEHOLDERS`
- `field_type` (string, optional)
- `entity_id` (long, optional) — 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` (long, optional) — Entity type ID for typed entity automations (CUSTOM_OBJECT today, ASSET in future). Preferred over entity_id for these types.
- `q` (string, optional)
- `field_id` (long, optional)
- `trigger_type` (enum, optional)
  - Allowed values: `EVENT`, `SCHEDULED_RECURRING`, `WEBHOOK`

### Headers

- `X-Workspace-Id` (string, optional)

## Response

### 200

Successful response

## Examples

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://{tenant}.atomicwork.com/api/v1/workspaces/1/request-automations/QUESTION_REQUEST/query-conditions"

querystring = {"context":"EMAIL","trigger_type":"EVENT"}

headers = {
    "X-Workspace-Id": "{{workspace_id}}",
    "X-Api-Key": "<apiKey>"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://{tenant}.atomicwork.com/api/v1/workspaces/1/request-automations/QUESTION_REQUEST/query-conditions?context=EMAIL&trigger_type=EVENT';
const options = {
  method: 'GET',
  headers: {'X-Workspace-Id': '{{workspace_id}}', 'X-Api-Key': '<apiKey>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://{tenant}.atomicwork.com/api/v1/workspaces/1/request-automations/QUESTION_REQUEST/query-conditions?context=EMAIL&trigger_type=EVENT"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-Workspace-Id", "{{workspace_id}}")
	req.Header.Add("X-Api-Key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://{tenant}.atomicwork.com/api/v1/workspaces/1/request-automations/QUESTION_REQUEST/query-conditions?context=EMAIL&trigger_type=EVENT")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Workspace-Id"] = '{{workspace_id}}'
request["X-Api-Key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{tenant}.atomicwork.com/api/v1/workspaces/1/request-automations/QUESTION_REQUEST/query-conditions?context=EMAIL&trigger_type=EVENT")
  .header("X-Workspace-Id", "{{workspace_id}}")
  .header("X-Api-Key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{tenant}.atomicwork.com/api/v1/workspaces/1/request-automations/QUESTION_REQUEST/query-conditions?context=EMAIL&trigger_type=EVENT', [
  'headers' => [
    'X-Api-Key' => '<apiKey>',
    'X-Workspace-Id' => '{{workspace_id}}',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://{tenant}.atomicwork.com/api/v1/workspaces/1/request-automations/QUESTION_REQUEST/query-conditions?context=EMAIL&trigger_type=EVENT");
var request = new RestRequest(Method.GET);
request.AddHeader("X-Workspace-Id", "{{workspace_id}}");
request.AddHeader("X-Api-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-Workspace-Id": "{{workspace_id}}",
  "X-Api-Key": "<apiKey>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://{tenant}.atomicwork.com/api/v1/workspaces/1/request-automations/QUESTION_REQUEST/query-conditions?context=EMAIL&trigger_type=EVENT")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```