Skip to main content

Introduction

The Xenia API lets you read your operational data — users, locations, tasks, and submissions — and pull reporting/analytics into external systems and BI tools. This guide gets you to your first API call in a few minutes.

Prerequisites

Before you begin, ensure you have:
  1. A Xenia workspace with admin/owner access
  2. Public API enabled — this is an add-on capability. If you don’t see Settings → Public Integrations, contact your Xenia representative to enable it.
  3. API credentials — a client key + secret you generate in the workspace settings

Step 1: Generate API credentials

  1. Log in to the Xenia web app
  2. Open Settings → Public Integrations
  3. Click Create Client Key
  4. Enter a name for your key (e.g., “My Integration”) and choose the default user the key acts as
  5. Save your credentials securely:
    • Client Key — your API identifier
    • Client Secret — your API secret (shown only once)
Store your Client Secret securely. It is displayed only once at creation and cannot be retrieved later. If it’s lost, create a new key.

Step 2: Understand authentication

The Xenia API uses client credentials. Include these headers with every request:
You do not send a workspace-id header — the workspace is derived automatically from the key. Only supply a workspace ID where an endpoint path contains {workspaceId}.

Step 3: Make your first API call

Verify your credentials by fetching the users in your workspace. Request:
Response: (the workspace-specific fields — role, locations, status — live under UserWorkspaces[])
A 200 with a data array means your credentials work. A 401 means the key/secret is wrong; a 403 means this route isn’t allowed for API keys or the key’s user lacks permission.

Step 4: Confirm your identity and workspace

The response returns the acting user’s context (id, workspaces, role, permissions, features):

API base URL

All requests go to:

Common API paths

Next steps

Core Concepts

Understand the key entities and how they relate

Error Handling

Response shapes and how to handle errors

Users API

Manage users in your workspace

Data Extraction

Pull submissions and analytics into BI tools

Need help?