Create key
Creates a new API key with an optional expiry. The full key value is only returned once in the response.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
{ "message": "API key created successfully", "apiKey": { "id": "6507a1b2c3d4e5f6a7b8c9d0", "name": "No Private Messages Key", "keyPreview": "zrk_12345678...90abcdef", "key": "zrk_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "expiresAt": null, "createdAt": "2024-01-15T10:30:00Z", "scope": "full", "profileIds": [], "permission": "read-write", "disabledResourceGroups": [ "messages", "contacts", "webhooks" ] }}