Resources

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

StageTimingWhat you see
AnnouncedT−6 monthsa changelog entry; a warning-level log line on the affected field; __DEPRECATED__: "<replacement>" in the response; deprecated: true in openapi.json
Still supportedT−3 monthsunchanged behaviour. Warnings continue
Final noticeT−1 montha __DEPRECATION_END__ field with a date
RemovedT+0a 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

bash
curl -sS -D- -o /dev/null "$BASE/applications/$APP_ID" -H "$AUTH" | grep -i deprecat
http
deprecation: 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:

json
{
  "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:

json
{
  "/applications": {
    "post": {
      "deprecated": true,
      "description": "... **Deprecated:** use POST /organizations. Removal: 2026-12-01."
    }
  }
}
Warning

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

DeprecatedSunsetReplacementRemoved inMigration
user.organization_id2025-06-01GET /users/{id}/memberships2025.6.0user.organization_id → memberships[0].organization_id
POST /v1/applications2025-09-01POST /applications2025.3.0drop 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-exchangependingsee below
connection.config.password2025-04-01strategy: "ldap"2025.4.0password.mode = "ldap"
GET /webhooks/{id}/secret2025-04-01rotate by create-and-delete2025.4.0no replacement; it never returned the secret
X-Ulex-Idempotency-Key2025-02-01Idempotency-Key2025.2.0header rename
error.message as the branching key2025-01-01error.code2025.1.0branch on code
response_type=token2025-01-01none2025.1.0not implemented; never was
grant_type=password2025-01-01none2025.1.0not 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.

json
{
  "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:

bash
# 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

bash
# Pin your CI to a minor, not a major.
export ULEX_API_VERSION="2025.9"
StrategyBehaviour
latestevery call hits 2025.9.x
2025.9minor-pinned. Patches and security fixes only. Recommended for CI
2025.9.1exactly one patch. Too strict; you will miss fixes
2026.1forward-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

SurfaceWhy
error.code valuesyour branching logic. A new code is additive; a repurposed one is a contract break
audit_event.action valuesyour compliance reporting. The set is closed and append-only
Webhook event namessame
Ids and their formatpermanent. A usr_… is a usr_… forever
object on every resourceit is how you discriminate without a schema lookup
retryable semanticsthe only backoff signal. It will keep meaning what it means
The list envelopeobject, 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

bash
# 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-bearer

If step 3 returns a line, you are affected by the one open deprecation.

#Reference