List API keys
client.Admin.APIKeys.List(ctx, query) (*CursorPage[AdminAPIKeyListResponse], error)
GET/compute/v1/admin/api-keys
List API keys
Parameters
Returns
List API keys
package main
import (
"context"
"fmt"
"github.com/boltz-bio/boltz-api-go"
"github.com/boltz-bio/boltz-api-go/option"
)
func main() {
client := boltzapi.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.Admin.APIKeys.List(context.TODO(), boltzapi.AdminAPIKeyListParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"data": [
{
"id": "id",
"allowed_ips": [
"string"
],
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"is_active": true,
"key_prefix": "key_prefix",
"key_type": "admin",
"last_used_at": "2019-12-27T18:11:19.117Z",
"livemode": true,
"name": "name",
"workspace_id": "workspace_id"
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id"
}Returns Examples
{
"data": [
{
"id": "id",
"allowed_ips": [
"string"
],
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"is_active": true,
"key_prefix": "key_prefix",
"key_type": "admin",
"last_used_at": "2019-12-27T18:11:19.117Z",
"livemode": true,
"name": "name",
"workspace_id": "workspace_id"
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id"
}