Migrating integrations from Zitadel v1 to v2 APIs

Teams running custom code or automation against Zitadel v1 need a plan that moves each call to v2 where a resource-based equivalent exists and keeps v1 only where it does not. This page explains that split, the deprecations announced in v4, and the work that drives effort.

On this page

Why Zitadel v1 to v2 API migration is a planning task for your integrations

Zitadel v1 to v2 API migration is a planning task, not a switch you flip. If your scripts, backend services, Terraform configurations or sync jobs call v1 endpoints on a self-hosted instance, move each call to its v2 equivalent where the required resource is available, keep v1 for capabilities that have not been migrated yet, and plan the remaining work around the v1 endpoints that v4 deprecated. Zitadel's own guidance is to use v2 where the resource exists and fall back to v1 where it does not, so the supported path is running both API generations side by side during the transition.

The change is about API shape rather than a single cutover. Zitadel's v1 APIs were organized around user roles, so a call reflects the perspective of an administrator, an end user or a management actor. The v2 APIs are organized around resources, such as users, organizations and projects, so each endpoint maps to an object you create, read, update or delete. That difference means a v1 call cannot always be swapped for a v2 call with a different URL. Request bodies, identifiers and error handling can change, and some workflows that spanned several v1 calls may become a different sequence in v2.

Start with an inventory. List every client that talks to the Zitadel API, the endpoints each one calls, and the Zitadel version it was built against. Mark which calls already have a v2 resource equivalent and which do not. Then confirm the mapping against the migration guide and the release notes for your target version, because the set of migrated resources changes between releases. Treat deprecated v1 endpoints as a dated risk: your plan should record which ones your integrations depend on and who owns each change, so the work is scheduled before the deprecated endpoints are removed.

What changes between v1 and v2 and what each change means for your code

This table compares how the v1 and v2 Zitadel APIs are organized and what each difference means for custom code and automation. Read each row against your own call inventory to decide which calls move to v2 now and which stay on v1 until their resource is available. The main takeaway is that the move is resource by resource, and v4.0.0 is where many v1 endpoints became deprecated.

ChangeImpactAction needed
Organization model: v1 grouped calls by user role, v2 groups them by resourceCode written around role-based calls must be regrouped around resources such as users, organizations and projectsMap each integration to the resources it reads and writes, not to the role that made the call
Partial coverage: v2 is used where the required resource is available, v1 for capabilities not yet migratedA single integration may call both API generations during the transitionConfirm per capability whether v2 covers it, and keep v1 calls only where no v2 equivalent exists
v4.0.0 completed the move of core resources to v2Core resource calls are the first to be deprecated on v1 and need a planned moveCheck your deployed version against the v4.0.0 release notes before scheduling changes
v4.0.0 deprecated many v1 endpointsDeprecated endpoints may be removed in later releases, so calls left on them carry future riskBuild a call inventory listing each endpoint, its owner and its replacement, then prioritize deprecated calls
Endpoint-level mapping between v1 and v2Exact replacements vary by endpoint, so assumptions based on names alone can break integrationsUse the Zitadel migration guide for each endpoint and test the replacement in a non-production instance
Automation and scripts that call v1 directlyScheduled jobs and provisioning scripts often go unnoticed until a deprecated call failsInclude scripts, CI jobs and infrastructure-as-code in the inventory, not only application code

Which calls move to v2 now and which stay on v1

The decision rule for each call is simple: check whether a v2 resource covers the capability your integration uses. If a v2 equivalent exists, the call moves to v2. If it does not, the call stays on v1 under the deprecation plan, and you track it as a known exception. Zitadel's guidance is to use v2 wherever the required resource is available and to fall back to v1 for capabilities that have not been migrated yet. Because v1 was organized around user roles and v2 around resources, start by listing each call your code makes and grouping it by the resource it touches, such as users, organizations, projects, applications or grants. Calls that read or write one of those resources are the first candidates to move.

