Skip to content

Version History ​

Current version: 2.8.0 ​

kotlin
implementation("com.skapi:skapi-kotlin:2.8.0")
kotlin
implementation("com.skapi:skapi-java:2.8.0")

2.8.0

New:

  • sender_type on realtime messages. The connectRealtime callback now receives "sender_type": "owner" (the project owner), "admin" (access group 90 to 99) or "user", on "private" and "message" events, in Kotlin and in Java. It is set by the server from the sender's login, so an app can show an admin's message as official and know no user can imitate it. See Trusting the Sender.
  • A changed access applies at once. When an admin lowers a user's access group, blocks or disables them, the server refuses the user's old login at once (blocked: INVALID_REQUEST "The account has been blacklisted."); for a lowered access group the SDK refreshes the login and sends the request again by itself, so the user carries on with the new access group.
  • No password reaches the app in OpenID sign-in. Before, the server sent openIdLogin a password made for the account, and that password never changed, so anyone who saw it once could sign in as the user without the provider. Now the server checks the provider's token and the account, then sends a sign-in proof that lives 5 minutes and works for that one account only; the SDK answers Cognito's sign-in challenge with it and the login tokens come straight to the app. Parameters and return value are unchanged, in Kotlin and in Java. A refused or expired proof throws INVALID_REQUEST (The OpenID sign-in could not be completed. Please try again.). If the account changes while the sign-in is being completed, for example because a password reset finishes at the same moment, it throws INVALID_REQUEST (The account changed during the OpenID sign-in. Please try again.); signing in again works. ACCOUNT_EXISTS (The account already exists.) still means: ask the user, then call again with merge; the server now sends it itself. Accounts with an authenticator app, and objects made with encryption, sign in as before. See OpenID Login.
  • openIdLogin() works against a server not yet updated. When the server does not know the 2.8.0 sign-in and refuses it, the SDK tries once more the older way, so the user still signs in.
  • A merge signs the account out everywhere. Merging into an e-mail/password account, or an OpenID sign-in that takes over an account that was not proven to belong to the user, replaces its password, as before, and now also signs the account out on every device and turns off an authenticator app left on the account (the user can set one up again once signed in). If the account's e-mail is not the e-mail the OpenID provider shares, it stops counting as verified (the user can verify it again once signed in). An account merged through an older SDK goes through this once, on its first OpenID sign-in from 2.8.0, so the user's other devices are signed out that one time and an authenticator app left on it is turned off. See Merging.
  • Existing OpenID accounts are signed out on other devices once. Existing OpenID accounts, including ones created by earlier SDK versions, move to the new sign-in on their first OpenID sign-in from 2.8.0, and that one time the account is signed out on its other devices. An authenticator app the user set up stays on. Only an account taken over through a merge, or one that was not proven to belong to the user, gets its authenticator app turned off. See Existing accounts.
  • A new OpenID account's e-mail is verified only when the provider says so. An account made by an OpenID sign-in from 2.8.0 gets its e-mail marked verified only when the provider says the e-mail is verified, or does not say otherwise.
  • An e-mail the provider has not verified is refused. When the OpenID logger identifies users by e-mail and the provider says the user's e-mail is not verified, openIdLogin() throws INVALID_REQUEST (The OpenID provider has not verified this e-mail.).
  • OpenID users can set a password of their own with forgotPassword and resetPassword, also after a merge. The reset code goes to the account's verified e-mail. In an object made without encryption, a password whose reset code went to the e-mail the OpenID provider shares keeps working next to OpenID sign-in; with encryption, OpenID sign-in is refused after a password reset (usually ACCOUNT_EXISTS, which merge does not get past; INVALID_REQUEST only when the account had signed in with OpenID through a 2.8.0 app with encryption off and the reset code went to the e-mail the provider shares) and the user signs in with login. After a reset whose code went to another e-mail, the account's existing sessions stop being renewed, so the user signs in again, and in an object made without encryption the next OpenID sign-in takes the account over again (with merge if it throws ACCOUNT_EXISTS), which replaces that password and signs the account out on every device. See A password of their own.
  • An account with its own password and an authenticator app signs in with the password. openIdLogin() throws INVALID_REQUEST (This account signs in with its password and an authenticator app code. Sign in with the password.). Other accounts with an authenticator app still get MFA_REQUIRED, then verifyMfa.
  • SKAPI_VERSION reads "2.8.0".

