feat(api): update API spec from langfuse/langfuse cb8650a #1424
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Important
Adds functionality to retrieve organization API keys with new models and client methods in
client.py.get_organization_api_keys()toOrganizationsClientandAsyncOrganizationsClientinclient.pyto retrieve all API keys for an organization.OrganizationApiKeyandOrganizationApiKeysResponsemodels inorganization_api_key.pyandorganization_api_keys_response.py.__init__.pyfiles to includeOrganizationApiKeyandOrganizationApiKeysResponsein exports.This description was created by
for c364a0a. You can customize this summary. It will automatically update as commits are pushed.
Disclaimer: Experimental PR review
Greptile Overview
Updated On: 2025-10-31 15:09:26 UTC
Greptile Summary
This PR adds a new API endpoint to retrieve organization API keys, automatically generated from the Langfuse API specification.
Key Changes:
OrganizationApiKeyPydantic model with fields for id, timestamps, public key, and display secret keyOrganizationApiKeysResponsewrapper model for the API responseget_organization_api_keys()method in both sync (OrganizationsClient) and async (AsyncOrganizationsClient) clientsCode Quality:
Confidence Score: 5/5
Important Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant Client participant OrganizationsClient participant HTTP as HTTP Client participant API as Langfuse API Client->>OrganizationsClient: get_organization_api_keys() OrganizationsClient->>HTTP: GET /api/public/organizations/apiKeys HTTP->>API: Request with org-scoped API key alt Success (200-299) API-->>HTTP: Return API keys data HTTP-->>OrganizationsClient: Response OrganizationsClient->>OrganizationsClient: Parse to OrganizationApiKeysResponse OrganizationsClient-->>Client: Return OrganizationApiKeysResponse else Error 400 API-->>HTTP: Bad Request HTTP-->>OrganizationsClient: 400 Response OrganizationsClient->>Client: Raise Error else Error 401 API-->>HTTP: Unauthorized HTTP-->>OrganizationsClient: 401 Response OrganizationsClient->>Client: Raise UnauthorizedError else Error 403 API-->>HTTP: Access Denied HTTP-->>OrganizationsClient: 403 Response OrganizationsClient->>Client: Raise AccessDeniedError else Error 404 API-->>HTTP: Not Found HTTP-->>OrganizationsClient: 404 Response OrganizationsClient->>Client: Raise NotFoundError else Error 405 API-->>HTTP: Method Not Allowed HTTP-->>OrganizationsClient: 405 Response OrganizationsClient->>Client: Raise MethodNotAllowedError end