Overview
The Integration API lets another system read data from Jonta or write into it, using its own API key instead of a user's login session. It's built for things like a payroll system pulling timesheets, a CI pipeline recording deploys, or an external tool raising tickets.
- Base URL:
https://<your-instance>/api/integrations - Format: JSON (two endpoints also support CSV)
- Auth: a per-integration API key (see Authentication), never a user session or cookie
| Method | Endpoint | Scope required | Purpose |
|---|---|---|---|
POST | /deployments | deploy.write | Record a deploy (for example from CI) |
POST | /tickets | ticket.write | Create a ticket in a project |
GET | /tickets | ticket.read | Pull tickets out, paginated |
GET | /tickets/:id | ticket.read | Fetch one ticket by id or key |
GET | /projects | time.export, deploy.write, ticket.write or ticket.read (any one) | List the projects this key can reach, with their board columns |
GET | /timesheets | time.export | Export logged time, paginated |
GET | /ticket-types | ticket.write or ticket.read | List valid ticket types, for the typeId of POST /tickets |
GET | /stats | stats.read | Aggregate, non-identifying usage counts |
GET | /storage-stats | stats.read | Database and upload storage used by this instance |
Each key carries exactly one scope, so a timesheet key can never create tickets and a deploy key can never read stats.
This reference covers the endpoints above. Jonta also exposes
POST /api/integrations/git/:provider/:connectionIdfor git host webhooks (GitHub, GitLab and so on). That route is authenticated by the git host's own request signature, not an API key, and isn't meant to be called by an external integration directly.
Getting started
- An admin creates an API key in Settings → Integrations → API keys, scoped to the one thing the integration needs to do.
- Copy the key immediately. It's shown once and can't be retrieved again.
- Make a first call with it (
GET /api/integrations/statsis the simplest) and confirm you get a200, not a401. - Handle errors the same way everywhere: every failure is
{"error": "..."}with a status code from Conventions. There's no endpoint-specific error shape to special-case.
Authentication
Every request carries a bearer token in the Authorization header:
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxxxxxxA request with no key, a malformed key, or a key that's revoked or unrecognised gets 401 Unauthorized. A request with a valid key that isn't allowed to do what it's asking gets 403 Forbidden.
Creating a key
An admin creates keys from Settings → Integrations → API keys inside Jonta. When you create one, you choose:
- Name: something that identifies the system using it (for example "Payroll export")
- Scope: exactly one of
time.export,stats.read,deploy.write,ticket.write,ticket.read - Projects: either every project, or a specific list; the key is refused outside that list
The full key (ptk_...) is shown once, at creation. Only its hash is stored, so if it's lost it can't be recovered: revoke it and create a new one.
Scopes
| Scope | Grants |
|---|---|
time.export | Read timesheet entries (GET /timesheets) |
stats.read | Read aggregate usage stats and storage use (GET /stats and GET /storage-stats) |
deploy.write | Record deploys (POST /deployments) |
ticket.write | Create tickets (POST /tickets) |
ticket.read | Read tickets (GET /tickets and GET /tickets/:id) |
A key can only do the one thing it was scoped for. Revoking a key takes effect immediately: the next request with it fails with 401.
Some endpoints accept a key with any one of several scopes. For example, GET /projects works for a time.export, deploy.write, ticket.write or ticket.read key, and GET /ticket-types works for either ticket.write or ticket.read, each filtered to whatever that key can already reach.
Some keys are provisioned by Jonta itself (for example, a
stats.readkey tied to your licence) rather than created by an admin. These show as protected and can't be revoked from the admin screen, since doing so would break that integration.
Conventions
Errors. Every error is {"error": "a human-readable message"} with one of these statuses:
| Status | Meaning |
|---|---|
400 | The request body or query parameters failed validation; the message says what |
400 | The request body isn't valid JSON at all |
401 | No key, or a malformed key |
401 | A key that's well-formed but revoked or unrecognised |
403 | The key's scope doesn't cover this, or it's restricted to projects that don't include this one |
404 | The project, ticket type or resource named doesn't exist |
429 | Too many requests (see rate limits below) |
Dates and times. Calendar dates are YYYY-MM-DD. Timestamps are ISO 8601 (for example 2026-10-01T00:00:00Z).
Identifying a project. Anywhere an endpoint needs a project, send either projectId (its UUID) or projectKey (its short code, for example DDG, case-insensitive). If a key is restricted to specific projects, requests for any other project get 403.
Identifying a board. Anywhere an endpoint needs a board, send laneId (its UUID). There's no separate board entity: a project is one board, made up of its lanes (columns). GET /projects lists each project's lanes inside that project's own entry, so there's no separate board lookup.
Looking up projects, boards and ticket types. Use GET /projects (works for a time.export, deploy.write, ticket.write or ticket.read key; each project's entry also lists its lanes) and GET /ticket-types (ticket.write or ticket.read) to discover valid ids without needing separate access to the Jonta UI.
Pagination. GET /timesheets and GET /tickets are the paginated endpoints: pass limit and offset, and keep requesting while the response's hasMore is true, using nextOffset as the next request's offset. GET /projects and GET /ticket-types return their whole list in one response, and GET /tickets/:id returns a single ticket.
Rate limits. Two layers apply: 600 requests per minute per IP address across the whole API, and 300 requests per minute per API key on top of that, so one noisy key can't exhaust another key's quota, even sharing an IP. Every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers for whichever layer is closer to triggering. Going over either gets 429: {"error": "Too many requests. Please wait a moment and try again."} for the IP limit, or {"error": "Too many requests for this key. Please wait a moment and try again."} for the key limit.
Request size. Request bodies are capped at 1 MB.
POST/deployments
Scope: deploy.write · Records a deploy against a project, typically called from a CI pipeline's deploy step. Calling it again with the same environment and externalId updates that deploy rather than creating a duplicate. Without externalId there's no de-duplication: every call creates a new deployment.
Required headers: Authorization: Bearer <api key> and Content-Type: application/json
Parameters
| Parameter | Mandatory | Description | Example |
|---|---|---|---|
projectId or projectKey | Yes (one of) | Which project this deploy belongs to | "projectKey": "DDG" |
environment | Yes | For example production or staging; created automatically if new | "environment": "production" |
versionLabel | Yes | Matched against the project's versions to link tickets | "versionLabel": "2.4.0" |
gitTag | No | "gitTag": "v2.4.0" | |
commitSha | No | 7 to 40 hex characters | "commitSha": "a1b2c3d" |
status | No | started, succeeded, failed or rolled_back; default succeeded | "status": "succeeded" |
externalId | No | Your own id for this deploy. Sending the same environment and externalId again updates that deploy; without it, every call creates a new one | "externalId": "gh-run-10234" |
ticketKeys | No | Tickets shipped | "ticketKeys": ["DDG-12", "DDG-18"] |
Example request
POST /api/integrations/deployments
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxx
Content-Type: application/json
{
"projectKey": "DDG",
"environment": "production",
"versionLabel": "2.4.0",
"commitSha": "a1b2c3d4e5f6",
"status": "succeeded",
"externalId": "gh-run-10234"
}Example response: 201 Created
Returns 200 OK instead if it updated an existing record.
{
"id": "b2c3d4e5-0000-0000-0000-000000000002",
"environment": "production",
"versionLabel": "2.4.0",
"status": "succeeded",
"created": true,
"tickets": ["DDG-12", "DDG-18"],
"warnings": [],
"moves": []
}Response fields
| Field | Type | Description |
|---|---|---|
id | UUID | Deployment id |
environment | string | Environment name |
versionLabel | string | Version label as sent |
status | string | started, succeeded, failed or rolled_back |
created | boolean | true if this created a new deployment record; false if it updated an existing one with the same environment and externalId |
tickets | string[] | Ticket keys linked to this deploy |
warnings | string[] | Non-fatal issues, for example an unrecognised versionLabel, ticket keys that belong to a different project (not linked), or ticket keys that don't exist |
moves | array | Reserved for future use; always empty today |
warnings carries soft problems that didn't stop the deploy from recording, for example a versionLabel that doesn't match any version in the project, ticket keys that belong to a different project (these aren't linked), or ticket keys that don't exist.
Possible errors
| Status | When | Example |
|---|---|---|
400 | Neither projectId nor projectKey sent | {"error": "Send projectKey (for example DDG) or projectId"} |
400 | commitSha isn't 7 to 40 hex characters | {"error": "commitSha must be a hex commit id"} |
400 | status isn't one of the four allowed values | {"error": "Invalid enum value. Expected 'started' | 'succeeded' | 'failed' | 'rolled_back', received '<value>'"} |
400 | Request body isn't valid JSON | {"error": "Request body is not valid JSON."} |
404 | No project with that key or id | {"error": "No project with that key or id"} |
403 | This key is restricted to other projects | {"error": "This key cannot record deploys for that project"} |
401 | Key missing or malformed | {"error": "An API key is required"} |
401 | Key is revoked or unrecognised | {"error": "That API key is not valid"} |
403 | Key doesn't carry the deploy.write scope | {"error": "This key is not allowed to read that"} |
POST/tickets
Scope: ticket.write · Creates a ticket in a project, for an external system raising an issue on Jonta's behalf (for example a monitoring tool, or a client portal outside Jonta).
Required headers: Authorization: Bearer <api key> and Content-Type: application/json
Parameters
| Parameter | Mandatory | Description | Example |
|---|---|---|---|
projectId or projectKey | Yes (one of) | Which project to create the ticket in. projectKey is the project's short code (for example DDG), not its full name | "projectKey": "DDG" |
title | Yes | 1 to 300 characters | "title": "Payment webhook failing" |
description | No | Plain text, up to 50,000 characters | "description": "Seen 14 times..." |
priority | No | lowest, low, medium, high or highest; default medium | "priority": "high" |
dueDate | No | "dueDate": "2026-10-20" | |
typeId | No | A ticket type id (see GET /ticket-types); if omitted, the default "Task" type | "typeId": "22222222-..." |
externalId | No | Your own id for this ticket. Calling again with the same externalId returns the ticket already created, instead of making a new one | "externalId": "ext-INC-4821" |
Example request
POST /api/integrations/tickets
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxx
Content-Type: application/json
{
"projectKey": "DDG",
"title": "Payment webhook failing with 500",
"description": "Seen 14 times in the last hour, all for merchant acct 88213.",
"priority": "high",
"externalId": "ext-INC-4821"
}Example response: 201 Created
Returns 200 OK instead if a ticket with that externalId already exists.
{
"id": "c3d4e5f6-0000-0000-0000-000000000003",
"key": "DDG-203",
"projectId": "11111111-0000-0000-0000-000000000000",
"number": 203,
"title": "Payment webhook failing with 500",
"description": "Seen 14 times in the last hour, all for merchant acct 88213.",
"priority": "high",
"externalId": "ext-INC-4821",
"lane": { "id": "...", "name": "Backlog", "isDone": false },
"type": { "id": "...", "name": "Task", "icon": "task", "colour": "#6b7280" },
"assignee": null,
"reporter": null,
"dueDate": null,
"createdAt": "2026-10-09T09:12:00.000Z",
"updatedAt": "2026-10-09T09:12:00.000Z"
}Response fields
The response is the full ticket record. The fields you'll most often use:
| Field | Type | Description |
|---|---|---|
id | UUID | Ticket id |
key | string | For example DDG-203 |
projectId | UUID | |
number | integer | Ticket number within the project |
title | string | |
description | string | |
priority | string | lowest, low, medium, high or highest |
lane | object | { id, name, isDone }, the column the ticket starts in |
type | object | { id, name, icon, colour } |
assignee | object or null | null until someone is assigned |
reporter | object or null | null for a ticket created by a key, because it wasn't raised by a person |
dueDate | date or null | |
createdAt, updatedAt | timestamp | ISO 8601 |
externalId | string or null | Whatever you sent when creating the ticket, or null if you didn't send one |
externalId is echoed back in the response, so you can confirm what was stored without a separate lookup. Only the fields above are ones you set; everything else reflects Jonta's own defaults, such as which lane a new ticket lands in.
If a key is restricted to specific projects, naming any other project here returns 403.
Idempotent retries. Pass externalId with a value you control (your own request id, or an id from the system raising the ticket). Calling this endpoint again with the same externalId for the same project returns the ticket already created, with 200 instead of 201, so it's safe to retry on a timeout. Without externalId there's no de-duplication: a second call makes a second ticket.
Possible errors
| Status | When | Example |
|---|---|---|
400 | Neither projectId nor projectKey sent | {"error": "Send projectKey (for example DDG) or projectId"} |
400 | title is missing | {"error": "Required"} |
400 | title is an empty string | {"error": "String must contain at least 1 character(s)"} |
400 | title is over 300 characters | {"error": "String must contain at most 300 character(s)"} |
400 | typeId isn't a well-formed UUID | {"error": "Invalid uuid"} |
400 | typeId is a well-formed UUID but doesn't match a real ticket type | {"error": "Invalid ticket type"} |
400 | priority isn't one of the five allowed values | {"error": "Invalid enum value. Expected 'lowest' | 'low' | 'medium' | 'high' | 'highest', received '<value>'"} |
400 | Request body isn't valid JSON (for example a shell-quoting mistake mangled it) | {"error": "Request body is not valid JSON."} |
404 | No project with that key or id | {"error": "No project with that key or id"} |
403 | This key is restricted to other projects | {"error": "This key cannot create tickets for that project"} |
401 | Key missing or malformed | {"error": "An API key is required"} |
401 | Key is revoked or unrecognised | {"error": "That API key is not valid"} |
403 | Key doesn't carry the ticket.write scope | {"error": "This key is not allowed to read that"} |
GET/tickets
Scope: ticket.read · Read-only, paginated. Returns tickets across every project the key can reach, optionally filtered to one project and/or one board column.
Required header: Authorization: Bearer <api key>
Parameters
| Parameter | Mandatory | Description | Example |
|---|---|---|---|
projectId | No | Restrict to one project (UUID) | projectId=11111111-... |
laneId | No | Restrict to one board column (UUID). See GET /projects for each project's lanes | laneId=22222222-... |
updatedSince | No | Only tickets changed after this time, for incremental sync | updatedSince=2026-09-01T00:00:00Z |
limit | No | Maximum rows per page: default 500, maximum 1000 | limit=100 |
offset | No | Page offset, default 0 | offset=100 |
format | No | csv returns the same rows as CSV instead of JSON | format=csv |
Example request
GET /api/integrations/tickets?projectId=11111111-0000-0000-0000-000000000000&limit=100
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxxExample response: 200 OK
{
"tickets": [
{
"id": "c3d4e5f6-0000-0000-0000-000000000003",
"key": "DDG-203",
"projectId": "11111111-0000-0000-0000-000000000000",
"number": 203,
"title": "Payment webhook failing with 500",
"priority": "high",
"lane": { "id": "...", "name": "Backlog", "isDone": false },
"type": { "id": "...", "name": "Task", "icon": "task", "colour": "#6b7280" },
"assignee": null,
"dueDate": null,
"externalId": "ext-INC-4821",
"createdAt": "2026-10-09T09:12:00.000Z",
"updatedAt": "2026-10-09T09:12:00.000Z"
}
],
"hasMore": true,
"nextOffset": 100
}Response fields
Each entry in tickets is the full ticket record, the same shape described in the POST /tickets response fields. These are the ones a read integration uses most:
| Field | Type | Description |
|---|---|---|
tickets[].id | UUID | Ticket id |
tickets[].key | string | For example DDG-203 |
tickets[].projectId | UUID | |
tickets[].number | integer | Ticket number within the project |
tickets[].title | string | |
tickets[].priority | string | lowest, low, medium, high or highest |
tickets[].lane | object | { id, name, isDone }: the board column the ticket is in |
tickets[].type | object | { id, name, icon, colour } |
tickets[].assignee | object or null | null until someone is assigned |
tickets[].dueDate | date or null | |
tickets[].externalId | string or null | Whatever was sent when the ticket was created, or null |
tickets[].createdAt / updatedAt | timestamp | ISO 8601 |
hasMore | boolean | true if more rows exist beyond this page |
nextOffset | integer or null | Pass as offset on the next request; null once hasMore is false |
Keep requesting with offset set to nextOffset while hasMore is true. To fetch one ticket directly instead of paging through the list, use GET /tickets/:id.
Possible errors
| Status | When | Example |
|---|---|---|
400 | projectId isn't a valid id | {"error": "projectId must be a project id"} |
400 | laneId isn't a valid id | {"error": "laneId must be a board column id"} |
400 | updatedSince isn't a parseable ISO time | {"error": "updatedSince must be an ISO time, e.g. 2026-10-01T00:00:00Z"} |
401 | Key missing or malformed | {"error": "An API key is required"} |
401 | Key is revoked or unrecognised | {"error": "That API key is not valid"} |
403 | Key doesn't carry the ticket.read scope | {"error": "This key is not allowed to read that"} |
GET/tickets/:id
Scope: ticket.read · Read-only. Fetches one ticket, identified either by its own id (UUID) or by its key (project key and ticket number, for example DDG-203). No separate projectId is needed, since the key already names the project.
Required header: Authorization: Bearer <api key>
Parameters
| Parameter | Mandatory | Description | Example |
|---|---|---|---|
:id | Yes | Path segment: the ticket's id or its key | /tickets/DDG-203 |
Example request
GET /api/integrations/tickets/DDG-203
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxxExample response: 200 OK
{
"id": "c3d4e5f6-0000-0000-0000-000000000003",
"key": "DDG-203",
"projectId": "11111111-0000-0000-0000-000000000000",
"number": 203,
"title": "Payment webhook failing with 500",
"description": "Seen 14 times in the last hour, all for merchant acct 88213.",
"priority": "high",
"externalId": "ext-INC-4821",
"lane": { "id": "...", "name": "Backlog", "isDone": false },
"type": { "id": "...", "name": "Task", "icon": "task", "colour": "#6b7280" },
"assignee": null,
"reporter": null,
"dueDate": null,
"createdAt": "2026-10-09T09:12:00.000Z",
"updatedAt": "2026-10-09T09:12:00.000Z"
}Response fields
The response is the full ticket record, the same shape described in the POST /tickets response fields.
Possible errors
| Status | When | Example |
|---|---|---|
400 | The path segment isn't a well-formed id or key | {"error": "A ticket is identified by its id or its key, e.g. DDG-123"} |
401 | Key missing or malformed | {"error": "An API key is required"} |
401 | Key is revoked or unrecognised | {"error": "That API key is not valid"} |
403 | Key doesn't carry the ticket.read scope | {"error": "This key is not allowed to read that"} |
404 | No ticket with that id or key, or it belongs to a project outside the key's reach | {"error": "No ticket with that id or key"} |
GET/projects
Scope: time.export, deploy.write, ticket.write or ticket.read (any one) · Read-only. Lists the projects this key can reach, each with its board columns (lanes): the id or key to use anywhere above that needs a projectId or projectKey, and the laneId for GET /tickets.
Required header: Authorization: Bearer <api key>
Parameters
None. This endpoint takes no query parameters.
Example request
GET /api/integrations/projects
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxxExample response: 200 OK
[
{ "id": "11111111-0000-0000-0000-000000000000", "key": "DDG", "name": "Dodgeball",
"lanes": [
{ "id": "a1a1a1a1-0000-0000-0000-000000000000", "name": "Backlog", "isDone": false },
{ "id": "a2a2a2a2-0000-0000-0000-000000000000", "name": "Done", "isDone": true }
] },
{ "id": "22222222-0000-0000-0000-000000000000", "key": "ACM", "name": "Acme Rebrand", "lanes": [ ... ] }
]Response fields
| Field | Type | Description |
|---|---|---|
id | UUID | Project id |
key | string | Project's short key, for example DDG |
name | string | Project name |
lanes | array | This project's board columns, { id, name, isDone } per lane: the laneId to use with GET /tickets |
Only active (non-archived) projects are returned, filtered to whatever this key is allowed to reach: the same list every other endpoint checks against.
Possible errors
| Status | When | Example |
|---|---|---|
401 | Key missing or malformed | {"error": "An API key is required"} |
401 | Key is revoked or unrecognised | {"error": "That API key is not valid"} |
403 | Key doesn't carry the time.export, deploy.write, ticket.write or ticket.read scope | {"error": "This key is not allowed to read that"} |
GET/timesheets
Scope: time.export · Read-only, paginated. Returns logged time entries across every project the key can reach.
Required header: Authorization: Bearer <api key>
Parameters
| Parameter | Mandatory | Description | Example |
|---|---|---|---|
projectId | No | Restrict to one project (UUID) | projectId=11111111-... |
from | No | Only entries worked on or after this date | from=2026-09-01 |
to | No | Only entries worked on or before this date | to=2026-09-30 |
updatedSince | No | Only entries changed after this time, for incremental sync | updatedSince=2026-09-01T00:00:00Z |
limit | No | Maximum rows per page; default 500, maximum 1000 | limit=100 |
offset | No | Page offset; default 0 | offset=100 |
format | No | csv returns the same rows as CSV instead of JSON | format=csv |
Example request
GET /api/integrations/timesheets?from=2026-09-01&to=2026-09-30&limit=100
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxxExample response: 200 OK
{
"entries": [
{
"id": "a1b2c3d4-0000-0000-0000-000000000001",
"projectKey": "DDG",
"projectName": "Dodgeball",
"ticketKey": "DDG-142",
"ticketTitle": "Fix login redirect",
"person": "Jess Okafor",
"personEmail": "jess@example.com",
"minutes": 90,
"hours": 1.5,
"workDate": "2026-09-12",
"sprint": "Sprint 24",
"release": "2.4.0",
"source": "timer",
"externalId": null,
"createdAt": "2026-09-12T15:04:00.000Z",
"updatedAt": "2026-09-12T15:04:00.000Z"
}
],
"hasMore": true,
"nextOffset": 100
}Response fields
| Field | Type | Description |
|---|---|---|
entries[].id | UUID | Time entry id |
entries[].projectKey | string | Project's short key |
entries[].projectName | string | Project name |
entries[].ticketKey | string | For example DDG-142 |
entries[].ticketTitle | string | Ticket title |
entries[].person | string or null | Name of whoever logged the time; null if it was logged by someone outside Jonta |
entries[].personEmail | string or null | |
entries[].minutes | integer | Minutes logged |
entries[].hours | number | Minutes divided by 60, rounded to 2 decimal places |
entries[].workDate | date | YYYY-MM-DD |
entries[].sprint | string or null | |
entries[].release | string or null | Fix version name |
entries[].source | string | For example timer, manual, import |
entries[].externalId | string or null | |
entries[].createdAt, updatedAt | timestamp | ISO 8601 |
hasMore | boolean | true if more rows exist beyond this page |
nextOffset | integer or null | Pass as offset on the next request; null once hasMore is false |
Keep requesting with offset set to nextOffset while hasMore is true. If person is null, the time was logged by someone outside Jonta (externalId and source identify them instead).
Possible errors
| Status | When | Example |
|---|---|---|
400 | projectId isn't a valid id | {"error": "projectId must be a project id"} |
400 | from or to isn't YYYY-MM-DD | {"error": "from and to must be dates as YYYY-MM-DD"} |
400 | updatedSince isn't a parseable ISO time | {"error": "updatedSince must be an ISO time, e.g. 2026-10-01T00:00:00Z"} |
401 | Key missing or malformed | {"error": "An API key is required"} |
401 | Key is revoked or unrecognised | {"error": "That API key is not valid"} |
403 | Key doesn't carry the time.export scope | {"error": "This key is not allowed to read that"} |
GET/ticket-types
Scope: ticket.write or ticket.read · Read-only. Lists every ticket type, for picking a typeId to send to POST /tickets.
Required header: Authorization: Bearer <api key>
Parameters
None. This endpoint takes no query parameters.
Example request
GET /api/integrations/ticket-types
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxxExample response: 200 OK
[
{ "id": "33333333-0000-0000-0000-000000000000", "name": "Task", "icon": "task", "colour": "#6b7280" },
{ "id": "44444444-0000-0000-0000-000000000000", "name": "Bug", "icon": "bug", "colour": "#ef4444" }
]Response fields
| Field | Type | Description |
|---|---|---|
id | UUID | Ticket type id; send as typeId to POST /tickets |
name | string | |
icon | string | |
colour | string | Hex colour |
Ticket types aren't scoped to a project or filtered by the key's project list. They're shared across the whole instance.
Possible errors
| Status | When | Example |
|---|---|---|
401 | Key missing or malformed | {"error": "An API key is required"} |
401 | Key is revoked or unrecognised | {"error": "That API key is not valid"} |
403 | Key doesn't carry the ticket.write or ticket.read scope | {"error": "This key is not allowed to read that"} |
GET/stats
Scope: stats.read · Read-only, no parameters. Returns a small set of aggregate, non-identifying counts for this Jonta instance. It's meant for polling on a schedule (for example a licence or usage check), not for reporting.
Required header: Authorization: Bearer <api key>
It never returns client names, people's names, emails, or anything else that identifies who's using the instance.
Example request
GET /api/integrations/stats
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxxExample response: 200 OK
{
"instanceName": "Jonta",
"seatCount": 18,
"activeProjectCount": 7
}Response fields
| Field | Meaning |
|---|---|
instanceName | The name configured for this deployment |
seatCount | Active internal users not tied to a client company |
activeProjectCount | Projects that aren't archived |
Possible errors
| Status | When | Example |
|---|---|---|
401 | Key missing or malformed | {"error": "An API key is required"} |
401 | Key is revoked or unrecognised | {"error": "That API key is not valid"} |
403 | Key doesn't carry the stats.read scope | {"error": "This key is not allowed to read that"} |
GET/storage-stats
Scope: stats.read · Read-only, no parameters. Returns how much storage this Jonta instance is using, for the same scheduled licence or usage checks as GET /stats. A stats.read key can call both.
Required header: Authorization: Bearer <api key>
Example request
GET /api/integrations/storage-stats
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxxResponse fields
A 200 OK response is a JSON object with these two fields:
| Field | Meaning |
|---|---|
databaseSize | The size of this instance's database |
uploadsSizeBytes | The total size of uploaded files, in bytes |
Possible errors
| Status | When | Example |
|---|---|---|
401 | Key missing or malformed | {"error": "An API key is required"} |
401 | Key is revoked or unrecognised | {"error": "That API key is not valid"} |
403 | Key doesn't carry the stats.read scope | {"error": "This key is not allowed to read that"} |
Support
Questions about scopes, an unexpected error, or a key you think has leaked? Email contact@jonta.com and we'll reply within one working day. If a key may have leaked, revoke it straight away in Settings → Integrations → API keys, then create a new one.