APIKeys - Go SDK
APIKeys method reference
The Go SDK and docs are currently in beta. Report issues on GitHub.
Overview
API key management endpoints
Available Operations
- List - List API keys
- Create - Create a new API key
- Update - Update an API key
- Delete - Delete an API key
- Get - Get a single API key
- GetCurrentKeyMetadata - Get current API key
List
List all API keys for the authenticated user. Management key required.
Example Usage
Parameters
Response
*operations.ListResponse, error
Errors
Create
Create a new API key for the authenticated user. Management key required.
Example Usage
Parameters
Response
*operations.CreateKeysResponse, error
Errors
Update
Update an existing API key. Management key required.
Example Usage
Parameters
Response
*operations.UpdateKeysResponse, error
Errors
Delete
Delete an existing API key. Management key required.
Example Usage
Parameters
Response
*operations.DeleteKeysResponse, error
Errors
Get
Get a single API key by hash. Management key required.
Example Usage
Parameters
Response
*operations.GetKeyResponse, error
Errors
GetCurrentKeyMetadata
Get information on the API key associated with the current authentication session
Example Usage
Parameters
Response
*operations.GetCurrentKeyResponse, error