ZuploZuplo
LoginSign Up
  • Documentation
  • API Reference
Information
Analytics
    Get recent requests for a given deployment in the last 24 hoursgetGet statistics on requests by status code for a given deploymentget
API Keys - Buckets
    Lists bucketsgetCreates a bucketpostGets a bucketgetDeletes a bucketdeleteUpdates a bucketpatch
API Keys - Consumers
    Lists consumersgetCreates a consumerpostGets a consumergetDeletes a consumerdeleteUpdates a consumerpatchRoll consumer keyspost
API Keys - Keys
    Lists keysgetCreates an API keypostCreates multiple API keyspostGets an API keygetDeletes an API keydeleteUpdates an API keypatch
API Keys - Managers
    Lists managersgetCreates a managerpostDeletes a managerdelete
Audit Logs
    Query audit logsget
Build Logs
    Get build logsget
Client mTLS CA Certificates
    List Client mTLS CA CertificatesgetCreate Client mTLS CA CertificatepostDelete Client mTLS CA CertificatedeleteUpdate Client mTLS CA Certificatepatch
Custom Domains
    Get Custom DomainsgetCreate Custom DomainpostDelete a Custom DomaindeleteUpdate a Custom Domainpatch
Deployments
    Gets a deployment statusgetLists deploymentsgetUpload deployment sourcepostGet a deploymentgetDeletes a deploymentdeleteRe-deploy a deploymentpost
Environments
    Query environmentsgetGet an environmentget
MCP Servers
    API MCP ServerpostDocs MCP Serverpost
Metering - Features
    List featuresgetCreate featurepostGet featuregetDelete featuredelete
Metering - Meters
    List metersgetCreate meterpostGet metergetUpdate meterputDelete meterdeleteList meter group by valuesgetQuery metergetQuery meterpost
Metering - Plans
    List plansgetCreate a planpostGet plangetUpdate a planputDelete plandeleteArchive plan versionpostPublish planpost
Projects
    Create projectpost
Runtime Logs
    List request logsgetGet request log detailget
Tunnel Services
    Gets a provisioning statusgetGets a service configurationgetConfigures tunnel servicesput
Tunnels
    Lists tunnelsgetCreates a tunnelpostGets a tunnelgetDeletes a tunneldeleteRotates the tokenpostGets a teardown statusget
Variables
    Creates a variablepostUpdates a variablepatch
Other endpoints
    OpenAPI SpecificationgetLists accountsgetLists projectsgetWho Am Iget
Schemas
powered by Zudoku
Zuplo Developer API
Zuplo Developer API

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.


Lists keys

GET
https://dev.zuplo.com
/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys

Lists all keys for this consumer.

Lists keys › path Parameters

accountName
​string · required

The name of the account. You can find this in your Zuplo Portal under Settings > Project Information.

bucketName
​string · required

The 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 · required

The name of the consumer.

Lists keys › query Parameters

limit
​integer · min: 1 · max: 1000 · required

The maximum number of entries to return. If the value exceeds the maximum, then the maximum value will be used. Default: 1000

offset
​integer · min: 0 · required

The offset of the first item returned in the collection. Default: 0

key-format
​Zuplo.ApiKeys.KeyFormat · enum

The 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:
none
visible
masked

Lists keys › Responses

The request has succeeded.

Zuplo.ApiKeys.ApiKeys
​Zuplo.ApiKeys.ApiKey[] · required
limit
​integer · uint32
offset
​integer · uint32
total
​integer · uint32
GET/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys
curl 'https://dev.zuplo.com/v1/accounts/:accountName/key-buckets/:bucketName/consumers/:consumerName/keys?limit=<number>&offset=<number>'
Example Responses
{ "data": [ { "createdOn": "2023-04-20T05:54:34.408Z", "updatedOn": "2023-04-20T05:54:34.408Z", "id": "key_m1m4ol223R0kGHGZY7tPQMQl", "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" } ], "limit": 1000, "offset": 0 }
json
application/json

Creates an API key

POST
https://dev.zuplo.com
/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys

Creates a new API key for this consumer. New API keys will automatically have API Key Leak Detection enabled.

Creates an API key › path Parameters

