A Consumer is an object representing a group of API keys in a given bucket. This section includes a group of endpoints available to perform CRUD operations on a consumer. You can learn more about consumers here.
Lists consumers
Lists all consumers belonging to this account.
path Parameters
accountNamestring · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketNamestring · 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.
query Parameters
limitinteger · 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
offsetinteger · min: 0 · requiredThe offset of the first item returned in the collection. Default: 0
include-api-keysbooleanInclude the api key data in the response.
include-manager-invitesbooleanInclude the manager invites data in the response.
include-managersbooleanInclude the manager's data in the response.
key-formatstring · 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:nonevisiblemaskedmanager-emailstringFilter by email address of key manager.
tagstringQuery by tag. Example usage is
tag.account=foo, whereaccountis the name of the tag property andfoois the value.
Responses
The request has succeeded.
dataobject[] · required
limitinteger · uint32Example: 1000offsetinteger · uint32Example: 0totalinteger · uint32
Creates a consumer
Creates a new consumer for this account.
path Parameters
accountNamestring · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketNamestring · 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.
query Parameters
with-api-keybooleanIf an API key should be created with the consumer.
Request Body
namestring · pattern:^[a-z0-9-]{1,128}$· requiredA friendly name for the consumer. This name is used as the default user.sub property in the API Key Authentication policy.
managersEmail addresses of the managers to invite or a list of managers (with subs) to add to the consumer.
apiKeysobject[]descriptionstringA description of the consumer.
tagsobjectKey value pairs to associate with the consumer.
metadataobjectGeneric metadata associated with the consumer.
Responses
The request has succeeded.
createdOnstring · date-time · readOnly · requiredWhen the item was created.
Example: 2023-04-18T05:54:34.408ZupdatedOnstring · date-time · readOnly · requiredWhen the item was last updated.
Example: 2023-04-20T05:54:34.408Zidstring · readOnly · requirednamestring · pattern:^[a-z0-9-]{1,128}$· requiredA friendly name for the consumer. This name is used as the default user.sub property in the API Key Authentication policy.
apiKeysobject[]descriptionstringA description of the consumer.
tagsobjectKey value pairs to associate with the consumer.
metadataobjectGeneric metadata associated with the consumer.
Gets a consumer
Gets a consumer given a bucket name and consumer name.
path Parameters
accountNamestring · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketNamestring · 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.
consumerNamestring · requiredThe name of the consumer.
query Parameters
include-api-keysbooleanInclude the api key data in the response.
key-formatstring · 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:nonevisiblemaskedinclude-managersbooleanInclude the manager's data in the response.
include-manager-invitesbooleanInclude the manager invites data in the response.
tagstringQuery by tag. Example usage is
tag.account=foo, whereaccountis the name of the tag property andfoois the value.
Responses
The request has succeeded.
createdOnstring · date-time · readOnly · requiredWhen the item was created.
Example: 2023-04-18T05:54:34.408ZupdatedOnstring · date-time · readOnly · requiredWhen the item was last updated.
Example: 2023-04-20T05:54:34.408Zidstring · readOnly · requirednamestring · pattern:^[a-z0-9-]{1,128}$· requiredA friendly name for the consumer. This name is used as the default user.sub property in the API Key Authentication policy.
apiKeysobject[]descriptionstringA description of the consumer.
tagsobjectKey value pairs to associate with the consumer.
metadataobjectGeneric metadata associated with the consumer.
Deletes a consumer
Deletes a consumer and any related resources
path Parameters
accountNamestring · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketNamestring · 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.
consumerNamestring · requiredThe name of the consumer.
query Parameters
tagstringQuery by tag. Example usage is
tag.account=foo, whereaccountis the name of the tag property andfoois the value.
Responses
There is no content to send for this request, but the headers may be useful.
Updates a consumer
Update the consumer with the matching consumer name.
path Parameters
accountNamestring · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketNamestring · 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.
consumerNamestring · requiredThe name of the consumer.
query Parameters
tagstringQuery by tag. Example usage is
tag.account=foo, whereaccountis the name of the tag property andfoois the value.
Request Body
descriptionstringA description of the consumer.
tagsobjectKey value pairs to associate with the consumer.
metadataobjectGeneric metadata associated with the consumer.
Responses
The request has succeeded.
createdOnstring · date-time · readOnly · requiredWhen the item was created.
Example: 2023-04-18T05:54:34.408ZupdatedOnstring · date-time · readOnly · requiredWhen the item was last updated.
Example: 2023-04-20T05:54:34.408Zidstring · readOnly · requirednamestring · pattern:^[a-z0-9-]{1,128}$· requiredA friendly name for the consumer. This name is used as the default user.sub property in the API Key Authentication policy.
apiKeysobject[]descriptionstringA description of the consumer.
tagsobjectKey value pairs to associate with the consumer.
metadataobjectGeneric metadata associated with the consumer.
Roll consumer keys
Set expiration for keys with no expiration date and creates a new key.
path Parameters
accountNamestring · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
bucketNamestring · 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.
consumerNamestring · requiredThe name of the consumer.
query Parameters
tagstringQuery by tag. Example usage is
tag.account=foo, whereaccountis the name of the tag property andfoois the value.
Request Body
expiresOnstring · date-time · requiredWhen the item will expire.
Example: 2050-04-18T05:54:34.408Z
Responses
There is no content to send for this request, but the headers may be useful.