Fixes and changes:

  • OpenID users' encryption works out of the box. Earlier pages of this site said OpenID accounts cannot use encryption and stay locked with OPENID_UNSUPPORTED. That never happened: the check read an account field that nothing sets, so an OpenID user's encryption is set up and unlocked with the password their sign-in uses, like any other user's, and the first OpenID sign-in creates their encryption recovery code. The unused check and the OPENID_UNSUPPORTED reason of getEncryptionStatus are removed. Nothing changes for any sign-in. See OpenID users.
  • unlockEncryptionWithRecoveryCode checks password first. It re-seals the keyring under password and removes the older password wraps, so a typo used to leave the data openable only with the new encryption recovery code. Now, when password is not the account's current password, it throws INCORRECT_USERNAME_OR_PASSWORD (The password is not this account's current password.) and nothing changes. Too many tries throw REQUEST_EXCEED. The check leaves the session, its stored tokens and the login listeners alone. A session that openIdLogin() signed in is not checked, since the app never saw its password. See Encryption recovery codes.
  • After a merge, the encryption recovery code is needed once, not at every OpenID sign-in. With record encryption on, an openIdLogin() that merges a password account that already had encryption set up, or that follows an OpenID logger deleted and registered again, signs in with encryption locked. Before, unlocking it in that session with unlockEncryptionWithRecoveryCode(code), or after a merge with unlockEncryption and the old password, opened the records for that session only, so every later openIdLogin() was locked again and asked for the newest code. Now that unlock also sets the keyring up for OpenID sign-in, so every later openIdLogin() on any device opens it by itself. Each use of the code still returns a new one to show the user. Every case where the code is needed is listed in When the recovery code is needed.
  • Keyring changes from two devices no longer erase each other. A password change and the cleanup after it, an encryption recovery code used or made again: each reads the latest keyring right before it saves, keeps what another device added, and applies only its own changes. Before, a change from one device could remove a wrap another device had just added, for example the new password's wrap from changePassword(). With one device, nothing is different. See Changes from two devices at once.

Server changes, for every SDK version

  • OpenID sign-in on an account with its own password needs 2.8.0. Apps on 2.7.0 and older keep signing in with OpenID as before, except on an account whose reset password the server marked as its own (the reset code went to the e-mail the provider shares, after a 2.8.0 OpenID sign-in): there the server answers INVALID_REQUEST (This account has its own password. Update the app to the latest Skapi SDK to sign in with OpenID, or sign in with the password.). Blocked, disabled and unconfirmed accounts are refused as before.
  • Realtime send limits. The project owner can limit how many realtime messages and how many notifications each user sends in a minute, on the Users page of the dashboard. Empty means no limit (the default) and 0 stops users from sending any. Admins and the owner are never limited. A refused message reaches the sender's realtime callback as an "error" event. See Send Limits.
  • A realtime message must come from a login of the same project. The server used to accept a valid login of another project in the same region, so its user could message this project's users. Such a message is now refused with Invalid token.

Server changes of 2026-11-25, for every SDK version

  • A record above your access group needs a grant. A record may sit in an access group above its user's own only when it references a record the user was granted with grantPrivateRecordAccess, and at most at that record's access group. Being able to read the referenced record, or having uploaded it, is no longer enough: a reference to a public record used to let any signed-in user post into any access group. Refused with User has no access to this group. A record above your access group must reference a record you were granted, and stay at or below that record's access group., or User has no access to this group. A private record lends no access group: a record that references it can be at most your own access group, or private. when the referenced record is private. The same check runs on an update that keeps such a record's reference. Admins and the project owner are not checked. See References.
  • Private access keys through a reference check the link. A key asked for with a reference is given only when the private record references that record directly, and you uploaded it or were granted it (a grant on the private record itself is enough too). Before, any record of your own could be named, which gave a key to any private record. See Private records.
  • Listing private access grants needs access to the data. A record's grants are listed only for its uploader, the users it was shared with, the users with private access to the record it references, the project owner and admins in access group 99; a user's grants only for that user, the project owner and admins in access group 99. Anyone else gets User has no access to list the private access of this record. (or of this user.). See Listing grants.
  • A record read through the record it references comes with a key for its own files. It used to come with the referenced record's key, so its files failed to load for up to an hour.

2.7.0: aligned with skapi-js 2.7.0 (and the request status push of skapi-js 2.5.0), released for skapi-kotlin, skapi-android and skapi-java. There was no 2.5.0 or 2.6.0 release of skapi-kotlin: 2.7.0 is the first release with the record changes listed under 2.5.0 below.

