## Retrieve admin API key

`client.Admin.Organization.AdminAPIKeys.Get(ctx, keyID) (*AdminAPIKey, error)`

**get** `/organization/admin_api_keys/{key_id}`

Retrieve a single organization API key

### Parameters

- `keyID string`

  The ID of the API key.

### Returns

- `type AdminAPIKey struct{…}`

  Represents an individual Admin API key in an org.

  - `ID string`

    The identifier, which can be referenced in API endpoints

  - `CreatedAt int64`

    The Unix timestamp (in seconds) of when the API key was created

    `format: unixtime`

  - `ExpiresAt int64`

    The Unix timestamp (in seconds) of when the API key expires

    `format: unixtime`

  - `Object OrganizationAdminAPIKey`

    The object type, which is always `organization.admin_api_key`

    - `const OrganizationAdminAPIKeyOrganizationAdminAPIKey OrganizationAdminAPIKey = "organization.admin_api_key"`

  - `Owner AdminAPIKeyOwner`

    - `ID string`

      The identifier, which can be referenced in API endpoints

    - `CreatedAt int64`

      The Unix timestamp (in seconds) of when the user was created

      `format: unixtime`

    - `Name string`

      The name of the user

    - `Object string`

      The object type, which is always organization.user

    - `Role string`

      Always `owner`

    - `Type string`

      Always `user`

  - `RedactedValue string`

    The redacted value of the API key

  - `LastUsedAt int64`

    The Unix timestamp (in seconds) of when the API key was last used

    `format: unixtime`

  - `Name string`

    The name of the API key

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/openai/openai-go"
  "github.com/openai/openai-go/option"
)

func main() {
  client := openai.NewClient(
    option.WithAdminAPIKey("My Admin API Key"),
  )
  adminAPIKey, err := client.Admin.Organization.AdminAPIKeys.Get(context.TODO(), "key_id")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", adminAPIKey.ID)
}
```

#### 200 — Example

```json
{
  "id": "key_abc",
  "created_at": 1711471533,
  "expires_at": 1714063533,
  "object": "organization.admin_api_key",
  "owner": {
    "id": "sa_456",
    "created_at": 1711471533,
    "name": "My Service Account",
    "object": "organization.user",
    "role": "owner",
    "type": "user"
  },
  "redacted_value": "sk-admin...def",
  "last_used_at": 1711471534,
  "name": "Administration Key"
}
```
