PDQ Connect API
PDQ's NEW APIs are now released and generally available. This article covers PDQ API, the JSON:API based API that became generally available on November 16, 2026. The previous API continues as PDQ API (Legacy), with no pressure to upgrade or switch over to the new one. See "Moving from PDQ API (Legacy)" below when you are ready.
PDQ Connect provides an HTTP based, REST-style API that enables admins to securely integrate with their own scripts, integrations, and other tools. PDQ API follows the JSON:API 1.1 standard, so any JSON:API client library works with it, and it is versioned by date so an integration you write today keeps working until you choose to upgrade.
Where PDQ API (Legacy) was mostly for reading data, PDQ API lets you change it. You can create and manage static groups, organize packages into folders, delete custom packages and devices, set custom field values, reboot devices, and deploy packages to any mix of devices and groups. Every resource uses the same paging, filtering, sorting, and error format.
Capabilities
Detailed API usage documentation (including a comprehensive list of available endpoints and schemas) is available at https://app.pdq.com/api-docs. The OpenAPI 3.1 specification is served at https://app.pdq.com/openapi and is generated from the server, so you can use it to generate clients or validate requests.
The list below is intended to be an overview of what functions you can expect to find in the API.
| Target | API functions available |
| Devices |
|
| Groups |
Dynamic groups are read only through the API. Manage them in the PDQ Connect console. |
| Deployments |
|
| Packages |
|
| Package folders |
New. Package folders are not available in PDQ API (Legacy).
|
| Vulnerabilities |
|
| Custom Fields |
Note: These endpoints exist in addition to the Custom Field endpoints for Devices above.
|
PDQ API does not create packages or upload installers, and it does not cancel deployments. Publishing a package still happens in the console.
Authentication
Before you can use the API, you will need to set up authentication using Connect's secure, token-based authentication system. Only admins can create API keys.
The API keys page itself is only visible to users with the Admin role. If you don't see it under Settings, ask an admin on your team to generate or manage keys for you.
API keys created for PDQ API (Legacy) work with PDQ API as well, as long as they hold the scopes the request needs. You do not need separate keys for the two APIs.
PDQ Connect only accepts encrypted HTTPS requests.
| First, generate a new API key using the "API keys" page in Connect's settings page located in the lower left-hand corner of the console. |
|
Then, in the "API keys" page, click on the "Create API key" button. Give your API key a descriptive name that helps you remember what you are using it for. Each key name has to be unique, so if you enter a name that is already in use, Connect shows an error and asks you to choose a different one. Next, set the access level for each resource: Devices, Deployments, Groups, Packages, Custom fields, and Vulnerabilities. Every resource starts at No access. Raise the ones the key needs to read, or to read and write, and leave the rest at No access. This limits the key to exactly what it should be able to do. Then press the "Generate key" button to create the key. |
|
After you press the "Generate key" button, you will be given an opportunity to copy the API key to your computer's clipboard. Press the copy button to the right of the hidden API key to copy it. Make sure to save the API key somewhere safe, as this is the only chance you have to see the API key. If you lose it, you will have to make a new one. |
Scopes and key visibility
Every new key is scoped, which means it only works for the actions you granted it. You can review the scopes on any key from the "API keys" page at any time.
PDQ API checks scopes on every request, per resource and per action. Each resource has a read scope and a write scope, for example devices:read and devices:write. Read scopes cover GET requests. Write scopes cover requests that create, change, or delete data, and actions such as rebooting a device. A write scope does not include read access, so a key that reads and writes a resource needs both.
Some operations touch more than one resource and need every scope involved. Setting a custom field value on a device needs both custom_fields:write and devices:write. Listing a device's vulnerabilities needs both vulnerabilities:read and devices:read.
When a key is missing a scope, the API returns 403 Forbidden and the error names only the scopes that are missing:
{
"errors": [
{
"status": 403,
"detail": "Missing required scopes: groups:write"
}
]
}A key's scopes are fixed once it is created. To change them, create a new key with the scopes you need and revoke the old one.
The API ID column shows the last four characters of each API key. API IDs are only available for keys created after August 17, 2026.
API key names appear in your Deployments and Audit logs, so you can see which key triggered a deployment or made a change.
API keys created before scoped keys were released keep full access to every endpoint and appear as fully scoped keys. You do not need to recreate them.
Request Header Authentication
To use the API key you generated, you will need to include it in an HTTP header to the Connect API endpoint. It must be included in each request.
PDQ API also requires a version header, x-pdq-api-version, on every request. The current version is 2026-10-20. A request without the header, or with a version the API does not recognize, returns 400 Bad Request with the list of supported versions. If you integrated during Early Access with the x-pdq-connect-api-version header, it still works; when both headers are sent, x-pdq-api-version wins.
Invoke-RestMethod -Uri https://app.pdq.com/api/devices -Headers @{'Authorization' = 'Bearer API_KEY_HERE'; 'x-pdq-api-version' = '2026-10-20'}Requests that send a body (create, update, and reboot requests) must use the content type application/vnd.api+json.
You can now use the API key to interact with the Connect API. If you ever stop using an API key or if you have reason to believe your key has been viewed by someone who shouldn't have API access, remember to revoke the API key as soon as possible. You can revoke a key by pressing the "Revoke" button and following the prompts.
API versions
Versions of PDQ API are named by the date they were released. When PDQ makes a change that could break an integration, such as removing a field, adding a required parameter, or changing the status code of a successful response, that change ships as a new version. Additive changes, such as a new endpoint, a new optional field, a changed error message, or a changed error status code, land in the current version without a version bump.
Each version stays supported for at least 18 months after the next version is released. After a version is retired, requests for it return 410 Gone. The Versioning section of the API docs lists the supported versions and their end of support dates. Before you move an integration to a newer version, read the Changelog section of the API docs for the breaking changes in that version.
Examples using PowerShell
Get Devices
#Get Devices
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
Invoke-RestMethod -Headers $headers -Uri "$ConnectApiBaseUrl/devices?page[size]=100"Get every device, following the cursor until the last page
#Get every device, following the cursor until the last page
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
$uri = "$ConnectApiBaseUrl/devices?page[size]=100"
$devices = @()
while ($uri) {
$response = Invoke-RestMethod -Headers $headers -Uri $uri
$devices += $response.data
$uri = $response.links.next
}
$devices.CountGet Windows devices, most recently updated first
#Get Windows devices, most recently updated first
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
Invoke-RestMethod -Headers $headers -Uri "$ConnectApiBaseUrl/devices?filter[os]=windows&sort=-updatedAt"Get groups
#Get groups
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
Invoke-RestMethod -Headers $headers -Uri "$ConnectApiBaseUrl/groups"
Get devices in group
#Get devices in group
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
Invoke-RestMethod -Headers $headers -Uri "$ConnectApiBaseUrl/groups/[groupId]/devices"
Create a static group and add devices to it
#Create a static group and add devices to it
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
$body = @{
data = @{
type = "groups"
attributes = @{ name = "Failed audit"; groupType = "static" }
relationships = @{
devices = @{ data = @( @{ type = "devices"; id = "[deviceId]" }, @{ type = "devices"; id = "[deviceId]" } ) }
}
}
} | ConvertTo-Json -Depth 10
Invoke-RestMethod -Headers $headers -Method Post -ContentType "application/vnd.api+json" -Uri "$ConnectApiBaseUrl/groups" -Body $body
Get packages by name contains
#Get packages by name contains
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
Invoke-RestMethod -Headers $headers -Uri "$ConnectApiBaseUrl/packages?filter[name]=~windows"
Get package versions
#Get package versions
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
Invoke-RestMethod -Headers $headers -Uri "$ConnectApiBaseUrl/packages/[packageId]/packageVersions"
Start a deployment
#Start a deployment of a package version to devices and groups
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
$body = @{
data = @{
type = "deployments"
relationships = @{
packageVersion = @{ data = @{ type = "packageVersions"; id = "[packageVersionId]" } }
devices = @{ data = @( @{ type = "devices"; id = "[deviceId]" } ) }
groups = @{ data = @( @{ type = "groups"; id = "[groupId]" } ) }
}
}
} | ConvertTo-Json -Depth 10
$deployment = Invoke-RestMethod -Headers $headers -Method Post -ContentType "application/vnd.api+json" -Uri "$ConnectApiBaseUrl/deployments" -Body $body
$deployment.data.id
Set a custom field value on a device
#Set a custom field value on a device
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
$body = @{ data = @{ type = "deviceCustomFields"; attributes = @{ value = "Marketing" } } } | ConvertTo-Json -Depth 10
Invoke-RestMethod -Headers $headers -Method Put -ContentType "application/vnd.api+json" -Uri "$ConnectApiBaseUrl/devices/[deviceId]/deviceCustomFields/[customFieldId]" -Body $body
Delete a device
#Delete a device
$ConnectApiBaseUrl = "https://app.pdq.com/api"
$ConnectApiToken = "YOUR CONNECT API TOKEN"
$headers = @{'authorization' = "Bearer $ConnectApiToken"; 'x-pdq-api-version' = '2026-10-20' }
Invoke-RestMethod -Headers $headers -Method Delete -Uri "$ConnectApiBaseUrl/devices/[deviceId]"
Example using Postman
- Open Postman, and click + icon to Create new request (which will open in a new tab).
- In the method selection dropdown (set to GET by default), select the appropriate method for your request, and then enter your request in the text box.
(e.g.https://app.pdq.com/api/devices) - Within the request, switch to the Authorization tab.
- Select an Auth Type of Bearer Token, and paste your PDQ Connect API key into the Token box.
- Switch to the Headers tab and add a header with the key
x-pdq-api-versionand the value2026-10-20. -
(optional) In order to store your PDQ Connect API token more securely, click the padlock icon and then click Set as Variable.
Enter a Variable name in the text box, and then click to select a Scope for the variable. Store the variable within a defined scope or in your vault in accordance with your organization's security practices.
(See Postman KB: Store and reuse values using variables) - Click Send to send the request.
Rate limits and paging
The API is rate limited per organization. When you exceed the limit, the API returns 429 Too Many Requests. Wait and retry the request.
List endpoints return 10 results per page by default and up to 100 when you set page[size]=100. If you are querying more than 100 objects (devices, packages, etc.), follow the links.next URL in each response until it is null. A full page always carries a links.next, so the last request can return an empty page. Each response also carries links.prev for paging backwards. The cursors in those links are opaque: pass them back exactly as given, and do not store them between runs. Keep the same sort and filter parameters while paging through a collection.
Filtering and sorting
Every list endpoint accepts filter[attribute] parameters, and the operators are the same on every resource. The API docs list the attributes you can filter and sort on for each resource.
| Attribute type | Syntax | Example |
| String |
value exact, ^value starts with, ~value contains, value$ ends with |
filter[name]=^LAB |
| Date and time |
<value before, >value after, start..end between (both exclusive). Values are full ISO 8601 date times with a time zone. A bare value or a date without a time returns 400. |
filter[insertedAt]=>2026-10-20T00:00:00Z |
| Integer |
value, <value, >value, <=value, >=value
|
No list has an integer filter in version 2026-10-20 |
| Enum, boolean, and ID | Exact match only |
filter[os]=windows, filter[isIgnored]=false
|
Sort with sort=attribute for ascending or sort=-attribute for descending. One sort attribute per request.
PDQ API is strict about input. An unknown query parameter, an unknown field in a request body, a filter on an attribute that is not in the allow list, or a badly formatted date returns 400 Bad Request with a pointer to the offending field. An ID that does not exist, or that belongs to another organization, returns 404 Not Found. PDQ API (Legacy) ignored unknown parameters, so a script that passed a misspelled parameter to it and got results will get a 400 from PDQ API until the parameter is fixed.
Moving from PDQ API (Legacy)
PDQ API (Legacy) keeps working and no retirement date has been announced. When you are ready to move an integration, these are the differences to account for.
| Area | PDQ API (Legacy) | PDQ API |
| Base URL | https://app.pdq.com/v1/api |
https://app.pdq.com/api plus the header x-pdq-api-version: 2026-10-20
|
| Response format | Varies by endpoint | JSON:API 1.1: data, attributes, relationships, links, errors
|
| Paging |
page and pageSize, up to 250 per page |
page[size] up to 100 per page; follow links.next
|
| Related data |
includes parameter |
No include parameter. Common details are inline on the device; larger lists (software, disks, drivers, Windows features, custom field values, vulnerabilities) are separate paged endpoints under the device. |
| Sorting |
sortAsc and sortDesc
|
sort=field and sort=-field
|
| Filtering | Different filter object per endpoint |
filter[attribute] with the same operators on every endpoint |
| Deployment create | Query parameters package and targets
|
JSON:API body with relationships.packageVersion, relationships.devices, and relationships.groups; every ID is checked before the deployment is created |
| Reboot | POST /v1/api/devices/reboot |
POST /api/deviceReboots with a list of up to 1,000 devices |
| Unknown parameters and IDs | Unknown parameters ignored; unknown IDs returned 401 or 404 | Unknown parameters return 400; unknown, malformed, and other-organization IDs return 404 on every verb |
| Documentation | Static docs page | Generated OpenAPI 3.1 spec at /openapi and docs at /api-docs. Legacy docs stay at /v1/docs. |
Changelog
November 16, 2026: PDQ API generally available
Changed: Connect dropped from the name. The API is now PDQ API, the previous API is PDQ API (Legacy), and the version header is x-pdq-api-version. The x-pdq-connect-api-version header still works.
New: ignore a vulnerability on one device (PATCH /api/devices/{id}/deviceVulnerabilities/{id}). Ignoring from the organization level still applies to every device.
New: filter device vulnerabilities by status (filter[status] on GET /api/devices/{id}/deviceVulnerabilities), so a daily sync can skip resolved rows.
Changed: date and time filters. A new range form, start..end, matches between two instants. A bare value no longer matches a 12 hour window; it returns 400, as does a date without a time.
October 20, 2026: PDQ Connect API (Early access)
The new JSON:API based API released to Early Access organizations, with Windows updates per device and Active Directory group lookup added on October 21 and October 30.