The supplied material does not list which v1 endpoints have v2 equivalents, so do not assume coverage from the resource name alone. For each endpoint, confirm the replacement against the current Zitadel migration guide from v1 to v2 APIs and against the exact Zitadel version your environment runs. Coverage can differ between releases, and a call that is covered in the version you plan to reach may not be covered in the one you run today. Record the result in a simple inventory with four columns: the v1 call, its v2 replacement or none, the version checked, and the owner. This inventory becomes the input for the test plan and for the deprecation tracking described elsewhere on this page.

Plan for the calls that stay on v1 as a maintained exception, not a permanent state. Zitadel v4.0.0 completed the move of core resources to the v2 APIs and deprecated many v1 endpoints, so any v1 call still in your code is exposed to removal in a future release. Review the Zitadel v4.0.0 release notes for the deprecated endpoints that match your inventory, and set a named owner and a review point for each remaining v1 call. Where a v1 call has no replacement, ask Zitadel on the project channels or through your support agreement whether a v2 resource is planned, and keep the exception documented so that an upgrade does not break it silently.

Inventory and test work to do before changing any call

Migration risk sits in calls nobody remembers writing. The cards below cover the work that should finish before any v1 call is replaced: finding every call, mapping it, testing it on the right version, protecting data, assigning owners and defining what passing means.

Inventory every v1 call

Search application code, shell scripts, scheduled jobs, CI pipelines, Terraform configurations and internal tools for v1 API paths and generated client libraries. Include calls made by vendors' connectors, reverse proxies and monitoring checks, because these often run outside the team that owns the identity service. Record the caller, the endpoint, the frequency and the data it reads or writes. A search that misses one job is the most common cause of a broken integration after cutover.

Zitadel migration guide

Map each call to v2 or v1

For every inventoried call, decide whether the resource it manages has a v2 equivalent. Zitadel's guidance is to use v2 where the required resource is available and to keep v1 for capabilities not yet migrated. Mark each call as migrate, keep on v1, or redesign. Note the reason for each v1-only decision so it can be revisited at the next upgrade rather than forgotten.

Build a test instance on your target version

Stand up a non-production instance running the exact Zitadel version you plan to operate, with the same PostgreSQL version, Helm chart or deployment method and identity provider configuration as production. Test results from a different release do not transfer reliably. Confirm the version against the release list before you start, because the deprecation status of v1 endpoints depends on it.

Back up before every cutover test

Take a database backup immediately before each cutover rehearsal, and confirm you can restore it into a separate environment. Test restores are a required step, not a formality. Keep the backup tied to the version and configuration it came from, so a failed test can be rolled back cleanly and the failure investigated against the original state.

Zitadel database docs

Agree ownership for each integration

Name one accountable owner for every integration in the inventory, including the team that holds the client credentials and the team that reviews the change. Shared scripts and Terraform modules need an owner too. Owners approve their own migration plan, schedule their own test window and sign off on results. Unowned integrations should be treated as blockers until someone accepts responsibility.

Define pass criteria for each call

Write down what a correct result looks like before testing starts. For each migrated call, specify the expected response fields, the error codes and messages callers handle, and the permissions a service account needs. Include negative tests, such as a token without the right role that must still be refused. Vague criteria such as "it works" hide differences in error handling that surface only in production.

Migration sequence for moving integrations to v2

