CapitánC
ZITADEL3mo ago
38 replies
Capitán

Confused about API implementation in my automation

Hi, I’m new to ZITADEL and currently automating organization, project, and application setup.

My goal is:
1. Run a script that starts ZITADEL via Docker
2. Automatically create a project and an application
3. Store the generated client ID and secret in an .env file for other apps

I got this working using:
zitadel.project.v2.ProjectService/CreateProject
zitadel.application.v2.ApplicationService/CreateApplication

It works fine, but my coworker requested that the application should be of type web and use POST as the auth method. These settings seem to vary by app, but I don’t see such fields in the v2 API docs.

When I inspected the ZITADEL UI network requests, the app creation call seems to use the v1 API, which makes me wonder if I’m missing something.

Environment:
ZITADEL version: 4.6.2

Is there a way to specify application type (web) and auth method (POST) via the v2 API, or do we still need to use v1 for that?

Thanks!
Was this page helpful?