accountName
​string · required

The name of the account. You can find this in your Zuplo Portal under Settings > Project Information.

bucketName
​string · required

The 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 · required

The name of the consumer.

Creates an API key › Request Body

Zuplo.ApiKeys.ApiKeyCreateOrUpdateBody
expiresOn
​string · date-time

When the key expires.

description
​string

The description of the api key.

key
​string

The 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 an API key › Responses

The request has succeeded.

A Consumer can have any number of API keys associated with it. Each API Key shares the same identity (i.e. Consumer) when authenticating with this service. Keys can have their own description to note the use of the key and can have an expiration date. Expired keys will not be permitted to authenticate after their expiration.
Zuplo.ApiKeys.ApiKey
createdOn
​string · date-time · readOnly · required

When the item was created.

Example: 2023-04-18T05:54:34.408Z
updatedOn
​string · date-time · readOnly · required

When the item was last updated.

Example: 2023-04-20T05:54:34.408Z
id
​string · readOnly · required
expiresOn
​string · date-time

When the key expires.

description
​string

The description of the api key.

key
​string

The 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

POST/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys
curl https://dev.zuplo.com/v1/accounts/:accountName/key-buckets/:bucketName/consumers/:consumerName/keys \ --request POST \ --header 'Content-Type: application/json' \ --data '{ "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" }'
Example Request Body
{ "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" }
json
Example Responses
{ "createdOn": "2023-04-20T05:54:34.408Z", "updatedOn": "2023-04-20T05:54:34.408Z", "id": "key_m1m4ol223R0kGHGZY7tPQMQl", "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" }
json
application/json

Creates multiple API keys

POST
https://dev.zuplo.com
/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys/$bulk

Creates multiple new API keys for this consumer.

Creates multiple API keys › path Parameters

accountName
​string · required

The name of the account. You can find this in your Zuplo Portal under Settings > Project Information.

bucketName
​string · required

The 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 · required

The name of the consumer.

Creates multiple API keys › Request Body

​Zuplo.ApiKeys.ApiKeyCreateOrUpdateBody[]
Zuplo.ApiKeys.ApiKeyCreateOrUpdateBody
expiresOn
​string · date-time

When the key expires.

description
​string

The description of the api key.

key
​string

The 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 › Responses

The request has succeeded.

Zuplo.ApiKeys.ApiKeys
​Zuplo.ApiKeys.ApiKey[] · required
limit
​integer · uint32
offset
​integer · uint32
total
​integer · uint32
POST/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys/$bulk
curl 'https://dev.zuplo.com/v1/accounts/:accountName/key-buckets/:bucketName/consumers/:consumerName/keys/$bulk' \ --request POST \ --header 'Content-Type: application/json' \ --data '{ "0": { "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" }, "1": { "description": "My secret api key2", "expiresOn": "2023-05-20T05:54:34.408Z", "key": "zpka_77b21c8591354c0997db232cc2f79c9e_69253f99" } }'
Example Request Body
{ "0": { "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" }, "1": { "description": "My secret api key2", "expiresOn": "2023-05-20T05:54:34.408Z", "key": "zpka_77b21c8591354c0997db232cc2f79c9e_69253f99" } }
json
Example Responses
{ "data": [ { "createdOn": "2023-04-20T05:54:34.408Z", "updatedOn": "2023-04-20T05:54:34.408Z", "id": "key_m1m4ol223R0kGHGZY7tPQMQl", "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" } ], "limit": 1000, "offset": 0 }
json
application/json

Gets an API key

GET
https://dev.zuplo.com
/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys/{keyId}

Retrieves an API key for this consumer.

Gets an API key › path Parameters

accountName
​string · required

The name of the account. You can find this in your Zuplo Portal under Settings > Project Information.

bucketName
​string · required

The 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 · required

The name of the consumer.

keyId
​string · required

The key id.

Gets an API key › query Parameters

key-format
​Zuplo.ApiKeys.KeyFormat · enum

The 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:
none
visible
masked
tag
​string

Query by tag. Example usage is tag.account=foo, where account is the name of the tag property and foo is the value.

Gets an API key › Responses

The request has succeeded.

