APIKeysApi class
Methods
createApiKeys (String companyId , ApiKeysInput apiKeysInput , {int ? page , int ? limit , String ? sortBy , String ? sortOrder , String ? search })
→ Future <CreateApiKeys200Response ? >
Create single API key. Returns the actual sk_ key (only time it's exposed) and api_key_id for future operations.
createApiKeysApiKeysRevoke (String companyId , String apiKeyId , ApiKeysInput apiKeysInput )
→ Future <CreateApiKeys200Response ? >
Explicitly revoke an API key with reason tracking. This is different from delete as it includes revocation metadata.
createApiKeysApiKeysRevokeWithHttpInfo (String companyId , String apiKeyId , ApiKeysInput apiKeysInput )
→ Future <Response >
Explicitly revoke an API key with reason tracking. This is different from delete as it includes revocation metadata.
createApiKeysWithHttpInfo (String companyId , ApiKeysInput apiKeysInput , {int ? page , int ? limit , String ? sortBy , String ? sortOrder , String ? search })
→ Future <Response >
Create single API key. Returns the actual sk_ key (only time it's exposed) and api_key_id for future operations.
deleteApiKeys (String companyId , String apiKeyId )
→ Future <DeleteApiKeys200Response ? >
Delete (deactivate) single API key by api_key_id. Uses the api_key_id returned during creation for clean identification. Fixed to use correct primary key lookup.
deleteApiKeysWithHttpInfo (String companyId , String apiKeyId )
→ Future <Response >
Delete (deactivate) single API key by api_key_id. Uses the api_key_id returned during creation for clean identification. Fixed to use correct primary key lookup.
getApiKeysById (String companyId , String apiKeyId )
→ Future <GetApiKeysById200Response ? >
Get single API key by ID. Returns masked API key for security (sk_****1234).
getApiKeysByIdApiKeysStats (String companyId , String apiKeyId )
→ Future <GetApiKeysById200Response ? >
Get usage statistics for a specific API key. Returns usage count, last used date, failed attempts, etc.
getApiKeysByIdApiKeysStatsWithHttpInfo (String companyId , String apiKeyId )
→ Future <Response >
Get usage statistics for a specific API key. Returns usage count, last used date, failed attempts, etc.
getApiKeysByIdWithHttpInfo (String companyId , String apiKeyId )
→ Future <Response >
Get single API key by ID. Returns masked API key for security (sk_****1234).
listApiKeys (String companyId , {int ? page , int ? limit , String ? sortBy , String ? sortOrder , String ? search })
→ Future <ListApiKeys200Response ? >
Get all API keys for a company. Returns masked API keys for security (sk_****1234).
listApiKeysWithHttpInfo (String companyId , {int ? page , int ? limit , String ? sortBy , String ? sortOrder , String ? search })
→ Future <Response >
Get all API keys for a company. Returns masked API keys for security (sk_****1234).
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
updateApiKeys (String companyId , String apiKeyId , ApiKeysUpdate apiKeysUpdate )
→ Future <UpdateApiKeys200Response ? >
Update an existing API key by ID. Can update metadata like name, expiration, rate limits, etc. Cannot update the actual key value (for security).
updateApiKeysWithHttpInfo (String companyId , String apiKeyId , ApiKeysUpdate apiKeysUpdate )
→ Future <Response >
Update an existing API key by ID. Can update metadata like name, expiration, rate limits, etc. Cannot update the actual key value (for security).