API operations follow one naming scheme
Live on preview.zitadel.comReleased in v0.7.0
Every API operation is now named with a camelCase verb and the resource it acts on, without a ById suffix, and every path parameter names its resource: {schema_id}, not {id}. URLs and requests don't change, but the names do in @zitadel/api, the Go client (go.zitadel.com/zitadel/v5), zitadel api and the API reference, whose old pages redirect. zitadel api ls lists the current names.
Breaking: 34 operations are renamed. Rename the calls in your code; among them:
GetUserByID,PatchUserByIDandDeleteUserByIDaregetUser,updateUseranddeleteUser, and the other…ByIdreads drop the suffix.getVariables,updateVariablesandgetDeploymentVariablesarelistVariables,setVariablesandlistDeploymentVariables.deleteTeamisdeactivateTeam;patchMyUserandpatchProjectareupdateMyUserandupdateProject.addOrigin,removeOrigin,listPreviewsandremovePreviewareaddProjectOrigin,removeProjectOrigin,listProjectPreviewsandremoveProjectPreview.- The writes that publish a revision are
publishSchema,publishFlowDefinition,publishBranding,publishIdpandpublishApplication.
The release notes list the rest, the claim, passkey and authentication attempt operations among them.
Paths and responses
- Breaking: the login flow API lives under
/flows:POST /flows,GET /flows/{flow_id}andPOST /flows/{flow_id}/submit./flowanswers until 1.0.0, with aDeprecationheader. The 0.7.0 clients,<zitadel-login>, SDKs, CLI and@zitadel/testingcall/flows, which an older server answers with404, so upgrade a self-hosted server first. - Breaking:
GET /eventsanswers{ events: […], next_page_token }; the events were underdata. Use a 0.7.0 CLI against a server that has this. - Breaking:
GET /brandingpages like every other list: it takeslimitandpage_token, holds 20 revisions a page unlesslimitasks for up to 100, and answers{ branding: […], next_page_token }. UselistBranding.all(…)orzitadel branding list --allfor every revision. - Breaking:
POST /schemasanswers with the schema it stored,{ id, schema, metadata }, so you no longer need a second read. In the Go client,PublishSchemareturns*Schema. - Breaking: in the Go client,
submitFlowStepanswers400with either the step or an error, andapi.DeploymentTargethas noExpiresAt. In@zitadel/api,SubmitFlowStep400is a union: check forstepbefore reading it.