jonta

Developers

Jonta Integration API

Read timesheets, tickets and usage stats, record deployments from CI and raise tickets from other systems, using scoped API keys.

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
MethodEndpointScope requiredPurpose
POST/deploymentsdeploy.writeRecord a deploy (for example from CI)
POST/ticketsticket.writeCreate a ticket in a project
GET/ticketsticket.readPull tickets out, paginated
GET/tickets/:idticket.readFetch one ticket by id or key
GET/projectstime.export, deploy.write, ticket.write or ticket.read (any one)List the projects this key can reach, with their board columns
GET/timesheetstime.exportExport logged time, paginated
GET/ticket-typesticket.write or ticket.readList valid ticket types, for the typeId of POST /tickets
GET/statsstats.readAggregate, non-identifying usage counts
GET/storage-statsstats.readDatabase 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/:connectionId for 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

  1. An admin creates an API key in Settings → Integrations → API keys, scoped to the one thing the integration needs to do.
  2. Copy the key immediately. It's shown once and can't be retrieved again.
  3. Make a first call with it (GET /api/integrations/stats is the simplest) and confirm you get a 200, not a 401.
  4. 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_xxxxxxxxxxxxxxxxxxxxxxxx

A 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

ScopeGrants
time.exportRead timesheet entries (GET /timesheets)
stats.readRead aggregate usage stats and storage use (GET /stats and GET /storage-stats)
deploy.writeRecord deploys (POST /deployments)
ticket.writeCreate tickets (POST /tickets)
ticket.readRead 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.read key 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:

StatusMeaning
400The request body or query parameters failed validation; the message says what
400The request body isn't valid JSON at all
401No key, or a malformed key
401A key that's well-formed but revoked or unrecognised
403The key's scope doesn't cover this, or it's restricted to projects that don't include this one
404The project, ticket type or resource named doesn't exist
429Too 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

ParameterMandatoryDescriptionExample
projectId or projectKeyYes (one of)Which project this deploy belongs to"projectKey": "DDG"
environmentYesFor example production or staging; created automatically if new"environment": "production"
versionLabelYesMatched against the project's versions to link tickets"versionLabel": "2.4.0"
gitTagNo"gitTag": "v2.4.0"
commitShaNo7 to 40 hex characters"commitSha": "a1b2c3d"
statusNostarted, succeeded, failed or rolled_back; default succeeded"status": "succeeded"
externalIdNoYour 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"
ticketKeysNoTickets 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

FieldTypeDescription
idUUIDDeployment id
environmentstringEnvironment name
versionLabelstringVersion label as sent
statusstringstarted, succeeded, failed or rolled_back
createdbooleantrue if this created a new deployment record; false if it updated an existing one with the same environment and externalId
ticketsstring[]Ticket keys linked to this deploy
warningsstring[]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
movesarrayReserved 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

StatusWhenExample
400Neither projectId nor projectKey sent{"error": "Send projectKey (for example DDG) or projectId"}
400commitSha isn't 7 to 40 hex characters{"error": "commitSha must be a hex commit id"}
400status isn't one of the four allowed values{"error": "Invalid enum value. Expected 'started' | 'succeeded' | 'failed' | 'rolled_back', received '<value>'"}
400Request body isn't valid JSON{"error": "Request body is not valid JSON."}
404No project with that key or id{"error": "No project with that key or id"}
403This key is restricted to other projects{"error": "This key cannot record deploys for that project"}
401Key missing or malformed{"error": "An API key is required"}
401Key is revoked or unrecognised{"error": "That API key is not valid"}
403Key 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

