API Keys - Keys
This is an object representing an API key. This section includes a list of endpoints to perform CRUD operations on an API key. You can learn more about API keys here.
https://dev.zuplo.com
Lists keys
Lists all keys for this consumer.
path Parameters
accountName
string · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketName
string · requiredThe name of the bucket. Zuplo automatically creates a bucket for your project. You can find it in youe Zuplo Portal under Settings > Project Information.
consumerName
string · requiredThe name of the consumer.
query Parameters
limit
integer · min: 1 · max: 1000 · requiredThe maximum number of entries to return. If the value exceeds the maximum, then the maximum value will be used. Default: 1000
offset
integer · requiredThe offset of the first item returned in the collection. Default: 0
key-format
string · enumThe format of the key to return.
none
: Key is completely hidden.visible
: Key is completely visible.masked
: Part of key suffix is visible.Enum values:nonevisiblemasked
Responses
data
object[] · requiredlimit
integer · uint32offset
integer · uint32total
integer · uint32
Creates an API key
Creates a new API key for this consumer. New API keys will automatically have API Key Leak Detection enabled.
path Parameters
accountName
string · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketName
string · requiredThe name of the bucket. Zuplo automatically creates a bucket for your project. You can find it in youe Zuplo Portal under Settings > Project Information.
consumerName
string · requiredThe name of the consumer.
Request Body
expiresOn
string · date-timeWhen the key expires.
description
stringThe description of the api key.
key
stringThe API key's value. You can use this parameter to override Zuplo's default key format, but this is not recommended as you will lose our API Key Leak Detection
Responses
createdOn
string · date-time · readOnly · requiredWhen the item was created.
updatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
id
string · readOnly · requiredexpiresOn
string · date-timeWhen the key expires.
description
stringThe description of the api key.
key
stringThe API key's value. You can use this parameter to override Zuplo's default key format, but this is not recommended as you will lose our API Key Leak Detection
Creates multiple API keys
Creates multiple new API keys for this consumer.
path Parameters
accountName
string · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketName
string · requiredThe name of the bucket. Zuplo automatically creates a bucket for your project. You can find it in youe Zuplo Portal under Settings > Project Information.
consumerName
string · requiredThe name of the consumer.
Request Body
expiresOn
string · date-timeWhen the key expires.
description
stringThe description of the api key.
key
stringThe API key's value. You can use this parameter to override Zuplo's default key format, but this is not recommended as you will lose our API Key Leak Detection
Responses
data
object[] · requiredlimit
integer · uint32offset
integer · uint32total
integer · uint32
Gets an API key
Retrieves an API key for this consumer.
path Parameters
accountName
string · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketName
string · requiredThe name of the bucket. Zuplo automatically creates a bucket for your project. You can find it in youe Zuplo Portal under Settings > Project Information.
consumerName
string · requiredThe name of the consumer.
keyId
string · requiredThe key id.
query Parameters
key-format
string · enumThe format of the key to return.
none
: Key is completely hidden.visible
: Key is completely visible.masked
: Part of key suffix is visible.Enum values:nonevisiblemaskedtag
stringQuery by tag. Example usage is
tag.account=foo
, whereaccount
is the name of the tag property andfoo
is the value.
Responses
createdOn
string · date-time · readOnly · requiredWhen the item was created.
updatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
id
string · readOnly · requiredexpiresOn
string · date-timeWhen the key expires.
description
stringThe description of the api key.
key
stringThe API key's value. You can use this parameter to override Zuplo's default key format, but this is not recommended as you will lose our API Key Leak Detection
Deletes an API key
Deletes an API key for this consumer.
path Parameters
accountName
string · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketName
string · requiredThe name of the bucket. Zuplo automatically creates a bucket for your project. You can find it in youe Zuplo Portal under Settings > Project Information.
consumerName
string · requiredThe name of the consumer.
keyId
string · requiredThe key id.
query Parameters
tag
stringQuery by tag. Example usage is
tag.account=foo
, whereaccount
is the name of the tag property andfoo
is the value.
Responses
Updates an API key
Updates an API key for this consumer.
path Parameters
accountName
string · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketName
string · requiredThe name of the bucket. Zuplo automatically creates a bucket for your project. You can find it in youe Zuplo Portal under Settings > Project Information.
consumerName
string · requiredThe name of the consumer.
keyId
string · requiredThe key id.
query Parameters
tag
stringQuery by tag. Example usage is
tag.account=foo
, whereaccount
is the name of the tag property andfoo
is the value.
Request Body
expiresOn
string · date-timeWhen the key expires.
description
stringThe description of the api key.
key
stringThe API key's value. You can use this parameter to override Zuplo's default key format, but this is not recommended as you will lose our API Key Leak Detection
Responses
createdOn
string · date-time · readOnly · requiredWhen the item was created.
updatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
id
string · readOnly · requiredexpiresOn
string · date-timeWhen the key expires.
description
stringThe description of the api key.
key
stringThe API key's value. You can use this parameter to override Zuplo's default key format, but this is not recommended as you will lose our API Key Leak Detection