This sequence moves each Zitadel v1 integration to its v2 equivalent one at a time, with a verified comparison and a working rollback at every stage, so no integration loses access during the change.

  1. Freeze the integration inventory

    Your platform team lists every custom service, script, CI job, Terraform configuration and automation that calls Zitadel's v1 APIs, recording the endpoint, the caller, the service account or key it uses, and the business function it supports. Include calls made by partners or internal tools that you may not own directly. Mark each call as having a v2 equivalent, having no v2 equivalent yet, or needing review. Done when the inventory is signed off by the owners of each integration and frozen, so later changes are tracked against a fixed baseline.

  2. Select a low-risk pilot integration

    Choose one integration with a clear v2 equivalent, a small blast radius and an owner who can test it quickly. Avoid calls that touch login, token issuance or user deletion for the first pilot. Your team confirms the v2 resource that covers the call in the official migration guide, which is organized by resource rather than by user role. Done when the pilot is chosen, its owner agrees to the test plan, and the v1 and v2 calls it needs are written down side by side.

  3. Migrate the pilot on a test instance

    Build the v2 version of the pilot call on a test instance that mirrors your production configuration, including organizations, projects, roles and grants. Use a separate service account with the narrowest permissions the v2 resource needs. Keep the v1 code path in the repository behind a configuration switch rather than deleting it. Done when the pilot runs end to end on the test instance and the change is reviewed and merged with the switch set to v1 by default.

  4. Compare responses and authorization behavior

    Send the same requests through both versions and compare the returned fields, identifiers, error codes, pagination and ordering. Test with identities that should succeed and identities that should be refused, and confirm that permissions granted through v1 still produce the same outcome through v2. Record any difference, decide whether your code must adapt, and retest after each fix. Done when the comparison log shows no unexplained differences and each accepted difference has a named owner and a code change or an explicit note.

  5. Run v1 and v2 side by side for gaps

    For each capability that has no v2 equivalent yet, keep the v1 call in place and document why it remains. Run both paths in parallel in a non-production environment for the duration of the test cycle so the team can see that the v1 call still behaves as expected alongside the migrated calls. Assign each retained v1 call to an owner and a review date. Done when every v1 call in the inventory is either migrated, marked as retained with a reason, or scheduled for review, and nothing is left unassigned.

  6. Roll out per integration with rollback

    Enable the v2 path for one integration at a time in production, starting with the pilot. Keep the v1 call available behind the configuration switch until the v2 path has run through an agreed set of production checks, such as successful calls, expected log entries and no authorization errors reported by the owning team. If a check fails, switch back to v1 and record the cause before retrying. Done when each integration has been running on v2 through its checks and the v1 path is still present, so rollback remains a configuration change rather than a code change.

  7. Schedule v1 removal after deprecation review

    Once all integrations run on v2, review the v1 endpoints your code still calls against the deprecations Zitadel announced with v4.0.0, which moved core resources to the v2 APIs and deprecated many v1 endpoints. Confirm with the vendor's release notes which endpoints remain available in the version you run, then remove the v1 code paths in a scheduled change with its own test and rollback plan. Done when the deprecation review is recorded, the removal change is approved, and the retained v1 list is either empty or carries documented reasons and owners.

Planning around the v4 deprecations of v1 endpoints

Zitadel v4.0.0 deprecated many v1 endpoints, which means calls that still work today carry schedule risk. A deprecated endpoint is a signal that the vendor intends to stop supporting it, but the supplied facts do not give a removal date, so you should not assume a window. Before you plan, confirm removal timing directly with Zitadel for the version you intend to run, and record the answer in your migration backlog so it is visible to the team that owns the integration.

Track each v1 call your code and automation make against the release notes for the Zitadel version you run in production. Start from the v4.0.0 release notes, which list the endpoints deprecated in that release, and build a simple inventory with four columns: the v1 method, the calling component, the v2 replacement if one exists, and its status. Include scripts, CI jobs, Terraform or other provisioning tooling, and any service accounts that call the API, because these are easy to miss when they run outside the application code.

Split that inventory into two groups. Calls with a v2 resource that already covers the same job can migrate now, and those changes should be scheduled ahead of any removal date. Calls for capabilities that the v2 APIs do not yet cover must stay on v1 for the time being, and each one needs an owner, a documented reason and a check on the release notes at every upgrade. Treat that second group as a standing risk item rather than a one-time task, since its replacement may arrive in a later release.

Routing each integration call to v2 or keeping v1 until it is covered

The diagram starts with each integration call in your custom code or automation and asks one question: does a v2 resource exist for what this call does? If yes, the call moves to the v2 API and is tested in a non-production environment. If no, the call stays on v1 and is recorded on a deprecation list so the team can revisit it as Zitadel releases more v2 coverage. Both paths meet at verification before production, so every call on either path is checked against the same expected behavior.

