> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# KeyAssignment - Go SDK

> KeyAssignment type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

## Fields

| Field         | Type      | Required             | Description                                           | Example                                                          |
| ------------- | --------- | -------------------- | ----------------------------------------------------- | ---------------------------------------------------------------- |
| `AssignedBy`  | `*string` | :heavy\_check\_mark: | User ID of who made the assignment                    | user\_abc123                                                     |
| `CreatedAt`   | `string`  | :heavy\_check\_mark: | ISO 8601 timestamp of when the assignment was created | 2025-08-24T10:30:00Z                                             |
| `GuardrailID` | `string`  | :heavy\_check\_mark: | ID of the guardrail                                   | 550e8400-e29b-41d4-a716-446655440001                             |
| `ID`          | `string`  | :heavy\_check\_mark: | Unique identifier for the assignment                  | 550e8400-e29b-41d4-a716-446655440000                             |
| `KeyHash`     | `string`  | :heavy\_check\_mark: | Hash of the assigned API key                          | c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93 |
| `KeyLabel`    | `string`  | :heavy\_check\_mark: | Label of the API key                                  | prod-key                                                         |
| `KeyName`     | `string`  | :heavy\_check\_mark: | Name of the API key                                   | Production Key                                                   |
