Skip to main content
POST
/
v1
/
enterprise
/
keys
Generate a new Key for the Enterprise
curl --request POST \
  --url https://api.mezmo.com/v1/enterprise/keys \
  --header 'enterprise-servicekey: <api-key>'
{
  "id": "629e3f7e62295be60488fb26",
  "key": "7b273eb8adc962f2711ad760730debb0",
  "name": "servergroup_0_ingestion",
  "type": "ingestion",
  "created": 1654538253244
}

Documentation Index

Fetch the complete documentation index at: https://mezmo-9a59581a-mintlify-926f893d.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

enterprise-servicekey
string
header
required

When authorizing against our enterprise endpoints, they expect an enterprise service key instead of a regular organization service key. Some endpoints might expect both an enterprise service key and a regular organization service key.

Response

A new Service Key is generated and saved to the Key collection

id
string

The ID of the key

Example:

"629e3f7e62295be60488fb26"

key
string

A secret key which can be used to authenticate requests to Mezmo.

Example:

"7b273eb8adc962f2711ad760730debb0"

name
string

A user friendly name for the key

Maximum string length: 30
Example:

"servergroup_0_ingestion"

type
enum<string>

The type of the key

Available options:
ingestion,
service
Example:

"ingestion"

created
integer

The time the key was created as a Unix timestamp in milliseconds

Example:

1654538253244