ParameterMandatoryDescriptionExample
projectId or projectKeyYes (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"
titleYes1 to 300 characters"title": "Payment webhook failing"
descriptionNoPlain text, up to 50,000 characters"description": "Seen 14 times..."
priorityNolowest, low, medium, high or highest; default medium"priority": "high"
dueDateNo"dueDate": "2026-10-20"
typeIdNoA ticket type id (see GET /ticket-types); if omitted, the default "Task" type"typeId": "22222222-..."
externalIdNoYour 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:

FieldTypeDescription
idUUIDTicket id
keystringFor example DDG-203
projectIdUUID
numberintegerTicket number within the project
titlestring
descriptionstring
prioritystringlowest, low, medium, high or highest
laneobject{ id, name, isDone }, the column the ticket starts in
typeobject{ id, name, icon, colour }
assigneeobject or nullnull until someone is assigned
reporterobject or nullnull for a ticket created by a key, because it wasn't raised by a person
dueDatedate or null
createdAt, updatedAttimestampISO 8601
externalIdstring or nullWhatever 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

StatusWhenExample
400Neither projectId nor projectKey sent{"error": "Send projectKey (for example DDG) or projectId"}
400title is missing{"error": "Required"}
400title is an empty string{"error": "String must contain at least 1 character(s)"}
400title is over 300 characters{"error": "String must contain at most 300 character(s)"}
400typeId isn't a well-formed UUID{"error": "Invalid uuid"}
400typeId is a well-formed UUID but doesn't match a real ticket type{"error": "Invalid ticket type"}
400priority isn't one of the five allowed values{"error": "Invalid enum value. Expected 'lowest' | 'low' | 'medium' | 'high' | 'highest', received '<value>'"}
400Request body isn't valid JSON (for example a shell-quoting mistake mangled it){"error": "Request body is not valid JSON."}
404No project with that key or id{"error": "No project with that key or id"}
403This key is restricted to other projects{"error": "This key cannot create tickets for that project"}
401Key missing or malformed{"error": "An API key is required"}
401Key is revoked or unrecognised{"error": "That API key is not valid"}
403Key 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

ParameterMandatoryDescriptionExample
projectIdNoRestrict to one project (UUID)projectId=11111111-...
laneIdNoRestrict to one board column (UUID). See GET /projects for each project's laneslaneId=22222222-...
updatedSinceNoOnly tickets changed after this time, for incremental syncupdatedSince=2026-09-01T00:00:00Z
limitNoMaximum rows per page: default 500, maximum 1000limit=100
offsetNoPage offset, default 0offset=100
formatNocsv returns the same rows as CSV instead of JSONformat=csv

Example request

GET /api/integrations/tickets?projectId=11111111-0000-0000-0000-000000000000&limit=100
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxx

Example 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:

FieldTypeDescription
tickets[].idUUIDTicket id
tickets[].keystringFor example DDG-203
tickets[].projectIdUUID
tickets[].numberintegerTicket number within the project
tickets[].titlestring
tickets[].prioritystringlowest, low, medium, high or highest
tickets[].laneobject{ id, name, isDone }: the board column the ticket is in
tickets[].typeobject{ id, name, icon, colour }
tickets[].assigneeobject or nullnull until someone is assigned
tickets[].dueDatedate or null
tickets[].externalIdstring or nullWhatever was sent when the ticket was created, or null
tickets[].createdAt / updatedAttimestampISO 8601
hasMorebooleantrue if more rows exist beyond this page
nextOffsetinteger or nullPass 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

StatusWhenExample
400projectId isn't a valid id{"error": "projectId must be a project id"}
400laneId isn't a valid id{"error": "laneId must be a board column id"}
400updatedSince isn't a parseable ISO time{"error": "updatedSince must be an ISO time, e.g. 2026-10-01T00:00:00Z"}
401Key missing or malformed{"error": "An API key is required"}
401Key is revoked or unrecognised{"error": "That API key is not valid"}
403Key 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

ParameterMandatoryDescriptionExample
:idYesPath segment: the ticket's id or its key/tickets/DDG-203

Example request

GET /api/integrations/tickets/DDG-203
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxx

Example 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

StatusWhenExample
400The 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"}
401Key missing or malformed{"error": "An API key is required"}
401Key is revoked or unrecognised{"error": "That API key is not valid"}
403Key doesn't carry the ticket.read scope{"error": "This key is not allowed to read that"}
404No 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_xxxxxxxxxxxxxxxxxxxx

Example 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

FieldTypeDescription
idUUIDProject id
keystringProject's short key, for example DDG
namestringProject name
lanesarrayThis 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

StatusWhenExample
401Key missing or malformed{"error": "An API key is required"}
401Key is revoked or unrecognised{"error": "That API key is not valid"}
403Key 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

ParameterMandatoryDescriptionExample
projectIdNoRestrict to one project (UUID)projectId=11111111-...
fromNoOnly entries worked on or after this datefrom=2026-09-01
toNoOnly entries worked on or before this dateto=2026-09-30
updatedSinceNoOnly entries changed after this time, for incremental syncupdatedSince=2026-09-01T00:00:00Z
limitNoMaximum rows per page; default 500, maximum 1000limit=100
offsetNoPage offset; default 0offset=100
formatNocsv returns the same rows as CSV instead of JSONformat=csv

Example request

GET /api/integrations/timesheets?from=2026-09-01&to=2026-09-30&limit=100
Authorization: Bearer ptk_xxxxxxxxxxxxxxxxxxxx

Example 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

FieldTypeDescription
entries[].idUUIDTime entry id
entries[].projectKeystringProject's short key
entries[].projectNamestringProject name
entries[].ticketKeystringFor example DDG-142
entries[].ticketTitlestringTicket title
entries[].personstring or nullName of whoever logged the time; null if it was logged by someone outside Jonta
entries[].personEmailstring or null
entries[].minutesintegerMinutes logged
entries[].hoursnumberMinutes divided by 60, rounded to 2 decimal places
entries[].workDatedateYYYY-MM-DD
entries[].sprintstring or null
entries[].releasestring or nullFix version name
entries[].sourcestringFor example timer, manual, import
entries[].externalIdstring or null
entries[].createdAt, updatedAttimestampISO 8601
hasMorebooleantrue if more rows exist beyond this page
nextOffsetinteger or nullPass 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

StatusWhenExample
400projectId isn't a valid id{"error": "projectId must be a project id"}
400from or to isn't YYYY-MM-DD{"error": "from and to must be dates as YYYY-MM-DD"}
400updatedSince isn't a parseable ISO time{"error": "updatedSince must be an ISO time, e.g. 2026-10-01T00:00:00Z"}
401Key missing or malformed{"error": "An API key is required"}
401Key is revoked or unrecognised{"error": "That API key is not valid"}
403Key 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_xxxxxxxxxxxxxxxxxxxx

Example 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

FieldTypeDescription
idUUIDTicket type id; send as typeId to POST /tickets
namestring
iconstring
colourstringHex 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

StatusWhenExample
401Key missing or malformed{"error": "An API key is required"}
401Key is revoked or unrecognised{"error": "That API key is not valid"}
403Key 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_xxxxxxxxxxxxxxxxxxxx

Example response: 200 OK

{
  "instanceName": "Jonta",
  "seatCount": 18,
  "activeProjectCount": 7
}

Response fields

FieldMeaning
instanceNameThe name configured for this deployment
seatCountActive internal users not tied to a client company
activeProjectCountProjects that aren't archived

Possible errors

StatusWhenExample
401Key missing or malformed{"error": "An API key is required"}
401Key is revoked or unrecognised{"error": "That API key is not valid"}
403Key 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_xxxxxxxxxxxxxxxxxxxx

Response fields

A 200 OK response is a JSON object with these two fields:

FieldMeaning
databaseSizeThe size of this instance's database
uploadsSizeBytesThe total size of uploaded files, in bytes

Possible errors

StatusWhenExample
401Key missing or malformed{"error": "An API key is required"}
401Key is revoked or unrecognised{"error": "That API key is not valid"}
403Key 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.

Free for up to 10 users

Bring support, delivery and your wiki into one place.

Every feature on every plan. After that, Pro is £25 a month for your first 6 months, then £50 a month, flat for up to 50 users, and migration from Jira and Confluence is free.