Skip to content

Add connected_app to identity.create_api_key - #3

Merged
bensynapse merged 1 commit into
mainfrom
create-api-key-connected-app
Nov 10, 2026
Merged

bensynapse merged 1 commit into
mainfrom
create-api-key-connected-app

Conversation

@bensynapse

Copy link
Copy Markdown
Contributor

POST /v1/api-keys accepts connected_app (boolean, default false) since API 1.12.0. The models already carried it. identity.create_api_key did not pass it.

  • create_api_key takes connected_app: bool | None = None on Client and AsyncClient.
  • The field is sent only when given, so existing calls send the same body.
  • ApiKeyWithSecret and ApiKey already read the flag. Tests now cover both.
  • README and changelog describe the parameter. No version change.

Checks run locally: pytest (105 passed), ruff check, ruff format, mypy, gen_models.py --check, truthcheck.

The sync and async clients take connected_app and send it only when given.
Existing calls send the same body as before.
Tests cover the request body and the flag on created and listed keys.
The README and changelog describe the parameter.
@bensynapse
bensynapse merged commit b016ca6 into main Nov 10, 2026
12 checks passed
@bensynapse
bensynapse deleted the create-api-key-connected-app branch November 10, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant