Conekta::ApiKeyCreateResponse

April 10, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
activeBooleanIndicates if the api key is active[optional]
created_atIntegerUnix timestamp in seconds of when the api key was created[optional]
updated_atIntegerUnix timestamp in seconds of when the api key was last updated[optional]
deactivated_atIntegerUnix timestamp in seconds of when the api key was deleted[optional]
last_used_atIntegerUnix timestamp in seconds with the api key was used[optional]
descriptionStringA name or brief explanation of what this api key is used for[optional]
idStringUnique identifier of the api key[optional]
livemodeBooleanIndicates if the api key is in production[optional]
objectStringObject name, value is 'api_key'[optional]
prefixStringThe first few characters of the authentication_token[optional]
roleStringIndicates if the api key is private or public[optional]
authentication_tokenStringIt is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place.[optional]

Example

require 'conekta'

instance = Conekta::ApiKeyCreateResponse.new(
  active: true,
  created_at: 1684167881,
  updated_at: 1684167923,
  deactivated_at: null,
  last_used_at: null,
  description: online store,
  id: 64625cc9f3e02c00163f5e4d,
  livemode: false,
  object: api_key,
  prefix: key_rp,
  role: private,
  authentication_token: key_rpHzxufNgjFCdprEEFZRTKi
)