New:

  • forwardRequestStatus reads where many forwarded requests stand in one call (up to 100 per call to the server, more are sent 100 at a time): status, stream position, whether a result is stored (has_body), timestamps and cref, with no bodies. A request this caller cannot see comes back as "missing" instead of failing the call. See Many requests at once.
  • forwardRequestQueueCounters reads the counters of up to 20 queues (cnt, rct, seq, in_queue), so an app can check often and read the requests themselves only when a counter moved.
  • forwardRequestRead reads one request and always answers {"id", "status", "body"?, "error"?, "chunks"?, ...}, so the status is there even for a resolved request, and a failed stream comes back with the text it got before it failed. See Reading one request in full.
  • cref on forwardRequest: your own reference for the request, stored on it and handed back by the reply, forwardRequestHistory, forwardRequestStatus and forwardRequestRead, so a send whose reply was lost can be found instead of sent twice. See Finding a request again.
  • forwardRequestHistory takes "fields" to "ids" (only id, status, times, queue and cref, no bodies) and "after" (only requests newer than a short id), and its rows carry cref.
  • "ifAbsent" to true on forwardRequestFinalize stores the result only when none is stored yet, and otherwise answers {"finalized": false, "reason": "exists"}.
  • deadline and signal on the reads. forwardRequestStatus, forwardRequestQueueCounters, forwardRequestRead and forwardRequestHistory take "deadline" (milliseconds the call may take in all, the wait for the connection, a sign-in token refresh and the waits after a 429 included, then TIMEOUT) and a SkapiAbortSignal (abort() fails the call with ABORTED at once, at any stage, and takes it off the network). "fresh" is accepted for code shared with skapi-js; every skapi-kotlin read is already fresh. See Deadlines and aborting.
  • Request status push. "notify" to true on a queued request has the server send each status change to the user's realtime connections. A poll of that request (forwardRequestPoll with notify = true, or forwardRequest with poll) then reads at once when a change names it, and otherwise once a minute while changes arrive. onRequestStatus listens to every change, and isRequestStatusLive says whether changes are arriving. See Status push.
  • SKAPI_VERSION reads "2.7.0".

Fixes and changes:

  • A passing failure no longer says the project does not exist. The first call of a Skapi object reads the project's endpoint list from the CDN, and any failed read of it threw NOT_EXISTS ("The project ID does not exist"), so a sign-in could fail once with NOT_EXISTS and work when tried again. Now only a missing list (the CDN answers 403 or 404) throws NOT_EXISTS; a server fault throws SERVER_ERROR, a rate limit RATE_LIMITED, a cut-off answer NETWORK_ERROR, and no answer in time TIMEOUT, all safe to try again.
  • Request status changes no longer reach the realtime callback. The server sends a user's status changes ("#code": "CSR_STATUS", a private message with no sender) to every realtime connection of that user, also when another client of the same user sent the request with notify. Before 2.7.0 they reached your connectRealtime callback as "private" events with no sender; they are now left out, and go to onRequestStatus.
  • A poll ends only with the server's answer. A read that failed on the way (no network, TIMEOUT, a 429, a server fault, no sign-in token) used to end forwardRequestPoll, forwardRequestStream and a polling forwardRequest with that error at once, so a phone coming back from sleep turned requests that were still running into errors. It is now tried again later, waiting twice as long each time up to 30 seconds. A 401 refreshes the sign-in token once and the poll carries on; while signed out the poll waits for a sign in without sending. A refusal from the server still ends it.
  • New error codes for failures on the way. A 5xx answer (except 501) now throws SERVER_ERROR (was the code in the body, or the status number), with the body in details. A 429 without Retry-After throws RATE_LIMITED (was ERROR); for a file upload it is TOO_MANY_REQUESTS, as in skapi-js. A 429 still answered after its retries keeps TOO_MANY_REQUESTS. The messages are the same words as before. See Errors.
  • A sign-in token refresh gets 15 seconds in all. A refresh whose connection stalled (after a sleep or a network change) used to hold every signed-in call for up to the connection timeout. Calls that need a refresh at the same time share one, and each waits for it at most 15 seconds: past that the call fails with TIMEOUT (The sign-in token refresh did not answer within 15 seconds.), the user stays signed in, and the next call tries the refresh again. A refresh the server refuses (a revoked or expired refresh token, a deleted user) still ends the session.
  • connectRealtime waits for a connection the request status push is still opening. It takes that connection over and returns once it is open; if it fails to open, the callback gets the error event and connectRealtime throws, as for a connection it opens itself.
  • queue_exact reads only the named queue on the server. Requests queued before 2026-06-05 were stored under an older queue format and are not listed with "queue_exact" to true; list the queue without it to see those. See forwardRequestHistory.

