class

OpenAI::AdminApiKey

Inherits JSON::Serializable < Reference < Object

Represents an individual Admin API key in an org.

Constructors

new(object : String = "", id : String = "", name : String = "", redacted_value : String = "", value : String | Nil = nil, created_at : Int64 = 0, last_used_at : AdminApiKeyLastUsedAt = nil, owner : AdminApiKeyOwner = AdminApiKeyOwner.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created_at

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

Source
created_at=(created_at : Int64)

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

Source
id

The identifier, which can be referenced in API endpoints

Source
id=(id : String)

The identifier, which can be referenced in API endpoints

Source
last_used_at
Source
last_used_at=(last_used_at : AdminApiKeyLastUsedAt)
Source
name

The name of the API key

Source
name=(name : String)

The name of the API key

Source
object

The object type, which is always organization.admin_api_key

Source
object=(object : String)

The object type, which is always organization.admin_api_key

Source
owner
Source
owner=(owner : AdminApiKeyOwner)
Source
redacted_value

The redacted value of the API key

Source
redacted_value=(redacted_value : String)

The redacted value of the API key

Source
value

The value of the API key. Only shown on create.

Source
value=(value : String | Nil)

The value of the API key. Only shown on create.

Source