class

OpenAI::ProjectApiKey

Inherits JSON::Serializable < Reference < Object

Represents an individual API key in a project.

Constructors

new(object : ProjectApiKeyObject = ProjectApiKeyObject::OrganizationProjectApiKey, redacted_value : String = "", name : String = "", created_at : Int64 = 0, last_used_at : Int64 = 0, id : String = "", owner : ProjectApiKeyOwner = ProjectApiKeyOwner.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

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

Source
last_used_at=(last_used_at : Int64)

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

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.project.api_key

Source
object=(object : ProjectApiKeyObject)

The object type, which is always organization.project.api_key

Source
owner
Source
owner=(owner : ProjectApiKeyOwner)
Source
redacted_value

The redacted value of the API key

Source
redacted_value=(redacted_value : String)

The redacted value of the API key

Source