API conventions
How Pylon's API handles IDs, timestamps, pagination, search filters, updates, files, and slugs
These rules apply across Pylon's API. The API reference lists each endpoint's parameters; this page explains how they behave.
Requests and responses
Send request bodies as JSON with
Content-Type: application/json. The one exception isPOST /attachments, which takesmultipart/form-data.Successful responses put the result in
dataand include arequest_id. List and search responses also includepagination.Unknown fields are ignored, not rejected. A misspelled field name is silently dropped, so check the field names in the reference.
Sending
nullfor an optional field is the same as leaving it out.
IDs
Most endpoints take Pylon IDs. A few path parameters also accept another identifier:
/issues/{id} and its sub-paths
Issue ID or issue number
/accounts/{id}, and account activities, highlights, and files
Account ID or account external ID
/contacts/{id}
Contact ID or contact external ID
See External IDs for attaching your own identifiers to accounts.
Timestamps
Every timestamp uses RFC 3339, for example
2026-10-01T00:00:00Zor2026-10-01T09:00:00+02:00. A timezone (Zor an offset) is required.Responses return timestamps in UTC to the second, for example
2026-10-01T14:03:27Z.In query strings, encode
+as%2Bor useZ. An unencoded+is read as a space, and the request fails with400.
Pagination
List and search endpoints use cursor pagination.
Send a
limit(optional). Leave outcursorfor the first page.If the response has
pagination.has_next_page: true, sendpagination.cursorascursorin the next request, with the same filter and other parameters.Stop when
paginationis missing orhas_next_pageisfalse.
GET endpoints take cursor and limit as query parameters. POST .../search endpoints take them in the JSON body. Treat cursors as opaque.
Limits vary by endpoint and are listed on each endpoint's limit parameter. Most search endpoints default to 100 results and accept up to 1,000. GET /issues defaults to and allows up to 20,000.
Listing issues by time
GET /issues requires a time window:
Which field is filtered?
The issue's created_at.
Are the bounds inclusive?
start_time is inclusive. end_time is exclusive.
Are both required?
Yes. Leaving either out returns 400.
Maximum window
365 days between start_time and end_time.
Order
Newest created_at first.
Page size
limit defaults to 20,000, the maximum.
To filter on another timestamp, such as updated_at, resolved_at, or latest_message_activity_at, use POST /issues/search. Search has no maximum window:
Search filters
Every POST .../search endpoint except feature requests takes a filter object with the same structure.
operator
Required unless the filter sets related_object. See the operators below.
field
The field to compare. Required unless operator is and or or.
value
A single value, for operators that take one.
values
An array, for operators that take several.
subfilters
An array of filters. Only used with and and or.
related_object
Matches on a related object, such as an issue's account. See Filter on a related object.
Combine conditions with and and or:
A filter can be at most 3 levels deep, counting the top-level filter. The example above uses all 3.
In the example,
priorityis a custom field slug. Custom fields are filtered by slug, like built-in fields.andandormust havesubfiltersand can't have afieldorvalue.Use
valueorvaluesaccording to the operator. Sending the other one returns400.
Filter on a related object
To match on a field of a related object, such as an issue's account or requester, put a related_object in place of a condition. relationship names the related object and filter is the condition it must match:
POST /issues/search
account
Account
Account read
requester
Contact
Contact read
assignee
User
User read
POST /contacts/search
account
Account
Account read
POST /accounts/search
owner
User
User read
POST /tasks/search
account
Account
Account read
project
Project
Task management read
assignee
User
User read
POST /projects/search
account
Account
Account read
A filter with
related_objectsets nothing else: nooperator,field,value,values, orsubfilters.related_object.filteruses the fields, operators, and custom field slugs of the related object's own search endpoint, listed in Allowed fields. Every one of those fields works, including accountaccount_idandtags. Projectis_archivedtakestrueorfalse.To check several conditions on the same related object, make
related_object.filteranandororgroup.A
related_objectcan't contain anotherrelated_object. It doesn't count toward the depth limit.Each relationship needs the read permission of the related object, without restrictions. Without it, the request returns
403.Dotted paths such as
account.namearen't supported. The error message shows therelated_objectform to use instead.Ticket form visibility conditions (
fields[].visibility_conditions[].filterfromGET /ticket-forms) use this format, and can containrelated_objectwith the issue relationshipsaccount,requester, andassignee. A condition that hops through a relationship custom field to an account, contact, or user reads back as arelated_objectwithcustom_field(the field's slug) in place ofrelationship, and itsfilteruses the target object's fields and custom field slugs. A condition this format can't express, such as a hop to a custom object, a chain of hops, or a value relative to the viewer, hasfilter_unsupported: trueand nofilter.Search filters don't accept
related_object.custom_fieldyet and return400. Filter on the relationship custom field's slug with the related objects' IDs instead.
Operators
equals / not_equals
value
is / isn't exactly the value
in / not_in
values
is / isn't one of the values
contains / does_not_contain
value
has / doesn't have the value (multi-value fields such as tags)
includes_all_of
values
has every value (multi-value fields)
includes_exactly
values
has exactly the values, in any order (multi-value fields)
belongs_to / not_belongs_to
values (team IDs)
is / isn't a user in any of the teams, including subteams
string_contains / string_does_not_contain
value
contains / doesn't contain the text
starts_with / ends_with
value
starts / ends with the text
time_is_after / time_is_before
value (RFC 3339)
is strictly after / before the time
time_range
values: [start, end]
is between the two times, including both ends
greater_than, greater_than_or_equals, less_than, less_than_or_equals
value
compares numerically
is_set / is_unset
nothing
has / doesn't have a value
containsanddoes_not_containon a text field that holds one value, such as issuesubjectandbody_html, accountname, or contactemailandname, meanstring_containsandstring_does_not_contain. On accountname,does_not_containstill excludes an exact name.belongs_toandnot_belongs_towork on issueassignee_id, accountowner_id, and User custom fields. They take team IDs only, notcurrent_userormy_teams.not_belongs_toalso matches records with no user.includes_exactlyworks on issuetagsand Multi-select custom fields.
Allowed fields
Each search endpoint accepts its own fields, and each field allows only some operators. The full field-and-operator table is in the endpoint's description in the API reference. An invalid filter, such as one with an unknown field or a disallowed operator, returns 400 with code invalid_filter. The response lists every problem in the filter, each with its location and, where possible, the closest valid field, operator, or value. See Filter errors.
Endpoint
Built-in fields
Custom fields
search_text
POST /issues/search
created_at, updated_at, resolved_at, latest_message_activity_at, latest_customer_message_activity_at, latest_vendor_message_activity_at, first_response_at, state, tags, subject, body_html, number, source, number_of_touches, account_id, partner_account_id, requester_id, assignee_id, team_id, follower_user_id, follower_contact_id, ticket_form_id, issue_type, issue_is_issue_group, parent_issue_group_id, customer_portal_visible, reopened, slack_channel_id, workspace_email, requester_email, is_snoozed, email_subject, first_message_from, last_message_from, latest_public_message_activity_at, number_of_customer_messages, message_redaction_used, time_to_first_response, from_email, cc_email, ccs, asana_product_issue, github_product_issue, jira_product_issue, linear_product_issue, shortcut_product_issue, product_issue_source, product_ticket_completion, number_of_child_issues, created_in_channel_id, product_area
Yes
Yes
POST /accounts/search
account_id, name, domains, primary_domain, tags, external_ids, owner_id, parent_account_id, partner_account_id, state, type, source, created_at, last_customer_activity_at, last_vendor_activity_at, last_broadcast_sent_at, issue_count_last_90_days, number_of_users_in_channel, primary_channel_id, external_channel_ids, external_channel_type, internal_channel_ids, slack_channel_id, slack_channel_name, internal_slack_channel_id, internal_slack_channel_name
Yes
Yes
POST /contacts/search
id, email, name, account_id
Yes
Yes
POST /users/search
email (equals, in, not_in)
No
No
POST /custom-objects/{type}/search
name, account, created_at, updated_at
Yes
No
POST /tasks/search
account_id, project_id, status, assignee_id, milestone_id, created_at, due_date, updated_at
Yes
No
POST /projects/search
account_id, status, owner_id, is_archived, created_at, updated_at
Yes
No
POST /milestones/search
project_id, account_id, due_date, created_at, updated_at, started_at, completed_at
No
No
POST /call-recordings/search
account_id, source, title, start_time
No
No
POST /surveys/search
updated_at
No
No
POST /audit-logs/search
action, action_happened_at, object_id
No
No
POST /feature-requests/search doesn't take a filter. It takes query, request_statuses, account_ids, and limit.
Some fields also accept an earlier name: account id for account_id, and issue title for subject. Responses and error messages use the current names.
search_text runs a fuzzy text search. When you also send a filter, results must match both.
Values to use
state:new,waiting_on_you,waiting_on_customer,on_hold,closed, or a custom status slug.tags: the tag name or ID.is_snoozed:trueorfalse.requester_email: the requester's email address. It's shorthand for arelated_objectfilter on therequesterrelationship'semail, and works for issues from any channel.Fields with a fixed set of values, such as account
state, reject any other value with400, and the error lists the allowed values.current_userandmy_teams: on a field that holds user IDs, such as issueassignee_idor accountowner_id,current_usermeans the API token's user. On a field that holds team IDs, such as issueteam_id,my_teamsmeans that user's teams. Using either on a field that holds a different kind of ID returns400.current_contactisn't available, because API requests act as a user, not a contact.Custom fields: set
fieldto the field's slug. For select and multi-select fields, use option slugs as values. See Find slugs.
Operators for a custom field depend on its type:
Text, URL, Email, Select
equals, not_equals, in, not_in, string_contains, string_does_not_contain, starts_with, ends_with, is_set, is_unset
Number
equals, not_equals, in, not_in, greater_than, greater_than_or_equals, less_than, less_than_or_equals, is_set, is_unset
Date, Datetime
equals, not_equals, in, not_in, time_is_after, time_is_before, time_range, is_set, is_unset
Multi-select
contains, does_not_contain, in, not_in, includes_all_of, includes_exactly, is_set, is_unset
True/False, Contact, Relationship
equals, not_equals, in, not_in, is_set, is_unset
User
equals, not_equals, in, not_in, belongs_to, not_belongs_to, is_set, is_unset
Updating records
PATCH endpoints change only the fields you send.
Omitted fields don't change.
nullcounts as omitted.Arrays replace the whole list. Send the complete list you want, not just additions. Send
[]to clear it. Tags are the exception when you settags_apply_mode, below.Clear a reference with an empty string. For example,
"assignee_id": ""unassigns an issue.custom_fieldsupdates only the fields you list. Other custom fields keep their values. For a multi-select field,valuesreplaces the current selection. To clear a field, send itsslugwith novalueorvalues.
PATCH /issues/{id}
tags
Replaces all tags on the issue by default. Set tags_apply_mode to append_only or remove_only to only add or only remove the tags you send.
assignee_id, team_id, requester_id
"" removes the value.
PATCH /accounts/{id}
channels
Replaces the linked channels. Channels you leave out are unlinked from the account.
domains, primary_domain
Replaces the domains. primary_domain must be in domains.
tags
Replaces the list by default. Set tags_apply_mode to append_only or remove_only to only add or only remove the tags you send.
external_ids
Replaces the list.
subaccount_ids
Replaces the subaccounts. Accounts you leave out stop being subaccounts.
owner_id
"" removes the owner.
PATCH /accounts (bulk)
tags
Set tags_apply_mode to replace (default), append_only, or remove_only.
PATCH /contacts/{id}
email
Replaces all of the contact's emails with this one.
emails, phone_numbers, external_ids
Replaces the list.
account_id
"" removes the contact from its account.
PATCH /teams/{id}
user_ids
Replaces the team's members.
PATCH /knowledge-bases/{id}/articles/{article_id}
tag_ids
Replaces the article's tags by default. Set tags_apply_mode to append_only or remove_only to only add or only remove the tags you send.
Updating knowledge base articles
body_htmlsaves a new draft. The published article doesn't change until you publish.To publish the new body in the same request, also send
"publish_updated_body_html": trueor"is_published": true."is_published": falseunpublishes the article.title,is_unlisted,visibility_config,collection_id, andauthor_user_idapply to the live article right away.To update a translation, add
language. The same draft and publish rules apply.
Files and attachments
Upload a file
POST /attachments takes multipart/form-data with these fields:
file
One of file or file_url
The file to upload. One file per request.
file_url
One of file or file_url
A URL Pylon downloads the file from.
description
No
A description of the file.
The response's data has the file's id, name, url, and description. Pass url in attachment_urls when you create an issue, reply, or internal note.
Files up to 100 MB are supported. Larger files can be rejected with
413; share those as a link instead. Email and chat channels may have smaller limits.Executables and script files are rejected with
400.attachment_urlsalso accepts any publicly reachable URL. Pylon downloads the file and stores its own copy.
Download a file
An issue's attachment_urls lists the files on its messages. Each message from GET /issues/{id}/messages has its files in file_urls.
Most of these are signed links. Download them with a plain
GET, without anAuthorizationheader.They don't expire, so you can store them. Anyone with a link can download the file, so treat links as sensitive.
Use the URL exactly as returned. Changing it invalidates the signature.
Some older attachments return the URL they were originally stored with.
Find slugs
The API refers to custom fields, select options, and statuses by slug, not by label.
Custom field
The API Slug column on field settings pages, such as Settings > Issue data > Fields and Settings > Account data > Fields
GET /custom-fields?object_type=issue returns slug
Select option
View and edit slugs in the field's … menu
select_metadata.options[].slug in the same response
object_type can be account, issue, contact, task, project, meeting, or opportunity. If you change a slug, update every integration that uses the old one.
Some slugs are reserved because they match built-in field names, for example account state, source, and account_id, and issue subject. If you send a reserved slug in slug when creating a custom field, the request is rejected. If you leave slug out and the field's label would produce a reserved slug, Pylon adds a number, for example state_1.
Was this helpful?