Not ported, because skapi-kotlin works differently: the realtime relay of streamed text and its end-of-stream signal (skapi-kotlin reads streams by polling), and the skapi-js poll registry changes (one poll per request, oldest-first order within a queue, aborting a stopped poll's read, a clock that cannot go back): in skapi-kotlin each poll is the call that waits for it, and cancelling its coroutine ends it.

2.5.0: the record changes of skapi-js 2.6.0 and skapi-py 2.5.0. Never released: they ship in 2.7.0, so install 2.7.0 to use them.

New:

  • source.can_modify_referencing_records. A record posted with "source" to jsonOf("can_modify_referencing_records" to true) lets its uploader change the data, tags and index of other users' records that reference it, or unlink them with "reference" to null, by calling postRecord with the record's record_id. Nothing else of such a record can be changed this way, and private and read-only records are refused. The uploader can set it only when the record is created and can turn it off at any time; only the project owner and admins in access group 99 can turn it on for an existing record. A value that is not a boolean throws INVALID_PARAMETER ("source.can_modify_referencing_records" should be type: <boolean>.). Every record now has can_modify_referencing_records in source (false unless set). See Letting the parent's uploader change referencing records.
  • updated_by on a record: the user ID of the user who last updated the record when that was not its uploader (the referenced record's uploader, the project owner or an admin). It is absent when the uploader made the last update, and is never listed in source. See The record.
  • SKAPI_VERSION reads "2.5.0".

Changes on the server, for every SDK version:

  • A record's IP address is returned only to its uploader, the project owner and admins in access group 99. Everyone else reads ip as "", or "0.0.0.0" for a record a signed-out user posted from an IPv4 address, so its user_id still starts with anonymous:; readonly and unique_id read as before. 2.5.0 also reads a missing ip as "".
  • "reference" to null no longer lets a record into a higher access group. A user can post a record in an access group above their own only when the request references a record in that group (a reply). Unlinking with "reference" to null, or moving a record that keeps its reference to another access group, is refused with User has no access to this group. like any other post above the user's access group.
  • A record that stops referencing a record leaves its lists. After its reference is removed or changed, getRecords with the old reference (tag and private record reads included) and the old referenced record's uploader's feed no longer return it.
  • Record files of type HTML, SVG, XML or JavaScript are downloaded instead of opened as pages. Files attached to records are served with headers that keep a browser from running them. Images, video, audio, PDFs and hosted sites are not affected, and getFile reads the bytes as before.

2.4.4: matches skapi-js 2.4.4 and skapi-py 2.4.4, released for skapi-kotlin, skapi-android and skapi-java. There was no 2.4.2 or 2.4.3 release.

  • A stalled file upload fails with TIMEOUT (Upload timeout: ...) instead of NETWORK_ERROR. An upload was already limited by how long it goes with nothing moving, not by its total time, so a slow upload that keeps moving is never cut off. Once the whole file is written, its answer may now take 5 × timeoutSeconds, because the last megabytes can still be draining from the network buffers.
  • A request that stops moving fails with TIMEOUT. When nothing is sent or received for timeoutSeconds, a call now throws TIMEOUT (No response for 120 seconds. with the default) instead of NETWORK_ERROR, so you can tell a dead connection from no connection. See Errors.
  • Polling intervals under 1 second are refused. The poll option of forwardRequest, the pollMillis of forwardRequestPoll and the poll option of forwardRequestStream now throw INVALID_PARAMETER ("poll" should be a number of milliseconds, 1000 or more.) for a value under 1000; before, any number of 0 or more was accepted. poll: 0 on forwardRequest still means "do not poll", and 0 on forwardRequestPoll still means the default, 1000. The same rule as skapi-js 2.4.4.
  • SKAPI_VERSION reads "2.4.4".

skapi-js 2.4.3 (signed-out reads no longer sign out) and the 2.4.4 request queue change need nothing here: skapi-kotlin never signed out on a read, and it sends each request on its own instead of through a page-wide queue.

2.4.1: Adds skapi-java (com.skapi:skapi-java), a layer for Java code on top of skapi-kotlin: every method returns a CompletableFuture, and JSON comes and goes as plain Java maps and lists. See Using from Java. There are no changes to skapi-kotlin or skapi-android behaviour; they are released as 2.4.1 together with skapi-java, and SKAPI_VERSION reads "2.4.1".

2.4.0: First release of skapi-kotlin, the Kotlin and Android version of skapi-js 2.4.0 and skapi-py 2.4.0.

skapi-kotlin 2.7.0