Repository navigation
Home
Fabian Steiner edited this page Nov 4, 2026
·
3 revisions
Python SDK for the Xurrent REST API. Source and usage examples: README.
Every call goes through a XurrentApiHelper: it authenticates (API token or OAuth client credentials), follows the pagination of the API and retries on HTTP 429.
from xurrent import XurrentApiHelper, Request, PredefinedFilter
x_api_helper = XurrentApiHelper("https://api.xurrent.com/v1", "<api token>", "<account>")
open_requests = Request.get_requests(x_api_helper, PredefinedFilter.open, max_results=10)
request = Request.get_by_id(x_api_helper, open_requests[0].id)
notes = request.get_notes(sort="-created_at", max_results=1)-
Class.get_by_id(connection, id)reads one record,Class.get_<records>(connection, predefinedFilter, queryfilter)lists records;max_results(where available) stops after that many. - Predefined filters are enums (e.g.
PredefinedFilter.openfor/requests/open);queryfilteris a dict of field filters ({"subject": "Printer"}). - Records are Python objects: the constructor arguments listed on each page plus every other field of the API response as attributes. References to other records (e.g.
request.requested_by) become instances of their class where the page says so. - Enum fields hold enum members for known values; a value the SDK does not know yet stays a plain string, so new values in the API do not break loading.
- Write methods (
create,update,archive, ...) send the change to the API and return the updated record.
| Class | API resource | Module | Description |
|---|---|---|---|
| Calendar | /calendars |
xurrent.calendars |
Business hours (calendar hours per weekday) and holidays that define when service hours, support |
| ClosureCode | /closure_codes |
xurrent.closure_codes |
A closure code that classifies how a request was resolved. |
| ConfigurationItem | /cis |
xurrent.configuration_items |
A configuration item (CI): hardware, software or another asset registered in the CMDB, based on |
| Contract | /contracts |
xurrent.contracts |
A contract with a customer or supplier organization, covering configuration items. |
| CustomCollection | /custom_collections |
xurrent.custom_collections |
A custom collection: an account-defined list whose elements can be selected in UI extension |
| CustomCollectionElement | /custom_collection_elements |
xurrent.custom_collection_elements |
An element (selectable value) of a custom collection. |
| EffortClass | /effort_classes |
xurrent.effort_classes |
An effort class: a kind of work (e.g. normal hours or overtime) used to classify time spent. |
| Holiday | /holidays |
xurrent.holidays |
A holiday: a period during which the calendars it is linked to are not active. |
| KnowledgeArticle | /knowledge_articles |
xurrent.knowledge_articles |
A knowledge article with instructions for end users or specialists, linked to services and |
| Organization | /organizations |
xurrent.organizations |
An organization (internal department, customer or supplier) with its people, contracts and SLAs. |
| OutOfOfficePeriod | /out_of_office_periods |
xurrent.out_of_office_periods |
A period in which a person is out of office, optionally with an approval delegate. |
| Person | /people |
xurrent.people |
A person (user) of the account; Person.get_me() returns the API user. |
| Problem | /problems |
xurrent.problems |
A problem: the unknown or known cause of one or more incidents, with the requests linked to it. |
| Product | /products |
xurrent.products |
A product (model or type) from which configuration items are created. |
| ProductCategory | /product_categories |
xurrent.product_categories |
A product category that groups products and sets their rule set (e.g. physical asset or |
| Project | /projects |
xurrent.projects |
A project with its phases, tasks, workflows and risks. |
| ProjectTask | /project_tasks |
xurrent.project_tasks |
A task of a project, assigned to a team or a person. |
| Release | /releases |
xurrent.releases |
A release that bundles workflows (changes) to be implemented together. |
| Request | /requests |
xurrent.requests |
A request (incident, RFC, RFI, order, ...) with its notes and linked configuration items. |
| RequestTemplate | /request_templates |
xurrent.request_templates |
A request template (standard request) that prefills requests for a service. |
| Risk | /risks |
xurrent.risks |
A risk that could affect services, projects or organizations. |
| Service | /services |
xurrent.services |
A service of a provider, with its service instances, offerings, request templates and SLAs. |
| ServiceInstance | /service_instances |
xurrent.service_instances |
A service instance: one installation of a service, with its configuration items and SLAs. |
| ServiceOffering | /service_offerings |
xurrent.service_offerings |
A service offering: the conditions (support hours, targets, charges) under which a service is |
| ShopArticle | /shop_articles |
xurrent.shop_articles |
An article that can be ordered in the shop. |
| ShopArticleCategory | /shop_article_categories |
xurrent.shop_article_categories |
A category that groups shop articles. |
| ShopOrderLine | /shop_order_lines |
xurrent.shop_order_lines |
A line of a shop order: one ordered shop article with its quantity and fulfillment. |
| Site | /sites |
xurrent.sites |
A site (location) of people and configuration items. |
| SkillPool | /skill_pools |
xurrent.skill_pools |
A skill pool: a group of people with a specific expertise, with its effort classes. |
| Task | /tasks |
xurrent.tasks |
A task of a workflow (change), e.g. an approval or an implementation activity. |
| Team | /teams |
xurrent.teams |
A team of people to which requests, tasks and problems are assigned. |
| TimeAllocation | /time_allocations |
xurrent.time_allocations |
A time allocation: an activity (e.g. a meeting or training) for which people register time |
| UiExtension | /ui_extensions |
xurrent.ui_extensions |
A UI extension: custom fields and form logic for records of one category. |
| Workflow | /workflows |
xurrent.workflows |
A workflow (change) with its tasks, linked requests and problems. |
| WorkflowTemplate | /workflow_templates |
xurrent.workflow_templates |
A workflow template from which workflows (changes) are created. |
Core: XurrentApiHelper (connection, api_call, search, list_archive, list_trash, list_audit_lines, bulk_export, bulk_import).
| Enum | Values | Page |
|---|---|---|
| CalendarPredefinedFilter |
enabled, disabled
|
Calendar |
| CompletionReason |
solved, workaround, gone, duplicate, withdrawn, no_reply, rejected, conflict, declined, unsolvable
|
Request |
| ConfigurationItemPredefinedFilter |
active, inactive, supported_by_my_teams
|
ConfigurationItem |
| ContractPredefinedFilter |
active, inactive
|
Contract |
| ContractStatus |
being_prepared, scheduled_for_activation, active, expired
|
Contract |
| CustomCollectionElementPredefinedFilter |
disabled, enabled
|
CustomCollectionElement |
| CustomCollectionPredefinedFilter |
disabled, enabled
|
CustomCollection |
| EffortClassPredefinedFilter |
enabled, disabled
|
EffortClass |
| KnowledgeArticlePredefinedFilter |
active, archived, managed_by_me
|
KnowledgeArticle |
| KnowledgeArticleStatus |
work_in_progress, not_validated, validated, archived
|
KnowledgeArticle |
| OrganizationPredefinedFilter |
disabled, enabled, external, internal, trusted, directory, support_domain, managed_by_me
|
Organization |
| OutOfOfficePeriodPredefinedFilter |
open, completed
|
OutOfOfficePeriod |
| PeoplePredefinedFilter |
disabled, enabled, internal, directory, support_domain
|
Person |
| PredefinedFilter |
completed, open, requested_by_or_for_me, assigned_to_my_team, assigned_to_me, waiting_for_me, problem_management_review, sla_accountability
|
Request |
| PredefinedNotesFilter |
public, internal
|
Request |
| ProblemImpact |
none, low, medium, high, top
|
Problem |
| ProblemPredefinedFilter |
active, known_errors, progress_halted, solved, managed_by_me, assigned_to_my_team, assigned_to_my_teams, assigned_to_me
|
Problem |
| ProblemStatus |
declined, assigned, accepted, in_progress, waiting_for, analyzed, change_requested, workflow_pending, on_backlog, project_pending, progress_halted, solved
|
Problem |
| ProductCategoryRuleSet |
physical_asset, logical_asset_with_financial_data, logical_asset_without_financial_data, server, software, software_distribution_package
|
ProductCategory |
| ProductDepreciationMethod |
not_depreciated, double_declining_balance, reducing_balance, straight_line, sum_of_the_years_digits
|
Product |
| ProductPredefinedFilter |
disabled, enabled, supported_by_my_teams
|
Product |
| ProjectCategory |
small, medium, large
|
Project |
| ProjectPredefinedFilter |
completed, open, managed_by_me
|
Project |
| ProjectStatus |
registered, in_progress, progress_halted, completed
|
Project |
| ProjectTaskCategory |
activity, approval, milestone
|
ProjectTask |
| ProjectTaskPredefinedFilter |
finished, open, managed_by_me, assigned_to_me, open_to_me
|
ProjectTask |
| ProjectTaskStatus |
registered, assigned, accepted, in_progress, waiting_for, failed, rejected, completed, approved, canceled
|
ProjectTask |
| ReleaseImpact |
none, low, medium, high, top
|
Release |
| ReleasePredefinedFilter |
completed, open, managed_by_me
|
Release |
| ReleaseStatus |
registered, in_progress, progress_halted, completed
|
Release |
| RequestCategory |
incident, rfc, rfi, reservation, order, fulfillment, complaint, compliment, other
|
Request |
| RequestStatus |
declined, on_backlog, assigned, accepted, in_progress, waiting_for, waiting_for_customer, reservation_pending, workflow_pending, project_pending, completed
|
Request |
| RequestTemplateCategory |
incident, rfc, rfi, reservation, order, fulfillment, complaint, compliment, other
|
RequestTemplate |
| RequestTemplateImpact |
low, medium, high, top
|
RequestTemplate |
| RequestTemplatePredefinedFilter |
disabled, enabled
|
RequestTemplate |
| RequestTemplateStatus |
declined, assigned, accepted, in_progress, waiting_for, waiting_for_customer, workflow_pending, completed
|
RequestTemplate |
| RiskPredefinedFilter |
open, closed
|
Risk |
| RiskSeverity |
low, medium, high, very_high
|
Risk |
| RiskStatus |
anticipated, materialized, closed
|
Risk |
| ServiceInstancePredefinedFilter |
active, inactive
|
ServiceInstance |
| ServiceInstanceStatus |
being_prepared, in_production, discontinued
|
ServiceInstance |
| ServiceOfferingPredefinedFilter |
catalog, portfolio
|
ServiceOffering |
| ServiceOfferingStatus |
planned, unpublished, available, temporarily_unavailable, discontinued
|
ServiceOffering |
| ServicePredefinedFilter |
disabled, enabled
|
Service |
| ShopArticleCategoryPredefinedFilter |
directory, support_domain
|
ShopArticleCategory |
| ShopArticlePredefinedFilter |
enabled, disabled, on_offer
|
ShopArticle |
| ShopArticleRecurringPeriod |
monthly, yearly
|
ShopArticle |
| ShopOrderLinePredefinedFilter |
open, completed, canceled, personal
|
ShopOrderLine |
| ShopOrderLineRecurringPeriod |
monthly, yearly
|
ShopOrderLine |
| ShopOrderLineStatus |
in_cart, workflow_pending, fulfillment_pending, completed, canceled
|
ShopOrderLine |
| SitePredefinedFilter |
disabled, enabled, directory, support_domain
|
Site |
| SkillPoolPredefinedFilter |
disabled, enabled
|
SkillPool |
| TaskPredefinedFilter |
finished, open, managed_by_me, assigned_to_my_team, assigned_to_me, approval_by_me
|
Task |
| TaskStatus |
registered, declined, assigned, accepted, in_progress, waiting_for, waiting_for_customer, request_pending, failed, rejected, completed, approved, canceled
|
Task |
| TeamPredefinedFilter |
disabled, enabled
|
Team |
| TimeAllocationCustomerCategory |
none, selected, any
|
TimeAllocation |
| TimeAllocationDescriptionCategory |
hidden, optional, required
|
TimeAllocation |
| TimeAllocationPredefinedFilter |
enabled, disabled
|
TimeAllocation |
| TimeAllocationServiceCategory |
none, selected, any
|
TimeAllocation |
| UiExtensionCategory |
request_template, knowledge_article_template, problem, release, workflow_template, task_template, project, project_task_template, service, service_instance, product, product_category, contract, organization, team, person, site, risk, custom_collection, scim_user, app_offering, shop_article
|
UiExtension |
| WorkflowCategory |
standard, non_standard, emergency, order
|
Workflow |
| WorkflowCompletionReason |
withdrawn, rejected, rolled_back, failed, partial, disruptive, complete
|
Workflow |
| WorkflowPredefinedFilter |
open, completed, managed_by_me
|
Workflow |
| WorkflowStatus |
being_created, registered, in_progress, progress_halted, completed
|
Workflow |
| WorkflowTemplateCategory |
standard, non_standard, emergency, order
|
WorkflowTemplate |
| WorkflowTemplatePredefinedFilter |
disabled, enabled
|
WorkflowTemplate |
- XurrentApiHelper
- Calendar
- ClosureCode
- ConfigurationItem
- Contract
- CustomCollection
- CustomCollectionElement
- EffortClass
- Holiday
- KnowledgeArticle
- Organization
- OutOfOfficePeriod
- Person
- Problem
- Product
- ProductCategory
- Project
- ProjectTask
- Release
- Request
- RequestTemplate
- Risk
- Service
- ServiceInstance
- ServiceOffering
- ShopArticle
- ShopArticleCategory
- ShopOrderLine
- Site
- SkillPool
- Task
- Team
- TimeAllocation
- UiExtension
- Workflow
- WorkflowTemplate