Deprecations
ulex's deprecation policy: the 6-month timeline, what happens at each stage, how to detect a deprecation from the API, and every deprecation that has been completed.
#Policy
| Stage | Timing | What you see |
|---|---|---|
| Announced | T−6 months | a changelog entry; a warning-level log line on the affected field; __DEPRECATED__: "<replacement>" in the response; deprecated: true in openapi.json |
| Still supported | T−3 months | unchanged behaviour. Warnings continue |
| Final notice | T−1 month | a __DEPRECATION_END__ field with a date |
| Removed | T+0 | a major version. The field is gone, not deprecated |
A removal is always a major version. A minor version never removes a public field; CI runs automated wire-compatibility checks before release.
Minimum timeline: 6 months. A security fix may remove something sooner, and we will say so in the changelog and tell you directly if you are affected.
#How to detect a deprecation
curl -sS -D- -o /dev/null "$BASE/applications/$APP_ID" -H "$AUTH" | grep -i deprecatdeprecation: sunset="2026-12-01T00:00:00Z" link="https://docs.ulexid.com/resources/deprecations"
sunset: 2026-12-01T00:00:00Z
x-ulex-deprecation-warning: redirect_uris[2] is deprecated; use redirect_uris with a wildcard-free exact list. Removal: 2026-12-01.In the body:
{
"id": "app_01M3PSV7J8TBSPHG95CYSEX32B",
"__DEPRECATED__": "application.grant_types.urn:ietf:params:oauth:grant-type:jwt-bearer",
"__DEPRECATION_END__": "2026-12-01T00:00:00.000Z"
}In openapi.json:
{
"/applications": {
"post": {
"deprecated": true,
"description": "... **Deprecated:** use POST /organizations. Removal: 2026-12-01."
}
}
}A deprecation warning in a response body is a warning, not an error. Do not treat a __DEPRECATED__ field as a failure. Treat it as a to-do item with a date attached to it.
#Current deprecations
None. Every previously deprecated surface has been removed. See below for the record.
#Completed deprecations
| Deprecated | Sunset | Replacement | Removed in | Migration |
|---|---|---|---|---|
user.organization_id | 2025-06-01 | GET /users/{id}/memberships | 2025.6.0 | user.organization_id → memberships[0].organization_id |
POST /v1/applications | 2025-09-01 | POST /applications | 2025.3.0 | drop the /v1 prefix |
application.grant_types[] = "urn:ietf:params:oauth:grant-type:jwt-bearer" | 2026-12-01 (extended) | urn:ietf:params:oauth:grant-type:token-exchange | pending | see below |
connection.config.password | 2025-04-01 | strategy: "ldap" | 2025.4.0 | password.mode = "ldap" |
GET /webhooks/{id}/secret | 2025-04-01 | rotate by create-and-delete | 2025.4.0 | no replacement; it never returned the secret |
X-Ulex-Idempotency-Key | 2025-02-01 | Idempotency-Key | 2025.2.0 | header rename |
error.message as the branching key | 2025-01-01 | error.code | 2025.1.0 | branch on code |
response_type=token | 2025-01-01 | none | 2025.1.0 | not implemented; never was |
grant_type=password | 2025-01-01 | none | 2025.1.0 | not implemented; never was |
#The one still open
urn:ietf:params:oauth:grant-type:jwt-bearer as a grant type is deprecated in favour of RFC 8693 token exchange, which does the same thing with a clearer token-type model and mandatory audience scoping. The original sunset was 2026-06-01 and it was extended to 2026-12-01 because two enterprise customers are still on it.
{
"error": {
"type": "invalid_request_error",
"code": "unsupported_grant_type",
"message": "grant_type urn:ietf:params:oauth:grant-type:jwt-bearer is deprecated.",
"param": "grant_type",
"retryable": false,
"hint": "Use urn:ietf:params:oauth:grant-type:token-exchange. Removal: 2026-12-01. See https://docs.ulexid.com/resources/deprecations",
"docs_url": "https://docs.ulexid.com/resources/deprecations"
}
}Migration:
# Before: JWT bearer grant
-d 'grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&
assertion=eyJhbGciOiJSUzI1NiIs…'
# After: token exchange
-d 'grant_type=urn:ietf:params:oauth:grant-type:token-exchange&
subject_token_type=urn:ietf:params:oauth:token-type:jwt-bearer&
subject_token=eyJhbGciOiJSUzI1NiIs…&
audience=client_01M3PSVV38V3BJQ4SDHQPT8WMJ'The difference that matters: token exchange requires an explicit audience and produces a token scoped to it, with a 900-second lifetime. A JWT bearer grant produced a token whose scope was whatever the assertion said.
#Version pinning
# Pin your CI to a minor, not a major.
export ULEX_API_VERSION="2025.9"| Strategy | Behaviour |
|---|---|
latest | every call hits 2025.9.x |
2025.9 | minor-pinned. Patches and security fixes only. Recommended for CI |
2025.9.1 | exactly one patch. Too strict; you will miss fixes |
2026.1 | forward-compatible against a future major. Fine if you read the migration guide first |
Log x-ulex-version on failed requests so support can correlate the exact build serving your traffic on the first report rather than the fourth.
#What we will never deprecate
| Surface | Why |
|---|---|
error.code values | your branching logic. A new code is additive; a repurposed one is a contract break |
audit_event.action values | your compliance reporting. The set is closed and append-only |
| Webhook event names | same |
| Ids and their format | permanent. A usr_… is a usr_… forever |
object on every resource | it is how you discriminate without a schema lookup |
retryable semantics | the only backoff signal. It will keep meaning what it means |
The list envelope | object, data, has_more, next_cursor |
Adding is fine. Changing the meaning of an existing value is not, and there is no mechanism to do it.
#Checking where you stand
# 1. Do you use anything deprecated?
curl -sS "$BASE/openapi.json" | jq -r '.paths[] | to_entries[] | select(.value.deprecated == true) | .key'
# 2. What version is your environment on?
curl -sS -D- -o /dev/null "$BASE/health" | grep -i 'x-ulex-version'
# 3. Are you on the still-supported grant type?
curl -sS "$BASE/applications" -H "$AUTH" \
| jq -r '.data[].grant_types[]?' | sort -u | grep jwt-bearerIf step 3 returns a line, you are affected by the one open deprecation.