List printers
curl --request POST \
--url 'https://clarus-api.com/graphql#ListPrinters' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Clarus-Subdomain: <api-key>' \
--data '
{
"query": "query($filter: PrinterFilterType) { printers { all(filter: $filter) { edges { node { id name description is_default supports_documents supports_labels status integration { id } } } } } }"
}
'import requests
url = "https://clarus-api.com/graphql#ListPrinters"
payload = { "query": "query($filter: PrinterFilterType) { printers { all(filter: $filter) { edges { node { id name description is_default supports_documents supports_labels status integration { id } } } } } }" }
headers = {
"Authorization": "Bearer <token>",
"X-Clarus-Subdomain": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-Clarus-Subdomain': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: 'query($filter: PrinterFilterType) { printers { all(filter: $filter) { edges { node { id name description is_default supports_documents supports_labels status integration { id } } } } } }'
})
};
fetch('https://clarus-api.com/graphql#ListPrinters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"printers": {
"all": {
"edges": [
{
"node": {
"id": "3",
"name": "Zebra ZD420 - Packing",
"description": "Label printer at pack station 2",
"is_default": true,
"supports_documents": false,
"supports_labels": true,
"status": "AVAILABLE",
"integration": {
"id": "12"
}
}
}
]
}
}
}
}{
"error": "<string>"
}Printers
List printers
Retrieve Cloud Print printers using GraphQL. Supports filtering, sorting, and pagination via relay-style connections.
POST
/
graphql#ListPrinters
List printers
curl --request POST \
--url 'https://clarus-api.com/graphql#ListPrinters' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Clarus-Subdomain: <api-key>' \
--data '
{
"query": "query($filter: PrinterFilterType) { printers { all(filter: $filter) { edges { node { id name description is_default supports_documents supports_labels status integration { id } } } } } }"
}
'import requests
url = "https://clarus-api.com/graphql#ListPrinters"
payload = { "query": "query($filter: PrinterFilterType) { printers { all(filter: $filter) { edges { node { id name description is_default supports_documents supports_labels status integration { id } } } } } }" }
headers = {
"Authorization": "Bearer <token>",
"X-Clarus-Subdomain": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-Clarus-Subdomain': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: 'query($filter: PrinterFilterType) { printers { all(filter: $filter) { edges { node { id name description is_default supports_documents supports_labels status integration { id } } } } } }'
})
};
fetch('https://clarus-api.com/graphql#ListPrinters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"printers": {
"all": {
"edges": [
{
"node": {
"id": "3",
"name": "Zebra ZD420 - Packing",
"description": "Label printer at pack station 2",
"is_default": true,
"supports_documents": false,
"supports_labels": true,
"status": "AVAILABLE",
"integration": {
"id": "12"
}
}
}
]
}
}
}
}{
"error": "<string>"
}Query Structure
query($filter: PrinterFilterType) {
printers {
all(filter: $filter) {
edges {
node {
id
name
description
is_default
supports_documents
supports_labels
status
integration { id }
}
}
}
}
}
Filter Argument
All filters are passed inside thefilter argument. Each filter field accepts an input object with operators (e.g. eq, ilike, from, to, between):
{
"filter": {
"id": {
"eq": "value"
}
}
}
Available Filters
| Filter | Input Type | Operators | Description |
|---|---|---|---|
id | IdInputType | eq, in, gt, gteq, lt, lteq, filled | Printer ID |
integration_id | IdInputType | eq, in, gt, gteq, lt, lteq, filled | Cloud Print integration ID |
integration_name | StringInputType | eq, ilike, like, in, between | Cloud Print integration name |
name | StringInputType | eq, ilike, like, in, between | Printer name |
description | StringInputType | eq, ilike, like, in, between | Printer description |
is_default | BooleanInputType | eq | Whether this is the default printer |
supports_documents | BooleanInputType | eq | Whether the printer can print documents |
supports_labels | BooleanInputType | eq | Whether the printer can print labels |
status | StatusInputType | eq, in | Printer status (enum input — AVAILABLE, ACCESS_REVOKED) |
Authorizations
OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.
FlowAuthorization Code
- Authorization URL
- https://clarus-api.com/oauth/authorize
- Token URL
- https://clarus-api.com/oauth/token
FlowClient Credentials
- Token URL
- https://clarus-api.com/oauth/token
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Body
application/json
GraphQL query string
Example:
"query($filter: PrinterFilterType) { printers { all(filter: $filter) { edges { node { id name description is_default supports_documents supports_labels status integration { id } } } } } }"
Query variables including the filter object
Show child attributes
Show child attributes
Example:
{
"filter": { "name": { "ilike": "Zebra" } }
}