A Consumer can have any number of API keys associated with it. Each API Key shares the same identity (i.e. Consumer) when authenticating with this service. Keys can have their own description to note the use of the key and can have an expiration date. Expired keys will not be permitted to authenticate after their expiration.
Zuplo.ApiKeys.ApiKey
createdOn
​string · date-time · readOnly · required

When the item was created.

Example: 2023-04-18T05:54:34.408Z
updatedOn
​string · date-time · readOnly · required

When the item was last updated.

Example: 2023-04-20T05:54:34.408Z
id
​string · readOnly · required
expiresOn
​string · date-time

When the key expires.

description
​string

The description of the api key.

key
​string

The 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

GET/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys/{keyId}
curl https://dev.zuplo.com/v1/accounts/:accountName/key-buckets/:bucketName/consumers/:consumerName/keys/:keyId
Example Responses
{ "createdOn": "2023-04-20T05:54:34.408Z", "updatedOn": "2023-04-20T05:54:34.408Z", "id": "key_m1m4ol223R0kGHGZY7tPQMQl", "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" }
json
application/json

Deletes an API key

DELETE
https://dev.zuplo.com
/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys/{keyId}

Deletes an API key for this consumer.

Deletes an API key › path Parameters

accountName
​string · required

The name of the account. You can find this in your Zuplo Portal under Settings > Project Information.

bucketName
​string · required

The 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 · required

The name of the consumer.

keyId
​string · required

The key id.

Deletes an API key › query Parameters

tag
​string

Query by tag. Example usage is tag.account=foo, where account is the name of the tag property and foo is the value.

Deletes an API key › Responses

There is no content to send for this request, but the headers may be useful.

No data returned
DELETE/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys/{keyId}
curl https://dev.zuplo.com/v1/accounts/:accountName/key-buckets/:bucketName/consumers/:consumerName/keys/:keyId \ --request DELETE
Example Responses
No example specified for this content type

Updates an API key

PATCH
https://dev.zuplo.com
/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys/{keyId}

Updates an API key for this consumer.

Updates an API key › path Parameters

accountName
​string · required

The name of the account. You can find this in your Zuplo Portal under Settings > Project Information.

bucketName
​string · required

The 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 · required

The name of the consumer.

keyId
​string · required

The key id.

Updates an API key › query Parameters

tag
​string

Query by tag. Example usage is tag.account=foo, where account is the name of the tag property and foo is the value.

Updates an API key › Request Body

Zuplo.ApiKeys.ApiKeyCreateOrUpdateBody
expiresOn
​string · date-time

When the key expires.

description
​string

The description of the api key.

key
​string

The 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

Updates an API key › Responses

The request has succeeded.

A Consumer can have any number of API keys associated with it. Each API Key shares the same identity (i.e. Consumer) when authenticating with this service. Keys can have their own description to note the use of the key and can have an expiration date. Expired keys will not be permitted to authenticate after their expiration.
Zuplo.ApiKeys.ApiKey
createdOn
​string · date-time · readOnly · required

When the item was created.

Example: 2023-04-18T05:54:34.408Z
updatedOn
​string · date-time · readOnly · required

When the item was last updated.

Example: 2023-04-20T05:54:34.408Z
id
​string · readOnly · required
expiresOn
​string · date-time

When the key expires.

description
​string

The description of the api key.

key
​string

The 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

PATCH/v1/accounts/{accountName}/key-buckets/{bucketName}/consumers/{consumerName}/keys/{keyId}
curl https://dev.zuplo.com/v1/accounts/:accountName/key-buckets/:bucketName/consumers/:consumerName/keys/:keyId \ --request PATCH \ --header 'Content-Type: application/json' \ --data '{ "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" }'
Example Request Body
{ "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" }
json
Example Responses
{ "createdOn": "2023-04-20T05:54:34.408Z", "updatedOn": "2023-04-20T05:54:34.408Z", "id": "key_m1m4ol223R0kGHGZY7tPQMQl", "description": "My secret api key", "expiresOn": "2023-04-20T05:54:34.408Z", "key": "zpka_66b21c8591354c0997db232cc2f79c9e_69253f24" }
json
application/json

API Keys - ConsumersAPI Keys - Managers