api keys
Delete key
Permanently revokes and deletes an API key.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
keyIdstring
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.apiKeys.deleteApiKey({ path: { keyId: 'key_abc123', },});console.log(data);{
"message": "API key deleted successfully"
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Create key POST
Creates a new API key with an optional expiry. The full key value is only returned once in the response.
Create webhook POST
Create a new webhook configuration. Maximum 10 webhooks per user. `name`, `url` and `events` are required. `url` must be a valid URL and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. Webhooks are automatically disabled after 10 consecutive delivery failures.