Each call takes one path, and both paths meet at verification.

What makes a v1 to v2 migration take longer

This table lists the factors that expand or shrink the work of moving integrations from Zitadel v1 to v2 APIs, with the reason each one matters and how to keep it manageable. Read each row against your own inventory of calls, code and owners, since the largest driver is usually how many integrations depend on v1 behavior that v2 does not yet replicate.

DriverWhy it mattersHow to reduce it
Number of v1 calls and integrationsEvery v1 endpoint in use is a separate change, test and deployment, so the count sets the size of the work more than any other factor.Inventory calls by service and endpoint from logs or code search before planning, and retire unused calls first.
Custom code that parses v1 response shapesCode that reads v1 field names or nesting breaks when v2 returns resource-shaped objects, and such breakage often appears only at runtime.Put response mapping in one adapter layer so each service changes in one place, and add contract tests on the fields it reads.
Automation and Terraform that pin behaviorScripts, pipelines and infrastructure code can depend on v1 request formats or defaults, and drift between environments makes this hard to spot.Pin provider and tool versions, review each automation against the v2 equivalent, and run changes in a staging instance first.
Calls with no v2 equivalent yetCapabilities not yet migrated must stay on v1, so the team maintains two API surfaces, two auth patterns and two sets of documentation.Record each remaining v1 dependency with an owner and a review date, and confirm current v2 coverage against the migration guide for your version.
Number of teams that own integrationsEach owning team needs its own schedule, review and sign-off, and coordination overhead grows faster than the code changes.Assign one migration lead, agree a shared order of work, and publish a single tracker that all owning teams update.
Test coverageWithout automated tests on the calls you change, regressions surface in production, and manual checks scale poorly with the number of integrations.Write tests for each current v1 call behavior before changing it, and confirm that they cover error paths and token handling.

Questions buyers ask about Zitadel API migration cost and effort

What drives the cost of migrating Zitadel integrations from v1 to v2?

The cost follows the number of v1 calls in your code and automation, how many of them map to resources that already have v2 equivalents, and how many services depend on each call. Zitadel's guidance is to use v2 where the required resource exists and keep v1 where a capability has not moved yet, so the mapping work is the first cost driver. Other drivers are the number of languages and SDKs in use, the test coverage you already have, and how many teams must sign off on changes. Ask any partner to price the inventory, mapping, code changes, test runs and cutover as separate line items so you can see which parts scale with your estate.

Who pays for what in a v1 to v2 migration project?

In a self-run project, your engineering time pays for everything: inventory, mapping, code changes, testing, and rollout. In a partner engagement, the partner is paid for the agreed scope while your team still supplies people who know the integrations, approves changes and owns production. Infrastructure for a test instance is usually a separate cost you carry, whether it runs in your cloud account or your data center. Ongoing work such as keeping integrations current with later releases is a recurring cost that a retainer or your own team covers after the one-time migration ends. Ask for a quote that states which costs are one-time and which recur.

Can an internal team migrate Zitadel v1 calls to v2 without outside help?

Often yes, if the team already runs Zitadel, owns the integrations and can test against a non-production instance. The work is mostly careful reading of the API migration guide, rewriting calls by resource, and proving behavior with tests, so it suits engineers who know your authorization model well. The risk grows when integrations are spread across teams, when nobody holds a current inventory, or when the same people also run production. An outside team can help with the inventory, the mapping decisions and the verification, while your staff keep ownership. Decide based on your own capacity and the number of integrations you must change.

What does the client need to provide for a v1 to v2 migration?

The work depends on access and people more than on tooling. Plan to provide read access to the repositories, pipelines and scripts that call Zitadel, a list of every service account and client that uses v1 endpoints, and a non-production Zitadel instance on the same version as production. You also need a named owner for each integration who can explain expected behavior, approve changes and test the result. Without these, the first phase becomes discovery, and that changes the quote. Confirm access, environment and owner names in the written scope before work starts.

What happens to v1 API calls that have not been migrated yet?

Zitadel advises keeping v1 for capabilities that are not yet available in v2, so calls for those capabilities can continue to run while you migrate what is ready. Zitadel's v4.0.0 release completed the move of core resources to the v2 APIs and deprecated many v1 endpoints, so the deprecation status of each endpoint you use is the key fact to check. Plan a register that lists each remaining v1 call, its owner, its replacement status and the release in which you will revisit it. Confirm the current deprecation status of each endpoint against the Zitadel documentation for your target version, because status changes across releases.

How does the v1 to v2 API migration relate to the v3 to v4 upgrade?

They overlap in the v4 release, which completed the move of core resources to v2 and deprecated many v1 endpoints. If you plan a v3 to v4 upgrade, the API migration is one of the workstreams that must be ready before or alongside the runtime change, because deprecated endpoints may stop working as your upgrade path advances. Treat the two as connected but separately tested: the upgrade changes the platform, while the migration changes your code. Sequence them in the written scope so that API changes are verified on a non-production instance running the target version. Ask any partner how they will coordinate both workstreams and who signs off on each.

How do I get a fixed-scope quote for a Zitadel API migration?

Most DeployOpen engagements are fixed-scope, so the quote follows from a written scope that names the integrations, the target Zitadel version, the environments to test against, the deliverables and the acceptance tests. Start by building the inventory of v1 calls with owners, then agree which integrations move, which stay on v1 and what evidence proves each change works. DeployOpen does not publish a price list; the quote comes from that written scope. Ask for the scope, the assumptions behind it, the client responsibilities, and the items that would trigger a change request if discovery finds more work than expected.

How the migration work is scoped and handed over

The scope starts with a call inventory: a written list of every place your code, scripts and automation call a Zitadel v1 endpoint, grouped by the resource each call touches (users, organizations, projects, applications, grants and so on). For each call, the inventory records the caller, the v1 endpoint, the v2 resource API that covers the same need where one exists, and whether the capability is not yet migrated and must stay on v1. Service accounts, CI jobs, provisioning scripts and Terraform or SDK wrappers should all appear, because they are the places v1 calls tend to hide. The output of this step decides the fixed scope: which calls move, which stay on v1 for now, and which need a decision from your team before anyone changes code.

Delivery follows that inventory on a fixed scope agreed in writing before work starts. The written scope names the call groups, the target v2 resources, the test environment, the deliverables and the acceptance checks, so the quote follows from what is actually in the inventory. Each migrated call is handed over with a regression test that runs against your self-hosted instance, a short record of the old and new request and response shapes, and the rollback step for that change. The documentation covers which v1 calls remain, why they remain, and the deprecation status supplied by the Zitadel v4.0.0 release notes, so your team can plan the remaining work. Ask the vendor to confirm the v4 deprecation list against your Zitadel version before fixing scope. Ongoing support, upgrades and continuous testing as your Zitadel version moves forward are available as retainers.

How DeployOpen works on this

DeployOpen scopes the v1 to v2 API migration against your actual integrations, then rebuilds custom code and automation against the resource-based v2 APIs in your own infrastructure. Each step is tested, documented and handed over so your team can run the result and keep the remaining v1 calls on a planned path.

How we scope

  • We inventory every custom client, script and automation that calls Zitadel v1 endpoints.
  • We map each v1 call to its v2 resource equivalent, or mark it as staying on v1 for now.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We migrate integrations in batches, starting with the calls that have a complete v2 equivalent.
  • We test each changed integration against a staging Zitadel instance before it reaches production.
  • We record every remaining v1 dependency with its deprecation status so it can be tracked and retired.

How we hand over

  • You receive the updated code, configuration and an endpoint mapping that your team can review.
  • Documentation explains which calls moved, which stayed on v1, and why each decision was made.
  • We walk your engineers through the test results and the steps to retire the remaining v1 calls.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer.
  • A retainer can cover re-checking integrations when your Zitadel version changes, including future v4 releases.
  • Ask any provider to confirm how they track v1 deprecations announced in later Zitadel releases.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.